/* ========================================
   Zont — CRM для экспедиторов
   main.css — каркас, типографика, сетка
   ======================================== */

/* --- Tokens --- */
:root {
  --color-primary: #002FBD;
  --color-primary-hover: #0025A0;
  --color-primary-light: #f1f4fd;
  --color-primary-lighter: #e8edfa;
  --color-text: #0b1641;
  --color-text-secondary: #4a5578;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fc;
  --color-border: #e2e6f0;
  --color-success: #1a8a4a;
  --color-success-bg: #edf7f0;
  --color-muted: #8892b0;

  --font-main: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --container-narrow: 820px;
  --gutter: 20px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(11,22,65,0.06);
  --shadow-md: 0 4px 12px rgba(11,22,65,0.08);
  --shadow-lg: 0 8px 30px rgba(11,22,65,0.10);
  --shadow-header: 0 1px 8px rgba(11,22,65,0.07);

  --transition: 0.2s ease;

  --header-h: 72px;
}


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }


/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container-narrow {
  max-width: var(--container-narrow);
}


/* --- Section --- */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-heading {
  font-size: clamp(28px, 2vw + 1rem, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 72ch;
  margin-bottom: 40px;
}
.section-note {
  margin-top: 40px;
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 60ch;
}
.section-cta {
  margin-top: 48px;
  text-align: center;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}
.btn-outline {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary-light);
  text-decoration: none;
}
.btn-lg {
  font-size: 17px;
  padding: 14px 36px;
  border-radius: var(--radius-md);
}


/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}
.header-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo:hover { text-decoration: none; }
.header-nav {
  flex: 1;
}
.nav-list {
  display: flex;
  gap: 28px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}
.nav-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.header-cta {
  flex-shrink: 0;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  flex-shrink: 0;
}
.burger-line {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ========================================
   HERO
   ======================================== */
.hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-h1 {
  font-size: clamp(36px, 3vw + 1rem, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: clamp(20px, 1.5vw + 0.5rem, 26px);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
.hero-definition {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 56ch;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.hero-cta-hint {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 48ch;
}

/* Hero visual placeholder */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Hero labels row — separate block under hero */
.hero-labels-row {
  padding: 0 0 48px;
}
.hero-labels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-label-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}
.hero-label-card img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}


/* ========================================
   КОМУ ПОДХОДИТ
   ======================================== */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fit-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}
.fit-card--yes {
  border: 1.5px solid var(--color-success);
}
.fit-card--no {
  border: 1.5px solid var(--color-border);
}
.fit-card-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.fit-card--yes .fit-card-heading { color: var(--color-success); }
.fit-card--no .fit-card-heading { color: var(--color-muted); }
.fit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fit-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.5;
}
.fit-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 16px;
}
.fit-card--yes .fit-list li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 700;
}
.fit-card--no .fit-list li::before {
  content: "—";
  color: var(--color-muted);
}


/* ========================================
   ЗНАКОМЫЕ СИТУАЦИИ
   ======================================== */
/* situation-problem / situation-solution used inside workday cards' .zw-body */
.situation-problem {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.situation-solution {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 500;
}


/* ========================================
   КАК УСТРОЕНА РАБОТА
   ======================================== */
.steps-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.step-item {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.step-content p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.step-visual {
  aspect-ratio: 16 / 10;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ========================================
   ПОЧЕМУ ZONT
   ======================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.advantage-card {
  padding: 32px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.advantage-icon {
  margin-bottom: 16px;
}
.advantage-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.advantage-card p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ========================================
   СРАВНИТЕЛЬНАЯ ТАБЛИЦА
   ======================================== */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.comparison-table {
  min-width: 700px;
  font-size: 15px;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.comparison-table thead th {
  font-weight: 600;
  font-size: 15px;
  background: var(--color-bg-alt);
  position: sticky;
  top: 0;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-feature {
  font-weight: 500;
  min-width: 200px;
}
.comparison-highlight {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 500;
}
.comparison-table thead .comparison-highlight {
  color: var(--color-primary);
  font-weight: 700;
}
.comparison-conclusion {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
  max-width: 72ch;
}


/* ========================================
   ПОЛЬЗА ДЛЯ КОМАНДЫ
   ======================================== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.role-card {
  padding: 32px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.role-icon {
  margin-bottom: 16px;
}
.role-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.role-card p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.role-card p:last-of-type { margin-bottom: 0; }
.role-illustration {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.role-illustration img {
  width: 100%;
  height: auto;
  display: block;
}


/* ========================================
   ЧТО ВХОДИТ
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.feature-icon {
  margin-bottom: 16px;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}


/* ========================================
   КАК НАЧАТЬ
   ======================================== */
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: onboarding;
  margin-bottom: 40px;
}
.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  counter-increment: onboarding;
  position: relative;
}
.onboarding-step::before {
  content: counter(onboarding);
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary-lighter);
  line-height: 1;
}
.onboarding-icon img {
  width: 32px;
  height: 32px;
}
.onboarding-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.onboarding-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}


/* ========================================
   LEAD FORM
   ======================================== */
.lead-form-card {
  margin-top: 48px;
  padding: 40px 36px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 47, 189, .06);
}
.lead-form-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.lead-form-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
}

/* rows & fields */
.form-row {
  margin-bottom: 18px;
}
.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field--half {
  max-width: 50%;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-req {
  color: var(--color-primary);
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm, 8px);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder {
  color: var(--color-muted, #a0a8c0);
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 47, 189, .1);
}
.form-input.is-invalid {
  border-color: #d44;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a5578' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 72px;
}

/* actions */
.form-actions {
  margin-top: 24px;
}
.form-submit {
  position: relative;
  min-width: 200px;
}
.form-submit.is-loading .form-submit-label {
  visibility: hidden;
}
.form-submit .form-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: form-spin .8s linear infinite;
}
@keyframes form-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.form-consent {
  font-size: 13px;
  color: var(--color-muted, #a0a8c0);
  margin-top: 12px;
  line-height: 1.45;
}

/* error */
.form-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm, 8px);
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.5;
}
.form-error a {
  color: inherit;
  text-decoration: underline;
}

/* success */
.lead-form-success {
  text-align: center;
  padding: 40px 24px;
}
.success-icon {
  margin-bottom: 20px;
}
.success-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.success-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto;
}


/* ========================================
   СТОИМОСТЬ
   ======================================== */
.pricing-early-bird {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 24px;
  background: #fef9e7;
  border: 1px solid #f0dfa0;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  font-size: 15px;
}
.pricing-early-bird strong {
  color: #8a6d00;
}
.pricing-early-bird span {
  color: #6d5500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.pricing-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pricing-card-header {
  flex: 1;
}
.pricing-team {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}
.pricing-price {
  margin-bottom: 8px;
}
.pricing-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pricing-period {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.pricing-earlybird {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}
.pricing-eb-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-success);
}
.pricing-eb-label {
  color: var(--color-success);
  font-weight: 500;
}
.pricing-custom-text {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.pricing-btn {
  width: 100%;
  text-align: center;
}

.pricing-trial {
  text-align: center;
  padding: 48px 32px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.pricing-trial h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.pricing-trial p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}


/* ========================================
   FAQ
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath stroke='%234a5578' stroke-width='1.5' stroke-linecap='round' d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}
.faq-answer {
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}


/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--color-text);
  color: #c6cde0;
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.footer-tagline {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #ced4e6;
}
.footer-desc {
  margin-top: 4px;
  font-size: 14px;
  color: #8892b0;
}
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer-nav-list a {
  font-size: 15px;
  color: #ced4e6;
  transition: color var(--transition);
}
.footer-nav-list a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: #8892b0;
}
.footer-legal a:hover {
  color: #ced4e6;
  text-decoration: none;
}
.footer-copy {
  font-size: 13px;
  color: #8892b0;
}


/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding-bottom: 48px; }
  .hero-definition { max-width: none; }
  .hero-visual { max-width: 520px; }

  .step-item {
    grid-template-columns: 48px 1fr;
  }
  .step-visual {
    grid-column: 2;
    max-width: 400px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .onboarding-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --gutter: 16px;
  }

  .section { padding: 48px 0; }

  /* Header mobile */
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: 24px var(--gutter);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .header-nav.is-open {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--color-border);
  }
  .header-cta {
    display: none;
  }
  .burger {
    display: flex;
    margin-left: auto;
  }

  /* Hero mobile */
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-subtitle { font-size: 18px; }

  /* Hero labels mobile — full-width, no blue background */
  .hero-labels-row { padding-bottom: 32px; }
  .hero-labels-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-label-card {
    background: transparent;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .hero-label-card:last-child {
    border-bottom: none;
  }

  /* Grids → single column */
  .fit-grid,
  .advantages-grid,
  .roles-grid,
  .features-grid,
  .onboarding-steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .step-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .step-visual {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  /* Pricing */
  .pricing-early-bird {
    flex-direction: column;
    gap: 4px;
  }
  .pricing-trial {
    padding: 32px 20px;
  }

  /* Lead form / modal */
  .lead-form-card {
    padding: 28px 20px;
    margin-top: 36px;
  }
  .modal-dialog {
    padding: 28px 20px;
    margin: auto 8px;
  }
  .form-row--two {
    grid-template-columns: 1fr;
  }
  .form-field--half {
    max-width: 100%;
  }
  .form-submit {
    width: 100%;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }
}

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
  .section-heading {
    font-size: 26px;
  }
  .section-lead {
    font-size: 16px;
  }
  .fit-card {
    padding: 24px 20px;
  }
  .advantage-card,
  .role-card,
  .feature-card {
    padding: 24px 20px;
  }
  .pricing-card {
    padding: 24px 20px;
  }
  .comparison-table {
    font-size: 13px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
}

/* Body scroll lock when mobile menu open */
body.menu-open {
  overflow: hidden;
}


/* ========================================
   PRELOADER
   ======================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 120px;
  height: 120px;
}
body.is-loading {
  overflow: hidden;
}
body.is-loading > *:not(.preloader) {
  /* hide content behind preloader so it loads quietly */
}


/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 22, 65, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px 16px;
  overflow-y: auto;
  animation: modal-fade-in 0.25s ease;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-overlay[hidden] {
  display: none;
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(11, 22, 65, 0.18);
  padding: 40px 36px;
  animation: modal-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* Reset form card styles inside modal — no extra border/shadow */
.modal-dialog .lead-form-card {
  margin-top: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}


/* ========================================
   COUNTER INPUT
   ======================================== */
.counter-input {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.counter-input:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 47, 189, 0.1);
}
.counter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: background var(--transition), color var(--transition);
  -webkit-user-select: none;
  user-select: none;
}
.counter-btn:hover {
  background: var(--color-primary-lighter);
  color: var(--color-primary);
}
.counter-btn:active {
  background: var(--color-primary-light);
}
.counter-value {
  width: 64px;
  text-align: center;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 4px;
  -moz-appearance: textfield;
}
.counter-value::-webkit-inner-spin-button,
.counter-value::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* ========================================
   GET STARTED CTA (replaces inline form)
   ======================================== */
.get-started-cta {
  text-align: center;
  margin-top: 48px;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Начальное состояние: элемент невидим и смещён вниз.
   Класс .is-visible добавляется IntersectionObserver-ом при попадании в область видимости. */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Задержка для элементов в группах (каскад) */
[data-animate][style*="--stagger"] {
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

/* Видимое состояние */
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Вариант: появление снизу (по умолчанию, переопределять не нужно) */

/* Вариант: масштабирование */
[data-animate="scale"] {
  transform: scale(0.95);
}
[data-animate="scale"].is-visible {
  transform: scale(1);
}

/* Вариант: появление без смещения (только прозрачность) */
[data-animate="fade"] {
  transform: none;
}
[data-animate="fade"].is-visible {
  transform: none;
}

/* После завершения анимации убираем will-change для экономии ресурсов */
[data-animate].is-visible {
  will-change: auto;
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  /* Сразу показываем элементы без анимации */
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
