/* ============================================================
   Alustroy — dark redesign. Design tokens + global base + header.
   Visual source of truth: dark-sourse/.../Alustroy Home Dark.html
   Grows section by section. No CDN, no Tailwind — plain CSS.
   ============================================================ */

@import url("/assets/fonts/fonts.css");

:root{
  --bg:        #131310;        /* deep warm graphite */
  --bg-2:      #1C1C18;        /* card surface */
  --ink:       #EDE7DA;        /* warm off-white (text) */
  --ink-2:     #C8C2B2;
  --muted:     #8A8576;
  --line:      #2E2C26;
  --forest:    #3F5B47;
  /* Prototype's App overrides :root --copper on mount with the active accent.
     Default tweak is "forest" → #2A3A2E. Baked in here (no JS tweaks panel). */
  --copper:    #2A3A2E;
  --white:     #131310;        /* used as 'on-ink' text */
  --fixed-light:    #F5F1EA;
  --fixed-dark:     #1C1C1A;
  --fixed-on-light: #131310;
  --fixed-on-dark:  #FBF8F2;
  --fixed-line-light:#D9D2C4;
  --maxw: 1600px;   /* project container — wider than prototype's 1440 (deliberate) */
}

*,*::before,*::after{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
html,body{ background: var(--bg); color: var(--ink); }
body{
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.font-serif{ font-family: "Playfair Display", Georgia, serif; }
.font-mono{ font-family: "JetBrains Mono", ui-monospace, monospace; }
.num{ font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Pill button ---------- */
.btn-pill{
  display:inline-flex; align-items:center; gap:.6rem;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  font-family: inherit; cursor: pointer; border: 0;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-pill:hover{ transform: translateY(-1px); }
.btn-pill svg{ flex:none; }
.btn-dark{ background: var(--ink); color: var(--white); }
.btn-dark:hover{ background:#fff; color:#000; }

/* ---------- Dotted divider ---------- */
.dotline{
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  background-position: left center;
  height: 1px;
}

/* ============================================================
   HEADER (prototype TopBar — 1:1)
   ============================================================ */
.hdr{ position: relative; z-index: 30; }
.hdr__inner{
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 24px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
}

/* LEFT — // МЕНЮ button (also reused inside overlay close) */
.hdr__menu-toggle{
  justify-self: start;
  display:inline-flex; align-items:center; gap:10px;
  background:none; border:0; color: var(--ink); cursor:pointer;
  padding: 6px 4px; font-family: inherit;
}
.hdr__menu-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px;
}
.hdr__menu-label{
  font-size:13px; letter-spacing:.14em; text-transform:uppercase;
  font-weight:500; color: var(--ink);
}
.hdr__menu-toggle:hover .hdr__menu-icon{ color:#fff; }

/* CENTER — logo */
.hdr__logo{
  justify-self: center;
  display:flex; flex-direction:column; align-items:center;
  text-align:center; line-height:1;
}
.hdr__logo-text{
  font-family: "Manrope", sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
}
.hdr__logo-sub{
  display:none;
  font-size:10px; letter-spacing:.22em; text-transform:uppercase;
  color: var(--muted); margin-top:4px;
}

/* RIGHT — phone + CTA */
.hdr__right{
  justify-self: end;
  display:flex; align-items:center; gap:12px;
}
.hdr__phone{ display:none; font-size:14px; color: var(--ink); text-decoration:none; }
.hdr__phone:hover{ color:#fff; }
.hdr__cta{ font-size:13px; padding:10px 18px; }

.hdr__dotline{ margin: 0 24px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px){
  .hdr__logo-sub{ display:block; }
}
@media (min-width: 768px){
  .hdr__phone{ display:inline-block; }
}
@media (min-width: 1024px){
  .hdr__inner{ padding: 22px 40px 16px; }
  .hdr__dotline{ margin: 0 40px; }
  .hdr__cta{ font-size:14px; padding:12px 22px; }
}

/* ============================================================
   MENU OVERLAY — fullscreen, opens via [data-menu-open]
   ============================================================ */
.menu-overlay{
  position:fixed; inset:0; z-index:50;
  background: var(--bg);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .35s ease, visibility .35s ease;
  overflow-y:auto;
}
body.menu-open .menu-overlay{
  opacity:1; visibility:visible; pointer-events:auto;
}
body.menu-open{ overflow:hidden; }

.menu-overlay__inner{
  position:relative; min-height:100%;
  padding: 18px 24px 80px;
  display:flex; flex-direction:column;
}

/* Close button positioned exactly where the open button lives in the header */
.menu-overlay__close{
  align-self: flex-start;
  display:inline-flex; align-items:center; gap:10px;
  background:none; border:0; color: var(--ink); cursor:pointer;
  padding: 6px 4px; font-family: inherit;
  margin-bottom: 56px;
}
.menu-overlay__close:hover .hdr__menu-icon{ color:#fff; }

.menu-overlay__body{ flex:1; position:relative; z-index:2; }

.menu-overlay__grid{
  display:grid; gap:40px;
  grid-template-columns: 1fr;
}
.menu-overlay__h{ margin-bottom: 20px; font-size:11px; }
.menu-overlay__list{ list-style:none; margin:0; padding:0; }
.menu-overlay__list li{ margin-bottom:14px; }
.menu-overlay__list a{
  color: var(--ink); text-decoration:none;
  font-size: 18px; font-weight: 400;
  transition: color .15s ease;
}
.menu-overlay__list a:hover{ color:#fff; text-decoration:underline; text-underline-offset:4px; }

.menu-overlay__contacts{ display:flex; flex-direction:column; gap:10px; font-size:14px; }
.menu-overlay__contacts a{ color: var(--ink); text-decoration:none; }
.menu-overlay__contacts a:hover{ color:#fff; text-decoration:underline; }
.menu-overlay__phone{ font-size:22px; font-weight:500; margin-bottom:4px; }

.menu-overlay__socials{
  display:flex; gap:10px; margin-top:24px;
}
.menu-overlay__social-link{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  background: var(--bg-2); border:1px solid var(--line);
  color: var(--ink); text-decoration:none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.menu-overlay__social-link:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.menu-overlay__cta{
  align-self: flex-start; margin-top: 28px;
  padding: 16px 28px; font-size: 15px;
}

/* Decorative watermark word at the bottom edge */
.menu-overlay__watermark{
  position:absolute; left:0; right:0; bottom:-2vw;
  text-align:center; pointer-events:none; z-index:1;
  font-family: "Playfair Display", Georgia, serif;
  font-weight:400; font-style: italic;
  font-size: clamp(80px, 18vw, 280px);
  line-height: .85;
  color: var(--ink); opacity: .045;
  letter-spacing: .02em;
  user-select:none; white-space:nowrap;
  text-shadow: 0 0 1px rgba(255,255,255,0.06);
}

@media (min-width: 768px){
  .menu-overlay__inner{ padding: 22px 40px 100px; }
  .menu-overlay__close{ margin-bottom: 72px; }
  .menu-overlay__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }
}
@media (min-width: 1024px){
  .menu-overlay__grid{ grid-template-columns: repeat(4, 1fr); }
  .menu-overlay__list a{ font-size: 20px; }
  .menu-overlay__close{ margin-bottom: 88px; }
}

/* ============================================================
   SHARED — container + prototype utility classes
   ============================================================ */
.wrap{ max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 1024px){ .wrap{ padding-inline: 40px; } }

.muted{ color: var(--muted); }
.display{ letter-spacing: -0.025em; line-height: 0.92; }
.eyebrow{
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* buttons used over dark hero photo */
.btn-light{ background: var(--fixed-on-dark); color: var(--fixed-on-light); }
.btn-outline-light{ color:#fff; border:1px solid rgba(255,255,255,0.4); }

.arrow-circle{
  width:38px; height:38px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--ink); color: var(--white); flex:none;
}
.arrow-circle.copper{ background: var(--copper); color:#fff; }
/* Tuck the trailing arrow-circle into the button's right padding so the
   visual gap on the right matches the top/bottom (14px from .btn-pill). */
.btn-pill > .arrow-circle:last-child{ margin-right: -8px; }

.hero-shade{
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.68) 100%);
}
.hero-shade-top{
  background: linear-gradient(180deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0) 40%);
}

/* photo placeholder (striped, with brief tag) */
.ph{
  background-color:#232220;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 14px);
  position:relative; overflow:hidden; color: rgba(237,231,218,0.7);
}
.ph.dark{
  background-color:#1A1A17;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px);
  color: rgba(255,255,255,0.7);
}
.ph .ph-tag{
  position:absolute; left:14px; top:14px; right:14px;
  font-family:"JetBrains Mono", monospace;
  font-size:11px; line-height:1.5; letter-spacing:0.02em;
  color: rgba(237,231,218,0.75);
}
.ph.dark .ph-tag{ color: rgba(255,255,255,0.7); }
.ph .ph-corner{
  position:absolute; right:14px; bottom:14px;
  font-family:"JetBrains Mono", monospace; font-size:10px;
  color: rgba(237,231,218,0.55);
  letter-spacing:0.06em; text-transform:uppercase;
}
.ph.dark .ph-corner{ color: rgba(255,255,255,0.6); }

/* ============================================================
   HERO A (prototype HeroA — 1:1, container = project --maxw)
   ============================================================ */
.hero{ padding-top:16px; }
.hero__stage{
  position:relative; border-radius:20px; overflow:hidden;
  height:min(78vh, 760px);
}
.hero__bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.hero__shade,.hero__shade-top{ position:absolute; inset:0; }

.hero__meta{
  position:absolute; top:24px; left:24px; right:24px;
  display:flex; align-items:center; justify-content:space-between;
  font-size:12px; color: rgba(255,255,255,0.85);
}
.hero__meta .mono{
  font-family:"JetBrains Mono", monospace;
  text-transform:uppercase; letter-spacing:0.18em;
}
.hero__meta-right{ display:none; }

.hero__head{
  position:absolute; left:24px; right:24px; bottom:32px; color:#fff;
}
.hero__grid{ display:grid; gap:24px; }
.hero__col-r{ display:flex; flex-direction:column; gap:16px; }
.hero__eyebrow{
  margin-bottom:20px;
  color:rgba(255,255,255,0.92);
  font-size:12px;
  text-shadow:0 1px 10px rgba(0,0,0,0.55);
}
.hero__h1{ font-weight:300; font-size:36px; margin:0; }
.hero__h1 .font-serif{ font-style:italic; font-weight:300; }
.hero__sub{
  font-size:15px; max-width:360px; line-height:1.625;
  color: rgba(255,255,255,0.8);
}
.hero__cta{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; }

.hero__stats{
  margin-top:24px; display:grid; grid-template-columns:repeat(2,1fr);
  gap:1px; background: var(--line); border-radius:16px; overflow:hidden;
}
.hero__stat{ background: var(--bg); padding:20px; }
.hero__stat-v{ font-family:"Playfair Display", Georgia, serif; font-weight:400; font-size:28px; }
.hero__stat-l{ font-size:13px; color: var(--muted); margin-top:4px; }

@media (min-width: 640px){
  .hero__h1{ font-size:52px; }
}
@media (min-width: 768px){
  .hero__meta-right{ display:flex; align-items:center; gap:16px; }
}
@media (min-width: 1024px){
  .hero__meta{ top:32px; left:40px; right:40px; }
  .hero__head{ left:40px; right:40px; bottom:48px; }
  .hero__grid{ grid-template-columns:repeat(12,1fr); align-items:end; }
  .hero__col-l{ grid-column:span 8; }
  .hero__col-r{ grid-column:span 4; }
  .hero__h1{ font-size:64px; }
  .hero__sub{ font-size:16px; }
  .hero__stats{ grid-template-columns:repeat(4,1fr); }
  .hero__stat{ padding:24px; }
  .hero__stat-v{ font-size:34px; }
}
/* ============================================================
   FOOTER (prototype Footer — 1:1)
   ============================================================ */
.hairline{ border-color: var(--line); }

.ft{ position:relative; margin-top:96px; }
.ft__inner{ padding-bottom:40px; }
.ft__grid{
  display:grid; gap:32px; padding:48px 0;
  border-top:1px solid var(--line);
}
/* Footer brand logo — left-aligned, decoupled from header's centered .hdr__logo. */
.ft__logo{ display:inline-flex; align-items:center; text-decoration:none; }
.ft__logo-text{
  font-family: "Manrope", sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
}
.ft__about{ margin-top:20px; font-size:14px; line-height:1.625; max-width:320px; }
.ft__h{ margin-bottom:16px; }
.ft__list{ list-style:none; margin:0; padding:0; font-size:14px; }
.ft__list li{ margin-bottom:8px; }
.ft__list a{
  color: var(--ink-2); text-decoration:none;
  transition: color .15s ease;
}
.ft__list a:hover{ color: var(--ink); }
.ft__contacts{ font-size:14px; }
.ft__contacts > div{ margin-bottom:8px; }
.ft__phone{ font-size:20px; font-weight:500; color: var(--ink); }
.ft__phone a{ color: inherit; text-decoration: none; }
.ft__phone a:hover{ color:#fff; }
.ft__contacts a[href^="mailto:"]{ color: var(--ink); text-decoration: none; }
.ft__contacts a[href^="mailto:"]:hover{ color:#fff; text-decoration: underline; }
.ft__addr{ margin-top:12px; }

/* Social row — between the 5-column grid and the legal strip. */
.ft__social{
  display:flex; flex-wrap:wrap; align-items:center; gap:18px;
  padding:24px 0; border-top:1px solid var(--line);
}
.ft__social-h{ margin-bottom:0; }
.ft__social-list{ display:flex; flex-wrap:wrap; gap:10px; }
.ft__social-link{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:999px;
  background: var(--bg-2); color: var(--ink);
  font-size:13px; font-weight:500; text-decoration:none;
  border:1px solid var(--line);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ft__social-link:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.ft__social-link svg{ flex:none; }

.ft__bottom{
  display:flex; flex-direction:column; align-items:flex-start; gap:12px;
  padding-top:24px; border-top:1px solid var(--line); font-size:12px;
}
.ft__legal{ display:flex; gap:20px; flex-wrap:wrap; }
.ft__legal a{ color: var(--ink-2); text-decoration: none; }
.ft__legal a:hover{ color: var(--ink); text-decoration: underline; }

@media (min-width: 640px){
  /* Tablet: brand spans the row, the four nav/contact cols form a 2×2 grid below. */
  .ft__grid{ grid-template-columns:repeat(2,1fr); }
  .ft__col--brand{ grid-column:1 / -1; }
}
@media (min-width: 768px){
  .ft__bottom{ flex-direction:row; align-items:center; justify-content:space-between; }
}
@media (min-width: 1024px){
  .ft{ margin-top:128px; }
  /* 5-column desktop layout: brand 3 + nav×3 (2 each) + contacts 3 = 12 */
  .ft__grid{ grid-template-columns:repeat(12,1fr); }
  .ft__col--brand{    grid-column:span 3; }
  .ft__col--nav{      grid-column:span 2; }
  .ft__col--contacts{ grid-column:span 3; }
}

/* ---------- extra button + link utilities ---------- */
.btn-ghost{ background:transparent; color:var(--ink); border:1px solid var(--line); }
.btn-ghost:hover{ background:rgba(255,255,255,0.04); }
.ulink{ position:relative; display:inline-block; }
.ulink::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:1px; background:currentColor; opacity:.4;
}

/* ============================================================
   CATEGORIES (prototype Categories — 1:1)
   ============================================================ */
.cat{ margin-top:96px; }
.cat__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; margin-bottom:40px;
}
.cat__head .eyebrow{ margin-bottom:16px; }
.cat__h2{ font-weight:300; font-size:32px; margin:0; }
.cat__h2 .font-serif{ font-style:italic; font-weight:300; }
.cat__sub{ margin:16px 0 0; font-size:16px; line-height:1.6; max-width:560px; }
.cat__all{ display:none; white-space:nowrap; }

.cat__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
/* Card is a flex column so CTA can be pushed to the bottom regardless of
   how many lines the title or description take. Combined with grid's
   default cross-axis stretch, this aligns CTAs across each row. */
.cat__card{ display:flex; flex-direction:column; color:inherit; }
.cat__ph{
  width:100%; aspect-ratio:4/5; border-radius:16px;
  object-fit:cover; display:block;
  margin-bottom:20px; transition:transform .3s ease;
}
.cat__card:hover .cat__ph{ transform:translateY(-4px); }
.cat__row{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.cat__row-l{ display:flex; align-items:baseline; gap:12px; }
.cat__n{ font-family:"JetBrains Mono",monospace; font-size:12px; color:var(--muted); }
.cat__t{ font-size:22px; font-weight:500; margin:0; }
.cat__from{ font-size:13px; color:var(--muted); }
.cat__desc{ font-size:14px; color:var(--muted); margin:8px 0 0; line-height:1.625; }
.cat__more{
  margin-top:auto; padding-top:16px;
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.cat__cta{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:10px 16px; border-radius:999px;
  background:var(--ink); color:var(--white);
  font-weight:500; font-size:13px; white-space:nowrap;
  border:0; cursor:pointer; font-family:inherit;
  transition:transform .2s ease, background .2s ease, color .2s ease;
}
.cat__cta:hover{ transform:translateY(-1px); background:#fff; color:#000; }
.cat__cta svg{ flex:none; }
.cat__more-link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; color:var(--ink);
}

@media (min-width: 640px){
  .cat__h2{ font-size:44px; }
}
@media (min-width: 768px){
  .cat__all{ display:inline-flex; }
}
@media (min-width: 1024px){
  .cat{ margin-top:144px; }
  .cat__head{ margin-bottom:56px; }
  .cat__h2{ font-size:54px; }
  .cat__grid{ grid-template-columns:repeat(4,1fr); }
}

/* ============================================================
   PORTFOLIO (prototype Portfolio — 1:1)
   ============================================================ */
.pf{ margin-top:96px; }
.pf__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; margin-bottom:40px; flex-wrap:wrap;
}
.pf__head .eyebrow{ margin-bottom:16px; }
.pf__h2{ font-weight:300; font-size:36px; margin:0; }
.pf__h2 .font-serif{ font-style:italic; font-weight:300; }
.pf__sub{ margin:16px 0 0; font-size:16px; line-height:1.6; }

.pf__filters{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-left:auto; justify-content:flex-end;
}
.pf__filter{
  padding:8px 16px; border-radius:999px; font-size:13px;
  background:transparent; color:var(--ink-2); border:1px solid var(--line);
  cursor:pointer; font-family:inherit;
}
.pf__filter--active{ background:var(--ink); color:var(--bg); border-color:var(--ink); }

/* Featured row */
.pf__feat{ display:grid; gap:20px; margin-bottom:20px; }
.pf__big{ width:100%; aspect-ratio:16/10; border-radius:18px; object-fit:cover; display:block; }
.pf__feat-info{ display:flex; flex-direction:column; justify-content:space-between; gap:24px; }
.pf__feat-meta{ font-family:"JetBrains Mono",monospace; font-size:12px; color:var(--muted); margin-bottom:12px; }
.pf__feat-title{ font-family:"Playfair Display",Georgia,serif; font-weight:400; font-size:34px; line-height:1.05; margin:0; }
.pf__feat-desc{ color:var(--muted); margin:12px 0 0; font-size:14px; line-height:1.625; }
.pf__specs{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border-radius:14px; overflow:hidden;
}
.pf__spec{ background:var(--bg); padding:16px; }
.pf__spec .eyebrow{ margin-bottom:4px; }
.pf__spec-v{ font-size:14px; }
.pf__spec-v--num{ font-size:18px; }
.pf__feat-link{ align-self:flex-start; }
.pf__feat-actions{ display:flex; gap:10px; flex-wrap:wrap; align-self:flex-start; }
.pf__feat-actions .btn-pill{ align-self:auto; }

/* Tile grid */
.pf__grid{ display:grid; grid-template-columns:1fr; gap:20px; }
.pf__card{ display:block; color:inherit; }
.pf__card-photo{
  width:100%; aspect-ratio:1/1; border-radius:16px;
  object-fit:cover; display:block;
  margin-bottom:16px; transition:transform .3s ease;
}
.pf__card:hover .pf__card-photo{ transform:translateY(-4px); }
.pf__card-row{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.pf__card-t{ font-size:18px; font-weight:500; margin:0; }
.pf__card-y{ font-family:"JetBrains Mono",monospace; font-size:11px; color:var(--muted); }
.pf__card-meta{ font-size:13px; color:var(--muted); margin-top:4px; }
.pf__card-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.pf__card-act{ padding:8px 14px; font-size:12px; }
.pf__card-act svg{ width:12px; height:12px; }
/* Bottom row: archive-tile + stats panel */
.pf__bottom{
  margin-top:20px; display:grid; gap:20px;
  grid-template-columns:1fr;
}
.pf__more{
  position:relative; overflow:hidden; border-radius:16px; aspect-ratio:4/5;
  display:flex; align-items:center; justify-content:center;
  color:#fff; text-decoration:none;
}
.pf__more-bg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block; z-index:0;
  filter:blur(10px); transform:scale(1.08);  /* blurred backdrop */
}
.pf__more-shade{
  position:absolute; inset:0; z-index:1;
  /* tinted to page bg (--bg #131310 = rgb 19,19,16) instead of pure black */
  background:linear-gradient(180deg, rgba(19,19,16,0.80) 0%, rgba(19,19,16,0.94) 100%);
}
.pf__more-content{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:24px; text-align:center;
}
.pf__more-n{
  font-family:"Playfair Display",Georgia,serif; font-weight:400;
  font-size:88px; line-height:.95; color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,0.55);
}
.pf__more-l{ color:rgba(255,255,255,0.85); font-size:15px; }
.pf__more-btn{ margin-top:12px; }

/* Right column: stats + CTA panel stacked */
.pf__right{ display:flex; flex-direction:column; gap:32px; }
.pf__stats{
  display:grid; grid-template-columns:repeat(2,1fr); gap:24px 32px;
}
.pf__stat{ border-top:1px solid var(--line); padding-top:14px; }
.pf__stat-v{
  font-family:"Playfair Display",Georgia,serif; font-weight:400;
  font-size:44px; line-height:.95; color:var(--ink);
}
.pf__stat-l{ margin-top:8px; font-size:14px; line-height:1.4; }

/* Light CTA panel under the stats (same look as FinalCTA frosted card) */
.pf__cta-panel{
  background:rgba(245,241,234,0.96);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border:1px solid var(--fixed-line-light);
  border-radius:18px; padding:32px 24px;
  color:var(--fixed-on-light);
}
.pf__cta-h{
  margin:0; font-size:18px; font-weight:500; line-height:1.3;
  color:var(--fixed-on-light); max-width:70%;
}
.pf__cta-sub{
  margin:12px 0 0; font-size:14px; line-height:1.55;
  color:#6E6A62; max-width:80%;
}
.pf__cta-form{ margin-top:18px; display:grid; gap:10px; grid-template-columns:1fr; }
.pf__cta-input{
  padding:14px 16px; border-radius:999px; font-size:14px;
  background:#fff; border:1px solid var(--fixed-line-light);
  color:var(--fixed-on-light); font-family:inherit; width:100%;
}
.pf__cta-input::placeholder{ color:#8a8576; }
.pf__cta-btn{
  padding:14px 26px; border-radius:999px;
  background:var(--fixed-on-light); color:var(--fixed-on-dark);
  font-weight:500; font-size:15px; font-family:inherit;
  border:0; cursor:pointer; white-space:nowrap;
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  transition:transform .2s ease, background .2s ease;
}
.pf__cta-btn:hover{ transform:translateY(-1px); background:#000; }
.pf__cta-check{
  margin-top:12px; display:flex; gap:8px; align-items:flex-start;
  font-size:12px; color:#6E6A62; line-height:1.5;
}
.pf__cta-check input{ margin-top:2px; flex:none; accent-color:var(--fixed-on-light); }
.pf__cta-check a{ color:var(--fixed-on-light); text-decoration:underline; }
.pf__cta-tel{ margin:10px 0 0; font-size:13px; color:#6E6A62; }
.pf__cta-tel a{ color:var(--fixed-on-light); text-decoration:none; }

@media (min-width: 640px){
  .pf__cta-form{
    grid-template-columns:minmax(0,240px) minmax(0,240px) auto;
    align-items:center; justify-content:start;
  }
}

@media (min-width: 640px){
  .pf__h2{ font-size:52px; }
  .pf__grid{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width: 1024px){
  .pf{ margin-top:144px; }
  .pf__head{ margin-bottom:56px; }
  .pf__h2{ font-size:64px; }
  .pf__feat{ grid-template-columns:repeat(12,1fr); }
  .pf__feat-photo{ grid-column:span 8; }
  .pf__feat-info{ grid-column:span 4; }
  .pf__feat-title{ font-size:42px; }
  .pf__grid{ grid-template-columns:repeat(3,1fr); }
  .pf__bottom{ grid-template-columns:1fr 2fr; }
  .pf__stat-v{ font-size:56px; }
  .pf__more-n{ font-size:120px; }
}

/* ============================================================
   QUIZ BANNER (prototype QuizBanner — 1:1)
   ============================================================ */
@keyframes fadein{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;} }
.fadein{ animation:fadein .5s ease both; }

.quiz{ margin-top:80px; }
.quiz-card{ transition:transform .3s ease, box-shadow .3s ease; }
.quiz-card:hover{ transform:translateY(-2px); }
.quiz__card{
  position:relative; border-radius:22px; overflow:hidden;
  background:var(--fixed-dark); color:#fff;
}
.quiz__grid{ display:grid; }

.quiz__left{ position:relative; padding:32px; }
.quiz__right{ padding:32px; border-top:1px solid rgba(255,255,255,0.1); }

.quiz__eyebrow{ color:rgba(255,255,255,0.55); }
.quiz__h2{ font-weight:300; font-size:36px; margin:24px 0 0; }
.quiz__h2 .font-serif{ font-style:italic; font-weight:300; }
.quiz__lead{ margin:20px 0 0; max-width:360px; font-size:15px; color:rgba(255,255,255,0.7); }
.quiz__bullets{
  margin-top:32px; display:flex; align-items:center; gap:16px;
  font-size:13px; color:rgba(255,255,255,0.55);
}
.quiz__slash{ opacity:.4; }
.quiz__photo{
  position:absolute; left:-40px; bottom:-64px; width:260px; height:200px;
  border-radius:12px; opacity:.2; pointer-events:none; display:none;
}

.quiz__progress{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:28px;
}
.quiz__count{ font-size:11px; text-transform:uppercase; letter-spacing:0.18em; color:rgba(255,255,255,0.6); }
.quiz__segs{ display:flex; align-items:center; gap:6px; }
.quiz__seg{ display:block; height:3px; width:40px; border-radius:999px; background:rgba(255,255,255,0.14); }
.quiz__seg.is-on{ background:var(--copper); }

.quiz__panel{ display:none; }
.quiz__panel.is-active{ display:block; }
.quiz__q{ font-size:22px; font-weight:400; }
.quiz__opts{ margin-top:24px; display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.quiz__opt{
  padding:12px 16px; border-radius:999px; font-size:14px; text-align:left;
  background:rgba(255,255,255,0.06); color:#fff; border:1px solid rgba(255,255,255,0.15);
  cursor:pointer; font-family:inherit; transition:background .2s ease, color .2s ease;
}
.quiz__opt.is-sel{ background:#fff; color:var(--fixed-on-light); }

/* Card-style options (with photo + optional price + optional hover desc) */
.quiz__cards{ margin-top:24px; display:grid; gap:10px; }
.quiz__cards--2{ grid-template-columns:repeat(2,1fr); }
.quiz__cards--3{ grid-template-columns:repeat(2,1fr); }
.quiz__opt-card{
  display:flex; flex-direction:column; gap:8px; padding:6px;
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.15);
  border-radius:14px; color:#fff; font-family:inherit;
  text-align:left; cursor:pointer;
  transition:background .2s ease, transform .2s ease, border-color .2s ease;
}
.quiz__opt-card:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.25);
}
.quiz__opt-card.is-sel{ background:#fff; color:var(--fixed-on-light); border-color:#fff; }
.quiz__opt-photo{
  position:relative; display:block;
  aspect-ratio:16/9; border-radius:10px; overflow:hidden;
}
.quiz__opt-photo img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block; transition:transform .3s ease;
}
.quiz__opt-card:hover .quiz__opt-photo img{ transform:scale(1.04); }
.quiz__opt-price{
  position:absolute; right:8px; top:8px; z-index:1;
  background:rgba(19,19,16,0.85); color:#fff;
  font-size:11px; padding:4px 8px; border-radius:999px;
  font-family:"JetBrains Mono",monospace; letter-spacing:0.02em;
  white-space:nowrap; line-height:1;
}
.quiz__opt-t{
  font-size:13px; font-weight:500; line-height:1.3;
  padding:4px 8px 8px;
}

.quiz__nav{ margin-top:32px; display:flex; align-items:center; gap:16px; }
.quiz__back{
  font-size:13px; color:rgba(255,255,255,0.7);
  background:none; border:0; cursor:pointer; font-family:inherit;
}
.quiz__back:disabled{ opacity:.3; cursor:default; }
.quiz__navline{ flex:1; height:1px; background:rgba(255,255,255,0.1); }
.quiz__navhint{ font-size:12px; color:rgba(255,255,255,0.5); }

.quiz__done-eb{ margin-bottom:12px; }
.quiz__done-q{ margin-bottom:24px; }
.quiz__form{ display:grid; gap:12px; }
.quiz__input{
  padding:14px 16px; border-radius:999px; background:transparent; font-size:14px;
  border:1px solid rgba(255,255,255,0.2); color:#fff; font-family:inherit;
}
.quiz__input::placeholder{ color:rgba(255,255,255,0.5); }
.quiz__submit{ margin-top:20px; width:100%; justify-content:center; background:var(--copper); color:#fff; }
.quiz__consent{
  margin-top:16px; display:flex; gap:8px; align-items:flex-start;
  font-size:12px; color:rgba(255,255,255,0.5); line-height:1.5; cursor:pointer;
}
.quiz__consent input{ margin-top:2px; flex:none; accent-color:#fff; }
.quiz__consent a{ color:rgba(255,255,255,0.78); text-decoration:underline; }

@media (min-width: 640px){
  .quiz__h2{ font-size:52px; }
  .quiz__opts{ grid-template-columns:repeat(3,1fr); }
  .quiz__cards--3{ grid-template-columns:repeat(3,1fr); }
  .quiz__form{ grid-template-columns:repeat(2,1fr); }
  .quiz__submit{ width:auto; }
}
@media (min-width: 1024px){
  .quiz{ margin-top:128px; }
  .quiz__grid{ grid-template-columns:repeat(12,1fr); }
  .quiz__left{ grid-column:span 5; padding:48px; }
  .quiz__right{ grid-column:span 7; padding:40px; border-top:0; border-left:1px solid rgba(255,255,255,0.1); }
  .quiz__h2{ font-size:64px; }
  .quiz__q{ font-size:26px; }
  .quiz__photo{ display:block; }
}
@media (min-width: 1280px){
  .quiz__left{ padding:56px; }
  .quiz__right{ padding:48px; }
}

/* --- Quiz NATIVE variant — left column removed, right takes full width,
       answer grids force 4 columns on desktop. Mobile/tablet unchanged. --- */
.quiz--native .quiz__left{ display:none; }
.quiz--native .quiz__done-sub{
  margin: 12px 0 24px;
  font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
}
@media (min-width: 1024px){
  .quiz--native .quiz__grid{ grid-template-columns:1fr; }
  .quiz--native .quiz__right{
    grid-column: 1 / -1;
    border-left: 0;
    padding: 48px;
  }
  .quiz--native .quiz__cards,
  .quiz--native .quiz__opts{ grid-template-columns: repeat(4, 1fr); }
  /* Final step — name + phone + submit in one tight row */
  .quiz--native .quiz__form{
    grid-template-columns: minmax(0, 280px) minmax(0, 280px) auto;
    max-width: 740px;
    align-items: center;
  }
  .quiz--native .quiz__submit{ margin-top: 0; }
}
@media (min-width: 1280px){
  .quiz--native .quiz__right{ padding: 56px; }
}

/* ============================================================
   ABOUT = Trust + Materials (prototype — 1:1)
   ============================================================ */
.ab{ margin-top:96px; }

/* Trust */
.ab__t-grid{ display:grid; gap:40px; }
.ab__t-intro .eyebrow{ margin-bottom:16px; }
.ab__t-h2{ font-weight:300; font-size:28px; margin:0; }
.ab__t-h2 .font-serif{ font-style:italic; font-weight:300; }
.ab__t-lead{ margin:24px 0 0; font-size:15px; line-height:1.625; max-width:420px; }
.ab__t-link{ margin-top:24px; display:inline-block; font-size:14px; }

.ab__stats{ display:grid; grid-template-columns:repeat(2,1fr); column-gap:32px; row-gap:40px; }
.ab__stat{ border-top:1px solid var(--line); padding-top:20px; }
.ab__stat-top{ display:flex; align-items:baseline; gap:12px; }
.ab__stat-k{ font-family:"Playfair Display",Georgia,serif; font-weight:400; font-size:64px; line-height:.9; }
.ab__stat-u{ font-size:12px; text-transform:uppercase; letter-spacing:0.18em; color:var(--muted); }
.ab__stat-d{ font-size:14px; margin:12px 0 0; line-height:1.625; }

/* Materials */
.ab__mat{ margin-top:56px; }
.ab__m-grid{ display:grid; gap:40px; margin-bottom:40px; }
.ab__m-head .eyebrow{ margin-bottom:16px; }
.ab__m-h2{ font-weight:300; font-size:28px; margin:0; }
.ab__m-h2 .font-serif{ font-style:italic; font-weight:300; }
.ab__m-text{ font-size:15px; line-height:1.625; }

.ab__marquee{
  overflow:hidden; padding:28px 0;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.ab__marquee-track{
  display:flex; align-items:center; gap:56px; padding:0 40px;
  width:max-content; animation:marquee 50s linear infinite;
}
.ab__brand{
  font-family:"Playfair Display",Georgia,serif; font-weight:300;
  font-size:28px; color:var(--muted); white-space:nowrap;
}
.ab__dot{ margin:0 40px; opacity:.3; }

@media (min-width: 640px){
  .ab__t-h2{ font-size:36px; }
  .ab__m-h2{ font-size:36px; }
}
@media (min-width: 1024px){
  .ab{ margin-top:144px; }
  .ab__t-grid{ grid-template-columns:repeat(12,1fr); gap:64px; align-items:end; }
  .ab__t-intro{ grid-column:span 5; }
  .ab__stats{ grid-column:span 7; column-gap:48px; }
  .ab__t-h2{ font-size:42px; }
  .ab__stat-k{ font-size:88px; }
  .ab__mat{ margin-top:72px; }
  .ab__m-grid{ grid-template-columns:repeat(12,1fr); }
  .ab__m-head{ grid-column:span 5; }
  .ab__m-text{ grid-column:span 7; padding-top:8px; }
  .ab__m-h2{ font-size:42px; }
  .ab__brand{ font-size:40px; }
}

/* ============================================================
   FINAL CTA (prototype FinalCTA — 1:1)
   ============================================================ */
.btn-on-light{ background:var(--fixed-on-light); color:var(--fixed-on-dark); }
.btn-on-light:hover{ background:#000; }

.fcta{ margin-top:96px; }
.fcta__card{ position:relative; border-radius:22px; overflow:hidden; min-height:520px; }
.fcta__bg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block;
  filter:blur(10px); transform:scale(1.08);
}
.fcta__shade{
  position:absolute; inset:0;
  background:linear-gradient(120deg, rgba(19,19,16,0.78) 0%, rgba(19,19,16,0.3) 60%, rgba(19,19,16,0) 100%);
}
.fcta__content{
  position:relative; min-height:520px; padding:32px;
  display:grid; gap:32px; align-items:end;
}
.fcta__left{ color:#fff; }
.fcta__eyebrow{ margin-bottom:20px; color:rgba(255,255,255,0.7); }
.fcta__h2{ font-weight:300; font-size:36px; margin:0; }
.fcta__h2 .font-serif{ font-style:italic; font-weight:300; }
.fcta__after{ margin-top:32px; display:grid; gap:24px; }
.fcta__text{ margin:0; font-size:15px; line-height:1.6; color:rgba(255,255,255,0.85); }
.fcta__bullets{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.fcta__bullets li{ position:relative; padding-left:26px; font-size:14px; line-height:1.5; color:rgba(255,255,255,0.9); }
.fcta__bullets li::before{ content:"✓"; position:absolute; left:0; top:0; color:#fff; font-weight:700; }

.fcta__form-card{
  border-radius:18px; color:var(--fixed-on-light);
  background:rgba(245,241,234,0.96);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
}
.fcta__form-content{ padding:24px; }
.fcta__form-title{ font-size:15px; font-weight:500; }
.fcta__fields{ margin-top:20px; display:grid; gap:12px; }
.fcta__input{
  padding:14px 16px; border-radius:999px; font-size:14px;
  border:1px solid var(--fixed-line-light); background:#fff;
  color:var(--fixed-on-light); font-family:inherit;
}
.fcta__submit{ width:100%; margin-top:16px; justify-content:center; }
.fcta__phone{ margin-top:12px; font-size:12px; color:#6E6A62; }
.fcta__phone-num,.fcta__phone-num a{ color:var(--fixed-on-light); }
.fcta__check{
  margin-top:14px; display:flex; gap:8px; align-items:flex-start;
  font-size:12px; color:#6E6A62; line-height:1.5;
}
.fcta__check input{ margin-top:2px; flex:none; accent-color:var(--fixed-on-light); }
.fcta__check a{ color:var(--fixed-on-light); text-decoration:underline; }

@media (min-width: 640px){
  .fcta__h2{ font-size:52px; }
  .fcta__after{ grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
}
@media (min-width: 1024px){
  .fcta{ margin-top:144px; }
  .fcta__content{ grid-template-columns:repeat(12,1fr); padding:56px; }
  .fcta__after{ margin-top:40px; }
  .fcta__left{ grid-column:span 7; }
  .fcta__right{ grid-column:span 5; padding-left:32px; }
  .fcta__h2{ font-size:64px; }
  .fcta__form-content{ padding:28px; }
}
@media (min-width: 1280px){
  .fcta__content{ padding:80px; }
}

/* ============================================================
   REVIEWS (ported from old reviews.php — dark redesign)
   ============================================================ */
.rv{ margin-top:96px; }

/* Accordion wrapper (generic — used by reviews & production) */
.acc{ }
.acc__bar{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:24px;
  background:var(--bg-2); border:1px solid var(--line); border-radius:18px;
  padding:22px 24px; cursor:pointer; font-family:inherit; color:var(--ink);
  text-align:left; transition:border-color .2s ease, background .2s ease;
}
.acc__bar:hover{ border-color:rgba(255,255,255,0.2); }
.acc__title{
  display:inline-flex; align-items:center; gap:14px;
  font-weight:500; font-size:22px; line-height:1.2;
}
.acc__title svg{ flex:none; opacity:.55; transition:transform .3s ease, opacity .2s ease; }
.acc__bar:hover .acc__title svg{ opacity:.9; }
.acc.is-open .acc__title svg{ transform:rotate(180deg); opacity:.9; }
.acc__more{
  flex:none; display:inline-flex; align-items:center; gap:.5rem;
  padding:14px 26px; border-radius:999px;
  background:var(--fixed-on-dark); color:var(--fixed-on-light);
  font-size:15px; font-weight:500;
  transition:transform .2s ease, background .2s ease;
}
.acc__bar:hover .acc__more{ background:#fff; transform:translateY(-1px); }
.acc__more svg{ flex:none; transition:transform .3s ease; }
.acc.is-open .acc__more svg{ transform:rotate(180deg); }
.acc__panel{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .4s ease;
}
.acc__panel-inner{ overflow:hidden; min-height:0; }
.acc.is-open .acc__panel{ grid-template-rows:1fr; }
.acc.is-open .acc__panel-inner{ padding-top:40px; padding-bottom:32px; }

.rv__grid{ display:grid; gap:40px; }
.rv__left .eyebrow{ margin-bottom:16px; }
.rv__h2{ font-weight:300; font-size:28px; margin:0; line-height:1.15; }
.rv__sub{ margin-top:16px; font-size:16px; line-height:1.6; max-width:520px; }
.rv__widgets{ margin-top:24px; display:flex; gap:12px; flex-wrap:wrap; }
.rv__widget{
  background:var(--fixed-light); border:1px solid var(--fixed-line-light);
  border-radius:14px; padding:14px 16px;
  display:flex; flex-direction:column; gap:10px;
  min-width:200px; color:var(--fixed-on-light);
  transition:transform .2s ease;
}
.rv__widget:hover{ transform:translateY(-2px); }
.rv__logo{ height:22px; width:auto; align-self:flex-start; }
.rv__score-row{ display:flex; align-items:center; gap:10px; }
.rv__score{
  font-family:"Playfair Display",Georgia,serif; font-weight:400;
  font-size:28px; line-height:1; color:var(--fixed-on-light);
}
.rv__stars{ display:inline-flex; gap:2px; color:#FFB400; }
.rv__stars svg{ display:block; }
.rv__count{ font-size:13px; color:#6E6A62; }

.rv__right{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.rv__video{
  position:relative; display:block; aspect-ratio:4/3;
  border-radius:14px; overflow:hidden; background:var(--bg-2); cursor:pointer;
}
.rv__video img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.rv__video:hover img{ transform:scale(1.04); }
.rv__play{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:46px; height:46px; border-radius:999px;
  background:rgba(255,255,255,0.94); color:#131310;
  display:flex; align-items:center; justify-content:center;
  transition:transform .2s ease;
}
.rv__video:hover .rv__play{ transform:translate(-50%,-50%) scale(1.06); }

@media (min-width: 640px){
  .rv__h2{ font-size:36px; }
  .rv__right{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width: 1024px){
  .rv{ margin-top:144px; }
  .rv__grid{ grid-template-columns:5fr 7fr; align-items:start; gap:64px; }
  .rv__h2{ font-size:42px; }
  .acc__bar{ padding:26px 32px; }
  .acc__title{ font-size:26px; }
}

/* ============================================================
   ABOUT COMPANY (ported from old sections/about-old.php)
   ============================================================ */
.ac{ margin-top:14px; }  /* tight gap — follows the reviews accordion */
.ac__grid{ display:grid; gap:32px; }
.ac__col-l .eyebrow{ margin-bottom:16px; }
.ac__h2{ font-weight:300; font-size:32px; margin:0; line-height:1.1; }
.ac__desc{ margin-top:20px; font-size:16px; line-height:1.6; }
.ac__bullets{ margin-top:24px; display:flex; flex-direction:column; gap:14px; }
.ac__bullet{ display:flex; gap:12px; align-items:flex-start; }
.ac__bullet p{ margin:0; font-size:14px; line-height:1.6; color:var(--ink-2); }
.ac__bullet-i{
  flex:none; width:24px; height:24px; border-radius:999px;
  background:var(--bg-2); border:1px solid var(--line);
  color:var(--copper); font-weight:700; font-size:13px;
  display:flex; align-items:center; justify-content:center;
}
.ac__btn{ margin-top:24px; }
.ac__col-r{ display:flex; }
.ac__photo{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:18px; display:block; }
.ac__numbers{ margin-top:48px; }
@media (min-width: 1024px){ .ac__numbers{ margin-top:72px; } }

@media (min-width: 640px){
  .ac__h2{ font-size:44px; }
}
@media (min-width: 1024px){
  .ac{ margin-top:16px; }
  .ac__grid{ grid-template-columns:7fr 5fr; gap:48px; align-items:stretch; }
  .ac__h2{ font-size:54px; }
  .ac__photo{ aspect-ratio:auto; height:100%; min-height:360px; }
}

/* ============================================================
   PRODUCTION (synthesized from about-long.php)
   ============================================================ */
.pr{ margin-top:14px; }  /* tight gap — follows the about-company accordion */
.pr__head{ margin-bottom:32px; }
.pr__head .eyebrow{ margin-bottom:16px; }
.pr__h2{ font-weight:300; font-size:32px; margin:0; line-height:1.1; }
.pr__lead{ margin-top:20px; font-size:16px; line-height:1.6; max-width:760px; }
.pr__cards{ margin-top:8px; display:grid; grid-template-columns:1fr; gap:20px; }
.pr__card{
  background:var(--bg-2); border:1px solid var(--line);
  border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .2s ease, border-color .2s ease;
}
.pr__card:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,0.18); }
.pr__card img{ width:100%; aspect-ratio:16/10; object-fit:cover; display:block; }
.pr__card-body{ padding:20px 22px; }
.pr__card-t{ margin:0; font-size:18px; font-weight:500; }
.pr__card-d{ margin:10px 0 0; font-size:14px; line-height:1.55; }

@media (min-width: 640px){
  .pr__h2{ font-size:44px; }
  .pr__cards{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width: 1024px){
  .pr{ margin-top:16px; }
  .pr__h2{ font-size:54px; }
}

/* ============================================================
   VIDEO POPUP (reviews)
   ============================================================ */
.video-popup{
  position:fixed; inset:0; z-index:100;
  display:none; align-items:center; justify-content:center; padding:20px;
}
.video-popup.active{ display:flex; }
.video-popup__overlay{
  position:absolute; inset:0; background:rgba(0,0,0,0.82);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}
.video-popup__container{ position:relative; z-index:1; width:100%; max-width:560px; }
.video-popup__close{
  position:absolute; top:-44px; right:0;
  background:none; border:0; color:#fff; cursor:pointer; padding:4px;
}
.video-popup__content{ display:flex; flex-direction:column; gap:16px; }
.video-popup__video{
  display:block; margin:0 auto; max-width:100%; max-height:78vh;
  border-radius:16px; background:#000;
}
.video-popup__cta{ margin:0; text-align:center; font-size:14px; color:var(--ink-2); }
.video-popup__cta a{ color:var(--ink); text-decoration:underline; }

/* ============================================================
   PROJECT PAGE (.proj — used by pages/project.php)
   Layout: .proj--h for horizontal photos (this template), .proj--v
   will come later for vertical/scarce-photo cases.
   ============================================================ */
.proj{ background: var(--bg); color: var(--ink-2); padding-bottom: 64px; }
.proj section + section{ margin-top: 64px; }

/* Breadcrumbs */
.proj__breadcrumbs{ padding: 24px 0 0; font-size: 13px; color: var(--muted); }
.proj__breadcrumbs a{ color: var(--muted); text-decoration: none; }
.proj__breadcrumbs a:hover{ color: var(--ink); }
.proj__bc-sep{ margin: 0 8px; opacity: .5; }
.proj__bc-step{ color: var(--muted); }
.proj__bc-here{ color: var(--ink); }

/* Hero — reuses .hero/.hero__stage/.hero__shade from the home page.
   .proj__hero adds the top-left chip and tightens the title spec. */
.proj__hero{ margin-top: 8px; }
.proj__hero-chip{
  display: inline-block;
  padding: 8px 16px;
  background: rgba(19,19,16,0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
}
.proj__hero-h1{ max-width: 880px; }
/* Project titles are descriptive ("Холодное остекление дома в Селиховском
   поселении (Тверская обл.) — алюминий + ПВХ") and don't fit at the marketing
   sizes of .hero__h1 (52px / 64px). Step the desktop sizes down. */
@media (min-width: 640px) { .proj__hero-h1{ font-size: 36px; } }
@media (min-width: 1024px){ .proj__hero-h1{ font-size: 44px; } }
/* Project hero — push CTAs to the right of their column so visually they sit
   in the bottom-right of the hero stage (less margin on the right, more breath
   on the left). */
.proj__hero .hero__cta{ justify-content: flex-end; }

/* Description */
.proj__desc-grid{ display: grid; grid-template-columns: 1fr; gap: 16px; }
.proj__desc-h{
  font-family: inherit; font-weight: 300;
  font-size: 24px; line-height: 1.2; letter-spacing: -.015em;
  margin: 0; color: #fff;
}
.proj__desc-body p{ color: var(--ink-2); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.proj__desc-body p:last-child{ margin-bottom: 0; }
@media (min-width: 1024px){
  .proj__desc-h{ font-size: 30px; }
}

/* Highlights — 4 tiles. Base = single column for mobile; bumps to 4 cols at 640px+. */
.proj__hl-grid{
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line); border-radius: 16px; overflow: hidden;
}
.proj__hl{ background: var(--bg); padding: 24px; }
.proj__hl-v{ font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; }
.proj__hl-l{ margin-top: 6px; font-size: 13px; }

/* Specs */
.proj__specs-list{ margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.proj__specs-row{
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.proj__specs-k{ margin: 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.proj__specs-v{ margin: 0; font-size: 15px; color: var(--ink); }

/* Included checklist */
.proj__inc-list{ list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.proj__inc-list li{ display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.proj__inc-tick{
  flex: none; width: 22px; height: 22px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--copper);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* Gallery grid */
.proj__gal-grid{ margin-top: 16px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.proj__gal-item{ margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-2); }
.proj__gal-item img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.proj__gal-item:hover img{ transform: scale(1.03); }

/* ============================================================
   MID-PAGE CTA — full-bleed background photo with gradient overlay
   for readability. Same pattern as .fcta__card on the home page,
   but with darkening + horizontal gradient instead of blur.
   ============================================================ */
.proj__cta-card{
  position: relative; overflow: hidden;
  border-radius: 18px;
  background: var(--bg-2);
  min-height: 420px;
}
.proj__cta-bg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.proj__cta-shade{
  position: absolute; inset: 0;
  background:
    /* Slight overall darken for readability over the photo */
    linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.30)),
    /* Heavier on the left where the text/form lives, fades to clear on the right */
    linear-gradient(to right,
      rgba(19,19,16,0.92) 0%,
      rgba(19,19,16,0.78) 25%,
      rgba(19,19,16,0.42) 50%,
      rgba(19,19,16,0.12) 75%,
      rgba(19,19,16,0) 100%);
}
.proj__cta-content{
  position: relative;
  padding: 28px 24px;
}

/* Text */
.proj__cta-h{
  font-family: inherit; font-weight: 300;
  font-size: 24px; line-height: 1.2; letter-spacing: -.015em;
  margin: 10px 0 0; color: #fff; max-width: 420px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.proj__cta-h .font-serif{ font-style: italic; font-weight: 300; }
.proj__cta-eyebrow{ color: rgba(255,255,255,0.75); }
.proj__cta-sub{
  margin: 12px 0 0; font-size: 14px; line-height: 1.55;
  max-width: 420px; color: rgba(255,255,255,0.78);
}

/* Vertical form */
.proj__cta-form{
  margin-top: 22px;
  display: grid; gap: 10px;
  max-width: 400px;
}
.proj__cta-input{
  padding: 12px 18px; border-radius: 999px;
  background: rgba(19,19,16,0.65);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  font-family: inherit; font-size: 14px;
  width: 100%;
}
.proj__cta-input::placeholder{ color: rgba(255,255,255,0.55); }
.proj__cta-input:focus{
  outline: none; border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.proj__cta-btn{
  padding: 12px 24px; border-radius: 999px; border: 0;
  background: #fff; color: var(--bg);
  font-family: inherit; font-weight: 500; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  justify-self: start;
  transition: transform .15s ease;
}
.proj__cta-btn:hover{ transform: translateY(-1px); }
.proj__cta-check{
  margin-top: 16px;
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.5;
  max-width: 420px; cursor: pointer;
}
.proj__cta-check input{ margin-top: 2px; flex: none; accent-color: #fff; }
.proj__cta-check a{ color: #fff; text-decoration: underline; }

@media (min-width: 768px){
  .proj__cta-card{ min-height: 440px; }
  .proj__cta-content{ padding: 44px 48px; max-width: 60%; }
}
@media (min-width: 1024px){
  .proj__cta-card{ min-height: 480px; }
  .proj__cta-content{ padding: 56px 64px; max-width: 55%; }
  .proj__cta-h{ font-size: 30px; max-width: 540px; }
  .proj__cta-sub{ max-width: 540px; }
}

/* Related */
.proj__rel-head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.proj__rel-all{ font-size: 13px; color: var(--ink-2); text-decoration: none; }
.proj__rel-all:hover{ color: var(--ink); }
.proj__rel-grid{ display: grid; gap: 20px; grid-template-columns: 1fr; }
.proj__rel-card{ display: block; color: inherit; text-decoration: none; }
.proj__rel-img{ width: 100%; aspect-ratio: 4/3; border-radius: 14px; object-fit: cover; display: block; margin-bottom: 14px; transition: transform .25s ease; }
.proj__rel-card:hover .proj__rel-img{ transform: translateY(-3px); }
.proj__rel-meta{ font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.proj__rel-t{ font-size: 17px; font-weight: 500; margin: 0; color: var(--ink); }
.proj__rel-loc{ font-size: 13px; margin-top: 4px; }

/* Responsive */
@media (min-width: 640px){
  /* Highlights: columns match the actual tile count so partially-filled
     projects (e.g. only 2 of 4 fields set) don't leave dark empty cells. */
  .proj__hl-grid[data-tiles="1"]{ grid-template-columns: 1fr; }
  .proj__hl-grid[data-tiles="2"]{ grid-template-columns: repeat(2, 1fr); }
  .proj__hl-grid[data-tiles="3"]{ grid-template-columns: repeat(3, 1fr); }
  .proj__hl-grid,
  .proj__hl-grid[data-tiles="4"]{ grid-template-columns: repeat(4, 1fr); }
  .proj__inc-list{ grid-template-columns: repeat(2, 1fr); }
  .proj__gal-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .proj__rel-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px){
  .proj{ padding-bottom: 96px; }
  .proj section + section{ margin-top: 80px; }
  .proj__desc-grid{ grid-template-columns: 200px 1fr; gap: 48px; }
  .proj__desc-body p{ font-size: 17px; }
  .proj__specs-list{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
  .proj__specs-list .proj__specs-row{ grid-column: span 1; }
  .proj__gal-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   PORTFOLIO LISTING — /portfolio page
   Dynamic grid of all 293 projects with client-side filters.
   Uses $proj_cover (same photo as hero) so the listing acts as
   a visual audit of every project's cover image.
   ============================================================ */
.pflist{ padding: 32px 0 96px; background: var(--bg); color: var(--ink); }
.pflist__crumbs{ font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pflist__crumbs a{ color: var(--ink-2); text-decoration: none; }
.pflist__crumbs a:hover{ color: var(--ink); }
.pflist__crumb-sep{ margin: 0 8px; opacity: .5; }

.pflist__head{ margin-bottom: 36px; }
.pflist__h1{
  font-family: inherit; font-weight: 300;
  font-size: 32px; line-height: 1.15; letter-spacing: -.02em;
  margin: 12px 0 16px; color: var(--ink); max-width: 720px;
}
.pflist__sub{ font-size: 15px; line-height: 1.625; max-width: 640px; margin: 0; }

/* Filters */
.pflist__filters{
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}
.pflist__filter-group{
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.pflist__filter-label{
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px; min-width: 36px;
}
.pflist__filter{
  font-family: inherit; font-size: 13px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--line); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pflist__filter:hover{ background: rgba(255,255,255,0.06); color: var(--ink); }
.pflist__filter.is-active{
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

.pflist__count{
  font-size: 13px; color: var(--muted); margin: 0 0 20px;
}

/* Grid */
.pflist__grid{
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
.pflist__card{
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pflist__card.is-hidden{ display: none; }
.pflist__card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.pflist__card-photo{
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg);
  overflow: hidden;
}
.pflist__card-photo img{
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .3s ease;
}
.pflist__card:hover .pflist__card-photo img{ transform: scale(1.04); }
.pflist__card-nophoto{
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.02) 0 12px,
    rgba(255,255,255,0.04) 12px 24px);
}
.pflist__card-info{ padding: 16px 18px 20px; }
.pflist__card-meta{
  font-size: 11px; letter-spacing: .04em; color: var(--muted);
  margin-bottom: 6px;
}
.pflist__card-t{
  font-family: inherit; font-weight: 400; font-size: 15px;
  line-height: 1.35; margin: 0 0 8px; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pflist__card-loc{ font-size: 12px; }

/* Empty state */
.pflist__empty{
  padding: 48px 24px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; color: var(--muted);
}
.pflist__empty p{ margin: 0 0 16px; }
.pflist__reset{
  font-family: inherit; font-size: 13px;
  padding: 8px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 0; cursor: pointer;
}

@media (min-width: 640px){
  .pflist__grid{ grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pflist__h1{ font-size: 40px; }
}
@media (min-width: 1024px){
  .pflist__h1{ font-size: 52px; max-width: 880px; }
  .pflist__grid{ grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (min-width: 1440px){
  .pflist__grid{ grid-template-columns: repeat(4, 1fr); }
}

/* ---- Mobile-only tweaks for the project page ---- */
@media (max-width: 639px){
  /* Hero — smaller meta chip + title; CTAs left-aligned (not right). */
  .proj__hero-chip{ font-size: 9px; padding: 5px 12px; letter-spacing: .1em; }
  .proj__hero-h1{ font-size: 24px; line-height: 1.2; }
  .proj__hero .hero__cta{ justify-content: flex-start; }
  /* Description body — denser copy. */
  .proj__desc-body p{ font-size: 14px; line-height: 1.65; margin: 0 0 12px; }
  /* Specs — tighter key/value. */
  .proj__specs-k{ font-size: 12px; }
  .proj__specs-v{ font-size: 13px; }
  /* Mid-CTA — gradient stays dark all the way across (no fade-to-photo edge on the right). */
  .proj__cta-shade{
    background:
      linear-gradient(rgba(0,0,0,0.40), rgba(0,0,0,0.40)),
      linear-gradient(to right,
        rgba(19,19,16,0.92) 0%,
        rgba(19,19,16,0.85) 50%,
        rgba(19,19,16,0.78) 100%);
  }
}

/* ============================================================
   FORM STATES — shared invalid/loading hints for lead forms
   ============================================================ */
.is-invalid{ border-color:#E55353 !important; box-shadow:0 0 0 1px rgba(229,83,83,0.35); }
.is-loading{ opacity:.7; pointer-events:none; cursor:progress; }

/* ============================================================
   ARTICLE PAGES DARK OVERRIDES (.article — used by pages/about etc.)
   Base layout/structure come from css/style.css; here we recolor
   to dark tokens and replace the old Russo One headings with
   Playfair Display from the dark type system.
   ============================================================ */
.article{
  background: var(--bg); color: var(--ink-2);
  padding: 64px 0 96px;
}
/* Match the home page's wrap: --maxw (1600px) with the standard side padding. */
.article__container{ max-width: var(--maxw); padding: 0 24px; }
@media (min-width: 1024px){ .article__container{ padding: 0 40px; } }

.article__breadcrumbs{ color: var(--muted); }
.article__breadcrumbs a{ color: var(--muted); transition: color .15s ease; }
.article__breadcrumbs a:hover{ color: var(--ink); }
.article__breadcrumbs span{ color: var(--muted); }

.article__title{
  font-family: inherit; font-weight: 300; font-style: normal;
  text-transform: none; letter-spacing: -.025em;
  font-size: 48px; line-height: 1.05; color: var(--ink);
}
.article__meta .article__tag{ color: var(--muted); letter-spacing:.04em; }

/* Hero img stays cinematic (21/9), never taller than 60% of viewport on big screens. */
.article__hero-img{
  aspect-ratio: 21 / 9; max-height: 60vh;
  border-radius: 18px; overflow: hidden;
  margin-bottom: 56px;
}
.article__hero-img img{
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 18px;
}

.article__lead{
  color: var(--ink) !important;
  font-size: 20px !important; line-height: 1.55 !important;
  font-weight: 400 !important;
}
.article__content p,
.article__section-content p,
.article__section-full p{ color: var(--ink-2); font-size: 16px; line-height: 1.7; }

.article__section h2,
.article__section-full h2,
.article__gallery h2{
  font-family: inherit; font-weight: 300; font-style: normal;
  text-transform: none; letter-spacing: -.02em;
  font-size: 32px; line-height: 1.15; color: var(--ink);
}

.article__section-img{ border-radius: 14px; }
.article__section-img img{ border-radius: 14px; }

.article__step{
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.article__step-num{
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic; color: rgba(255,255,255,0.12);
  font-size: 40px;
}
.article__step h3{ color: var(--ink); font-weight: 500; }
.article__step p{ color: var(--muted); }

/* Same crop strategy for the mid-page wide photo ("Контроль качества"). */
.article__wide-img{
  aspect-ratio: 21 / 9; max-height: 55vh;
  border-radius: 14px; overflow: hidden;
  margin: 24px 0 56px;
}
.article__wide-img img{
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px;
}

.article__gallery-grid figure{ border-radius: 14px; }
.article__gallery-grid img{ border-radius: 14px; }

.article__checklist li{ color: var(--ink-2); font-size: 16px; }
.article__checklist li::before{ color: var(--copper); font-weight: 700; }

/* Gallery "view all" CTA */
.article__gallery-cta{ margin-top: 28px; display:flex; justify-content:flex-start; }

/* Geography section — pin icons + 2-col list on desktop. */
.article__geo{ margin-bottom: 64px; }
.article__geo-head{ margin-bottom: 24px; max-width: 720px; }
.article__geo-head h2{
  font-family: inherit; font-weight: 300; font-style: normal;
  text-transform: none; letter-spacing: -.02em;
  font-size: 32px; line-height: 1.15; color: var(--ink);
  margin-bottom: 14px;
}
.article__geo-lead{ color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0; }
.article__geo-grid{
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 14px 32px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.article__geo-grid li{
  display:flex; align-items:center; gap:12px;
  color: var(--ink-2); font-size: 16px; line-height: 1.4;
}
.article__geo-grid li strong{ color: var(--ink); font-weight: 500; }
.article__geo-pin{ flex:none; color: var(--copper); }
@media (min-width: 640px){
  .article__geo-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .article__geo-grid{ grid-template-columns: repeat(3, 1fr); gap: 18px 40px; }
}

/* "When to contact us" CTA section — dark panel instead of the legacy #F8F8F8. */
.article__cta-section{
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.article__cta-section h2{ color: var(--ink); }
.article__cta-section .article__checklist li{ color: var(--ink-2); }

/* Feature cards ("Что производим" on /sotrudnichestvo etc.) */
.article__feature{
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.article__feature h3{ color: var(--ink); font-weight: 500; }
.article__feature p{ color: var(--muted); }

/* Inline email link (used in CTA blocks and contact lines) */
.article__email-link{
  color: var(--ink) !important;
  border-bottom: 2px solid var(--copper);
  text-decoration: none;
}
.article__email-link:hover{ border-bottom-color: var(--ink); }

/* "Позвоните сейчас:" inline phone CTA */
.article__contact-line{
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px; color: var(--ink-2);
  display:flex; flex-wrap:wrap; align-items:baseline; gap: 12px;
}
.article__contact-line a{
  font-size: 22px; font-weight: 500; color: var(--ink);
  text-decoration: none;
}
.article__contact-line a:hover{ color: #fff; text-decoration: underline; }

@media (max-width: 768px){
  .article{ padding: 40px 0 64px; }
  .article__title{ font-size: 32px; }
  .article__hero-img{ margin-bottom: 32px; }
  .article__section{ grid-template-columns: 1fr; gap: 24px; }
  .article__section--reverse{ direction: ltr; }
  .article__steps{ grid-template-columns: 1fr; gap: 16px; }
  .article__gallery-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL PAGES DARK OVERRIDES (.legal-page on /policy, /cookies, etc.)
   Long-form text pages: keep the narrow 800px column for readability,
   just recolor to the dark token system.
   ============================================================ */
.legal-page{
  background: var(--bg); color: var(--ink-2);
  padding: 64px 0 96px;
}
.legal-page__title{
  font-family: inherit; font-weight: 300; font-style: normal;
  text-transform: none; letter-spacing: -.025em;
  font-size: 36px; line-height: 1.1; color: var(--ink);
  text-align: left; margin-bottom: 32px;
}
.legal-page__content{ color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-page__content h2{
  font-family: inherit; font-weight: 300;
  font-size: 22px; color: var(--ink);
  margin: 40px 0 16px; letter-spacing: -.01em;
}
.legal-page__content p,
.legal-page__content li{ color: var(--ink-2); }
.legal-page__content a{ color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-page__content a:hover{ color: #fff; }

.legal-section{ margin-bottom: 40px; }
.legal-section h3{
  font-family: inherit; font-weight: 500;
  color: var(--ink); font-size: 17px;
  margin: 20px 0 8px;
}

.legal-table th,
.legal-table td{ border-color: var(--line); color: var(--ink-2); }
.legal-table th{ background: var(--bg-2); color: var(--ink); font-weight: 500; }

.legal-page__updated{
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 768px){
  .legal-page{ padding: 40px 0 64px; }
  .legal-page__title{ font-size: 28px; }
  .legal-page__content h2{ font-size: 19px; }
}

/* ============================================================
   REVIEW SECTIONS DARK OVERRIDES (.yandex-reviews + .twogis-reviews)
   Used on pages/otzyvy.php — parallel BEM, swap colors only,
   keep brand accents (Yandex red avatar, gold stars).
   ============================================================ */
.yandex-reviews,
.twogis-reviews{
  background: transparent;
  padding: 64px 0;
}
.yandex-reviews__container,
.twogis-reviews__container{
  max-width: var(--maxw); padding: 0 24px; margin: 0 auto;
}
.yandex-reviews__title,
.twogis-reviews__title{
  font-family: inherit; font-weight: 300; font-style: normal;
  text-transform: none; letter-spacing: -.02em;
  font-size: 32px; line-height: 1.15; color: var(--ink);
}
.yandex-reviews__card,
.twogis-reviews__card{
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: none;
}
.yandex-reviews__name,
.twogis-reviews__name{ color: var(--ink); }
.yandex-reviews__date,
.twogis-reviews__date{ color: var(--muted); }
.yandex-reviews__text,
.twogis-reviews__text{ color: var(--ink-2); }
.yandex-reviews__star,
.twogis-reviews__star{ color: #FFCC00; }

@media (min-width: 1024px){
  .yandex-reviews__container,
  .twogis-reviews__container{ padding: 0 40px; }
}
@media (max-width: 768px){
  .yandex-reviews,
  .twogis-reviews{ padding: 40px 0; }
  .yandex-reviews__title,
  .twogis-reviews__title{ font-size: 24px; }
}

/* ============================================================
   POPUP & SIDE-WIDGET DARK OVERRIDES.
   Base layout/positions come from css/style.css (loaded first).
   These rules override colors, backgrounds, borders, fonts so the
   widget + leadPopup + kvizPopup match the dark theme.
   ============================================================ */

/* --- Side widget --- */
.side-widget__container{
  background: rgba(28,28,24,0.96); /* var(--bg-2) with backdrop */
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.45);
  border:1px solid var(--line); border-right:0;
}
.side-widget__item{
  color: var(--ink); border-bottom:1px solid var(--line);
  font-family: inherit;
}
.side-widget__item:hover{ background: rgba(255,255,255,0.04); color:#fff; }
.side-widget__item--accent{ background: var(--copper); color:#fff; }
.side-widget__item--accent:hover{ background:#34543C; color:#fff; }
.side-widget__item--accent .side-widget__icon svg{ stroke:#fff; }
.side-widget__toggle{
  background: rgba(28,28,24,0.96); color: var(--muted);
  border-top:1px solid var(--line);
}
.side-widget__toggle:hover{ background: rgba(255,255,255,0.04); color:#fff; }
@media (max-width: 768px){
  .side-widget__container{ border-radius:0; border:0; border-top:1px solid var(--line); }
  .side-widget__item{ border-right:1px solid var(--line); border-bottom:0; }
}

/* --- Lead popup (modal) --- */
.lead-popup__overlay{ background: rgba(10,10,8,0.72); backdrop-filter: blur(6px); }
.lead-popup__container{
  background: var(--bg-2); color: var(--ink);
  border:1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
}
.lead-popup__close{ background: rgba(255,255,255,0.06); color: var(--ink); }
.lead-popup__close:hover{ background: rgba(255,255,255,0.12); }
.lead-popup__title{
  font-family: "Playfair Display", Georgia, serif; font-weight:400;
  color: var(--ink); text-transform: none; letter-spacing:0;
}
.lead-popup__subtitle{ color: var(--muted); }
.lead-popup__label{ color: var(--ink-2); font-family: inherit; }
.lead-popup__input{
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit;
}
.lead-popup__input::placeholder{ color: var(--muted); }
.lead-popup__input:focus{
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}
.lead-popup__input--error{ border-color:#E55353; }
.lead-popup__input--error:focus{ box-shadow: 0 0 0 3px rgba(229,83,83,0.15); }
.lead-popup__submit{
  background: var(--ink); color: var(--bg);
  font-family: inherit; border-radius: 999px; font-weight: 500;
}
.lead-popup__submit:hover:not(:disabled){ background:#fff; transform: translateY(-1px); }
.lead-popup__checkbox-text{ color: var(--muted); }
.lead-popup__checkbox-text a{ color: var(--ink); text-decoration: underline; }
.lead-popup__checkbox-custom{ border-color: var(--line); background: var(--bg); }
.lead-popup__checkbox:checked + .lead-popup__checkbox-custom{ background: var(--ink); border-color: var(--ink); }

/* --- Gallery popup (image lightbox, reused from thnks-gallery.php) --- */
.gallery-popup__arrow:hover{ background: rgba(255,255,255,0.22); }

/* CTA bar pinned to the bottom of the lightbox. */
.gallery-popup__cta{
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 11; display: flex; align-items: center; gap: 20px;
  padding: 14px 22px;
  background: rgba(19,19,16,0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  max-width: calc(100% - 48px);
}
.gallery-popup__cta-text{
  font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.35;
}
.gallery-popup__cta-btn{ flex: none; font-size: 14px; padding: 12px 22px; }
.gallery-popup__cta-tel{ display: flex; flex-direction: column; gap: 2px; flex: none; }
.gallery-popup__cta-tel-l{
  font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,0.55);
}
.gallery-popup__cta-tel-num{
  font-size: 17px; font-weight: 500; color: #fff; text-decoration: none;
  line-height: 1.1;
}
.gallery-popup__cta-tel-num:hover{ text-decoration: underline; }

@media (max-width: 768px){
  .gallery-popup__cta{
    flex-direction: column; gap: 12px; padding: 14px 18px;
    border-radius: 18px; left: 16px; right: 16px; transform: none;
    bottom: 20px; max-width: none; text-align: center;
  }
  .gallery-popup__cta-text{ font-size: 13px; }
  .gallery-popup__cta-tel{
    flex-direction: row; align-items: baseline; gap: 8px;
    justify-content: flex-end;
  }
  .gallery-popup__cta-tel-l{ font-size: 10px; }
  .gallery-popup__cta-tel-num{ font-size: 15px; }
}

/* --- Kviz popup (modal) --- */
.kviz-popup__overlay{ background: rgba(10,10,8,0.78); backdrop-filter: blur(6px); }
.kviz-popup__container{
  background: var(--bg-2); color: var(--ink);
  border:1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.kviz-popup__close{ background: rgba(255,255,255,0.06); color: var(--ink); }
.kviz-popup__close:hover{ background: rgba(255,255,255,0.12); }
.kviz-popup__step-num{ background: var(--copper); color:#fff; }
.kviz-popup__step-text{ color: var(--muted); }
.kviz-popup__percent{ color: var(--ink); }
.kviz-popup__progress-bar{ background: rgba(255,255,255,0.08); }
.kviz-popup__progress-fill{ background: linear-gradient(90deg, var(--copper), #4A6952); }
.kviz-popup__question{ color: var(--ink); font-family: inherit; }
.kviz-popup__question-sub{ color: var(--muted); }
.kviz-popup__answer-card{
  background: var(--bg); border-color: var(--line); color: var(--ink-2);
}
.kviz-popup__answer-card:hover{ border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.02); }
.kviz-popup__answer input:checked + .kviz-popup__answer-card{
  border-color: var(--ink); background: rgba(255,255,255,0.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.kviz-popup__answer-title{ color: var(--ink); }
.kviz-popup__answer-desc{ color: var(--muted); }
.kviz-popup__answer-image{ border-radius: 10px; overflow: hidden; }
/* Tinted icon backgrounds — softer on dark */
.kviz-popup__answer-icon{ background: rgba(255,255,255,0.06); color: var(--ink); }
.kviz-popup__answer-icon--yellow{ background: rgba(245,158,11,0.18); color:#F5C36B; }
.kviz-popup__answer-icon--orange{ background: rgba(234,135,72,0.18); color:#F0A472; }
.kviz-popup__answer-icon--blue{   background: rgba( 96,165,250,0.18); color:#8FB6E8; }
.kviz-popup__answer-icon--red{    background: rgba(229,83,83,0.18);  color:#E68B8B; }
.kviz-popup__answer-icon--gray{   background: rgba(255,255,255,0.06); color: var(--muted); }
.kviz-popup__answer-budget{ color:#fff; }

/* Kviz contact form */
.kviz-popup__form-label{ color: var(--ink-2); }
.kviz-popup__form-input{
  background: var(--bg); color: var(--ink);
  border:1px solid var(--line); border-radius: 12px;
  font-family: inherit;
}
.kviz-popup__form-input::placeholder{ color: var(--muted); }
.kviz-popup__form-input:focus{ border-color: rgba(255,255,255,0.25); outline:none; box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
.kviz-popup__form-input--error{ border-color:#E55353; }
.kviz-popup__messenger-btn{
  background: var(--bg); color: var(--ink);
  border:1px solid var(--line); border-radius: 999px;
}
.kviz-popup__messenger input:checked + .kviz-popup__messenger-btn{
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.kviz-popup__checkbox-text{ color: var(--muted); }
.kviz-popup__checkbox-text a{ color: var(--ink); text-decoration: underline; }
.kviz-popup__checkbox-mark{ background: var(--bg); border-color: var(--line); }
.kviz-popup__checkbox input:checked + .kviz-popup__checkbox-mark{ background: var(--ink); border-color: var(--ink); }
.kviz-popup__submit{
  background: var(--copper); color:#fff;
  font-family: inherit; border-radius: 999px;
}
.kviz-popup__submit:hover:not(:disabled){ background:#34543C; }
.kviz-popup__nav-btn{
  background: var(--bg); color: var(--ink);
  border:1px solid var(--line); border-radius: 999px;
  font-family: inherit;
}
.kviz-popup__nav-btn:hover:not(:disabled){ background: rgba(255,255,255,0.04); }
.kviz-popup__nav-btn--next:not(:disabled){ background: var(--ink); color: var(--bg); border-color: var(--ink); }
.kviz-popup__nav-btn--next:not(:disabled):hover{ background:#fff; }

/* ============================================================
   MOBILE TWEAKS — overrides for < 640px only.
   Touch only what feels off on a phone; desktop styles untouched.
   ============================================================ */
@media (max-width: 639px) {
  /* HERO — bullets stack vertically (was 2×2). */
  .hero__stats{ grid-template-columns:1fr; }

  /* CATEGORIES — narrower images (square), smaller card text + CTA. */
  .cat__ph{ aspect-ratio:1/1; margin-bottom:14px; }
  .cat__t{ font-size:17px; }
  .cat__desc{ font-size:12px; line-height:1.5; }
  .cat__cta{ font-size:12px; padding:9px 14px; }
  .cat__cta svg{ width:14px; height:14px; }

  /* PORTFOLIO — calmer typography + flatter aspect ratios. */
  .pf__feat-title{ font-size:24px; }
  .pf__card-photo{ aspect-ratio:16/10; margin-bottom:12px; }
  .pf__more{ aspect-ratio:1/1; }
  .pf__more-n{ font-size:64px; }
  .pf__more-l{ font-size:13px; }
  .pf__stat-v{ font-size:30px; }
  .pf__stat-l{ font-size:13px; }
  /* CTA panel — full-width text on mobile (desktop keeps the column-restrict). */
  .pf__cta-h{ max-width:none; font-size:17px; }
  .pf__cta-sub{ max-width:none; font-size:13px; }

  /* ACCORDION (Reviews / About Company / Production) — leaner bar. */
  .acc__bar{ padding:16px 18px; gap:14px; }
  .acc__title{ font-size:16px; gap:10px; }
  .acc__title svg{ width:16px; height:16px; }
  .acc__more{ padding:8px 14px; font-size:12px; gap:.35rem; }
  .acc__more svg{ width:12px; height:12px; }
}
