/* =========================================================
   Завод Домов — LP «Дом из СИП панелей»
   Pixel-perfect адаптивная вёрстка
   Reference: desktop 1200 · breakpoints 960 / 768 / 480
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --c-ink:      #101010;
  --c-ink-2:    #282828;
  --c-muted:    #949494;
  --c-line:     #e5e5e5;
  --c-bg:       #f7f7f7;
  --c-white:    #ffffff;
  --c-dark:     #1f1f1f;
  --c-dark-2:   #282828;
  --c-blue:     #5f8cff;
  --c-yellow:   #ffc500;
  --c-bubble:   #fff093;

  --grad-gold:  linear-gradient(0deg, #f6c45d 0%, #fff093 100%);

  --radius-card:  15px;
  --radius-panel: 25px;
  --radius-btn:   10px;
  --radius-field: 7px;
  --radius-pill:  30px;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 78px;

  --shadow-card: 0 14px 40px rgba(20, 20, 20, .07);
  --shadow-pop:  0 30px 80px rgba(0, 0, 0, .28);

  --ff: "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.19, 1, .22, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, figure, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
select, input, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(95, 140, 255, .55); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--c-ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 76px; }
.catalog { padding-bottom: 100px; }
.section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.section__head--bordered { border-top: 1px solid color-mix(in srgb, var(--c-ink) 50%, transparent); padding-top: 60px; }
.section__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--c-ink);
  max-width: 20ch;
  text-wrap: balance;
}
.section__nav-btn { flex: none; margin-top: 6px; }

/* ---------- Placeholders ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #ececec;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,.045) 0 12px,
      rgba(0,0,0,0) 12px 24px);
  color: #8a8a8a;
}
.ph__label {
  font-family: "SFMono-Regular", ui-monospace, "Menlo", "Consolas", monospace;
  font-size: 12px;
  letter-spacing: .02em;
  padding: 6px 10px;
  background: rgba(255,255,255,.72);
  border-radius: 6px;
  text-align: center;
  color: #6d6d6d;
}
.ph--icon { background-color: #eef2ff; }
.ph--avatar { border-radius: 50%; }

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 14px;
  --btn-px: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  border: 0;
  border-radius: var(--radius-btn);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--gold {
  background-image: var(--grad-gold);
  color: var(--c-ink);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(246, 196, 93, .38);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(246, 196, 93, .5); }
.btn--gold:active { transform: translateY(0); }
.btn--lg { --btn-py: 22px; --btn-px: 34px; font-size: 16px; max-width: 360px; }
.btn--block { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid rgba(16, 16, 16, .28);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn--ghost:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.btn--pill {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid rgba(16, 16, 16, .2);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
}
.btn--pill:hover { background: var(--c-yellow); border-color: var(--c-yellow); }

.btn--outline {
  background: #fff;
  color: var(--c-blue);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-field);
  font-weight: 600;
  font-size: 15px;
}
.btn--outline:hover { border-color: var(--c-blue); }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--c-blue);
  font: inherit; font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: #3f6ff0; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: relative;
  z-index: 20;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { display: block; height: 50px; width: auto; }
.logo__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--c-ink);
  color: var(--c-yellow);
  border-radius: 10px;
  font-weight: 800; font-size: 15px; letter-spacing: .04em;
}
.logo__text { font-weight: 800; font-size: 15px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.header__logo:hover .logo__mark { background: var(--c-blue); color: #fff; }

.header__tagline {
  max-width: 220px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--c-ink-2);
}
.header__stat {
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  color: var(--c-ink-2);
}
.header__stat-accent { color: var(--c-muted); }

.header__contacts { display: flex; flex-direction: column; gap: 4px; }
.header__phone { font-size: 24px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.header__hours { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-ink-2); }
.header__dot { width: 8px; height: 8px; border-radius: 50%; background: #35c463; box-shadow: 0 0 0 3px rgba(53,196,99,.2); }

.header__cta { white-space: nowrap; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: -92px;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  background: linear-gradient(180deg, #fbfbfb 0%, #f4f4f4 100%);
  z-index: -3;
}
.hero__media {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  height: 732px;
  border-bottom-left-radius: 0;
  z-index: -2;
  background: url(../uploads/hero.webp) center / cover no-repeat;
}
.hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 70%;
  height: 732px;
  background: linear-gradient(90deg, rgba(247,247,247,.96) 0%, rgba(247,247,247,.86) 42%, rgba(247,247,247,.55) 72%, rgba(247,247,247,0) 100%);
  z-index: -1;
}
.hero__inner { position: relative; }
.hero__content { max-width: 840px; padding-top: 60px; }
.hero__title {
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--c-ink-2);
  max-width: 17ch;
  text-wrap: balance;
}
.hero__title-strong { font-weight: 800; }
.h-strong { font-weight: 800; }
.hero__subtitle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 700px;
  margin-top: 26px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-ink-2);
}
.hero__hand { font-size: 34px; line-height: 1; flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 40px; }
.hero__cta { text-transform: none; text-align: left; line-height: 1.25; font-weight: 800; font-size: 19px; }
.hero__cta-note { max-width: 240px; font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--c-ink); }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 72px;
}
.feature {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 20px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(16, 20, 40, .07);
}
.feature__num {
  grid-column: 2;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-blue);
}
.feature__icon {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 80px; height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.feature__icon--1 { background-image: url(../uploads/icon-1.webp); }
.feature__icon--2 { background-image: url(../uploads/icon-2.webp); }
.feature__icon--3 { background-image: url(../uploads/icon-3.webp); }
.feature__text {
  grid-column: 2;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-ink);
}

/* =========================================================
   BANNER (3 варианта)
   ========================================================= */
.banner { background: var(--c-bg); }
.banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 96px;
}
.banner__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.01em;
  max-width: 20ch;
  text-wrap: balance;
}
.banner__btn { flex: none; }

/* =========================================================
   QUIZ
   ========================================================= */
.quiz { background: var(--c-bg); padding-bottom: 90px; position: relative; }
.quiz::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 4vw; min-height: 26px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.quiz__card {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 600px;
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: 0 0 50px -10px rgba(93,93,93,.12);
  overflow: hidden;
}

/* consultant aside */
.quiz__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 30px;
  background: var(--c-dark);
  color: #fff;
}
.consultant { display: flex; align-items: center; gap: 14px; }
.consultant__avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; background: #3a3a3a url(../uploads/victoria.jpg) center / cover no-repeat; }
.consultant__name { font-size: 17px; font-weight: 700; }
.consultant__role { font-size: 13px; color: rgba(255,255,255,.6); }
.consultant__bubble {
  position: relative;
  background: var(--c-bubble);
  color: var(--c-ink);
  font-size: 15px;
  line-height: 1.4;
  padding: 16px 18px;
  border-radius: 4px 16px 16px 16px;
}
.quiz__aside-hint { font-size: 13px; color: rgba(255,255,255,.55); margin-top: auto; }
.quiz__aside-actions { display: flex; gap: 10px; }
.quiz__aside-messenger {
  font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,.85);
}

/* quiz main */
.quiz__main { display: flex; flex-direction: column; padding: 34px 40px 30px; }
.quiz__progress { margin-bottom: 26px; }
.quiz__step-label { font-size: 14px; font-weight: 700; color: var(--c-ink); margin-bottom: 10px; }
.quiz__bar { height: 6px; background: #eef0f3; border-radius: 100px; overflow: hidden; }
.quiz__bar-fill {
  display: block; height: 100%;
  width: 16.66%;
  background: var(--c-blue);
  border-radius: 100px;
  transition: width .35s var(--ease);
}

.quiz__steps { flex: 1; position: relative; }
.quiz__step { display: none; animation: fadeStep .35s var(--ease); }
.quiz__step.is-active { display: block; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.quiz__question {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.quiz__hint { font-size: 15px; color: var(--c-muted); margin-bottom: 22px; }

/* option cards (image select) */
.options--cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.opt-card { position: relative; cursor: pointer; }
.opt-card__input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: border-color .18s var(--ease);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.opt-card__media--1 { background-image: url(../uploads/quiz-1-1.webp); }
.opt-card__media--2 { background-image: url(../uploads/quiz-1-2.webp); }
.opt-card__media--3 { background-image: url(../uploads/quiz-1-3.webp); }
.opt-card__media--4 { background-image: url(../uploads/quiz-1-4.webp); }
.opt-card__media--5 { background-image: url(../uploads/quiz-1-5.webp); }
.opt-card__label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--c-ink);
}
.opt-card:hover .opt-card__media { border-color: #c9d6ff; }
.opt-card__input:checked ~ .opt-card__media {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(95,140,255,.2);
}
.opt-card__input:focus-visible ~ .opt-card__media { outline: 3px solid rgba(95,140,255,.55); outline-offset: 2px; }

/* option list (radios) */
.options--list { display: grid; gap: 12px; margin-top: 22px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-field);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.opt:hover { border-color: #c9d6ff; }
.opt__input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt__box {
  flex: none;
  width: 22px; height: 22px;
  border: 2px solid #cdd2da;
  border-radius: 50%;
  position: relative;
  transition: border-color .18s var(--ease);
}
.opt__box::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--c-blue);
  transform: scale(0);
  transition: transform .18s var(--ease);
}
.opt__label { font-size: 18px; line-height: 1.2; color: var(--c-ink); }
.opt__input:checked ~ .opt__box { border-color: var(--c-blue); }
.opt__input:checked ~ .opt__box::after { transform: scale(1); }
.opt:has(.opt__input:checked) { border-color: var(--c-blue); background: rgba(95,140,255,.05); }
.opt__input:focus-visible ~ .opt__box { outline: 3px solid rgba(95,140,255,.55); outline-offset: 2px; }

/* uploader */
.uploader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  margin-top: 22px;
  padding: 44px 20px;
  border: 2px dashed #cdd2da;
  border-radius: 12px;
  text-align: center;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.uploader:hover { border-color: var(--c-blue); background: rgba(95,140,255,.04); }
.uploader__input { position: absolute; opacity: 0; width: 0; height: 0; }
.uploader__icon { color: var(--c-blue); }
.uploader__title { font-size: 18px; font-weight: 600; }
.uploader__sub { font-size: 14px; color: var(--c-muted); }

/* contacts step */
.quiz__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }

/* nav */
.quiz__nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quiz__prev { min-width: 120px; }
.quiz__next, .quiz__submit { min-width: 200px; margin-left: auto; }
/* contacts step: primary CTA on the left, borderless "Назад" on the right */
.quiz__nav:has(.quiz__submit:not([hidden])) .quiz__submit { order: -1; margin-left: 0; margin-right: auto; }
.quiz__nav:has(.quiz__submit:not([hidden])) .quiz__prev { background: transparent; border-color: transparent; }
.quiz__nav:has(.quiz__submit:not([hidden])) .quiz__prev:hover { border-color: transparent; }

/* fields */
.field { display: block; }
.field--fill { flex: none; }
.cta-form__form .field--fill { flex: 1 1 220px; }
.field__input,
.field__select {
  width: 100%;
  padding: 15px 18px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-field);
  color: var(--c-ink);
  transition: border-color .18s var(--ease);
}
.field__input::placeholder { color: #a9adb5; }
.field__input:focus, .field__select:focus { border-color: var(--c-blue); outline: none; }
.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235f8cff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.field__phone { display: flex; align-items: center; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-field); overflow: hidden; }
.field__phone:focus-within { border-color: var(--c-blue); }
.field__prefix { padding: 15px 4px 15px 18px; color: var(--c-ink); }
.field__phone .field__input { border: 0; border-radius: 0; padding-left: 8px; }
.field__phone .field__input:focus { border: 0; }

/* consent */
.consent { display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 18px; cursor: pointer; }
.consent__input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid #cdd2da; border-radius: 5px;
  position: relative; background: #fff;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.consent__box::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .18s var(--ease);
}
.consent__input:checked ~ .consent__box { background: var(--c-blue); border-color: var(--c-blue); }
.consent__input:checked ~ .consent__box::after { transform: rotate(45deg) scale(1); }
.consent__input:focus-visible ~ .consent__box { outline: 3px solid rgba(95,140,255,.55); outline-offset: 2px; }
.consent__text { font-size: 13px; color: var(--c-ink-2); line-height: 1.35; }
.consent--muted .consent__text { color: var(--c-muted); font-size: 12px; }

/* =========================================================
   PROJECTS
   ========================================================= */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.project {
  position: relative;
  height: 350px;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.project__media { position: absolute; inset: 0; }
.project::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(31,31,31,0) 62%);
  pointer-events: none;
}
.project__body { position: absolute; left: 40px; right: 40px; bottom: 34px; z-index: 1; color: #fff; }
.project__name { font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.15; }
.project__meta { margin-top: 10px; font-size: 14px; line-height: 1.35; color: rgba(255,255,255,.86); }
.projects__more { text-align: center; margin-top: 40px; font-size: 20px; color: var(--c-ink); }
.projects__hand { margin-right: 6px; }

/* =========================================================
   CATALOG / OFFERS
   ========================================================= */
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.offer {
  position: relative;
  min-height: 433px;
  border-radius: var(--radius-card);
  padding: 58px;
  overflow: visible;
  display: flex;
}
.offer--dark { background: var(--c-dark-2); color: #fff; }
.offer--light { background: var(--c-bg); color: var(--c-ink); }
.offer__text { position: relative; z-index: 2; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.offer__title { font-size: 24px; font-weight: 500; line-height: 1.22; }
.offer__desc { font-size: 18px; font-weight: 500; line-height: 1.3; }
.offer--dark .offer__desc { color: rgba(255,255,255,.82); }
.offer--light .offer__desc { color: var(--c-ink-2); }
.offer__text .btn { align-self: flex-start; margin-top: auto; margin-bottom: 22px; padding: 24px 36px; font-size: 16px; }
.offer__media {
  position: absolute;
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
}
.offer__media--catalog {
  left: 0; right: -34px; bottom: 0; top: auto;
  aspect-ratio: 832 / 326;
  background-image: url(../uploads/catalogue.webp);
  background-position: left bottom;
}
.offer__media--render {
  left: auto; right: -30px; bottom: 0; top: auto;
  width: 66%;
  aspect-ratio: 782 / 546;
  background-image: url(../uploads/mockup.webp);
  background-position: right bottom;
}

/* =========================================================
   PRODUCTION
   ========================================================= */
.production { background: var(--c-bg); padding-top: 0; overflow: hidden; }
.production__strip { padding-top: 60px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.production__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.production__track:hover { animation-play-state: paused; }
.production__photo { flex: none; width: 360px; height: 200px; border-radius: var(--radius-card); background-size: cover; background-position: center; background-repeat: no-repeat; }
.production__photo--1 { background-image: url(../uploads/ph1.webp); }
.production__photo--2 { background-image: url(../uploads/ph2.webp); }
.production__photo--3 { background-image: url(../uploads/ph3.webp); }
.production__photo--4 { background-image: url(../uploads/ph4.webp); }
.production__photo--5 { background-image: url(../uploads/ph5.webp); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-380px * 5)); } }

.production__inner { padding-top: 76px; padding-bottom: 76px; }
.production__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.production__head .section__title { max-width: 14ch; }
.production__btn { flex: none; max-width: 340px; text-align: center; font-weight: 800; }
.production__lead { margin-top: 30px; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.3; color: var(--c-ink-2); max-width: 42ch; }

/* =========================================================
   ADVANTAGES + FINAL FORM
   ========================================================= */
.advantages { background: var(--c-bg); overflow-x: clip; position: relative; }
.advantages > .container { position: relative; z-index: 1; }
.advantages__hero { position: relative; min-height: 560px; padding-bottom: 130px; }
.advantages__media {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: 0;
  border-radius: var(--radius-panel);
  background: url(../uploads/background.webp) center / cover no-repeat;
}
.advantages__media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.5) 42%, rgba(255,255,255,0) 74%);
}
.advantages__hero-content {
  position: absolute; top: 54px; left: 54px; right: 54px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  z-index: 2;
}
.advantages__title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 16ch;
  color: var(--c-ink);
  text-wrap: balance;
}
.advantages__nav-btn { flex: none; background: rgba(255,255,255,.7); }

.adv-cards {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  z-index: 3;
}
.adv-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}
.adv-card__icon {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  margin-bottom: 22px;
}
.adv-card__title { font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.adv-card__text { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--c-ink); }

/* final cta form */
.cta-form {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 48px 60px 40px;
  box-shadow: var(--shadow-card);
  margin-top: 30px;
}
.cta-form__title { font-size: clamp(22px, 2.4vw, 33px); font-weight: 800; line-height: 1.15; }
.cta-form__desc { margin-top: 14px; font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: var(--c-ink); }
.cta-form__form { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.cta-form__submit { flex: none; padding: 22px 34px; }
.cta-form .consent { margin-top: 16px; }
.cta-form__form .consent { flex-basis: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--c-bg); padding-block: 40px 60px; }
.footer__nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(16,16,16,.9);
}
.footer__link {
  font-size: 15px; font-weight: 500;
  padding: 10px 18px;
  border: 1px solid rgba(16,16,16,.16);
  border-radius: var(--radius-pill);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.footer__link:hover { background: var(--c-yellow); border-color: var(--c-yellow); }
.footer__phone { margin-left: auto; font-size: 24px; font-weight: 800; }
.footer__phone:hover { color: var(--c-blue); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px;
  padding-top: 22px;
}
.footer__copy { font-size: 14px; color: var(--c-ink-2); font-weight: 600; }
.footer__rights { flex: 1 1 380px; font-size: 14px; color: var(--c-muted); line-height: 1.4; }
.footer__policy { font-size: 14px; color: var(--c-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer__policy:hover { color: var(--c-blue); }

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
.scroll-top {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 60;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--c-ink);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.scroll-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--c-yellow); color: var(--c-ink); }

/* =========================================================
   MODALS
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal[hidden] { display: none; }
.modal__overlay { position: fixed; inset: 0; background: rgba(10,12,20,.6); backdrop-filter: blur(2px); animation: fadeIn .2s var(--ease); }
.modal__box {
  position: relative;
  margin: auto;
  width: 100%; max-width: 440px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 44px 40px 36px;
  box-shadow: var(--shadow-pop);
  animation: popIn .28s var(--ease);
  overflow: hidden;
}
.modal__box--media { max-width: 520px; padding: 0; }
.modal__media { height: 200px; background: url(../uploads/catalog.webp) center / cover no-repeat; }
.modal__content { padding: 32px 40px 36px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.9);
  border: 0; border-radius: 50%;
  color: var(--c-ink);
}
.modal__box--media .modal__close { background: rgba(0,0,0,.4); color: #fff; }
.modal__close:hover { background: var(--c-ink); color: #fff; }
.modal__title { font-size: 26px; font-weight: 700; line-height: 1.15; color: #052443; }
.modal__desc { margin-top: 12px; font-size: 15px; line-height: 1.4; color: #4a5b6d; }
.modal__form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.modal__note { font-size: 12px; color: var(--c-muted); text-align: center; line-height: 1.35; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

body.is-locked { overflow: hidden; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 200;
  max-width: min(92vw, 460px);
  padding: 15px 22px;
  background: var(--c-ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE — 1200 / 960 / 768 / 480
   ========================================================= */
@media (min-width: 1200px) {
  .header__inner { position: relative; }
  .header__stat { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .header__contacts { margin-left: auto; }
}

@media (max-width: 1199px) {
  .header__inner { flex-wrap: nowrap; gap: 24px; }
  .header__tagline { display: none; }
  .header__stat { margin-left: auto; margin-inline-end: 0; text-align: right; }
  .header__cta { margin-left: 0; }
  .hero__media { width: 100%; }
  .offer { min-height: 430px; overflow: hidden; }
  .offer__text { max-width: 100%; padding-bottom: 96px; }
  .offer__text .btn { margin-top: 22px; margin-bottom: 0; }
  .offer__media { left: 0; right: 0; bottom: 0; top: auto; width: 100%; }
  .offer__media--catalog { height: 168px; aspect-ratio: auto; background-position: center bottom; background-size: contain; }
  .offer__media--render { height: 244px; aspect-ratio: auto; background-position: center bottom; background-size: contain; }
}

@media (max-width: 940px) {
  .header__stat { display: none; }
  .header__contacts { margin-left: auto; }
}

@media (max-width: 960px) {
  .section { padding-block: 60px; }
  .hero { margin-top: 0; padding-top: 18px; }
  .hero__media { width: 100%; height: 420px; opacity: .5; border-bottom-left-radius: 0; }
  .hero__overlay { width: 100%; height: 420px; background: linear-gradient(180deg, rgba(247,247,247,.6) 40%, #f7f7f7 100%); }
  .hero__content { padding-top: 30px; }
  .features { gap: 24px; margin-top: 56px; }

  .banner__inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .quiz__card { grid-template-columns: 1fr; }
  .quiz__aside { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 24px; }
  .quiz__aside-hint { margin-top: 0; flex-basis: 100%; }
  .consultant__bubble { flex: 1 1 260px; }
  .quiz__aside-actions { margin-left: auto; }

  .offer { padding: 40px; }

  .production__head { flex-direction: column; }
  .production__btn { max-width: none; width: 100%; }

  .advantages__hero { min-height: 0; padding: 40px 24px; }
  .advantages__hero-content { position: static; padding: 0; margin-bottom: 22px; }
  .adv-cards { position: static; margin-top: 24px; }
  .cta-form { margin-top: 24px; }
}

@media (max-width: 768px) {
  .header__tagline, .header__stat { display: none; }
  .header__contacts { margin-left: auto; }
  .section__head { flex-direction: column; }
  .section__title { max-width: none; }
  .banner__title,
  .production__head .section__title,
  .projects__title,
  .advantages__title,
  #hero-title { max-width: none; }
  .hero__cta { width: 100%; max-width: none; text-align: center; justify-content: center; }
  .hero__cta-note { max-width: none; width: 100%; text-align: center; }
  .hero__actions { justify-content: center; }
  .btn--lg { width: 100%; max-width: none; }
  .features { grid-template-columns: 1fr; gap: 8px; }
  .feature { grid-template-columns: 64px 1fr; }
  .feature__icon { width: 64px; height: 64px; }

  .options--cards { grid-template-columns: repeat(2, 1fr); }
  .quiz__main { padding: 28px 24px; }
  .quiz__contacts { grid-template-columns: 1fr; }

  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .offer-grid { grid-template-columns: 1fr; gap: 24px; }
  .adv-cards { grid-template-columns: 1fr; gap: 16px; }

  .advantages__hero-content { flex-direction: column; margin-bottom: 20px; }
  .advantages__media::after { background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 45%, rgba(255,255,255,.32) 100%); }

  .cta-form { padding: 32px 24px; }
  .cta-form__form { flex-direction: column; }
  .cta-form__form .field--fill { flex: none; }
  .cta-form__submit { width: 100%; }

  .footer__phone { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .header__phone { font-size: 20px; }
  .header__contacts { align-items: flex-end; }
  .header__cta { width: 100%; }
  .quiz__aside { flex-direction: column; align-items: stretch; }
  .quiz__aside-actions { margin-left: 0; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 19px; }
  .hero__cta { width: 100%; max-width: none; }
  .hero__actions { gap: 16px; }
  .btn--lg { max-width: none; width: 100%; }

  .options--cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opt__label { font-size: 16px; }
  .quiz__question { font-size: 20px; }
  .quiz__nav { flex-wrap: wrap; }
  .quiz__next, .quiz__submit { min-width: 0; width: 100%; margin-left: 0; }
  .quiz__prev { width: 100%; }

  .project { height: 280px; }
  .project__body { left: 24px; right: 24px; bottom: 24px; }
  .offer { padding: 28px 22px; }
  .modal__box { padding: 40px 24px 30px; }
  .modal__content { padding: 26px 24px 30px; }
  .modal__title { font-size: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .production__track { animation: none; }
}

/* =========================================================
   PROMO — projects sale (heading, badges, card price, modal)
   ========================================================= */
.hl {
  background-image: var(--grad-gold);
  color: var(--c-ink);
  padding: .02em .3em;
  border-radius: 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.projects__title { max-width: 22ch; }
.projects__title .hl { display: inline-block; margin-top: 10px; }

/* card badge */
.project__badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background-image: var(--grad-gold);
  color: var(--c-ink);
  font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 6px 18px rgba(246,196,93,.55);
}
.project__badge::before { content: "★"; font-size: 12px; line-height: 1; }

/* stronger gradient so price + cta stay legible */
.project::after { background: linear-gradient(0deg, rgba(0,0,0,.88) 4%, rgba(0,0,0,.4) 46%, rgba(0,0,0,0) 80%); }

/* card price */
.project__price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.project__price-old { font-size: 15px; color: rgba(255,255,255,.62); text-decoration: line-through; }
.project__price-new { font-size: 23px; font-weight: 800; color: #fff; letter-spacing: -.01em; }

.project__cta {
  display: inline-block; margin-top: 14px;
  font-size: 14px; font-weight: 700; color: var(--c-yellow);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

/* whole-card click target */
.project { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.project__media { transition: transform .5s var(--ease); }
.project:hover { transform: translateY(-4px); box-shadow: 0 24px 52px rgba(0,0,0,.24); }
.project:hover .project__media { transform: scale(1.05); }
.project:hover .project__cta { color: #fff; transform: translateX(3px); }
.project__open {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  background: transparent; border: 0;
  border-radius: var(--radius-card); cursor: pointer;
}
.project__open:focus-visible { outline: 3px solid var(--c-blue); outline-offset: -3px; }

/* ---------- Project modal ---------- */
.modal__box--project { max-width: 1000px; padding: 0; }
.pmodal { display: grid; grid-template-columns: 1.05fr 1fr; }

.pmodal__gallery { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: #f2f2f2; }
.pmodal__stage { aspect-ratio: 4 / 3; border-radius: 12px; }
.pmodal__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pmodal__thumb {
  aspect-ratio: 1 / 1; padding: 0;
  border: 2px solid transparent; border-radius: 9px;
  cursor: pointer;
}
.pmodal__thumb-tag {
  font-family: ui-monospace, "Menlo", "Consolas", monospace;
  font-size: 11px; color: #6d6d6d;
  background: rgba(255,255,255,.78); padding: 3px 7px; border-radius: 5px;
}
.pmodal__thumb.is-active { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(95,140,255,.18); }
.pmodal__thumb:focus-visible { outline: 3px solid rgba(95,140,255,.55); outline-offset: 2px; }

.pmodal__info { display: flex; flex-direction: column; padding: 40px 42px 36px; }
.pmodal__badge { position: static; align-self: flex-start; margin-bottom: 16px; }
.pmodal__title { font-size: 28px; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; color: var(--c-ink); }
.pmodal__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pmodal__specs li { font-size: 13px; font-weight: 600; color: var(--c-ink-2); background: var(--c-bg); border-radius: 100px; padding: 7px 14px; }
.pmodal__desc { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--c-ink-2); }

.pmodal__price {
  margin-top: 22px; padding: 18px 22px;
  background: #fffbea; border: 1px solid #ffe6a1; border-radius: 12px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
}
.pmodal__price-old { font-size: 18px; color: var(--c-muted); text-decoration: line-through; }
.pmodal__price-new { font-size: 34px; font-weight: 800; color: var(--c-ink); letter-spacing: -.02em; }
.pmodal__price-tag { flex-basis: 100%; margin-top: 2px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #cf8a00; }

.promo { margin-top: 24px; }
.promo__head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--c-ink); }
.promo__spark { color: #f0a500; }
.promo__text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--c-ink-2); }
.promo__gifts-label { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--c-ink); }
.promo__gifts-label strong { color: #cf8a00; }

.gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.gift-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--c-line); border-radius: 11px;
  background: #fff;
}
.gift-card__media { flex: none; width: 60px; height: 60px; border-radius: 8px; }
.gift-card__media .ph__label { font-size: 9px; padding: 2px 5px; }
.gift-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gift-card__badge { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #cf8a00; }
.gift-card__title { font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--c-ink); }
.gift-card__desc { font-size: 12px; line-height: 1.35; color: var(--c-ink-2); }

.pmodal__form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.pmodal__form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pmodal__form .field--fill { flex: none; }

@media (max-width: 860px) {
  .modal__box--project { max-width: 560px; }
  .pmodal { grid-template-columns: 1fr; }
  .pmodal__gallery { padding: 22px; }
  .pmodal__info { padding: 28px 24px 30px; }
}
@media (max-width: 560px) {
  .gifts { grid-template-columns: 1fr; }
  .pmodal__form-row { grid-template-columns: 1fr; }
  .pmodal__title { font-size: 23px; }
  .pmodal__price-new { font-size: 28px; }
  .pmodal__thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   REVISIONS — controlled line breaks, quiz swap, policy, pmodal
   ========================================================= */

/* forced line breaks: desktop only */
.d-br { display: none; }
.projects__title-line { display: block; }

@media (min-width: 900px) {
  .d-br { display: inline; }
  #hero-title { max-width: none; }
  .hero__subtitle { max-width: 780px; }
  #banner-title,
  #catalog-title,
  #production-title,
  #advantages-title,
  #projects-title { max-width: none; }
  .cta-form__title { white-space: nowrap; }
}

/* advantages: full-bleed background image now spans the whole section (see base rules) */

/* quiz: consultant column on the right, quiz on the left */
@media (min-width: 961px) {
  .quiz__card { grid-template-columns: 1fr 340px; }
  .quiz__main  { grid-column: 1; grid-row: 1; }
  .quiz__aside { grid-column: 2; grid-row: 1; }
}

/* quiz contacts: narrower form, fields on one row */
@media (min-width: 769px) {
  .quiz__step--contacts { max-width: 80%; }
  .quiz__contacts { grid-template-columns: 1fr; }
}

/* skip-step link */
.quiz__skip-row { text-align: center; margin-top: 16px; }
.quiz__skip { font-size: 15px; }

/* policy link inside consent text */
.policy-link {
  display: inline;
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--c-blue);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
.policy-link:hover { color: #3f6ff0; }
.consent.is-invalid .consent__box { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.15); }

/* privacy policy modal — always sits above any other active modal */
#popup-policy { z-index: 140; }
.modal__box--policy { max-width: 720px; }
.policy {
  margin-top: 18px;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding: 18px 14px 4px 0;
  border-top: 1px solid var(--c-line);
}
.policy > *:first-child { margin-top: 0; }
.policy h3 { font-size: 16px; font-weight: 700; color: var(--c-ink); margin: 20px 0 6px; }
.policy p { font-size: 14px; line-height: 1.55; color: var(--c-ink-2); margin-bottom: 10px; }
.policy ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.policy li { font-size: 14px; line-height: 1.5; color: var(--c-ink-2); margin-bottom: 6px; }
.policy strong { color: var(--c-ink); }

/* project modal: gifts + order form full-width under the two columns */
.pmodal__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--c-line);
  padding: 28px 42px 36px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px 44px;
  align-items: start;
}
.pmodal__gifts .promo__gifts-label { margin-top: 0; }
.pmodal__bottom .gifts { margin-top: 14px; }
.pmodal__bottom .pmodal__form { margin-top: 0; gap: 12px; }
.pmodal__form-title { font-size: 15px; font-weight: 800; color: var(--c-ink); }
.pmodal__bottom .consent { margin-top: 4px; }
@media (max-width: 860px) {
  .pmodal__bottom { grid-template-columns: 1fr; padding: 22px 24px 28px; gap: 22px; }
}

/* projects: load-more actions row */
.projects__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 44px; }
.projects__actions .projects__more { margin-top: 0; }
.projects__load-more { min-width: 240px; }

/* hero: full-viewport height on desktop (image fills, features pinned to bottom) */
@media (min-width: 961px) {
  .hero { min-height: 100vh; display: flex; flex-direction: column; }
  .hero::before { height: 100%; }
  .hero__inner { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hero__media { top: 0; bottom: 0; height: auto; }
  .hero__overlay { height: 100%; }
  .hero__content { margin-top: auto; padding-top: 0; }
  .features { margin-top: auto; }
}


/* СИП-лендинг: реальные проекты + AJAX-модалка (2026-07-05) */
.project__media { background-size: cover; background-position: center; background-repeat: no-repeat; }
.pmodal__stage { overflow: hidden; background: #e9e9e9; }
.pmodal__stage-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmodal__stage.is-plan { background: #fff; }
.pmodal__stage.is-plan .pmodal__stage-img { object-fit: contain; }
.pmodal__thumb { background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; }
.pmodal__thumb.is-plan { background-size: contain; background-color: #fff; }
.pmodal__thumbs { grid-auto-rows: 1fr; }
.incl { margin-top: 10px; display: grid; gap: 7px; padding: 0; list-style: none; }
.incl li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.4; color: var(--c-ink-2); }
.incl li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #2a9d5b; font-weight: 800; }

/* СИП-лендинг: honeypot + капча */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.sip-captcha { margin: 0; }

/* СИП-лендинг: success-модалка + конфетти */
.modal__box--success { position: relative; max-width: 460px; text-align: center; overflow: hidden; }
.success__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.success__body { position: relative; z-index: 1; padding: 6px 4px 2px; }
.success__badge { display: inline-flex; }
.success__circle { fill: none; stroke: #2a9d5b; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: sDraw .5s ease forwards .1s; }
.success__tick { fill: none; stroke: #2a9d5b; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 42; stroke-dashoffset: 42; animation: sDraw .35s ease forwards .5s; }
@keyframes sDraw { to { stroke-dashoffset: 0; } }
.success__title { margin: 14px 0 8px; font-size: 26px; font-weight: 800; color: var(--c-ink); }
.success__text { font-size: 15px; line-height: 1.55; color: var(--c-ink-2); margin: 0 auto 22px; max-width: 34ch; }
.modal__box--success .btn--lg { min-width: 190px; }
@media (prefers-reduced-motion: reduce) { .success__circle, .success__tick { animation: none; stroke-dashoffset: 0; } }

/* СИП-лендинг: политика по AJAX — доп. стили */
.policy h2 { font-size: 18px; font-weight: 800; color: var(--c-ink); margin: 22px 0 8px; }
.policy > *:first-child { margin-top: 0; }
.policy a { color: #3f6ff0; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.policy__loading { color: #999; }
