:root {
  --black: #000;
  --ink: #1c1c1c;
  --paper: #e3e2da;
  --slate: #a6b3bc;
  --sage: #b7c8be;
  --blush: #d6c4b8;
  --olive: #2c3620;
  --olive-2: #3e4b2e;
  --dark: #121412;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-giant: clamp(4.5rem, 2rem + 9vw, 9rem);

  --m: clamp(16px, 2.8vw, 40px);
  --radius: 0;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: 'General Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--ink); font-size: var(--step-body); line-height: 1.45; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: var(--step-small); }
.wrap { padding: 0 var(--m); max-width: 1680px; margin: 0 auto; }

/* Кнопки — одна форма на весь сайт */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; background: var(--olive); color: var(--paper);
  font-weight: 500; font-size: var(--step-body); text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s; }
.btn:hover { background: var(--olive-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.btn-inv { background: var(--paper); color: var(--olive); }
.btn-inv:hover { background: #fff; }

/* Верхняя полоса */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 16px var(--m);
  color: var(--paper); mix-blend-mode: normal; transition: background-color .3s, color .3s; }
.bar.on-light { background: var(--paper); color: var(--ink); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; }
.mark-ico { width: 30px; height: 30px; flex: none; }
.mark-ico .m1 { fill: var(--paper); } .mark-ico .m2 { fill: var(--sage); } .mark-ico .m3 { fill: var(--blush); }
.bar.on-light .mark-ico .m1 { fill: var(--olive); } .bar.on-light .mark-ico .m2 { fill: #7a8a5f; } .bar.on-light .mark-ico .m3 { fill: #a3b08a; }
.bar-links { display: flex; gap: 24px; margin-left: auto; font-size: var(--step-small); }
.bar-links a { text-decoration: none; opacity: .85; transition: opacity .2s; }
.bar-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.bar .btn { background: var(--paper); color: var(--olive); }
.bar.on-light .btn { background: var(--olive); color: var(--paper); }

/* Герой */
.hero { position: relative; height: 900vh; background: var(--black); color: var(--paper); }
.hero-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { display: none; }
.no-canvas .hero-fallback { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.hero-open { position: absolute; right: var(--m); top: 50%; transform: translateY(-50%); width: min(34rem, 36vw); z-index: 2;
  display: grid; gap: 24px; justify-items: start; transition: opacity .4s var(--ease), visibility .4s; }
.hero-open.is-off { opacity: 0; visibility: hidden; }
.hero-title { font-weight: 700; font-size: var(--step-head); line-height: .98; letter-spacing: -0.02em; color: var(--paper); }
.hero-sub { font-size: var(--step-body); color: var(--paper); max-width: 34ch; }
.notes { display: contents; }
.note { pointer-events: none; }
.note { position: absolute; right: var(--m); top: 50%; width: min(30rem, 34vw); transform: translateY(-40%); opacity: 0; visibility: hidden;
  transition: opacity .18s linear, transform .18s linear, visibility 0s .18s; }
.note.is-on { opacity: 1; visibility: visible; transform: translateY(-50%);
  transition: opacity .45s .2s var(--ease), transform .6s .2s var(--ease), visibility 0s .2s; }
.note h2 { font-weight: 700; font-size: clamp(48px, 5.4vw, 92px); color: var(--sage) !important; line-height: .95; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--paper); }
.note p { font-size: var(--step-lead); line-height: 1.3; color: var(--paper); }
.note-lead, .note .note-lead { font-weight: 600; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.15; letter-spacing: -0.01em; }
.note-end { display: grid; gap: 24px; justify-items: start; pointer-events: auto; }

.hero-steps { position: absolute; left: var(--m); bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 20px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.hero-steps.is-on { opacity: 1; visibility: visible; }
.hero-steps ol { display: flex; gap: 6px; }
.hero-steps li { padding: 8px 14px; border-radius: 999px; background: rgba(227,226,218,.12); color: rgba(227,226,218,.6);
  font-size: var(--step-small); font-weight: 500; transition: none; }
.hero-steps li.done { color: var(--paper); }
.hero-steps li.now { background: var(--sage); color: var(--ink); }
.hero-steps-btn { display: none; }

/* Главы */
.chapter { padding: 160px 0; }
.contact { min-height: auto; padding-bottom: 120px; }
.c-sage { background: var(--sage); color: var(--ink); }
.c-blush { background: var(--blush); color: var(--ink); }
.c-slate { background: var(--slate); color: var(--ink); }
.c-olive { background: var(--olive); color: var(--paper); }
.c-ink { background: var(--dark); color: var(--paper); }
.h-big { font-weight: 700; font-size: var(--step-head); line-height: .95; letter-spacing: -0.02em; max-width: 16ch; }
.h-giant { font-weight: 700; font-size: var(--step-giant); line-height: .9; letter-spacing: -0.03em; }
.h-big + .lead { margin-top: 24px; }
.lead { font-size: var(--step-lead); line-height: 1.3; max-width: 36ch; }

/* Услуги: строки на оси */
.rows-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; min-height: 52svh; align-content: center; }
.rows-head .h-big { grid-column: 5 / span 7; }
.rows-head .lead { grid-column: 5 / span 6; margin-top: 28px; }
.rows { margin-top: 64px; display: grid; gap: 112px; }
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.row-text { grid-column: 5 / span 5; }
.row-text h3 { font-weight: 700; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; margin-bottom: 16px; }
.row-text p { max-width: 38ch; }
.row-img { grid-column: 9 / span 4; justify-self: end; }
.row-img img { background: #000; }
.row-img figcaption { margin-top: 10px; font-size: var(--step-small); }
.row-img { width: 100%; }
.row-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Как работаем: аккордеон */
.how-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.how-intro .h-big { grid-column: 1 / span 5; }
.how-intro .lead { grid-column: 7 / span 5; }
.acc { margin-top: 64px; display: flex; height: 520px; }
.acc-p { --c: var(--olive); position: relative; flex: 1 1 0; min-width: 0; border: 0; padding: 28px; text-align: left; cursor: pointer;
  background: var(--c); color: var(--paper); font: inherit; overflow: hidden; transition: flex-grow .45s var(--ease), flex-basis .45s var(--ease); }
.acc-p:nth-child(2) { --c: #3e4b2e; }
.acc-p:nth-child(3) { --c: #56653f; }
.acc-p:nth-child(4) { --c: #7a8a5f; }
.acc-p:nth-child(5) { --c: #a3b08a; color: var(--ink); }
.acc-p.is-open { flex: 0 0 58%; }
.acc-name { position: absolute; left: 24px; bottom: 24px; font-weight: 700; font-size: var(--step-body); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.acc-body { position: absolute; left: 28px; bottom: 28px; width: min(40ch, calc(100% - 56px)); font-size: var(--step-body); opacity: 0; transition: opacity .3s; }
.acc-p.is-open .acc-name { writing-mode: horizontal-tb; transform: none; top: 28px; bottom: auto; left: 28px; font-size: var(--step-head); letter-spacing: -0.02em; }
.acc-p.is-open .acc-body { opacity: 1; transition-delay: .2s; }
.acc-p:not(.is-open):hover { filter: brightness(1.08); }

/* Работы: неровная стена */
.wall { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile { flex: 1 1 30%; min-width: 260px; }
.tile.t-wide { flex: 1 1 55%; }
.tile a, .tile > img { display: block; overflow: hidden; background: #000; }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.tile a:hover img { transform: scale(1.03); }
.tile figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: var(--step-small); }
.tile figcaption span:last-child { opacity: .7; }
.work-note { margin-top: 48px; max-width: 52ch; font-size: var(--step-lead); line-height: 1.3; }

/* Полоса */
.band { overflow: hidden; padding: 6vh 0 5vh; }
.band-track { display: flex; align-items: center; gap: .35em; width: max-content; font-weight: 700; font-size: 8vw; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; animation: run 40s linear infinite; }
.band-track i { width: .22em; height: .22em; border-radius: 50%; background: var(--sage); flex: none; }
.band-note { padding: 28px var(--m) 0; font-size: var(--step-body); }
@keyframes run { to { transform: translateX(-50%); } }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* Разберите свой бизнес */
.check { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.check-left { grid-column: 1 / span 6; }
.check-right { grid-column: 8 / span 5; display: grid; gap: 20px; align-content: start; position: sticky; top: 96px; }
.check-right img { background: #000; width: 100%; transition: opacity .3s; }
.check-list { margin-top: 40px; display: grid; gap: 8px; }
.check-item label { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: #b4c0c8; cursor: pointer; transition: background-color .2s; }
.check-item label:hover { background: #bfcad1; }
.check-item input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--olive); }
.check-item b { display: block; font-weight: 700; font-size: var(--step-lead); }
.check-item input:checked + span b { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .55; }
.check-score { font-weight: 700; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.check-plan { display: grid; gap: 10px; }
.check-plan li { padding-left: 22px; position: relative; }
.check-plan li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--olive); }

/* Вопросы */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq-h { grid-column: 1 / span 4; position: sticky; top: 96px; align-self: start; }
.faq-list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq-list details { background: #c6d4cb; transition: background-color .25s; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 20px 24px; font-weight: 500; font-size: var(--step-lead); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 28px; line-height: 1; transition: transform .3s var(--ease); }
.faq-list details[open] { background: var(--olive); color: var(--paper); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 24px; max-width: 56ch; }

/* Контакты */
.contact { padding-top: 140px; }
.strip { overflow: hidden; margin-bottom: 72px; }
.strip-track { display: flex; gap: 8px; width: max-content; animation: run 60s linear infinite; }
.strip-track img { height: 150px; width: auto; background: #000; }
.leadform { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--step-small); font-weight: 500; }
.field input { height: 64px; padding: 0 24px; border: 2px solid transparent; border-radius: 999px; background: #e6dbd3; color: var(--ink);
  font: inherit; font-size: var(--step-body); transition: border-color .2s, background-color .2s; }
.field input::placeholder { color: #8a7d74; transition: opacity .15s; }
.field input:focus { outline: none; border-color: var(--olive); background: #f1eae4; }
.field input:focus::placeholder { opacity: 0; }
.lead-btn { min-height: 64px; padding: 0 32px; gap: 10px; white-space: nowrap; }
.lead-btn span { transition: transform .25s var(--ease); }
.lead-btn:hover span { transform: translateX(4px); }
#form-note { margin-top: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.contact-main { grid-column: 1 / span 7; }
.contact-img { grid-column: 9 / span 4; background: #000; width: 100%; }
.contact-get { margin-top: 40px; display: grid; gap: 12px; }
.contact-get li { padding-left: 22px; position: relative; }
.contact-get li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--olive); }
.contact-direct:empty { display: none; }
.contact-direct { margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap; font-size: var(--step-lead); }

/* Подвал */
.foot { padding: 48px 0 32px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; }
.blocks span { flex: 1; height: var(--h); background: var(--paper); color: var(--olive); display: flex; align-items: flex-end; justify-content: center;
  font-weight: 700; font-size: min(15vw, 22svh); line-height: .8; overflow: hidden; }
.blocks span:nth-child(2n) { background: var(--sage); }
.blocks span:nth-child(3n) { background: var(--blush); }
.foot-cols { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.foot-cols nav { grid-column: 1 / span 4; display: grid; gap: 8px; font-size: var(--step-body); }
.foot-cols nav a { text-decoration: none; } .foot-cols nav a:hover { text-decoration: underline; }
.foot-cols p:nth-of-type(1) { grid-column: 5 / span 4; }
.foot-cols p:nth-of-type(2) { grid-column: 9 / span 4; }
.foot-last { margin-top: 48px; display: flex; justify-content: space-between; align-items: center; }

/* Появление частей секций */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .rise.in { opacity: 1; transform: none; }
  .hero-open > * { animation: fadeUp .6s var(--ease) both; }
  .hero-open > :nth-child(2) { animation-delay: .1s; }
  .hero-open > :nth-child(3) { animation-delay: .2s; }
}

/* Планшет и телефон */
@media (max-width: 1100px) {
  .contact-grid > * { grid-column: 1 / -1 !important; }
  .contact-img { max-width: 520px; }
  .leadform { grid-template-columns: 1fr 1fr; }
  .lead-btn { grid-column: 1 / -1; justify-content: center; }
  .hero-open { left: var(--m); right: var(--m); top: auto; bottom: 32px; transform: none; width: auto; }
  .note h2 { font-size: clamp(40px, 9vw, 64px); }
  .row-text { grid-column: 1 / span 6; }
  .row-img { grid-column: 7 / span 6; }
  .rows-head .h-big, .rows-head .lead { grid-column: 1 / span 10; }
  .note { left: var(--m); right: var(--m); top: var(--notes-top, auto); bottom: auto; width: auto; transform: translateY(16px); }
  .note.is-on { transform: none; }
  .bar-links { display: none; }
  .bar .btn { margin-left: auto; }
}
@media (max-width: 760px) {
  .hero-steps { left: var(--m); right: var(--m); bottom: 20px; display: grid; gap: 12px; }
  .hero-steps ol { gap: 4px; justify-content: space-between; }
  .hero-steps li { padding: 6px 8px; font-size: 12.5px; }
  .hero-steps-btn { display: inline-flex; justify-content: center; }
  .hero { height: 1000vh; }
  .chapter { padding: 96px 0; min-height: auto; }
  .rows-head, .row, .how-intro, .check, .faq, .foot-cols { grid-template-columns: 1fr; }
  .rows-head > *, .row > *, .how-intro > *, .check > *, .faq > *, .foot-cols > * { grid-column: 1 / -1 !important; }
  .rows-head { min-height: 40svh; }
  .rows { gap: 64px; }
  .row-img { justify-self: start; }
  .row:nth-child(3n+2) .row-img { justify-self: end; width: 70%; }
  .row:nth-child(3n) .row-img { width: 55%; }
  .acc { flex-direction: column; height: auto; }
  .acc-p { flex: none; min-height: 64px; padding: 20px; }
  .acc-p.is-open { flex: none; padding-bottom: 28px; }
  .acc-name, .acc-p.is-open .acc-name { position: static; writing-mode: horizontal-tb; transform: none; font-size: 18px; }
  .acc-p.is-open .acc-name { font-size: 26px; }
  .acc-body { position: static; display: none; width: auto; margin-top: 12px; font-size: 17px; }
  .acc-p.is-open .acc-body { display: block; }
  .h-giant { font-size: 17vw; }
  .tile, .tile.t-wide { flex-basis: 100%; min-width: 0; }
  .band-track { font-size: 15vw; }
  .check-right { position: static; }
  .faq-h { position: static; font-size: 9vw; }
  .faq-list summary { font-size: 18px; min-height: 64px; }
  .leadform { grid-template-columns: 1fr; }
  .lead-btn { justify-content: center; }
  .contact-grid > * { grid-column: 1 / -1 !important; }
  .strip-track img { height: 110px; }
  .blocks { height: 22svh; }
  .foot-last { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { height: auto; padding-bottom: 96px; }
  .hero-sticky { position: relative; height: auto; overflow: visible; display: grid; gap: 40px; padding: 96px var(--m) 0; }
  #hero-canvas { display: none; }
  .hero-fallback { display: block; position: static; width: 100%; height: auto; }
  .hero-open, .hero-open.is-off { position: static; transform: none; width: auto; opacity: 1; visibility: visible; }
  .note, .note.is-on { position: static; width: auto; max-width: 40rem; opacity: 1; visibility: visible; transform: none; }
}
