/* ==========================================================================
   Prime SEO — Простой и чистый дизайн сайта для компании Prime SEO
   Цветовая палитра: Синие и белые тона (Blue & White palette)
   Подходит для интеграции в любые CMS и движки: WordPress, 1C-Битрикс,
   ModX, OpenCart, Tilda, самописные PHP/HTML движки
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --border-light: #f1f5f9;
  
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: #ffffff;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Two-column layout container */
.two-column-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 28px;
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .two-column-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  /* Left sidebar default */
  .two-column-layout.sidebar-left {
    flex-direction: row;
  }

  /* Right sidebar toggle */
  .two-column-layout.sidebar-right {
    flex-direction: row-reverse;
  }
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .sidebar {
    width: 330px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 116px;
    max-height: calc(100vh - 156px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    padding-bottom: 4px;
    scrollbar-gutter: stable;
  }
  .sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
  }
  .sidebar::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
  }
}

/* ==========================================================================
   Header & Top Ribbon
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-card);
}

.top-ribbon {
  background-color: var(--dark);
  color: var(--text-light);
  font-size: 12px;
  padding: 8px 0;
}

.top-ribbon .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-ribbon-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
}

.layout-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #93c5fd;
  transition: color 0.2s;
}

.layout-toggle-btn:hover {
  color: #ffffff;
}

.header-main {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.logo-title span {
  color: var(--primary);
}

.logo-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Nav */
.nav-menu {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

@media (min-width: 600px) {
  .header-phone {
    display: flex;
  }
}

.header-phone a {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.header-phone span {
  font-size: 11px;
  color: var(--text-light);
}

.btn-header-cta {
  background-color: var(--primary);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: var(--shadow-sm);
}

.btn-header-cta:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   Notice / Layout Switch Banner
   ========================================================================== */

.layout-banner {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--primary-dark);
}

.btn-toggle-switch {
  background-color: #ffffff;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-toggle-switch:hover {
  background-color: #f1f5f9;
  color: var(--primary-dark);
}

/* ==========================================================================
   Sidebar Cards
   ========================================================================== */

.sidebar-card {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 0 8px;
  box-shadow: none;
}

.sidebar-card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  color: var(--text-main);
  text-align: left;
  width: 100%;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.sidebar-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #f1f5f9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-nav-item.active .sidebar-nav-icon,
.sidebar-nav-item:hover .sidebar-nav-icon {
  background-color: var(--primary);
  color: #ffffff;
}

.sidebar-nav-title {
  font-size: 13px;
  font-weight: 700;
  display: block;
}

.sidebar-nav-desc {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* Dark Audit Express Card */
.sidebar-card-audit {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.audit-badge {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.sidebar-card-audit h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.sidebar-card-audit p {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #60a5fa;
}

.btn-audit-submit {
  width: 100%;
  padding: 10px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-audit-submit:hover {
  background-color: #3b82f6;
}

.audit-success-msg {
  display: none;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  font-size: 12px;
}

.audit-success-msg.show {
  display: block;
}

/* Contacts Card */
.contact-item {
  margin-bottom: 12px;
}

.contact-label {
  font-size: 11px;
  color: var(--text-light);
  display: block;
  margin-bottom: 2px;
}

.contact-phone {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}

.contact-phone:hover {
  color: var(--primary);
}

.messenger-buttons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.messenger-btn {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.messenger-tg {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.messenger-wa {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Guarantees */
.guarantee-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.guarantee-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guarantee-dot {
  color: var(--primary);
  font-weight: bold;
}

/* ==========================================================================
   Main Content Sections
   ========================================================================== */

/* Hero */
.hero-card {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 0 12px;
  box-shadow: none;
}

@media (min-width: 768px) {
  .hero-card {
    padding: 12px 0 16px;
  }
}

.hero-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-main);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Visual Image Banner */
.hero-image-wrap {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-color: #0f172a;
  border: 0;
}

.hero-image-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  color: #ffffff;
}

.hero-image-overlay h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-image-overlay p {
  font-size: 12px;
  color: #cbd5e1;
}

/* ==========================================================================
   Service Cards (4 core sections)
   ========================================================================== */

.service-card {
  background-color: transparent;
  border: 0;
  border-top: 1px solid #eef2f7;
  border-radius: 0;
  padding: 36px 0;
  box-shadow: none;
  scroll-margin-top: 90px;
}

.service-card:hover {
  border-color: #eef2f7;
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 640px) {
  .service-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.service-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.service-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}
.service-title a:hover {
  color: var(--primary);
}

.service-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.service-price-box {
  text-align: left;
}

@media (min-width: 640px) {
  .service-price-box {
    text-align: right;
  }
}

.service-price-label {
  font-size: 11px;
  color: var(--text-light);
  display: block;
}

.service-price-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.service-desc {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  margin-top: 18px;
}

.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 640px) {
  .service-features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-bullet {
  font-size: 12px;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: var(--primary);
  font-weight: bold;
}

/* 3 Deliverables Cards */
.deliverables-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.deliverables-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .deliverables-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.deliverable-card {
  background-color: #f8fafc;
  border: 0;
  border-radius: 12px;
  padding: 16px;
}

.deliverable-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.deliverable-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Service Footer */
.service-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .service-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.service-timing {
  font-size: 12px;
  color: var(--text-muted);
}

.service-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-calc-sm {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-calc-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-order-sm {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.btn-order-sm:hover {
  background-color: var(--primary-hover);
}

/* Analytics Inset Banner */
.analytics-card {
  background-color: #f8fafc;
  border: 0;
  border-radius: 16px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .analytics-card {
    flex-direction: row;
  }
}

.analytics-img-box {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 0;
}

@media (min-width: 768px) {
  .analytics-img-box {
    width: 45%;
    flex-shrink: 0;
  }
}

.analytics-img-box img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.analytics-content {
  flex: 1;
}

.analytics-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.analytics-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.analytics-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Steps / Workflow */
.section-box {
  background-color: transparent;
  border: 0;
  border-top: 1px solid #eef2f7;
  border-radius: 0;
  padding: 36px 0;
  box-shadow: none;
  scroll-margin-top: 120px;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: #f8fafc;
  border: 0;
  border-radius: 12px;
  padding: 16px;
}

.step-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: monospace;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Calculator
   ========================================================================== */

.calc-section {
  scroll-margin-top: 90px;
}

.calc-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .calc-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.calc-tab-btn {
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background-color: #f8fafc;
  color: var(--text-main);
  transition: all 0.2s;
}

.calc-tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.calc-options-panel {
  background-color: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .options-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.calc-radio-card {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-radio-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.calc-radio-card .title {
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.calc-radio-card .price {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  margin-top: 4px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .checkbox-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.calc-result-box {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .calc-result-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.calc-total-sum {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
}

.calc-total-timeline {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  divide-y: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-arrow {
  color: var(--text-light);
  font-size: 12px;
  transition: transform 0.2s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Call to Action Banner */
.cta-banner {
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cta-banner p {
  font-size: 13px;
  color: #dbeafe;
  max-width: 540px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background-color 0.2s;
}

.btn-white:hover {
  background-color: #f1f5f9;
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.2s;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--dark);
  color: var(--text-light);
  font-size: 12px;
  padding: 48px 0 24px 0;
  border-top: 1px solid #1e293b;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  color: #64748b;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Modal Popup
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background-color: #ffffff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background-color: var(--dark);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.modal-close-btn {
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
}

.modal-body .form-group {
  margin-bottom: 14px;
}

.modal-body label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid var(--border-card);
  color: var(--text-main);
}

.modal-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.modal-success-screen {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal-success-screen.show {
  display: block;
}

.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Inner CMS pages */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  background: #fff;
  color: var(--dark);
  font-size: 20px;
  line-height: 1;
}
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-card);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu .nav-link { padding: 10px 0; }
  .header { position: sticky; }
  .header-main { position: relative; }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs-sep { color: #cbd5e1; }

.page-article {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 0 12px;
  box-shadow: none;
}
.page-article > .service-card:first-of-type,
.page-article > .section-box:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.page-article h1.service-title,
.page-article h1.section-title {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 0;
}
.page-article h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--dark);
}
.page-article .lead,
.page-article > p:first-of-type {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.page-article h2 {
  font-size: 22px;
  margin: 28px 0 10px;
  color: var(--dark);
}
.page-article h3 {
  font-size: 16px;
  margin: 18px 0 8px;
}
.page-article p { margin-bottom: 12px; }
.page-article ul { padding-left: 18px; margin: 0 0 16px; }
.page-article li { margin-bottom: 6px; }

.cards, .services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}
.services { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.card, .service, .contact-box {
  background: #f8fafc;
  border: 0;
  border-radius: 12px;
  padding: 16px;
  color: inherit;
}
.card .num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 8px;
}
.service strong, .card h3 { display: block; margin-bottom: 6px; }
.service span { font-size: 13px; color: var(--text-muted); }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 700px) {
  .cards, .contacts-grid { grid-template-columns: 1fr; }
}

.prose {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
}
.prose p { margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.page-article .prose h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 22px 0 8px;
  color: var(--dark);
}

.toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}
.toc-nav a {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 6px 12px;
}
.toc-nav a:hover { background: #dbeafe; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.page-article .check-list { padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0 4px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}
.price-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light);
  font-weight: 800;
}
.price-table td strong { color: var(--dark); }
.price-table .price { font-weight: 800; color: var(--primary); white-space: nowrap; }
@media (max-width: 700px) {
  .price-table { display: block; overflow-x: auto; }
}

.steps-grid.cols-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .steps-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.steps-grid.cols-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .steps-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.inner-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.related-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 8px 14px;
}
.related-links a:hover { background: var(--primary-light); }
