/* ============================================================
   1С Мастерская — лендинг услуги по доработке 1С
   Тестируется локально (file://), браузеры Chrome и Яндекс (Blink).
   ============================================================ */

/* --- Токены темы (светлая по умолчанию) --- */
:root {
  --bg:            #ffffff;
  --bg-soft:       #f8f5ef;
  --bg-tint:       #f6f1e7;
  --surface:       #ffffff;
  --surface-2:     #faf6ef;
  --border:        #ebe3d5;
  --border-strong: #d8cdb8;
  --text:          #1e1a15;
  --text-muted:    #5b5349;
  --text-soft:     #857b6d;

  --primary:       #c81e2d;   /* насыщенный красный в духе 1С */
  --primary-ink:   #9d1622;   /* тёмно-красный для ссылок и ховера */
  --primary-soft:  #fbe7e3;
  --accent:        #f4b400;   /* тёплое золото */
  --accent-ink:    #8a5b00;   /* тёмное золото для текста */
  --accent-soft:   #fdf1d4;
  --on-primary:    #ffffff;

  --success-bg:    #e7f6ec;
  --success-ink:   #1c7a3e;
  --danger:        #cc2b1f;

  --shadow-sm: 0 1px 2px rgba(20, 23, 31, .06), 0 1px 3px rgba(20, 23, 31, .05);
  --shadow-md: 0 4px 12px rgba(20, 23, 31, .08), 0 2px 6px rgba(20, 23, 31, .05);
  --shadow-lg: 0 18px 45px rgba(28, 40, 90, .16);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --container: 1160px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* Тёмная тема: авто по системе... */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #15110e;
    --bg-soft:       #1b1613;
    --bg-tint:       #1c1713;
    --surface:       #1d1815;
    --surface-2:     #251f1b;
    --border:        #352c25;
    --border-strong: #493e34;
    --text:          #f3eee7;
    --text-muted:    #b8aea0;
    --text-soft:     #968b7c;

    --primary:       #ef4b57;
    --primary-ink:   #ff9099;
    --primary-soft:  #3a201f;
    --accent:        #ffc23d;
    --accent-ink:    #ffce68;
    --accent-soft:   #2b2210;
    --on-primary:    #15110e;

    --success-bg:    #16301f;
    --success-ink:   #6ee29a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
  }
}

/* ...и принудительно по кнопке-переключателю */
:root[data-theme="dark"] {
  --bg:            #15110e;
  --bg-soft:       #1b1613;
  --bg-tint:       #1c1713;
  --surface:       #1d1815;
  --surface-2:     #251f1b;
  --border:        #352c25;
  --border-strong: #493e34;
  --text:          #f3eee7;
  --text-muted:    #b8aea0;
  --text-soft:     #968b7c;

  --primary:       #ef4b57;
  --primary-ink:   #ff9099;
  --primary-soft:  #3a201f;
  --accent:        #ffc23d;
  --accent-ink:    #ffce68;
  --accent-soft:   #2b2210;
  --on-primary:    #15110e;

  --success-bg:    #16301f;
  --success-ink:   #6ee29a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
}

/* --- База --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
a  { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .16s ease, box-shadow .16s ease, border-color .16s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-ink); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--primary); color: var(--primary-ink); }
.btn--sm { padding: 8px 14px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* --- Шапка --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg); /* fallback для браузеров без color-mix */
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex: none;
}
.main-nav a {
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.main-nav a.is-active { color: var(--primary-ink); background: var(--primary-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle__icon {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset -4px -4px 0 0 var(--text-soft);
  transition: box-shadow .2s ease, background-color .2s ease;
}
:root[data-theme="dark"] .theme-toggle__icon { box-shadow: none; background: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- Секции --- */
.section { padding: clamp(56px, 6vw, 96px) 0; }
.section--tint { background: var(--bg-tint); }
.section--cta { background: var(--bg-soft); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 .6rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section-title {
  position: relative;
  margin-bottom: .9rem;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2.2rem;
}

/* --- Hero --- */
.hero {
  padding: clamp(40px, 5vw, 80px) 0 clamp(52px, 6vw, 92px);
  background:
    radial-gradient(940px 420px at 84% -14%, var(--primary-soft), transparent 60%),
    radial-gradient(680px 340px at 0% 2%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 3vw, 34px) clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.hero-panel {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-md);
}
.hero-panel .eyebrow { margin-bottom: .7rem; }
.hero-panel h1 {
  margin-bottom: .6rem;
  font-size: clamp(1.4rem, 0.9rem + 1.9vw, 1.9rem);
}
.hero-panel h1 span { display: block; }
.hero-lead { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 0; text-wrap: pretty; }

.hero-metrics {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 14px;
}
.hero-metrics .metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-actions { grid-column: 1 / -1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 1.1rem; }
.hero-configs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.hero-configs li {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.metric-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.metric-unit { font-size: 1rem; font-weight: 700; color: var(--accent-ink); }
.metric-label { display: block; font-size: .9rem; color: var(--text-soft); margin-top: 4px; }

/* --- Карточки-сетки --- */
.cards { display: grid; gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
/* «Услуги»: таблица 2×2 той же ширины и выравнивания, что блоки в «Формате работы» */
.cards--services {
  max-width: 720px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
}
#services .section-lead { max-width: 720px; text-align: justify; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .98rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.card--pain { background: var(--surface-2); }
.card--pain h3 { color: var(--text); }

/* --- Подход --- */
.approach-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.approach-intro .section-lead { margin-bottom: 1.6rem; }
.approach-list { display: grid; gap: 14px; }
.approach-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .98rem;
}
.approach-list li strong { color: var(--text); }
.approach-list li::before {
  content: "✓";
  position: absolute;
  left: 16px; top: 15px;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #2a1d00;
  font-size: .72rem;
  font-weight: 700;
}

/* --- Процесс --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #2a1d00;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* --- Формат работы: схема процесса по ТЗ --- */
/* лид этого раздела — той же ширины, что схема ниже, с выключкой по формату */
#formats .section-lead {
  max-width: 720px;
  text-align: justify;
}
.flow {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  max-width: 720px;
  display: grid;
  gap: 40px;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: #2a1d00;
  font-weight: 700;
  font-size: 1.02rem;
  display: grid;
  place-items: center;
}
.flow-body h3 { margin-bottom: .25rem; font-size: 1.08rem; }
.flow-body p { margin: 0; color: var(--text-muted); font-size: .96rem; }
.flow-ways {
  margin: 8px 0 0;
  display: grid;
  gap: 5px;
}
.flow-ways li {
  position: relative;
  padding-left: 16px;
  font-size: .9rem;
  color: var(--text-muted);
}
.flow-ways li::before {
  content: "•";
  position: absolute;
  left: 3px;
  color: var(--accent-ink);
  font-weight: 700;
}

/* стрелки-коннекторы между шагами */
.flow > li + li::before,
.flow-loop > .flow-step + .flow-step::before {
  content: "▼";
  position: absolute;
  left: 18px;
  transform: translateX(-50%);
  color: var(--accent-ink);
  font-size: .82rem;
  line-height: 1;
}
.flow > li + li::before { top: -28px; }
.flow-loop > .flow-step + .flow-step::before { top: -19px; }

/* блок повторяющегося согласования ТЗ */
.flow-loop {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 18px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.flow-loop-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent-ink);
}
.flow-loop-note::before {
  content: "↻";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
}

/* финальный шаг — гарантия */
.flow-step--final {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.disclaimer, .form-note, .footer-copy { font-size: .86rem; color: var(--text-soft); }
.disclaimer { margin-top: 1.6rem; }

/* --- Стек --- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stack-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stack-block h3 { margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .86rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* --- Кейсы --- */
.case-card .case-tag {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.case-card h3 { margin-bottom: .4rem; }

/* --- FAQ --- */
.faq { display: grid; gap: 12px; max-width: 720px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 30px 16px 0;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-ink);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--text-muted); font-size: .98rem; }

/* --- Отзывы --- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.review-body { margin: 0 0 20px; }
.review-body p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.review-body p::before {
  content: "\201C";
  display: block;
  font: 700 2.6rem/.7 Georgia, "Times New Roman", serif;
  color: var(--accent);
  margin-bottom: 8px;
}
.review-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #2a1d00;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  object-fit: cover;
}
.review-meta { display: grid; gap: 2px; min-width: 0; }
.review-name { font-weight: 600; color: var(--text); font-size: .96rem; }
.review-role { font-size: .84rem; color: var(--text-soft); }

/* --- Контакты / форма --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-list { display: grid; gap: 14px; margin-top: 1.6rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  font-weight: 700;
}
.contact-list a { font-weight: 600; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.field label span { color: var(--danger); }
.field input,
.field textarea {
  font: inherit;
  font-size: .98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-soft); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error {
  font-size: .82rem;
  color: var(--danger);
  min-height: 1em;
}
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.field-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--primary); }

.form-note { margin: 4px 0 0; }
.form-note.is-success {
  color: var(--success-ink);
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .92rem;
}
.form-note.is-error { color: var(--danger); font-weight: 600; }

/* --- Подвал --- */
.site-footer {
  background: var(--bg-tint);
  border-top: 3px solid var(--accent);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.footer-brand:hover { color: var(--text); text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-nav a { color: var(--text-muted); font-size: .93rem; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { width: 100%; margin: 0; }

/* --- Reveal-анимация --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Адаптив --- */
@media (max-width: 1080px) {
  /* hero раньше остальных переходит в одну колонку — иначе заголовок в узкой
     колонке ломается на 3 строки */
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-panel, .hero-metrics, .hero-actions { grid-column: 1; }
  .hero-metrics { max-width: 460px; }
}

@media (max-width: 960px) {
  .cards--3, .cards--4, .steps, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews, .approach-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform .25s ease;
    margin-left: 0;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .nav-toggle { display: block; }
  .header-inner { justify-content: space-between; }
  .cards--3, .cards--4, .cards--services, .steps, .stack-grid { grid-template-columns: 1fr; }
  .cards--services, .steps { grid-auto-rows: auto; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 400px) {
  .hero-metrics { grid-template-columns: 1fr; }
}
