/* BAS Business Servises — стили сайта. Токены из design_handoff_bas_site/README.md */

:root {
  --ink: #132931;
  --lime: #CAFF58;
  --lime-hover: #B7EF45;
  --olive: #66872F;
  --muted: #5C6C73;
  --muted-on-dark: #C0CDD1;
  --meta-on-dark: #A4B8BE;
  --line: #D9E0E4;
  --line-soft: #EDF1F3;
  --line-soft-2: #E3E9EC;
  --input-border: #CBD5DA;
  --fact-line: #BBC8CE;
  --surface: #EFF4F6;
  --white: #FFFFFF;

  --font: Manrope, Arial, sans-serif;
  --ease: cubic-bezier(.16, .84, .26, 1);

  --r-card: 14px;
  --r-panel: 18px;
  --r-btn: 6px;
  --r-pill: 999px;
  --r-field: 5px;

  --shadow-hover: 0 22px 44px rgba(19, 41, 49, 0.10);
  --section-gap: clamp(64px, 8vw, 104px);
  --gutter: 5%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--olive); }
button, input, select, textarea { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 12px 18px; border-radius: var(--r-btn); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Типографика ---------- */

.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker--muted { color: var(--muted); }
.kicker--lime { color: var(--lime); }
.kicker--meta { color: var(--meta-on-dark); }

.h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 22ch;
}
.lead { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 52ch; }
.accent-lime { font-style: normal; color: var(--lime); }
.accent-olive { font-style: normal; color: var(--olive); }

/* ---------- Логотип ---------- */

.logo { display: flex; align-items: center; gap: 15px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.055em; }
.logo__name { font-size: 12px; font-weight: 600; line-height: 1.4; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 48px; padding: 16px 22px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  background: var(--lime); color: var(--ink);
  font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--lime-hover); color: var(--ink); transform: translateY(-2px); }
.btn--sm { padding: 14px 22px; }
.btn--lg { padding: 18px 28px; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn svg { flex: none; }

.link-strong { font-size: 14px; font-weight: 700; color: var(--ink); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  max-width: 1440px; margin: auto;
  padding: 18px var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  row-gap: 8px; column-gap: 20px;
}
.site-header__right {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  row-gap: 8px; column-gap: 16px; flex: 1; min-width: 0;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--olive); }

.lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px;
}
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 36px; padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink);
}
.lang a[aria-current="true"] { background: var(--ink); color: var(--white); }

.header-phone { font-size: 16px; font-weight: 700; }

main { display: block; max-width: 1440px; margin: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  margin: 0 20px;
  border-radius: 8px 8px 32px 32px;
  background: var(--ink);
  background-image:
    radial-gradient(circle at 88% 22%, rgba(202, 255, 88, 0.20), transparent 46%),
    radial-gradient(circle at 70% 88%, rgba(120, 190, 205, 0.16), transparent 50%);
  color: var(--white);
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(44px, 6vw, 88px);
}
.hero--home {
  display: grid; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(40px, 5vw, 72px);
}
.hero--page { padding: clamp(44px, 6vw, 88px) var(--gutter); }
.hero--case { background-image: none; padding: clamp(40px, 5vw, 76px) var(--gutter); }
.hero__text { position: relative; min-width: 0; }
.hero .kicker { margin-bottom: 24px; }
.hero__title {
  margin: 0 0 30px;
  font-size: clamp(38px, 5.4vw, 84px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 500;
  max-width: 22ch;
}
.hero--page .hero__title { font-size: clamp(38px, 5.4vw, 80px); margin-bottom: 24px; max-width: 24ch; }
.hero--case .hero__title { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 24px; max-width: 26ch; }
.hero__lead { margin: 0; color: var(--muted-on-dark); font-size: 17px; line-height: 1.75; max-width: 46ch; }
.hero--page .hero__lead, .hero--case .hero__lead { max-width: 56ch; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 32px; }
.hero__link { font-size: 14px; font-weight: 600; color: var(--white); }
.hero__link:hover { color: var(--lime); }
.hero__note { margin-top: 24px; font-size: 12px; color: var(--meta-on-dark); }

.hero-back {
  display: inline-flex; align-items: center; min-height: 48px; margin-bottom: 28px; padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32); border-radius: var(--r-pill);
  color: var(--white); font-size: 14px; font-weight: 700;
  transition: background .15s;
}
.hero-back:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.hero--case .kicker { margin-bottom: 20px; }

/* Стеклянная панель «Компетенции» */
.scope {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-panel);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 28px 56px rgba(9, 28, 39, 0.42);
  animation: bas-sway 11s ease-in-out infinite;
}
.scope__top, .scope__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; color: var(--meta-on-dark);
}
.scope__top { font-weight: 700; letter-spacing: 0.14em; }
.scope__bottom { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 18px; }
.scope__bottom b { font-weight: 700; letter-spacing: 0.14em; }
.scope__title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; }
.scope__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.scope__list a {
  display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 16px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.16); color: var(--white);
}
.scope__list a:hover { color: var(--lime); }
.scope__num { flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--meta-on-dark); }
.scope__label { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.scope__arrow { flex: none; font-size: 16px; color: var(--lime); }

/* ---------- Бегущая строка ---------- */

.strip { overflow: hidden; padding: 34px 0; }
.strip__track { display: flex; width: max-content; animation: bas-strip 30s linear infinite; }
.strip__group {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.025em; white-space: nowrap;
}
.strip__group i { font-style: normal; color: var(--lime); }

/* ---------- Секции ---------- */

.section { position: relative; padding: var(--section-gap) var(--gutter) 0; }
.section-head {
  display: grid; align-items: start; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-bottom: 44px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.section-head .kicker { margin-bottom: 24px; }
.section-head--flush { margin-bottom: 0; }
.section-head--tight { margin-bottom: 36px; }

.grid { display: grid; gap: 16px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid--cases { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--cases-page { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 32px; }
.grid--calendar { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ---------- Карточки ---------- */

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; background: var(--white);
  transition: border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card__text { margin: 0; flex: 1; color: var(--muted); font-size: 16px; line-height: 1.7; }
.card--dark .card__text { color: var(--muted-on-dark); }
.card__metric {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); font-size: 13px; font-weight: 700;
}
.card__title { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; }
.card__title a { color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__title a:hover { color: var(--olive); }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* Услуги */
.service { gap: 18px; padding: 32px; min-height: 330px; }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.service__title { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
.service .btn:hover { transform: none; }
.service .btn { position: relative; z-index: 1; }

.ico {
  flex: none; width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .7s var(--ease);
}
.card--dark .ico { background: rgba(202, 255, 88, 0.16); border-color: rgba(202, 255, 88, 0.42); color: var(--lime); }
.card:hover .ico { transform: translateY(-4px) scale(1.08); }
/* dasharray ставится только на время анимации — статически контур обрезался бы */
.card:hover .ico path, .card:hover .ico circle { stroke-dasharray: 400; animation: bas-dash 1.4s var(--ease) both; }

/* Кейсы */
.case-card { min-height: 280px; }
.case-card--page { min-height: 300px; }
.case-card .btn { position: relative; z-index: 1; }
.case-card[hidden] { display: none; }

/* Календарь */
.cal {
  overflow: hidden; gap: 14px; padding: 26px; min-height: 230px;
}
.cal:hover { border-color: var(--line); box-shadow: 0 22px 44px rgba(19, 41, 49, 0.12); }
.cal__ghost {
  position: absolute; right: -14px; bottom: -30px; pointer-events: none;
  font-size: 110px; font-weight: 800; line-height: 1; letter-spacing: -0.06em;
  color: rgba(19, 41, 49, 0.05);
}
.cal__top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cal__month { color: var(--muted); }
.cal__pill {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap;
}
.cal__date { position: relative; font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.cal__who { position: relative; margin: 0; flex: 1; color: var(--muted); font-size: 16px; line-height: 1.65; }
.cal--next { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cal--next:hover { border-color: var(--ink); }
.cal--next .cal__ghost { color: rgba(202, 255, 88, 0.16); }
.cal--next .cal__month { color: var(--lime); }
.cal--next .cal__pill { background: var(--lime); }
.cal--next .cal__who { color: var(--muted-on-dark); }
.cal-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 72ch; }

/* О компании */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 38px; margin: 46px 0 0; }
.fact { display: flex; flex-direction: column; gap: 12px; min-width: 0; border-top: 1px solid var(--fact-line); padding-top: 24px; }
.fact dt { order: 2; font-size: 16px; color: var(--muted); }
.fact dd { order: 1; margin: 0; font-size: clamp(52px, 6vw, 80px); line-height: 1.1; font-weight: 500; letter-spacing: -0.055em; }

.more-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 24px; font-size: 15px; font-weight: 700; }

/* ---------- Заявка ---------- */

.request__glow {
  position: absolute; inset: clamp(48px, 7vw, 88px) 0 -20px; pointer-events: none;
  background:
    radial-gradient(circle at 78% 30%, rgba(202, 255, 88, 0.30), transparent 52%),
    radial-gradient(circle at 12% 78%, rgba(120, 190, 205, 0.22), transparent 55%);
}
.request {
  position: relative;
  display: grid; align-items: stretch; gap: clamp(32px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  border-top: 1px solid var(--line); padding-top: 28px;
}
.request__intro { min-width: 0; display: flex; flex-direction: column; }
.request__intro .kicker { margin-bottom: 24px; }
.request__intro .h2 { margin-bottom: 20px; max-width: 20ch; }
.request__intro .lead { max-width: 46ch; }
.request__wa { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.small-note { font-size: 12px; color: var(--muted); }

.lead-form {
  position: relative; min-width: 0; width: 100%;
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-panel);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(19, 41, 49, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.35); backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 20px 44px rgba(19, 41, 49, 0.10);
}
.lead-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lead-form legend { padding: 0; font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px;
  background: var(--white); border: 1px solid var(--input-border); border-radius: var(--r-pill);
  color: var(--ink); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.chip__mark {
  flex: none; width: 20px; height: 20px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--input-border); font-size: 13px;
}
.chip[aria-pressed="true"] { background: var(--surface); border-color: var(--ink); }
.chip[aria-pressed="true"] .chip__mark { background: var(--lime); border-color: var(--ink); }
.chip[aria-pressed="true"] .chip__mark::before { content: "✓"; }

.fields {
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--line-soft-2); padding-top: 22px;
}
.field { display: block; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px;
  border: 1px solid var(--input-border); border-radius: var(--r-field);
  background: var(--white); color: var(--ink);
  font-size: 16px; font-weight: 400;
}
.field textarea { line-height: 1.6; resize: vertical; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.form-hint { margin: 0; font-size: 14px; color: var(--muted); }
.form-error { margin: 0; font-size: 14px; font-weight: 600; color: #B3261E; }
.form-error:empty { display: none; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: none; color: var(--olive); transition: transform .3s var(--ease); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ---------- Контакты ---------- */

.contacts {
  display: grid; align-items: start; gap: clamp(32px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--line); padding-top: 28px;
}
.contacts .kicker { margin-bottom: 24px; }
.contacts__info { display: flex; flex-direction: column; gap: 16px; }
.contacts__info .kicker { margin-bottom: 0; }
.contacts__phone { font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.contacts__office { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.contacts address { font-style: normal; font-size: 19px; line-height: 1.5; }

/* ---------- Подвал ---------- */

.site-footer {
  max-width: 1440px; margin: 96px auto 0; padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 14px; color: var(--muted);
}
.site-footer span { line-height: 1.6; }

/* ---------- Страница кейсов ---------- */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 28px; }
.filter {
  min-height: 48px; padding: 12px 18px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--input-border); color: var(--ink);
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filters__count { margin-left: 8px; color: var(--muted); }

.case-blocks {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 1px solid var(--line); padding-top: 28px;
}
.case-block { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); }
.case-block h2 { margin: 0; }
.case-block p { margin: 0; font-size: 17px; line-height: 1.7; }
.case-block--result { background: var(--ink); border-color: var(--ink); color: var(--white); }
.case-block--result strong { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; }
.case-block--result p { font-size: 16px; color: var(--muted-on-dark); }

.timeline { margin-top: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 20px; }
.timeline h2 { margin: 0; }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.timeline li { display: flex; flex-direction: column; gap: 8px; min-width: 0; border-top: 2px solid var(--ink); padding-top: 16px; }
.timeline li span:first-child { color: var(--olive); }
.timeline li span:last-child { font-size: 16px; line-height: 1.6; }

.cta-strip {
  margin-top: 16px; padding: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid rgba(19, 41, 49, 0.14); border-radius: var(--r-card);
  background: rgba(239, 244, 246, 0.7);
}
.cta-strip p { margin: 0; max-width: 40ch; font-size: 19px; line-height: 1.5; letter-spacing: -0.02em; }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.others { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.others h2 { margin: 0; }
.others__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.other {
  display: flex; flex-direction: column; gap: 10px; min-height: 140px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink);
  transition: border-color .18s, transform .18s;
}
.other:hover { border-color: var(--ink); transform: translateY(-3px); color: var(--ink); }
.other__title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }

/* ---------- Анкета ---------- */

.quiz { max-width: 900px; margin: auto; padding: 45px 6% 80px; }
.quiz .kicker { margin-bottom: 24px; }
.quiz h1 { margin: 0 0 24px; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; }
.quiz .lead { margin-bottom: 20px; max-width: 56ch; }
.notice { margin: 0 0 16px; padding: 18px; border-radius: 8px; background: var(--surface); font-size: 14px; line-height: 1.7; }
.quiz__summary { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.quiz__card { margin-top: 28px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 28px; }
.quiz fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.quiz fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 24px; }
.quiz legend { padding: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.quiz .fields { border-top: 0; padding-top: 0; gap: 16px; }
.quiz__comment { border-top: 1px solid var(--line); padding-top: 24px; }
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.quiz__status { margin: 0; font-size: 14px; color: var(--olive); }
.quiz__status:empty { display: none; }

/* ---------- Появление ---------- */
/* Скрываем только при работающем JS — без него контент виден сразу */

.js .reveal { opacity: 0; }
.js .reveal.is-in { opacity: 1; animation: bas-rise 1.15s var(--ease) backwards; animation-delay: var(--d, 0s); }

@keyframes bas-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bas-dash { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes bas-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bas-sway {
  0% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-0.4deg) translateY(-10px); }
  100% { transform: rotate(-2deg) translateY(0); }
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .site-nav { gap: 18px; }
}
@media (max-width: 760px) {
  /* Компактная шапка: логотип + звонок, ниже — меню с прокруткой и языки */
  .site-header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    row-gap: 10px; column-gap: 12px; padding: 12px 16px;
  }
  .site-header__right { display: contents; }
  .site-header .logo { grid-column: 1; grid-row: 1; }
  .site-header .btn { grid-column: 2; grid-row: 1; padding: 12px 16px; min-height: 44px; }
  .site-nav {
    grid-column: 1; grid-row: 2; min-width: 0;
    flex-wrap: nowrap; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    padding: 6px 0;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .lang { grid-column: 2; grid-row: 2; }
  .lang a { min-width: 40px; min-height: 32px; font-size: 12px; }
  .logo__mark { font-size: 34px; }
  .logo { gap: 10px; }
}
@media (max-width: 640px) {
  .hero { margin: 0 12px; }
  .service { padding: 26px; min-height: 0; }
  .service__title { font-size: 28px; }
  .quiz__card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scope, .strip__track { animation: none; }
  .js .reveal, .js .reveal.is-in { opacity: 1; animation: none; }
  .card, .ico, .btn, .other { transition: none; }
  .card:hover, .other:hover, .btn:hover { transform: none; }
  .card:hover .ico { transform: none; }
  .card:hover .ico path, .card:hover .ico circle { animation: none; stroke-dasharray: none; }
}
