/* ============================================================
   DOMECO — sections.css
   Per-section layouts (home, project detail, contacts)
   ============================================================ */

/* ---------- Section heading block ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .title-wrap { flex: 1 1 auto; min-width: 0; }
.section-head h2 { margin-bottom: .4rem; max-width: 17ch; }

/* ========== HERO ========== */
.hero { position: relative; background: var(--ink); color: var(--text-on-dark); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: stretch; padding-block: clamp(3rem, 5vw, 5.5rem) clamp(2.5rem, 4vw, 4rem);
}
.hero h1 { font-size: clamp(2.2rem, 0.6rem + 5.4vw, 6.6rem); color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero h1 .line { display: flex; align-items: center; flex-wrap: nowrap; gap: .1em clamp(.4rem, 1.2vw, 1.2rem); }
.hero h1 .line--wrap { flex-wrap: wrap; }
/* inline photo chips inside the headline (Figma editorial motif) */
.hero h1 .chip {
  flex: 1 1 auto; min-width: 72px; max-width: clamp(140px, 16vw, 320px);
  height: .74em; align-self: center;
  border-radius: var(--r-pill); overflow: hidden; position: relative;
}
@media (max-width: 560px) { .hero h1 .chip { display: none; } .hero h1 .line { flex-wrap: wrap; } }
.hero h1 .chip img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-sub { margin-top: 1.4rem; max-width: 46ch; font-size: var(--fs-sub); color: var(--text-on-dark-muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2rem; }
.hero-cta .cta-note { font-size: var(--fs-sm); color: var(--text-on-dark-muted); white-space: nowrap; line-height: 1.35; }
.hero-figure { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 100%; }
.hero-figure picture, .hero-figure img, .hero-figure video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-figure .hero-video { opacity: 0; transition: opacity .6s var(--ease); }
.hero-figure.video-on .hero-video { opacity: 1; }
@media (max-width: 960px) { .hero-figure .hero-video { display: none; } }
.hero-usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.4vw, 2.8rem); padding-bottom: clamp(3.5rem, 6vw, 6rem); border-top: 1px solid var(--line-dark); padding-top: clamp(2.5rem, 4vw, 3.8rem); }
/* subgrid: описания всех карточек стартуют на одной линии — по самому высокому заголовку */
.usp { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-content: start; }
.usp .usp-t { font-weight: 700; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.3; margin-bottom: .9rem; display: flex; gap: .65rem; align-items: flex-start; }
.usp .usp-t .ic { color: var(--gold); width: 1.5em; height: 1.5em; flex: 0 0 auto; margin-top: -.02em; }
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 961px) { .usp .usp-t { min-height: 4em; } }
}
.usp p { font-size: var(--fs-base); color: var(--text-on-dark-muted); line-height: 1.55; align-self: start; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16 / 11; min-height: 0; order: -1; }
  .hero-figure img, .hero-figure video { position: absolute; }
  .hero h1 .chip { max-width: clamp(90px, 22vw, 200px); }
  .hero-usps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .hero-usps { grid-template-columns: 1fr; } }
/* mobile: крупное фото объекта перед преимуществами — визуальный якорь (клиент: голый текст не цепляет) */
.usps-visual { display: none; }
@media (max-width: 860px) {
  .usps-visual { display: block; position: relative; margin-top: 1.6rem; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
  .usps-visual img { width: 100%; height: 100%; object-fit: cover; }
  .usps-visual figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem .9rem; font-weight: 700; font-size: 1rem; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); }
  .hero-usps { border-top: none; padding-top: 2rem; }
}

/* ========== STATS ========== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.stat { padding: clamp(1.2rem,2vw,2rem) 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.6rem, 1.6rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -.02em; }
.stat .num .plus { color: var(--gold); }
.stat .lbl { margin-top: .6rem; color: var(--text-muted); font-size: var(--fs-sm); max-width: 20ch; }
.on-dark .stat .lbl { color: var(--text-on-dark-muted); }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(1rem,2vw,2rem); }
.on-dark .stat + .stat { border-color: var(--line-dark); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0 1.5rem; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .on-dark .stat:nth-child(n+3) { border-color: var(--line-dark); }
}

/* ========== PRICING DUO ========== */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 5rem); }
.price-card { display: flex; flex-direction: column; gap: 1.1rem; }
.price-card .price-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 7; }
.price-card .price-media img { width: 100%; height: 100%; object-fit: cover; }
.price-card .price-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.price-card h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); }
.price-card h3 .from { display: block; margin-top: .45em; font-family: var(--font-body); text-transform: none; font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); color: var(--text-muted); letter-spacing: 0; }
.price-card p { color: var(--text-muted); max-width: 34ch; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* ========== PROJECTS GRID ========== */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); }
@media (max-width: 720px) { .projects-grid { grid-template-columns: 1fr; } }
.projects-grid--list { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .projects-grid--list { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .projects-grid--list { grid-template-columns: 1fr; } }

/* ========== CTA BAND (full-bleed orange section) ========== */
.band-section { background: var(--gold); }
.band-section .band { background: none; border-radius: 0; box-shadow: none; overflow: visible; isolation: auto; -webkit-mask-image: none; }
.band-section .band-inner { padding-inline: 0; padding-block: clamp(2.6rem, 4.5vw, 4.2rem); }
.band { position: relative; background: var(--gold); color: var(--gold-ink); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.band-inner { display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; padding: clamp(2rem, 4vw, 3.4rem) clamp(1.6rem, 4vw, 4rem); position: relative; z-index: 2; }
.band h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3.25rem); max-width: 16ch; }
.band .band-cta { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
/* арт вписан в высоту банды (height, не width) — не полагаемся на overflow-клип, Safari дружелюбно */
.band .band-art { position: absolute; right: clamp(.6rem, 1.5vw, 2rem); top: 50%; transform: translateY(-50%); height: min(88%, 320px); width: auto; max-width: 30%; object-fit: contain; z-index: 1; pointer-events: none; opacity: .96; }
.band--art .band-inner { padding-right: min(30%, 420px); }
.band--art .band-cta, .band-section .band-cta { margin-inline: auto; }
@media (max-width: 860px) { .band--art .band-cta, .band-section .band-cta { margin-inline: 0; } }
@media (max-width: 860px) {
  .band .band-art { display: none; }
  .band--art .band-inner { padding-right: clamp(1.6rem, 4vw, 4rem); }
  .band .band-cta { margin-inline-start: 0; }
}

/* Описание кейса: заголовок | текст | вертикальное фото объекта справа */
.pd-overview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr) minmax(0, .9fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
.pd-overview .pd-side { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.pd-overview .pd-side img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) {
  .pd-overview { grid-template-columns: 1fr 1fr; }
  .pd-overview h2 { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .pd-overview { grid-template-columns: 1fr; }
  .pd-overview .pd-side { aspect-ratio: 16 / 10; }
}

/* CTA кейса: фон на всю ширину окна, текст слева (по контейнеру) + фото объекта справа до края */
.case-cta { display: grid; grid-template-columns: 1fr 1fr; background: var(--gold); color: var(--gold-ink); align-items: stretch; }
.case-cta .cc-text { align-self: center; display: grid; gap: clamp(1.3rem, 2.6vw, 1.9rem); padding-block: clamp(2.4rem, 5vw, 4.4rem); padding-inline: clamp(1.5rem, 4vw, 3rem); padding-inline-start: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad))); }
.case-cta .cc-text h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem); max-width: 14ch; }
.case-cta .cc-media { position: relative; min-height: 300px; }
.case-cta .cc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .case-cta { grid-template-columns: 1fr; }
  .case-cta .cc-media { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
  .case-cta .cc-text { padding-inline: var(--pad); padding-block: clamp(2rem, 7vw, 2.8rem); }
}

/* ========== PROCESS: uniform 6-card grid ========== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); }
.step-card { background: var(--ink-3); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.step-card .media { aspect-ratio: 16 / 10; }
.step-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-card .sc-b { padding: clamp(1.2rem, 1.8vw, 1.7rem); display: flex; flex-direction: column; gap: .45rem; }
.step-card .pc-step { margin-bottom: .1rem; }
.step-card .pc-t { font-weight: 700; font-size: var(--fs-lg); color: var(--text-on-dark); }
.step-card .pc-d { color: var(--text-on-dark-muted); font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 1000px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .steps-grid { grid-template-columns: 1fr; } }

/* ========== PROCESS / WHY-US COLLAGE ========== */
.process-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); }
.pcard { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink-3); color: var(--text-on-dark); padding: clamp(1.4rem,2vw,2rem); display: flex; flex-direction: column; min-height: 240px; }
.pcard .pc-t { font-weight: 700; font-size: var(--fs-lg); }
.pcard .pc-d { color: var(--text-on-dark-muted); font-size: var(--fs-sm); margin-top: .6rem; }
.pcard.has-media { padding: 0; min-height: 300px; }
.pcard.has-media .pc-body { position: absolute; inset: auto 0 0 0; padding: clamp(1.2rem,2vw,1.6rem); background: linear-gradient(0deg, rgba(15,15,13,.92), transparent); z-index: 2; }
.pcard.has-media .media { position: absolute; inset: 0; }
.pcard.has-media .media img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pc-accent { color: var(--gold); font-weight: 700; font-size: var(--fs-sm); }
.pcard .pc-step { color: var(--gold); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .08em; margin-bottom: .5rem; }
.pcard.has-media .pc-step { margin-bottom: .3rem; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } .process-grid > * { grid-column: span 1 !important; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ========== SERVICES ROWS ========== */
.service { display: grid; grid-template-columns: minmax(0, 0.95fr) 1fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; padding: clamp(1.6rem, 3vw, 2.6rem) 0; border-top: 1px solid var(--line-dark); }
.service:first-child { border-top: 0; }
.service .media { border-radius: var(--r); aspect-ratio: 16 / 10; }
.service:hover .media img { transform: scale(1.04); }
.service .svc-body { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.service .svc-index { font-family: var(--font-display); color: var(--gold); font-size: var(--fs-lg); }
.service h3 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem); color: var(--white); }
.service p { color: var(--text-on-dark-muted); max-width: 46ch; }
.service:nth-child(even) .media { order: 2; }
.service .media.ba { aspect-ratio: 16 / 10; border-radius: var(--r); }
.service .media.ba img { transform: none !important; }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; gap: 1.2rem; }
  .service:nth-child(even) .media { order: 0; }
}

/* ========== VIDEO SHOWCASE ========== */
.showcase { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; }
/* ========== WORKS MAP (Dubai, hover cards) ========== */
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-3); box-shadow: var(--shadow); isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.map-wrap--wide { height: clamp(400px, 44vw, 600px); }
.map-wrap .leaflet-container { width: 100%; height: 100%; background: #23231F; font-family: var(--font-body); }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(243,112,33,.22), 0 6px 14px rgba(0,0,0,.4); transition: transform var(--dur-fast) var(--ease); }
.leaflet-marker-icon:hover .pin-dot { transform: scale(1.25); }
.wm-tip { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: var(--shadow); padding: 0; }
.wm-tip::before { display: none; }
.wm-card { padding: .9rem 1.05rem; min-width: 210px; }
.wm-card .wm-area { font-weight: 800; color: var(--white); font-size: 1rem; }
.wm-card .wm-sub { color: var(--gold); font-size: var(--fs-xs); font-weight: 700; margin: .1rem 0 .5rem; }
.wm-card .wm-row { display: flex; justify-content: space-between; gap: 1.2rem; font-size: var(--fs-sm); padding: .14rem 0; }
.wm-card .wm-row span { color: var(--text-on-dark-muted); }
.wm-card .wm-row b { color: var(--text-on-dark); font-weight: 700; }
.leaflet-popup-content-wrapper { background: var(--ink-2); color: var(--text-on-dark); border-radius: 12px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: .3rem .4rem; }
.leaflet-popup-tip { background: var(--ink-2); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-on-dark-muted); }

/* ========== ROADMAP (interactive renovation timeline) ========== */
.roadmap { position: relative; }
.rm-nodes { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; position: relative; z-index: 2; }
.rm-node { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: .4rem .2rem; color: var(--text-on-dark-muted); transition: color var(--dur-fast); }
.rm-node .rm-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); border: 2.5px solid var(--grey-2); transition: all var(--dur-fast) var(--ease); }
.rm-node .rm-l { font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.rm-node:hover { color: var(--white); }
.rm-node:hover .rm-dot { border-color: var(--gold); }
.rm-node.is-active { color: var(--white); }
.rm-node.is-active .rm-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 7px rgba(243,112,33,.22); }
.rm-track { position: relative; height: 3px; background: var(--line-dark); border-radius: 2px; margin: -2.35rem clamp(2rem, 7vw, 7rem) 2.4rem; z-index: 1; }
.rm-progress { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--gold); border-radius: 2px; transition: width .5s var(--ease); }
.rm-panels { position: relative; }
.rm-panel { display: none; grid-template-columns: 1fr .95fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; background: var(--ink-3); border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2.6rem); }
.rm-panel.is-active { display: grid; animation: rmIn .45s var(--ease); }
@keyframes rmIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rm-panel h3 { color: var(--white); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: .7rem; }
.rm-panel p { color: var(--text-on-dark-muted); max-width: 46ch; }
.rm-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.rm-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
.rm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .rm-nodes { grid-template-columns: repeat(3, 1fr); gap: .9rem .4rem; }
  .rm-track { display: none; }
  .rm-panel { grid-template-columns: 1fr; }
  .rm-node .rm-l { font-size: var(--fs-xs); }
}
.showcase .media { border-radius: var(--r-lg); aspect-ratio: 16 / 10; }
/* video showcase — layout mirrors the quiz: text left, media right */
.showcase--video { grid-template-columns: .85fr 1.15fr; }
.video-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow); isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cover { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(15,15,13,.35), transparent 40%); cursor: pointer; border: 0; }
.video-frame.is-playing .video-cover { display: none; }
.play-btn { position: absolute; inset: 0; margin: auto; width: clamp(66px, 8vw, 96px); height: clamp(66px, 8vw, 96px); border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 3; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast); }
.play-btn::before { content:""; width:0; height:0; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }
.media:hover .play-btn, .play-btn:hover { transform: scale(1.08); background: var(--gold); }
.showcase h2 { color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.75rem); }
.showcase .sc-body { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
@media (max-width: 820px) { .showcase { grid-template-columns: 1fr; } }

/* ========== QUIZ ========== */
.quiz-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,3vw,3rem); align-items: stretch; }
.quiz { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.quiz-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 1.6rem; }
.quiz-progress i { display: block; height: 100%; width: 33%; background: var(--gold); border-radius: 999px; transition: width var(--dur) var(--ease); }
.quiz-step { display: none; animation: fade .4s var(--ease); }
.quiz-step.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-q { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem,1rem + 1.4vw,2rem); margin-bottom: 1.4rem; }
.q-step { display: block; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-xs); font-weight: 700; color: var(--gold); margin-bottom: .5rem; }
.svc-num { display: block; font-family: var(--font-body); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .08em; color: var(--gold); margin-bottom: .35rem; }
/* dark (on-dark) variants for quiz-style blocks */
.on-dark .quiz { background: none; padding: 0; }
.on-dark .input { background: var(--ink-2); border-color: var(--line-dark); color: var(--text-on-dark); }
.on-dark .input::placeholder { color: var(--text-on-dark-muted); }
.on-dark .quiz-progress { background: var(--line-dark); }
.on-dark .quiz-opt { background: var(--ink-2); border-color: var(--line-dark); color: var(--text-on-dark); }
.on-dark .quiz-opt.is-sel { border-color: var(--gold); background: var(--ink-3); }
.on-dark .q-consent { color: var(--text-on-dark-muted); }
.on-dark .q-geo-l { color: var(--text-on-dark-muted); }
.on-dark .qo-sub { color: var(--text-on-dark-muted); }
.on-dark .q-bonus { background: var(--ink-2); }
.on-dark .q-bonus span { color: var(--text-on-dark-muted); }
.on-dark .q-trust { color: var(--text-on-dark-muted); }
.qo-ic { font-size: 1.25em; line-height: 1; }
.qo-sub { display: block; flex-basis: 100%; font-weight: 500; font-size: var(--fs-xs); color: var(--text-muted); margin-top: .15rem; margin-inline-start: calc(1.25em + .8rem); }
.quiz-opt { flex-wrap: wrap; row-gap: 0; }
.q-err { color: #C62828; font-size: var(--fs-xs); margin-top: .4rem; }
.input.invalid { border-color: #C62828; box-shadow: 0 0 0 4px rgba(198,40,40,.12); }
.q-geo { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.q-geo-l { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.q-geo-opts { display: flex; gap: .6rem; }
.q-geo-opts .quiz-opt { padding: .6em 1em; border-radius: var(--r-pill); }
.q-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); cursor: pointer; }
.q-consent input { width: 18px; height: 18px; margin-top: .15em; accent-color: var(--gold); flex: 0 0 auto; }
.q-consent a { text-decoration: underline; color: inherit; }
.result-tag { display: inline-block; align-self: flex-start; padding: .45em 1em; border-radius: var(--r-pill); background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: var(--fs-sm); margin-bottom: 1rem; }
.q-bonus { display: flex; align-items: center; gap: .9rem; background: var(--white); border: 1.5px dashed var(--gold); border-radius: var(--r-sm); padding: 1rem 1.2rem; margin: 1.2rem 0 1.4rem; max-width: 48ch; }
.q-bonus .qb-ic { font-size: 1.6rem; }
.q-bonus b { display: block; }
.q-bonus span { color: var(--text-muted); font-size: var(--fs-sm); }
.q-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.4rem; color: var(--text-muted); font-size: var(--fs-sm); }
.quiz-step.is-active[data-qstep="6"], .quiz-step.is-active[data-qstep="7"] { display: flex; flex-direction: column; align-items: flex-start; }
.quiz-step[data-qstep="6"] .btn, .quiz-step[data-qstep="7"] .btn--dark { align-self: flex-start; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.quiz-opt { display: flex; align-items: center; gap: .8rem; padding: 1.1em 1.2em; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-weight: 600; text-align: left; transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast); }
.quiz-opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.quiz-opt.is-sel { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 18%, var(--white)); box-shadow: inset 0 0 0 1px var(--gold); }
.quiz-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.6rem; }
.quiz-figure { border-radius: var(--r-lg); overflow: hidden; position: relative; min-height: 320px; }
.quiz-figure img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; object-position: center 18%; }
.quiz-figure .qf-badge { position: absolute; left: 1.2rem; bottom: 1.2rem; z-index:2; }
@media (max-width: 820px) { .quiz-wrap { grid-template-columns: 1fr; } .quiz-figure { min-height: 220px; order: -1; } .quiz-options { grid-template-columns: 1fr; } }

/* ========== REELS ========== */
.reels-wrap { display: grid; grid-template-columns: repeat(3, 1fr) 1fr; gap: clamp(1rem,1.6vw,1.4rem); align-items: stretch; }
.reel { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 9 / 16; background: var(--ink-3); }
.reel img { width:100%; height:100%; object-fit: cover; }
.reel:hover img { transform: scale(1.05); }
.reels-cta { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding: 1rem 0 1rem 1rem; }
.reels-cta h2 { color: var(--white); }
.social-btns { display: flex; flex-direction: column; gap: .8rem; width: 100%; }
.social-btns .btn { justify-content: center; }
.social-btns .btn .ic { width: 1.15em; height: 1.15em; }
@media (max-width: 900px) { .reels-wrap { grid-template-columns: repeat(3, 1fr); } .reels-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; } }
@media (max-width: 560px) { .reels-wrap { grid-template-columns: repeat(2,1fr); } }

/* ========== TESTIMONIALS ========== */
.tst-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 440px); gap: clamp(1rem,1.6vw,1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
.tst-track::-webkit-scrollbar { display: none; }
.tst { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem,2.4vw,2.2rem); display: flex; flex-direction: column; gap: 1.1rem; }
.on-dark .tst { background: var(--ink-3); border-color: var(--line-dark); }
.tst .stars { display: inline-flex; gap: .15rem; color: var(--gold); }
.tst .stars .ic { width: 1.05em; height: 1.05em; }
.tst .quote { font-size: var(--fs-lg); line-height: 1.55; color: var(--text); }
.on-dark .tst .quote { color: var(--text-on-dark); }
.tst .who { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.on-dark .tst .who { border-color: var(--line-dark); }
.tst .who .name { font-weight: 700; }
.tst .who .loc { font-size: var(--fs-sm); color: var(--text-muted); }
.on-dark .tst .who .loc { color: var(--text-on-dark-muted); }
.tst .who .score { font-family: var(--font-display); font-size: 1.4rem; }
.carousel-ctrl { display: inline-flex; gap: .7rem; align-self: center; }
.carousel-ctrl button { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 20px -10px rgba(27,27,24,.25); display: grid; place-items: center; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.carousel-ctrl button svg { width: 24px; height: 24px; }
.carousel-ctrl button:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); transform: translateY(-2px); }
.carousel-ctrl button:active { transform: translateY(0); }
.on-dark .carousel-ctrl button { background: var(--ink-2); border-color: var(--line-dark); color: var(--white); box-shadow: none; }

/* ========== OFFER (discount) ========== */
.offer { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,3vw,3.5rem); align-items: center; background: var(--gold); color: var(--gold-ink); border-radius: var(--r-lg); padding: clamp(1.8rem,4vw,3.6rem); }
.offer h2 { max-width: 16ch; }
.offer .offer-form { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: clamp(1.4rem,2.5vw,2rem); display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; } }

/* ========== MANAGER (Elena) ========== */
.manager { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem,3vw,3.5rem); align-items: center; }
.manager .m-figure { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.manager .m-figure img { width:100%; height:100%; object-fit: cover; }
.manager h2 { color: var(--white); }
.manager .m-body { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.manager .m-role { color: var(--gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: var(--fs-sm); }
@media (max-width: 760px) { .manager { grid-template-columns: 1fr; } .manager .m-figure { max-width: 320px; } }

/* ========== CONTACTS PAGE ========== */
.contact-rows { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem,2vw,2rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(1.4rem,2.4vw,2rem); }
.contact-rows .cr .k { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: .4rem; }
.contact-rows .cr .v { font-weight: 700; font-size: var(--fs-lg); }
@media (max-width: 900px) { .contact-rows { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
@media (max-width: 480px) { .contact-rows { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,2vw,1.6rem); }
.member .media { border-radius: var(--r); aspect-ratio: 3/4; background: var(--ink-3); }
.member:hover .media img { transform: scale(1.05); }
.member .m-name { font-weight: 700; font-size: var(--fs-lg); margin-top: .9rem; }
.member .m-pos { color: var(--text-muted); font-size: var(--fs-sm); }
.on-dark .member .m-pos { color: var(--text-on-dark-muted); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .team-grid { grid-template-columns: 1fr 1fr; } }

.geo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem,3vw,3.5rem); align-items: center; }
.geo .geo-map { width: 100%; height: auto; }
.geo .geo-map .land { fill: var(--line); }
.geo .geo-map .hot { fill: var(--gold); }
@media (max-width: 820px) { .geo { grid-template-columns: 1fr; } }

/* ========== PROJECT DETAIL ========== */
.pd-hero { display: grid; gap: clamp(1.2rem,2vw,2rem); }
.pd-hero .media { border-radius: var(--r-lg); aspect-ratio: 21/9; }
.pd-meta { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: clamp(1.4rem,3vw,3rem); align-items: start; }
.pd-meta .pm .k { font-size: var(--fs-sm); color: var(--text-muted); }
.pd-meta .pm .v { font-family: var(--font-display); font-size: clamp(1.3rem,1rem + 1.2vw,1.9rem); text-transform: uppercase; }
.pd-desc { max-width: 60ch; color: var(--text-muted); }
.pd-desc h2 { color: var(--ink); margin-bottom: 1rem; }
.pd-desc p + p { margin-top: 1rem; }
@media (max-width: 760px) { .pd-meta { grid-template-columns: 1fr 1fr; } }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 520px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .g-item { scroll-snap-align: start; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; }
.gallery .g-item img { width:100%; height:100%; object-fit: cover; }

/* Before / After slider */
.ba { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; user-select: none; touch-action: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; background: var(--white); z-index: 3; transform: translateX(-50%); }
.ba .ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); }
.ba .ba-tag { position: absolute; bottom: 1rem; z-index: 2; padding: .4em .8em; border-radius: var(--r-pill); background: rgba(0,0,0,.6); color:#fff; font-size: var(--fs-sm); font-weight: 700; }
.ba .ba-tag.is-before { left: 1rem; } .ba .ba-tag.is-after { right: 1rem; }
.ba--sm { aspect-ratio: 21 / 10; }
.ba--sm .ba-knob { width: 38px; height: 38px; }
.ba--sm .ba-tag { font-size: var(--fs-xs); bottom: .7rem; }
/* clickable preset chips (expert consultation → quiz) */
.preset-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.preset-chips a { padding: .55em 1.1em; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-weight: 700; font-size: var(--fs-sm); color: var(--text); transition: all var(--dur-fast) var(--ease); }
.preset-chips a:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); transform: translateY(-2px); }

/* ========== APPROVALS: permits & NOC ledger (30.10.2026) ========== */
.apr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.apr-row { display: grid; grid-template-columns: 3.4rem minmax(0, .9fr) minmax(0, 1.3fr) 5.4rem; gap: .55rem clamp(1rem, 2.5vw, 2.6rem); align-items: start; padding-block: clamp(1.15rem, 2vw, 1.8rem); border-bottom: 1px solid var(--line); }
.apr-num { font-weight: 800; font-size: var(--fs-sm); letter-spacing: .08em; color: var(--gold); padding-top: .3rem; }
.apr-row h3 { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); line-height: 1.08; }
.apr-row h3 small { display: block; margin-top: .4rem; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; }
.apr-row p { color: var(--text-muted); max-width: 54ch; }
.apr-who { display: flex; justify-content: flex-end; padding-top: .15rem; }
.apr-logos { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.15rem; margin-top: .8rem; }
.apr-logos img { flex: none; filter: brightness(0); opacity: .8; }
.apr-who .pill { font-size: var(--fs-xs); }
.apr-foot { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; align-items: flex-start; justify-content: space-between; margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.apr-note { color: var(--text-muted); font-size: var(--fs-sm); max-width: 58ch; flex: 1 1 320px; }
.apr-chips { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; flex: 1 1 420px; justify-content: flex-end; }
.apr-chips .apr-lbl { flex-basis: 100%; text-align: right; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--text-muted); }
.apr-chips a { display: inline-flex; align-items: center; gap: .6em; padding: .5em 1em; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-weight: 700; font-size: var(--fs-sm); color: var(--text); text-decoration: none; transition: all var(--dur-fast) var(--ease); }
.apr-chips a img { flex: none; filter: brightness(0); opacity: .72; transition: filter var(--dur-fast) var(--ease); }
.apr-chips a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); transform: translateY(-2px); }
.apr-chips a:hover img { filter: brightness(0) invert(1); opacity: 1; }
@media (max-width: 900px) {
  .apr-row { grid-template-columns: 2.6rem 1fr; }
  .apr-row p { grid-column: 2; }
  .apr-who { grid-column: 2; justify-content: flex-start; }
  .apr-chips { justify-content: flex-start; }
  .apr-chips .apr-lbl { text-align: left; }
}
