/* ===== Design tokens: hha — зелёный бренд + тёплый оранжевый вторичный акцент ===== */
:root {
  --c-accent: #12976B;        /* бренд: изумрудный */
  --c-accent-2: #3CC48E;      /* светлый край градиентов */
  --c-accent-deep: #0B7352;
  --c-accent-soft: #E6F5EE;   /* подложка иконок и кружков */
  --accent-rgb: 18, 151, 107; /* для rgba(): тени, фокус */
  --c-warm: #F7913A;          /* вторичный акцент: цены, номера шагов */
  --warm-rgb: 247, 145, 58;
  --c-ink: #17201C;           /* основной текст */
  --c-night: #0F1A16;         /* тёмные секции, футер */
  --c-white: #FFFFFF;
  --c-bg-soft: #F3F7F4;       /* светло-зелёная подложка секций */
  --c-muted: #6F7A75;
  --c-line: #DDE6E1;

  --grad-accent: linear-gradient(135deg, var(--c-accent-2), var(--c-accent));
  --grad-warm: linear-gradient(135deg, #FFB067, var(--c-warm));

  --font: 'Golos Text', 'Roboto', Arial, sans-serif;
  --fs-body: 16px;
  --fs-small: 14px;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(23, 32, 28, .07);
  --shadow-md: 0 14px 40px rgba(23, 32, 28, .14);

  --container: 1170px;
  --gutter: 24px;
  --section-pad: 88px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* иначе display у .btn и др. перебивает атрибут hidden */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; scroll-margin-top: 118px; /* якоря не прячутся под sticky-шапкой */ }
.section--dark { background: var(--c-night); color: var(--c-white); }
.section--gray { background: var(--c-bg-soft); }

/* Заголовки секций: оранжевый eyebrow + крупный жирный заголовок */
.eyebrow {
  display: block; text-align: center;
  color: var(--c-accent); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 12px;
}
.sec-title { font-size: 36px; font-weight: 800; text-align: center; line-height: 1.18; letter-spacing: -.3px; margin-bottom: 14px; }
.sec-sub { text-align: center; color: var(--c-muted); max-width: 620px; margin: 0 auto 48px; }
.section--dark .sec-sub { color: rgba(255,255,255,.65); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 30px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 700 var(--fs-small)/1.2 var(--font);
  text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--grad-accent); color: var(--c-white); box-shadow: 0 8px 20px rgba(var(--accent-rgb),.35); }
.btn--accent:hover { box-shadow: 0 10px 26px rgba(var(--accent-rgb),.5); transform: translateY(-1px); }
.btn--black { background: var(--c-ink); color: var(--c-white); }
.btn--black:hover { background: #000; transform: translateY(-1px); }
.btn--block { display: flex; width: 100%; }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; }
.topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.topbar__in { display: flex; align-items: center; gap: 32px; padding-top: 12px; padding-bottom: 12px; }
.logo {
  /* вордмарк hha — пока нет графического логотипа */
  min-width: 72px; height: 54px; padding: 0 14px; background: var(--grad-accent); color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1; flex: none;
  border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgba(var(--accent-rgb),.3);
}
.topbar__contacts { display: flex; gap: 40px; }
.contact { display: flex; gap: 12px; align-items: center; }
.contact__icon { width: 24px; height: 24px; color: var(--c-accent); flex: none; }
.contact__label { display: block; font-size: 12px; color: var(--c-muted); }
.contact__value { font-size: 15px; font-weight: 700; color: var(--c-ink); }
.contact__value:hover { color: var(--c-accent); }
.topbar__cta { margin-left: auto; }

.nav { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-deep)); /* темнее --grad-accent: контраст белого текста */ box-shadow: 0 4px 16px rgba(var(--accent-rgb),.25); }
.nav__in { display: flex; gap: 4px; padding-top: 5px; padding-bottom: 5px; }
.nav__item {
  padding: 9px 16px; color: var(--c-white); border-radius: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  transition: background .15s;
}
.nav__item:hover { background: rgba(0,0,0,.16); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 580px; overflow: hidden; display: flex; align-items: center; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 420px at 78% 18%, rgba(var(--accent-rgb),.55), transparent 65%),
    radial-gradient(520px 480px at 92% 88%, rgba(var(--warm-rgb),.3), transparent 60%),
    linear-gradient(110deg, #1E2B26 0%, #2C3B35 48%, #16211D 100%);
}
/* Карусель: кадры сменяются кроссфейдом, активный медленно приближается.
   Неактивный сбрасывает масштаб только после того, как погас (delay = длительность фейда). */
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 25%; /* hero шире 16:9 — режем низ, а не головы; для кадра можно переопределить style="" */
  opacity: 0; transform: scaleX(var(--flip, 1)) scale(1.02); transform-origin: 70% 30%;
  transition: opacity 1.6s ease, transform 0s 1.6s;
}
.hero__bg img.is-active { opacity: 1; transform: scaleX(var(--flip, 1)) scale(1.1); transition: opacity 1.6s ease, transform 8s linear; }
/* кадры, где человек слева и уходит под карточку, отражаем — он оказывается справа */
.hero__bg img.is-flip { --flip: -1; transform-origin: 50% 30%; } /* отражение — только вокруг центра, иначе кадр съезжает */
/* Тёплая «ламповая» подложка: темнее слева под карточкой, янтарный отсвет справа */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 85% 80%, rgba(var(--warm-rgb), .22), transparent 70%),
    linear-gradient(90deg, rgba(15,26,22,.78) 0%, rgba(15,26,22,.45) 50%, rgba(15,26,22,.2) 100%);
}
.hero .container { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero__card {
  width: 580px; /* обе кнопки помещаются в одну строку */ max-width: 100%; background: var(--c-white);
  padding: 44px 40px; border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md); border-top: 5px solid var(--c-accent);
}
.hero__title { font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; }
.hero__title .accent { color: var(--c-accent); }
.hero__sub { font-weight: 600; font-size: 16px; color: #34403B; margin-bottom: 18px; }
.hero__note { font-size: 14px; color: var(--c-muted); margin-bottom: 26px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Why us ===== */
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.why__item {
  display: flex; flex-direction: column; gap: 16px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s, background .2s, border-color .2s;
}
.why__item:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(var(--accent-rgb),.45); }
.why__icon {
  width: 54px; height: 54px; flex: none; border-radius: var(--radius-sm);
  background: var(--grad-accent); box-shadow: 0 8px 18px rgba(var(--accent-rgb),.35);
  display: grid; place-items: center; color: var(--c-white);
}
.why__icon svg { width: 26px; height: 26px; }
.why__item p { font-size: 15px; font-weight: 600; line-height: 1.45; }

/* ===== Team: одна большая фотография + карточка поверх ===== */
.team { position: relative; }
.team__photo {
  position: relative; aspect-ratio: 16 / 7; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  box-shadow: var(--shadow-md);
  /* плейсхолдер до assets/team.jpg */
  background:
    radial-gradient(600px 360px at 70% 30%, rgba(var(--accent-rgb),.45), transparent 65%),
    linear-gradient(120deg, #2C3B35, #16211D);
  display: grid; place-items: center;
}
.team__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team__ph { color: rgba(255,255,255,.55); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.team__card {
  position: absolute; left: 32px; bottom: 32px; width: 420px; max-width: calc(100% - 64px);
  background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 28px; border-top: 5px solid var(--c-accent);
}
.team__card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.team__card p { font-size: 15px; color: #47524D; margin-bottom: 12px; }
.team__card p:last-of-type { margin-bottom: 20px; }

/* Слайдер сотрудников: нативный горизонтальный скролл со snap + стрелки (main.js) */
.members { margin-top: 56px; }
.members__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.members__head h3 { font-size: 22px; font-weight: 800; }
.members__nav { display: flex; gap: 10px; }
.members__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-white);
  color: var(--c-accent); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.members__btn:hover:not(:disabled) { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }
.members__btn:disabled { opacity: .35; cursor: default; }
.members__btn svg { width: 20px; height: 20px; }
.members__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 18px; scrollbar-width: none;
}
.members__track::-webkit-scrollbar { display: none; }
.member {
  scroll-snap-align: start; background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 14px 14px 20px; box-shadow: var(--shadow-sm);
}
.member__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(160deg, var(--c-accent-soft), #CFE9DC); color: rgba(var(--accent-rgb),.45);
  display: grid; place-items: center;
}
.member__photo svg { width: 64px; height: 64px; }
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: 16px; font-weight: 700; padding: 0 4px; }
.member__role { display: block; font-size: 13px; font-weight: 600; color: var(--c-accent); margin: 3px 0 8px; padding: 0 4px; }
.member__text { font-size: 14px; color: #47524D; padding: 0 4px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-bottom: 52px; counter-reset: step; }
.step { position: relative; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-warm); color: var(--c-white);
  font-weight: 800; font-size: 16px; display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(var(--warm-rgb),.4);
}
.step__icon { display: grid; place-items: center; width: 54px; height: 54px; background: var(--c-accent-soft); color: var(--c-accent); border-radius: var(--radius-sm); margin-bottom: 18px; }
.step__icon svg { width: 28px; height: 28px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: #47524D; }
#how .btn--block { max-width: 480px; margin: 0 auto; }

/* Блок-цепочка под шагами: заголовок → описание → 3 этапа → описание → жирное уточнение */
.flow { max-width: 860px; margin: 0 auto 44px; padding: 36px 40px; text-align: center; background: var(--c-bg-soft); border-radius: var(--radius); }
.flow__title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.flow__desc { font-size: 15px; color: #47524D; }
.flow__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 24px; }
.flow__steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 8px; font-size: 15px; font-weight: 700; }
/* линия от кружка к следующему кружку */
.flow__steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: calc(50% + 30px); right: calc(-50% + 30px);
  height: 2px; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
}
.flow__steps span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-accent); color: var(--c-white); font-weight: 800;
  box-shadow: 0 6px 14px rgba(var(--accent-rgb),.3);
}
.flow__note { margin-top: 10px; font-size: 15px; font-weight: 700; }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq__item {
  background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 16px 46px 16px 18px;
  font-size: 15px; font-weight: 700;
  position: relative; user-select: none; transition: color .15s;
}
.faq__item summary:hover { color: var(--c-accent); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent);
  font-size: 18px; font-weight: 600; display: grid; place-items: center; line-height: 1;
  transition: transform .2s, background .2s, color .2s;
}
.faq__item[open] summary::after { content: "−"; background: var(--grad-accent); color: var(--c-white); }
.faq__body { font-size: 14px; color: #47524D; padding: 0 18px 18px; }
.faq__body p + p { margin-top: 10px; }

/* ===== CTA / заявка ===== */
.cta { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.cta__info .eyebrow, .cta__info .sec-title { text-align: left; }
.cta__info p { color: #47524D; margin-bottom: 26px; }
.cta__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta__channel {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--c-bg-soft); border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; transition: border-color .15s, background .15s;
}
.cta__channel small { display: block; font-size: 12px; font-weight: 400; color: var(--c-muted); }
a.cta__channel:hover { background: var(--c-white); border-color: var(--c-accent); }
.cta__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); }
.cta__icon svg { width: 18px; height: 18px; }
.cta__form {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 30px;
}

/* ===== Forms ===== */
.form { display: grid; gap: 12px; }
.form input, .form textarea {
  padding: 13px 16px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-white); color: var(--c-ink);
  font: 400 var(--fs-small)/1.4 var(--font); width: 100%; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.18); }
.form-note { font-size: 13px; margin-top: 2px; color: #2E7D32; font-weight: 600; }
.form-note--error { color: #C62828; }
/* honeypot: уводим за экран, не display:none */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ===== Footer ===== */
.footer { background: var(--c-night); color: var(--c-white); padding: 60px 0 0; border-top: 4px solid var(--c-accent); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo {
  display: inline-flex; align-items: center; height: 54px; padding: 0 14px;
  background: var(--c-white); color: var(--c-accent-deep);
  font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1;
  margin-bottom: 16px; border-radius: var(--radius-sm);
}
.footer__about { font-size: 14px; color: #97A39E; max-width: 280px; }
.footer__col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-accent); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; font-size: 14px; color: #97A39E; }
.footer__col ul a { transition: color .15s; }
.footer__col ul a:hover { color: var(--c-white); }
.footer__bottom { margin-top: 52px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; color: #6B7772; }

/* ===== Burger / mobile menu ===== */
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: var(--c-bg-soft); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: none; }
.burger span { display: block; width: 20px; height: 2px; background: var(--c-ink); transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { background: var(--c-white); border-bottom: 1px solid var(--c-line); box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 8px 0; }
.mobile-menu a { display: block; padding: 14px var(--gutter); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.mobile-menu a:hover { color: var(--c-accent); }

/* ===== Появление секций при скролле (включается из main.js) ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img, .hero__bg img.is-active { transform: scaleX(var(--flip, 1)); transition: none; }
  html { scroll-behavior: auto; }
  .members__track { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav, .topbar__contacts { display: none; }
  .burger { display: flex; margin-left: 12px; }
  .topbar__cta { margin-left: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; gap: 36px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .team__photo { aspect-ratio: 4 / 3; }
  .team__card { position: relative; left: auto; bottom: auto; width: auto; max-width: none; margin: -48px 20px 0; }
  .members__track { grid-auto-columns: calc((100% - 22px) / 2); }
}
@media (max-width: 640px) {
  :root { --section-pad: 56px; }
  .sec-title { font-size: 28px; }
  .hero__title { font-size: 31px; }
  .hero__card { padding: 30px 22px; }
  .hero .container { padding-top: 28px; padding-bottom: 28px; }
  .topbar__cta { display: none; }
  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .flow { padding: 28px 18px; }
  .members__track { grid-auto-columns: 78%; }
  .flow__steps li { font-size: 13px; padding: 0 4px; }
  .cta__contacts { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
