/* Генпроект — сайт v5. Цвета и шрифт строго из брендбука: синий #2a6bb7, зелёный #95c03d, Inter */
:root {
  --blue: #2a6bb7;
  --blue-deep: #215893;
  --green: #95c03d;
  --ink: #1f1f1d;
  --muted: #62655f;
  --paper: #ffffff;
  --stone: #f5f5f2;
  --rule: #e2e3de;
  --night: #161614;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --s-section: clamp(80px, 11vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: rgba(42,107,183,.18); color: var(--ink); }
input, select { caret-color: var(--blue); }
.steps span, .start li::before { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.accent { color: var(--blue); }
.todo { background: #fff3c4; color: #6a5300; padding: 0 4px; border-radius: 2px; font-size: .9em; }
.todo--dark { background: #4a4430; color: #ffe9a3; }
.test-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: 11px; letter-spacing: .04em; padding: 3px 8px; border-radius: 2px;
  background: rgba(255,255,255,.85); color: #444;
}

/* Кнопки и ссылки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  font: 500 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--stone); border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--stone); border-color: var(--stone); }
.btn--full { width: 100%; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:active { transform: translateY(1px); }
.btn--wa { background: #1f7a4d; border-color: #1f7a4d; margin-top: 12px; }
.link {
  display: inline-block; color: var(--ink); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 1px; transition: color .2s, border-color .2s;
}
.link::after { content: " →"; }
.link:hover { color: var(--blue); border-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-solid { border-bottom-color: var(--rule); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 72px; }
.header__logo img { width: 174px; height: auto; }
.header__nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.header__nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.header__nav a:hover { color: var(--ink); }

/* Первый экран */
.hero { padding-top: clamp(32px, 4.5vw, 64px); }
.hero h1 { font-size: clamp(36px, 4.8vw, 68px); max-width: 21ch; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 28px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.hero__photo { position: relative; margin: clamp(32px, 4vw, 48px) 0 0; }
.hero__photo img { width: 100%; height: min(78vh, 760px); object-fit: cover; object-position: center 62%; }
.trust {
  list-style: none; color: var(--ink); display: flex; flex-wrap: wrap; gap: 12px 40px;
  padding: 0; margin: 28px 0 0;
  font-size: 14px; color: var(--muted);
}
.trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: middle; }

/* Крупная мысль */
.statement { padding: var(--s-section) 0; border-top: 1px solid var(--rule); }
.statement__text { font-size: clamp(28px, 4vw, 52px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 22ch; }

/* Фото + текст */
.split { padding-bottom: var(--s-section); }
.split__in { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__photo { position: relative; margin: 0; }
.split__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__text h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }
.versus { display: grid; gap: 0; margin: 32px 0; border-top: 1px solid var(--rule); }
.versus > div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.versus h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.versus p { color: var(--muted); font-size: 16px; }
.versus__good h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: middle; }

/* Секции */
.section { padding: var(--s-section) 0; }
.section--stone { background: var(--stone); }
.section__title { font-size: clamp(32px, 4vw, 56px); margin-bottom: clamp(40px, 5vw, 64px); max-width: 18ch; }

/* Карточки аудитории */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 36px 0;
  text-decoration: none; border-right: 1px solid var(--rule);
}
.card + .card { padding-left: 32px; }
.card:last-child { border-right: 0; }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); flex: 1; }
.card:hover .link { color: var(--blue); border-color: var(--blue); }

/* Объекты */
.objects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.object { margin: 0; }
.object__img { position: relative; overflow: hidden; }
.object__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.object:hover .object__img img { transform: scale(1.03); }
.object figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 15px; }
.object figcaption b { font-weight: 500; font-size: 18px; }
.object figcaption span { color: var(--muted); }
.object figcaption .todo { color: #6a5300; }
.objects__more { margin-top: 48px; color: var(--muted); }


/* Широкое фото с текстом */
.band { position: relative; background: var(--night); min-height: min(86vh, 820px); display: flex; align-items: flex-end; color: #fff; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.band .test-tag { top: 12px; bottom: auto; }
.band__text { position: relative; z-index: 1; width: 100%; padding: 0 0 clamp(40px, 6vw, 80px); }
.band h2 { font-size: clamp(32px, 4.4vw, 60px); max-width: 16ch; margin-bottom: 16px; }
.band p { max-width: 44ch; margin-bottom: 28px; color: rgba(255,255,255,.88); }

/* Этапы */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 24px 20px 0 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.steps span { font-size: 13px; color: var(--muted); }
.steps h3 { font-size: 22px; margin: 28px 0 8px; }
.steps p { font-size: 15px; color: var(--muted); }
.steps li:nth-child(4) span::after, .steps li:nth-child(5) span::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: 8px; vertical-align: middle; }
.steps__note { margin-top: 48px; color: var(--muted); max-width: 70ch; }

/* Вопросы */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.faq .section__title { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 19px; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }

/* Заявка */
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.contact h2 { font-size: clamp(36px, 4.6vw, 64px); margin-bottom: 16px; }
.contacts { margin: 40px 0 0; border-top: 1px solid var(--rule); }
.contacts > div { display: grid; grid-template-columns: 120px 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contacts dt { color: var(--muted); font-size: 15px; }
.contacts dd { margin: 0; }
.contacts a { text-decoration: none; }
.lead-form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(42,107,183,.15); }
.field.is-invalid input { border-color: #c0392b; }
.field__err { color: #b3261e; font-size: 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.consent.is-invalid { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 20px; border-radius: var(--radius); background: var(--stone); }
.form-status--err { background: #fdecea; }
.form__hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Подвал */
.footer { background: var(--night); color: rgba(255,255,255,.7); padding: 64px 0 40px; font-size: 15px; }
.footer__in { display: grid; gap: 20px; }
.footer img { width: 174px; }
.footer a { color: #fff; }
.footer__small { font-size: 13px; color: rgba(255,255,255,.5); }

/* Липкая кнопка на телефоне */
.cta-bar { display: none; }

/* Единственный авторский момент: главное фото раскрывается при загрузке. Остальные блоки видны сразу */
@keyframes hero-in { from { clip-path: inset(0 0 0 100%); transform: scale(1.04); } to { clip-path: inset(0); transform: none; } }
.hero__photo img { animation: hero-in 1.3s cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo img { animation: none; }
  .object__img img { transition: none; }
}

/* Планшет */
@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__in { justify-content: space-between; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .split__in, .contact__in, .faq { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
  .steps span { grid-row: span 2; padding-top: 4px; }
  .steps h3 { margin: 0 0 4px; }
}

/* Телефон */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__in { height: 64px; }
  .header__logo img { width: 140px; }
  .header .btn--sm { display: none; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 13px; margin-top: 24px; }
  .trust li::before { margin-right: 8px; }
  .hero__photo img { height: 58vh; object-position: 40% 70%; }
  .objects { grid-template-columns: 1fr; }
    .object figcaption { flex-direction: column; gap: 2px; }
  .band { min-height: 78vh; }
  .band::after { background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.82) 75%); }
  .contacts > div { grid-template-columns: 96px 1fr; }
  .cta-bar {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: translateY(140%); transition: transform .3s;
  }
  .cta-bar.is-on { transform: none; }
  .footer { padding-bottom: 100px; }
}

/* Шаги до старта */
.start { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.start li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; }
.start li::before { content: counter(s); font-size: 13px; color: var(--muted); width: 20px; }
.start b { font-weight: 500; }

/* Компьютер: фото слева на ~55% ширины до края экрана, текст справа на белом */
@media (min-width: 961px) {
  .hero { display: grid; grid-template-columns: 55% 45%; padding-top: 0; min-height: calc(100vh - 72px); }
  .hero__photo { grid-column: 1; grid-row: 1; margin: 0; }
  .hero__photo img { height: 100%; min-height: 600px; max-height: 1000px; object-position: 22% 100%; }
  .hero__text { grid-column: 2; grid-row: 1; max-width: none; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px var(--gutter) 64px clamp(40px, 4.5vw, 72px); }
  .hero h1 { font-size: clamp(38px, 3.5vw, 56px); max-width: 13ch; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 24px; }
  .hero .trust { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 32px; font-size: 15px; color: var(--ink); }
}

/* Состав работ под объектом */
.object figcaption { flex-direction: column; gap: 12px; }
.object__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.object__facts dt { font-size: 13px; color: var(--muted); }
.object__facts dd { margin: 2px 0 0; font-size: 15px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: middle; }
