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

html {
  scroll-behavior: smooth;
}

:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-soft: #e8eef7;
  --bg-glow-1: rgba(37, 99, 235, 0.07);
  --bg-glow-2: rgba(2, 132, 199, 0.06);
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-border: #93c5fd;
  --success: #15803d;
  --success-soft: #dcfce7;
  --note-bg: #fffbeb;
  --note-border: #fde68a;
  --border: #dbe3ef;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.1);
  --header-bg: rgba(255, 255, 255, 0.94);
  --header-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
  --overlay: rgba(15, 23, 42, 0.45);
  --gradient-title: linear-gradient(90deg, #1d4ed8, #2563eb, #0284c7);
  --logo-color: #1d4ed8;
  --logo-sub: #64748b;
  --popular-bg: linear-gradient(145deg, #ffffff, #f0f7ff);
  --popular-border: #2563eb;
  --tg-bg: #e0f2fe;
  --tg-color: #0369a1;
  --tg-border: #7dd3fc;
  --wa-bg: #dcfce7;
  --wa-color: #15803d;
  --wa-border: #86efac;
  --cta-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  --input-placeholder: #94a3b8;
  --link-accent: #ea580c;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f1a;
  --bg-soft: #0d1528;
  --bg-glow-1: rgba(80, 160, 240, 0.22);
  --bg-glow-2: rgba(0, 200, 220, 0.14);
  --surface: rgba(15, 25, 50, 0.88);
  --surface-muted: rgba(20, 35, 60, 0.65);
  --text: #d0e0ff;
  --text-secondary: #b8d0f8;
  --text-muted: #9cb8e8;
  --accent: #60a5fa;
  --accent-dark: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.16);
  --accent-border: rgba(80, 160, 255, 0.45);
  --success: #86efac;
  --success-soft: rgba(34, 197, 94, 0.15);
  --note-bg: rgba(20, 35, 60, 0.55);
  --note-border: rgba(80, 160, 255, 0.25);
  --border: rgba(80, 160, 255, 0.3);
  --shadow: 0 0 24px rgba(80, 140, 255, 0.18);
  --shadow-lg: 0 16px 48px rgba(80, 140, 255, 0.28);
  --header-bg: rgba(10, 20, 40, 0.92);
  --header-shadow: none;
  --overlay: rgba(0, 0, 0, 0.82);
  --gradient-title: linear-gradient(90deg, #60a5fa, #38bdf8, #22d3ee);
  --logo-color: #60a5fa;
  --logo-sub: #93c5fd;
  --popular-bg: linear-gradient(145deg, rgba(30, 50, 90, 0.65), rgba(40, 80, 140, 0.45));
  --popular-border: rgba(56, 189, 248, 0.75);
  --tg-bg: rgba(41, 168, 225, 0.2);
  --tg-color: #7dd3fc;
  --tg-border: rgba(41, 168, 225, 0.45);
  --wa-bg: rgba(37, 211, 102, 0.15);
  --wa-color: #86efac;
  --wa-border: rgba(37, 211, 102, 0.4);
  --cta-shadow: 0 8px 24px rgba(29, 78, 216, 0.4);
  --input-placeholder: #6a8ab8;
  --link-accent: #ff7935;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, var(--bg-glow-1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, var(--bg-glow-2) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

a,
button,
[role="button"],
.nav-link,
.plan-cta,
.close-btn,
.messenger-btn {
  cursor: pointer;
}

input,
textarea,
select {
  cursor: text;
  user-select: auto;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

/* Header */
header {
  padding: 12px 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--header-shadow);
  transition: transform 0.4s ease, background 0.25s ease;
}

header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--logo-color);
  text-decoration: none;
  text-align: center;
  transition: color 0.25s ease;
}

[data-theme="dark"] .logo {
  text-shadow: 0 0 16px rgba(96, 165, 250, 0.45);
}

.logo span {
  font-weight: 600;
  font-size: 0.42em;
  display: block;
  color: var(--logo-color);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  margin-top: 2px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--accent-dark);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  transform: scale(1.05);
}

.theme-toggle-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.9rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  transition: all 0.3s;
  border: none;
  background: none;
  font: inherit;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-messengers {
  display: flex;
  gap: 8px;
  margin-left: 4px;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid transparent;
}

.messenger-btn--tg {
  background: var(--tg-bg);
  color: var(--tg-color);
  border-color: var(--tg-border);
}

.messenger-btn--wa {
  background: var(--wa-bg);
  color: var(--wa-color);
  border-color: var(--wa-border);
}

.messenger-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  text-align: center;
  padding: 110px 0 40px;
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  border: 1px solid #bfdbfe;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  margin: 0.15em 0;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.08;
}

.subtitle {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  margin: 0.3em 0 1.2em;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  border: 2px solid var(--accent-dark);
  padding: 16px 40px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: var(--surface);
  color: var(--accent-dark);
  border: 2px solid var(--accent-border);
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 50px 0 80px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 12px;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Plans grid */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
}

@media (min-width: 600px) {
  .plans:not(.plans--services) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .plans--services {
    max-width: 1240px;
    margin: 0 auto;
  }
}

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

.plans--services .plans-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media (min-width: 900px) {
  .plans--services .plans-row {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

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

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 22px;
  width: 100%;
  max-width: 420px;
  transition: all 0.4s;
  position: relative;
  box-shadow: var(--shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.plans--services .plan {
  max-width: none;
  height: 100%;
  padding: 40px 20px 24px;
  align-self: stretch;
}

.plans--services .plan.badge-hit::before {
  top: 10px;
}

.plans--services .plan-desc {
  flex-grow: 0;
  margin-bottom: 16px;
}

.plans--services .plan-head {
  flex-shrink: 0;
  margin-bottom: 14px;
  min-height: 5.25rem;
}

.plans--services .plan-head .plan-desc {
  margin-bottom: 0;
}

.plans--services .plan-head h3 {
  margin: 0 0 10px;
}

.plans--services .plans-row:nth-child(2) .plan-head {
  min-height: 8.5rem;
}

@media (max-width: 899px) {
  .plans--services .plan-head,
  .plans--services .plans-row:nth-child(2) .plan-head {
    min-height: 0;
  }
}

.plans--services .plan-variants,
.plans--services .plan > .price-block {
  flex-shrink: 0;
}

.plans--services .plan-variants {
  margin-bottom: 14px;
}

.plans--services .plan > .price-block {
  margin-bottom: 14px;
}

.plans--services .plan-note,
.plans--services .plan-req,
.plans--services .kbm-table-details {
  flex-shrink: 0;
}

.plans--services .plan > ul:not(.plan-variants) {
  flex-shrink: 0;
  margin-bottom: 0;
}

.plans--services .plan-cta {
  margin-top: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-variants {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

.plan-variants li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.plan-variants li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.plan-variants .plan-variants-total {
  padding-top: 0;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--accent-border);
}

.plan-variants .plan-variants-total .variant-name {
  font-size: 1rem;
}

.plan-variants .plan-variants-total .variant-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.plan-variants li:first-child {
  padding-top: 0;
}

.plan-variants li::before {
  content: none;
}

.variant-name {
  color: var(--accent-dark);
  font-weight: 600;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  padding-right: 8px;
}

.variant-name--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.variant-name-main {
  line-height: 1.3;
}

.variant-name-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
}

.variant-price {
  display: block;
  color: var(--text);
  font-weight: 600;
  flex: 0 0 10rem;
  width: 10rem;
  max-width: 48%;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: auto;
  box-sizing: border-box;
}

.variant-price s {
  color: var(--text-muted);
  margin-right: 6px;
  text-decoration-color: #ef4444;
}

.plan-variants .variant-hit {
  background: var(--accent-soft);
  margin: 2px 0;
  padding: 10px 0;
  border-radius: 10px;
  border-bottom: none;
}

.plan-variants .variant-hit .variant-price {
  padding-right: 0;
}

.plan-variants .variant-hit .variant-name {
  color: var(--accent-dark);
}

.price-fix-caption {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

.plan-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  text-align: left;
}

.plan-note--sm {
  font-size: 0.8rem;
  margin: 8px 0 0;
  padding: 8px 10px;
}

.plan-req {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.plans--services .plan--kbm .plan-desc {
  min-height: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.plan--kbm .plan-variants {
  margin-bottom: 10px;
}

.plan--kbm .plan-variants li {
  align-items: flex-start;
  padding: 10px 0;
}

.plan--kbm .variant-name--stacked {
  gap: 2px;
}

.variant-name-detail {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

.plan--kbm .variant-price {
  padding-top: 2px;
}

.plan--kbm .kbm-table-details {
  margin: 0 0 12px;
  text-align: left;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

@media (min-width: 900px) {
  .plan--kbm .kbm-table-details {
    position: relative;
    z-index: 2;
  }

  .plan--kbm:has(.kbm-table-details[open]) {
    z-index: 15;
  }

  .plan--kbm .kbm-table-details[open] {
    z-index: 12;
  }

  .plan--kbm .kbm-table-details[open] .kbm-more-body {
    position: absolute;
    bottom: calc(100% + 6px);
    top: auto;
    left: 0;
    right: auto;
    width: min(20rem, calc(100vw - 32px));
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: min(440px, 58vh);
    overflow-y: auto;
  }
}

.kbm-table-details summary {
  padding: 9px 12px;
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
}

.kbm-table-details summary::-webkit-details-marker {
  display: none;
}

.kbm-table-details summary::after {
  content: " ▾";
  opacity: 0.7;
}

.kbm-table-details[open] summary::after {
  content: " ▴";
}

.kbm-more-body {
  padding: 0 12px 12px;
  text-align: left;
}

.kbm-more-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
}

.kbm-more-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  text-align: left;
}

.kbm-more-term {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent-dark);
}

.kbm-more-desc {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.kbm-more-note {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.kbm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.kbm-table th,
.kbm-table td {
  padding: 5px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.kbm-table th {
  color: var(--accent-dark);
  font-weight: 600;
  text-align: left;
}

.kbm-table td:last-child,
.kbm-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.kbm-table tbody tr:last-child td {
  border-bottom: none;
}

.plan-features-compact {
  list-style: none;
  margin: 0 0 14px;
  text-align: left;
}

.plan-features-compact li {
  margin: 5px 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.plans--services .plan--kbm > ul.plan-features-compact {
  min-height: 0;
  flex: 0 0 auto;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
  text-align: left;
  width: 100%;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px dashed var(--accent-border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.file-list {
  list-style: none;
  width: 100%;
  margin: 10px 0 0;
  text-align: left;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.file-list li::before {
  content: none;
}

.file-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.file-list__meta {
  color: var(--text-muted);
  flex-shrink: 0;
}

.file-list__remove {
  background: none;
  border: none;
  color: #f87171;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

.plan-variants .variant-name--long {
  line-height: 1.3;
}

@media (max-width: 400px) {
  .variant-price {
    flex: 0 0 7.5rem;
    width: 7.5rem;
    font-size: 0.86rem;
  }
}

.types-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.types-row .plan {
  max-width: none;
  width: 100%;
}

@media (min-width: 900px) {
  .types-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  .types-row .plan {
    width: auto;
    height: 100%;
    padding-top: 40px;
  }

  .types-row .plan.badge-hit::before {
    top: 10px;
  }

  .types-row .plan-desc {
    min-height: 4.2em;
  }

  .types-row .types-plan-head {
    min-height: 11.5rem;
    margin-bottom: 14px;
    text-align: left;
  }

  .types-row .types-plan-head .plan-desc {
    margin-bottom: 12px;
    min-height: 0;
  }

  .types-row .types-plan-head .price-block {
    margin-bottom: 0;
    text-align: left;
  }

  .types-row .plan-cta {
    margin-top: auto;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}

.plan.popular {
  border: 2px solid var(--popular-border);
  background: var(--popular-bg);
  box-shadow: var(--shadow-lg);
}

.plan.badge-hit::before {
  content: "ХИТ";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(90deg, #2563eb, #0284c7);
  color: #fff;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.plan h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
  line-height: 1.25;
  color: var(--accent-dark);
}

.plan-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
  flex-grow: 0;
}

.plan ul {
  list-style: none;
  margin: 0 0 18px;
}

.plan > ul:not(.plan-variants) > li {
  margin: 6px 0;
  font-size: 0.94rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.plan > ul:not(.plan-variants) > li::before {
  content: "✔";
  color: var(--accent);
  flex-shrink: 0;
  margin: 2px 8px 0 0;
}

.price-individual {
  font-size: 1.15rem;
  color: var(--text);
}

.price-old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: #ef4444;
}

.price-new {
  font-size: 1.5rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.price-fix {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 700;
}

.price-fix-caption {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

.plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: var(--accent-dark);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  margin-top: auto;
  box-shadow: var(--cta-shadow);
}

.plan-cta:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.plan-cta--secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border: 2px solid var(--accent-border);
  box-shadow: none;
}

.plan-cta--secondary:hover {
  background: var(--accent-soft);
}

/* Policy types — grid at 900px+ см. блок .types-row выше */

/* Steps */
.steps {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 52px;
  margin-bottom: 28px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.steps h4 {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.steps p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.contact-section {
  padding-bottom: 100px;
  background: var(--bg-soft);
}

.contact-head {
  text-align: center;
  margin-bottom: 36px;
}

.contact-sub {
  color: var(--text-muted);
  margin: 12px auto 0;
  font-size: 1.02rem;
  max-width: 560px;
  line-height: 1.55;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.contact-aside-card {
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-aside-card--chat {
  background: linear-gradient(160deg, var(--surface) 0%, var(--accent-soft) 100%);
  border-color: var(--accent-border);
}

.contact-aside-card__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--accent-border);
}

[data-theme="dark"] .contact-aside-card__badge {
  background: rgba(15, 25, 50, 0.5);
}

.contact-aside-card__title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.contact-aside-card__title--sm {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.contact-aside-card__text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-aside-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-dark);
  box-shadow: var(--cta-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-aside-card__btn:hover {
  transform: translateY(-1px);
}

.contact-aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-aside-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-aside-link--tg {
  color: var(--tg-color);
  background: var(--tg-bg);
  border: 1px solid var(--tg-border);
}

.contact-aside-link--wa {
  color: var(--wa-color);
  background: var(--wa-bg);
  border: 1px solid var(--wa-border);
}

.contact-aside-link:hover {
  transform: translateY(-1px);
}

.contact-card {
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .contact-card {
    padding: 32px 32px 28px;
  }
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field--half {
  grid-column: span 1;
}

.contact-field label,
.contact-field__legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.contact-label-muted {
  font-weight: 500;
  color: var(--text-muted);
}

.contact-field input,
.contact-field textarea,
.contact-field select,
.contact-input-prefix input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus,
.contact-input-prefix:focus-within {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--input-placeholder);
}

.contact-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2364748b' stroke-width='2' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.contact-channel {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  gap: 14px;
}

.contact-field__legend {
  display: block;
  margin-bottom: 2px;
}

.channel-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.channel-picker__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.channel-picker__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-picker__option svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.channel-picker__option--tg:has(input:checked) {
  color: var(--tg-color);
  border-color: var(--tg-border);
  background: var(--tg-bg);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.1);
}

.channel-picker__option--wa:has(input:checked) {
  color: var(--wa-color);
  border-color: var(--wa-border);
  background: var(--wa-bg);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.contact-channel__input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-channel__input[hidden] {
  display: none !important;
}

.contact-input-prefix {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input-prefix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-input-prefix__mark {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-right: 1px solid var(--border);
}

.contact-input-prefix input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.contact-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-field--hidden,
[hidden].contact-channel__input {
  display: none !important;
}

.contact-file-drop {
  position: relative;
}

.contact-file-drop input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.contact-file-drop__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  border-radius: 14px;
  border: 1.5px dashed var(--accent-border);
  background: var(--surface-muted);
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.contact-file-drop__label:hover,
.contact-file-drop:focus-within .contact-file-drop__label {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.contact-file-drop__title {
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-file-drop__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.4;
}

.contact-form__footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form__footer .form-consent {
  margin: 0;
}

.contact-form__footer .btn-submit {
  width: 100%;
}

.form-error--center {
  text-align: center;
}

.contact-form {
  display: block;
}

.contact-form .file-list {
  margin-top: 10px;
}

.form-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.45;
}

.form-consent a {
  color: var(--link-accent);
}

.btn-submit {
  background: var(--accent-dark);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: var(--cta-shadow);
}

.btn-submit:hover {
  transform: translateY(-1px);
  background: #1e40af;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--success-soft);
  border: 1px solid #86efac;
  color: var(--success);
  margin-top: 16px;
  line-height: 1.5;
}

.form-success.visible {
  display: block;
}

.form-error {
  color: #dc2626;
  font-size: 0.8rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.chat-fab.is-highlighted {
  animation: chat-fab-pulse 0.9s ease-in-out 3;
}

@keyframes chat-fab-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
  }
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 20px;
  }

  .contact-aside {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-aside-card--chat {
    padding: 16px 18px;
  }

  .contact-aside-card--chat .contact-aside-card__title {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .contact-aside-card--chat .contact-aside-card__text {
    margin: 0 0 12px;
    font-size: 0.88rem;
  }

  .contact-aside-card--chat .contact-aside-card__btn {
    width: 100%;
  }

  .contact-aside-card--links {
    padding: 14px 16px;
  }

  .contact-aside-links {
    flex-direction: row;
    gap: 8px;
  }

  .contact-aside-link {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .contact-card {
    padding: 22px 18px 20px;
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-field--half {
    grid-column: 1 / -1;
  }

  .contact-aside-links {
    flex-direction: column;
  }

  .channel-picker__option {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 10px;
  line-height: 1.4;
  vertical-align: middle;
}

.popup.active {
  display: flex;
}

.price-block {
  margin: 12px 0 18px;
  font-weight: 700;
}

.price-sale {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.divider {
  height: 1px;
  max-width: 200px;
  margin: 0 auto 50px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

footer {
  text-align: center;
  padding: 40px 0 50px;
  color: var(--text-muted);
  font-size: 0.94rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.popup {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 12px;
}

.popup-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-content h2 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-size: 1.7rem;
}

.popup-content p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  transition: all 0.3s;
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--accent);
}

@media (min-width: 769px) {
  .logo {
    font-size: 2.5rem;
  }

  .hero {
    padding-top: 140px;
  }

  header .header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 4px 0;
  }

  nav {
    margin-top: 0;
  }
}

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10050;
  font-family: inherit;
}

.chat-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-border);
  background: var(--accent-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.3s, height 0.3s;
  cursor: pointer;
}

.chat-fab:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.4);
}

.chat-fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow);
}

.chat-fab:hover .chat-fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.chat-fab-icon--close {
  display: none;
}

.chat-widget.is-open .chat-fab {
  width: 52px;
  height: 52px;
}

.chat-widget.is-open .chat-fab-icon--open {
  display: none;
}

.chat-widget.is-open .chat-fab-icon--close {
  display: block;
}

.chat-widget.is-open .chat-fab-tooltip {
  display: none;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    visibility 0.3s;
  pointer-events: none;
}

.chat-widget.is-open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  flex-shrink: 0;
}

.chat-title {
  font-size: 1.05rem;
  color: var(--accent-dark);
  margin: 0;
  font-weight: 700;
}

.chat-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.chat-close:hover {
  transform: rotate(90deg);
  color: var(--accent);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-msg {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: chatMsgIn 0.35s ease;
}

@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg--support {
  align-self: flex-start;
}

.chat-msg--user {
  align-self: flex-end;
}

.chat-msg-author {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.chat-msg--user .chat-msg-author {
  text-align: right;
}

.chat-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg--support .chat-bubble {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg--user .chat-bubble {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.chat-msg-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.chat-msg--user .chat-msg-time {
  text-align: right;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chat-input::placeholder {
  color: var(--input-placeholder);
}

.chat-send {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.chat-send:hover {
  transform: scale(1.06);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .chat-fab-tooltip {
    display: none;
  }

  .chat-panel {
    bottom: 68px;
    width: calc(100vw - 24px);
  }
}
