/* ООО «Аспект» — QUIZ+: опрос в первом экране + короткий лендинг.
   Холодно-белая бумага, глубокая бирюза (petrol), тёплый песок; EB Garamond / Source Sans 3.
   Карточки без границ и теней, пилюли-варианты с галочкой, точечный степпер. */

:root {
  --paper: #F7F8F7;
  --card: #FFFFFF;
  --sand: #EFE6D6;
  --sand-2: #E6DBC6;
  --teal: #0E4F5A;
  --teal-deep: #0A3A43;
  --teal-tint: #D9E9EA;
  --teal-tint-2: #EDF4F4;
  --ink: #16211F;
  --mute: #5B6866;
  --line: #D6DCDA;
  --danger: #B4342A;
  --r: 12px;
  --f-head: "EB Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 600; margin: 0; }
h2 { font-size: 38px; line-height: 1.15; margin-bottom: 30px; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; }

a { color: var(--teal); }
.is-off { display: none !important; }

.kicker, .eyebrow, .quiz__kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.ico { width: 30px; height: 30px; color: var(--teal); flex-shrink: 0; }

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

.btn {
  display: inline-block;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 13px 26px;
  cursor: pointer;
  border: 1.5px solid var(--teal);
  line-height: 1.3;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--main { background: var(--teal); color: #FFFFFF; }
.btn--main:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn--big { padding: 15px 34px; font-size: 17px; }
.btn:disabled { opacity: 0.45; cursor: default; }

:is(a, button, input):focus-visible { outline: 3px solid rgba(14, 79, 90, 0.45); outline-offset: 2px; }

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

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }

.brand__name {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name small {
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.bar__cta { padding: 10px 20px; font-size: 15px; }

/* ---------- Первый экран ---------- */

.lead { padding: 64px 0 72px; overflow: hidden; }

.lead__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.lead h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.005em; margin-bottom: 20px; text-wrap: balance; }

.lead__sub { margin: 0 0 26px; font-size: 18px; color: var(--mute); max-width: 52ch; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.facts li { position: relative; padding-left: 30px; font-weight: 600; font-size: 16px; }

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
}

.facts li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* правая колонка: фото-панель, уходящая за правый край, и карточка опроса поверх */

.lead__side { position: relative; padding: 34px 0 34px 34px; }

.scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: -50vw;
  border-radius: 22px 0 0 22px;
  background-color: var(--teal-tint);
  background-image: url("/assets/images/hero-desk.jpg"), url("/assets/images/hero-desk-fallback.svg");
  background-size: cover, cover;
  background-position: 70% center, center;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(14, 79, 90, 0.42), rgba(14, 79, 90, 0.18) 60%, rgba(239, 230, 214, 0.25));
}

/* ---------- Карточка опроса ---------- */

.quiz {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  padding: 26px 28px 28px;
  box-shadow: 0 24px 60px -30px rgba(10, 58, 67, 0.45);
}

.quiz__top { display: flex; align-items: center; justify-content: space-between; min-height: 22px; margin-bottom: 18px; }

.dots { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }

.dots li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: transparent;
  position: relative;
  transition: background-color 0.2s ease;
}

.dots li + li { margin-left: 18px; }

.dots li + li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--line);
  transform: translateY(-50%);
}

.dots li.is-done { background: var(--teal); }
.dots li.is-done + li::before { background: var(--teal); }

.quiz__count { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }

.qstep { display: none; }
.qstep.is-on { display: block; animation: slide-in 0.26s ease; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz__title { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
.quiz__text { margin: 0 0 22px; color: var(--mute); }
.quiz__note { margin: 14px 0 0; font-size: 13.5px; color: var(--mute); }
.quiz__q { font-size: 24px; margin-bottom: 18px; }

.opts { display: grid; gap: 10px; }

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 18px 12px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.opt__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  position: relative;
  transition: background-color 0.18s ease;
}

.opt__check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg);
  opacity: 0;
}

.opt:hover { border-color: var(--teal); background: var(--teal-tint-2); }
.opt.is-picked { border-color: var(--teal); background: var(--teal-tint); }
.opt.is-picked .opt__check { background: var(--teal); }
.opt.is-picked .opt__check::after { opacity: 1; }

.hint { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 14px; color: var(--mute); }
.hint svg { flex-shrink: 0; color: var(--teal); margin-top: 2px; }

.quiz__back {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  border: 0;
  background: none;
  color: var(--mute);
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
}

.quiz__back.is-on { display: inline-flex; }
.quiz__back:hover { color: var(--teal); }

/* ---------- Поля ---------- */

.field { margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 6px; }

.field__in, .tel {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  transition: border-color 0.18s ease;
}

.field__in { padding: 13px 15px; }
.field__in:focus, .tel:focus-within { border-color: var(--teal); outline: none; }

.tel { display: flex; align-items: center; }
.tel__cc { padding: 13px 0 13px 15px; font-weight: 600; user-select: none; }

.tel input {
  border: none;
  flex: 1;
  min-width: 0;
  padding: 13px 15px 13px 8px;
  background: transparent;
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--ink);
}

.tel input:focus { outline: none; }

.field__in.is-bad, .tel.is-bad { border-color: var(--danger); }
.field__err { display: none; margin: 6px 0 0; color: var(--danger); font-size: 13.5px; }
.field__in.is-bad ~ .field__err, .tel.is-bad ~ .field__err { display: block; }

/* ловушка для ботов — вне экрана, недоступна людям */
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.agree { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 18px; font-size: 13.5px; color: var(--mute); cursor: pointer; line-height: 1.5; }
.agree input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }

.fail { margin: 12px 0 0; color: var(--danger); font-size: 14.5px; }

.done { text-align: center; padding: 10px 0 4px; }
.done svg { color: var(--teal); margin-bottom: 8px; }
.done h3 { font-size: 28px; margin-bottom: 6px; }
.done p { margin: 0 0 8px; }
.done__note { font-size: 14px; color: var(--mute); max-width: 44ch; margin: 0 auto; }

/* ---------- Направления (песочная полоса) ---------- */

.svc { background: var(--sand); padding: 72px 0 80px; }

.svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.svc__card { background: var(--card); border-radius: var(--r); padding: 26px 26px 24px; }
.svc__card .ico { margin-bottom: 16px; }
.svc__card h3 { margin-bottom: 10px; }
.svc__card p { margin: 0; font-size: 15.5px; color: var(--mute); }

/* ---------- Порядок (точечная линия) ---------- */

.how { padding: 72px 0 76px; }

.line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: st; }

.line li { position: relative; padding-top: 26px; counter-increment: st; }

.line li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.line li::after {
  content: "";
  position: absolute;
  left: 18px;
  right: -28px;
  top: 10px;
  height: 1.5px;
  background: var(--line);
}

.line li:last-child::after { display: none; }
.line h3 { font-size: 21px; margin-bottom: 8px; }
.line h3::before { content: counter(st, decimal-leading-zero) " · "; color: var(--teal); }
.line p { margin: 0; font-size: 15.5px; color: var(--mute); }

/* ---------- Принципы ---------- */

.why { background: var(--teal-tint-2); padding: 72px 0 76px; }

.why__rows { display: grid; gap: 16px; }

.why__row { display: flex; gap: 20px; align-items: flex-start; background: var(--card); border-radius: var(--r); padding: 24px 26px; }
.why__row h3 { margin-bottom: 6px; }
.why__row p { margin: 0; font-size: 15.5px; color: var(--mute); max-width: 72ch; }

/* ---------- Вопросы (сетка, без аккордеона) ---------- */

.faq { padding: 72px 0 80px; }

.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }

.faq__item { border-top: 1.5px solid var(--line); padding-top: 18px; }
.faq__item h3 { font-size: 21px; margin-bottom: 8px; }
.faq__item p { margin: 0; font-size: 15.5px; color: var(--mute); }

.faq__cta { margin-top: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.faq__cta p { margin: 0; font-family: var(--f-head); font-size: 22px; }

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

.foot { background: var(--teal-deep); color: #E3EEEF; padding: 48px 0 26px; font-size: 14.5px; }

.foot__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 36px; margin-bottom: 28px; }

.foot__brand { font-family: var(--f-head); font-size: 26px; font-weight: 600; margin: 0 0 8px; color: #FFFFFF; }
.foot__about { margin: 0 0 12px; max-width: 46ch; color: #C9DADC; }
.foot__mute { margin: 0 0 6px; color: #A9C0C3; }
.foot__t { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #C9DADC; margin: 0 0 10px; }
.foot p { margin: 0 0 7px; }
.foot a { color: #FFFFFF; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.foot__bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; color: #A9C0C3; font-size: 13px; }
.foot__bottom p { margin: 0; max-width: 90ch; }

/* ---------- Закреплённая кнопка на телефонах ---------- */

.mbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 248, 247, 0.96);
  backdrop-filter: blur(7px);
  border-top: 1px solid var(--line);
}

.mbar__btn { display: block; width: 100%; }

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

@media (max-width: 960px) {
  .lead { padding: 40px 0 56px; }
  .lead__grid { grid-template-columns: 1fr; gap: 28px; }
  .lead h1 { font-size: 36px; }
  .lead__side { padding: 0; margin-top: 8px; }
  .scene { position: relative; height: 150px; right: 0; left: 0; border-radius: 18px; margin: 0 0 -60px;
    background-image: url("/assets/images/hero-desk-m.jpg"), url("/assets/images/hero-desk-fallback.svg"); }
  .quiz { margin: 0 14px; }
  .svc__grid { grid-template-columns: 1fr; }
  .line { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
  .line li::after { right: -24px; }
  .line li:nth-child(2)::after { display: none; }
  .faq__grid { grid-template-columns: 1fr; gap: 18px; }
  .foot__grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 74px; font-size: 16px; }
  .mbar { display: block; }
  .bar__cta { display: none; }
  .brand__name { font-size: 21px; }
  .lead h1 { font-size: 30px; }
  .lead__sub { font-size: 16.5px; }
  h2 { font-size: 30px; }
  .quiz { margin: 0; padding: 22px 18px 24px; }
  .quiz__title { font-size: 26px; }
  .quiz__q { font-size: 21px; }
  .svc, .how, .why, .faq { padding: 48px 0 54px; }
  .line { grid-template-columns: 1fr; gap: 22px; }
  .line li::after { display: none; }
  .btn--big { width: 100%; }
  .faq__cta .btn { width: 100%; }
}

/* ---------- Минимум движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qstep.is-on { animation: none; }
  .btn, .opt, .opt__check, .dots li { transition: none; }
}
