/* =========================================================
   KREPPI.RU — industrial B2B stylesheet
   ========================================================= */

:root{
  --ink:            #14181d;
  --ink-soft:       #3a4149;
  --muted:          #64707b;
  --line:           #e2e6ea;
  --bg:             #f4f5f7;
  --surface:        #ffffff;
  --media-bg:       #f6f7f8;
  --dark:           #14181d;
  --dark-2:         #1d232b;
  --dark-3:         #262e38;
  --red:            #e3131c;
  --red-dark:       #b80f16;
  --red-ink:        #7a0a10;
  --amber:          #d98a12;
  --amber-bg:       #fff7e8;
  --amber-line:     #f0c56a;
  --ok:             #1c8a4a;
  --radius:         10px;
  --radius-sm:      6px;
  --shadow:         0 10px 30px rgba(20,24,29,.08);
  --shadow-sm:      0 2px 10px rgba(20,24,29,.06);
  --maxw:           1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x:hidden; width:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x:hidden;
  width:100%;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0 0 .5em; line-height:1.15; font-weight:800; letter-spacing:-.01em; }
p{ margin:0 0 1em; color: var(--ink-soft); }
.container{ max-width: var(--maxw); margin:0 auto; padding:0 24px; }
section{ padding: 72px 0; }
.section-tight{ padding: 48px 0; }
.section-alt{ background: var(--surface); }
.section-dark{ background: var(--dark); color:#fff; }
.section-dark p{ color: #b7bfc8; }
.section-dark h2, .section-dark h3{ color:#fff; }

/* ---------- eyebrow / tags ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before{ content:""; width:22px; height:3px; background: var(--red); border-radius:2px; }
.section-dark .eyebrow{ color:#ff5a63; }

.head-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:36px; }
.head-row h2{ margin-bottom:0; }
.lead{ font-size:18px; color: var(--muted); max-width:640px; }
.section-dark .lead{ color:#b7bfc8; }

h1{ font-size: clamp(34px,4.8vw,58px); letter-spacing:-.015em; }
h2{ font-size: clamp(28px,3.4vw,44px); letter-spacing:-.01em; }
h3{ font-size: 20px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 14px 26px; border-radius: 999px; font-weight:800; font-size:15px;
  letter-spacing:.01em; border: 2px solid transparent; cursor:pointer;
  transition: all .15s ease; white-space:nowrap;
}
.btn-primary{ background: var(--red); color:#fff; }
.btn-primary:hover{ background: var(--red-dark); }
.btn-outline{ background: transparent; border-color: rgba(255,255,255,.35); color:#fff; }
.btn-outline:hover{ border-color:#fff; }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--ink); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:13.5px; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; }

.cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 28px; }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background:#fff; border-bottom:1px solid var(--line);
}
.topbar{
  background: var(--dark); color:#c9cfd6; font-size:13px;
}
.topbar .container{ display:flex; align-items:center; justify-content:space-between; padding-top:8px; padding-bottom:8px; gap:16px; flex-wrap:wrap; }
.topbar a{ color:#c9cfd6; }
.topbar a:hover{ color:#fff; }
.topbar-links{ display:flex; gap:22px; flex-wrap:wrap; }
.topbar-links span, .topbar-links a{ display:inline-flex; align-items:center; gap:6px; }
.topbar-cta{ font-weight:700; color:#ff5a63; }

.navwrap{ display:flex; align-items:center; justify-content:space-between; padding:14px 0 10px; gap:16px; }
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand img{ height:52px; width:auto; }

/* Homepage-only: tagline under the logo. Scoped modifier so other pages'
   plain .brand link (logo only) is untouched. */
.brand.brand-tagline{ flex-direction:column; align-items:flex-start; gap:2px; }
.brand-tagline-text{
  font-size:12px; font-weight:600; color: var(--muted); line-height:1.25;
  max-width:220px; white-space:normal;
}
@media (max-width:640px){
  .brand-tagline-text{ font-size:10.5px; max-width:170px; }
}
@media (max-width:400px){
  .brand-tagline-text{ max-width:150px; }
}

.main-nav{ display:flex; align-items:center; gap:0; flex:1; justify-content:center; }
.main-nav > ul{ display:flex; align-items:center; gap:0; }
.main-nav a.nav-link{
  display:flex; align-items:center; gap:5px; padding:10px 11px; border-radius:8px;
  font-weight:700; font-size:14px; color: var(--ink); white-space:nowrap;
}
.main-nav a.nav-link:hover, .main-nav li.open > a.nav-link{ color: var(--red); background: #fdeceb; }
.main-nav li.current > a.nav-link{ color: var(--red); }
.has-dropdown{ position:relative; }
.caret{ width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-top:-4px; transition: transform .15s; }
.has-dropdown.open .caret{ transform: rotate(-135deg); margin-top:2px; }

.dropdown{
  position:absolute; top:100%; left:0; min-width:280px; max-width:min(340px, calc(100vw - 32px));
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding:10px; display:none; z-index:50;
}
/* items positioned toward the right edge of the nav open leftward instead,
   so the panel can't push past the viewport's right edge and force a
   horizontal scrollbar on the whole page */
.dropdown-right .dropdown{ left:auto; right:0; }
.has-dropdown.open .dropdown{ display:block; }
.dropdown a{ display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:8px; font-weight:700; font-size:14px; }
.dropdown a small{ font-weight:500; color: var(--muted); font-size:12.5px; }
.dropdown a:hover{ background: var(--bg); color: var(--red); }
.dropdown hr{ border:none; border-top:1px solid var(--line); margin:8px 4px; }

.header-actions{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.tel-link{ font-weight:800; font-size:15px; }
.tel-link small{ display:block; font-weight:600; font-size:11px; color: var(--muted); text-transform:uppercase; letter-spacing:.05em; }

/* Phone link + CTA button live in their own thin strip under the nav row
   (not inline with it) so they never compete with the menu for
   horizontal space. */
.header-cta-row{ display:flex; align-items:center; justify-content:flex-end; gap:20px; padding-bottom:12px; }

.burger{ display:none; width:44px; height:44px; border-radius:8px; border:1px solid var(--line); background:#fff; cursor:pointer; align-items:center; justify-content:center; flex-direction:column; gap:4px; flex-shrink:0; position:relative; }
.burger span{ width:20px; height:2px; background: var(--ink); border-radius:2px; }

.mobile-nav-cta{ display:none; }

/* ---------- mobile nav ----------
   Full-screen off-canvas overlay. `.main-nav` is a flex column so its three
   zones (brand strip / scrollable link list / CTA) can be reordered purely
   with `order` without touching the markup: the CTA link sits first in the
   HTML (right after <nav>) but is pushed to the bottom visually via
   order:1, while the ul (order:0, default) and the ::before brand strip
   (order:-1) stay on top. Only the ul scrolls (overflow-y), the outer nav
   itself clips (overflow:hidden) so there's never a double scrollbar.
   z-index is intentionally far above the header's own stacking (up to 200
   on the homepage) so the panel is always the topmost, fully opaque layer
   — see also the body.nav-open .site-header rule below, which is the
   actual fix for the "menu renders as a broken fragment" bug: iOS Safari
   was collapsing this fixed-position panel into the header's box because
   .main-nav is a DOM descendant of .site-header, and the scrolled header
   applies backdrop-filter — which creates a new CSS containing block for
   fixed descendants, silently reparenting the "fixed" panel from the
   viewport to that small header box instead. */
@media (max-width: 1080px){
  .main-nav{
    position:fixed; inset:0; background:#fff;
    display:flex; flex-direction:column;
    transform: translateX(100%); transition: transform .25s ease;
    overflow:hidden; z-index:500;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav::before{
    content:"КРЕППИ"; order:-1; flex-shrink:0;
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 76px 14px 20px;
    font-weight:900; font-size:13px; letter-spacing:.14em; text-transform:uppercase;
    color: var(--muted); border-bottom:1px solid var(--line);
  }
  .main-nav > ul{
    order:0; flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
    flex-direction:column; align-items:stretch; width:100%; gap:4px; margin:0; padding:10px 20px 20px;
  }
  .main-nav a.nav-link{ padding:14px 10px; font-size:17px; border-bottom:1px solid var(--line); border-radius:0; justify-content:space-between; min-height:48px; }
  .dropdown{ position:static; min-width:0; width:100%; max-width:100%; box-shadow:none; border:none; display:none; padding:0 0 0 14px; }
  .has-dropdown.open .dropdown{ display:block; }
  .header-cta-row{ display:none; }
  .burger{ display:flex; }

  /* the same burger button doubles as the panel's close (×) control: once
     the menu is open it detaches from the header row and pins itself to
     the top-right corner of the viewport, above the panel's own z-index,
     and its three bars morph into an X. !important is needed on the few
     visual properties because the homepage's transparent-header skin
     (#page-home .site-header .burger, an ID selector) otherwise outranks
     this state on specificity alone. */
  body.nav-open .burger{
    position:fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); right:16px;
    z-index:501; background:#fff !important; border-color:var(--line) !important;
  }
  body.nav-open .burger span{ background: var(--ink) !important; transition: transform .15s ease, opacity .15s ease; }
  body.nav-open .burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2){ opacity:0; }
  body.nav-open .burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  .mobile-nav-cta{
    order:1; flex-shrink:0; display:block; text-align:center; background: var(--red); color:#fff; font-weight:800;
    font-size:15px; padding:14px; border-radius:10px; min-height:48px; line-height:20px;
    margin: 4px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-nav-cta:hover{ background: var(--red-dark); }
}

@media (max-width: 640px){
  .topbar .container > span{ display:none; }
  .container{ padding:0 16px; }
}

@media (max-width: 400px){
  .brand img{ height:40px; }
}

@media (max-width: 560px){
  .form-panel, .calc-panel-wrap{ padding:20px; }
  .cta-band{ padding:28px; }
}

/* JS sets body.style.top to -scrollY while the panel is open (an
   overflow:hidden-only lock doesn't reliably stop background rubber-band
   scrolling on iOS Safari); scroll position is restored on close. */
body.nav-open{ position:fixed; left:0; right:0; width:100%; overflow:hidden; }

/* Neutralizes the homepage's on-scroll backdrop-filter while the mobile
   menu is open — see the long comment above .main-nav in the mobile-nav
   block for why this specific property is the root cause of the panel
   rendering as a collapsed fragment instead of a full-screen overlay. */
body.nav-open .site-header{ backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background: radial-gradient(1100px 500px at 85% -10%, #2a333f 0%, var(--dark) 55%), var(--dark);
  color:#fff; padding: 76px 0 84px;
}
.hero .container{ display:grid; grid-template-columns: 1.15fr .85fr; gap:48px; align-items:center; }
.hero-badges{ display:flex; gap:10px; flex-wrap:wrap; margin-top:26px; }
.hero-badge{ display:flex; align-items:center; gap:8px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); padding:8px 14px; border-radius:999px; font-size:13px; font-weight:700; color:#dfe4e9; }
.hero-badge .dot{ width:7px; height:7px; border-radius:50%; background: var(--red); }
.hero-media{ position:relative; }
/* Single-product / hero image plaque: light, even background so photographic
   product shots (own backdrop, shadows) don't fight a dark decorative frame.
   Fixed min-height keeps the box consistent regardless of each photo's own
   aspect ratio; the image itself never stretches or crops (object-fit:contain). */
.hero-media .frame{
  background: var(--media-bg);
  border:1px solid var(--line); border-radius:20px; box-shadow: var(--shadow);
  min-height:600px; padding:32px;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.hero-media .frame img{
  max-width:94%; max-height:760px; width:auto; height:auto;
  object-fit:contain; object-position:center; display:block;
}
@media (max-width:900px){
  .hero-media .frame{ min-height:400px; padding:24px; }
  .hero-media .frame img{ max-height:520px; }
}
@media (max-width:560px){
  .hero-media .frame{ min-height:320px; padding:16px; }
  .hero-media .frame img{ max-height:420px; }
}
/* Homepage-only variant: photo fills the whole card edge-to-edge instead
   of sitting padded/contained on the light plaque background. Height is
   pinned explicitly (matching the min-height steps below) and the image
   is absolutely positioned, because a flex child's height:100% doesn't
   resolve against a parent whose own height is only min-height-driven —
   that left visible white gaps top/bottom before this fix. */
.hero-media .frame.frame-fill{ padding:0; position:relative; height:600px; }
.hero-media .frame.frame-fill img{
  position:absolute; inset:0;
  width:100%; height:100%; max-width:100%; max-height:100%;
  object-fit:cover; object-position:center;
}
@media (max-width:900px){
  .hero-media .frame.frame-fill{ height:400px; }
}
@media (max-width:560px){
  .hero-media .frame.frame-fill{ height:320px; }
}
/* Snug "contain" variant: the image is never cropped (object-fit:contain)
   — for dense/multi-object compositions where cropping would cut
   something off. Unlike frame-fill's fixed per-breakpoint heights (built
   for arbitrary content), this box takes an aspect-ratio matched to the
   actual source photo (set per-instance via inline style="aspect-ratio:
   W / H", since different photos need different ratios) so the frame's
   own proportions track the image at every viewport width — the image
   fills the frame edge to edge with no letterboxing, instead of floating
   small inside leftover space when the box's shape didn't match the
   photo's. min-height is reset to 0 so the shared .frame min-height:600px
   doesn't fight the computed aspect-ratio height on narrow screens. */
.hero-media .frame.frame-contain-snug{
  padding:14px; min-height:0; height:auto;
}
.hero-media .frame.frame-contain-snug img{
  width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; display:block;
}
@media (max-width:900px){ .hero-media .frame.frame-contain-snug{ padding:12px; } }
@media (max-width:560px){ .hero-media .frame.frame-contain-snug{ padding:10px; } }
.hero-stat-strip{ display:flex; gap:14px; margin-top:22px; flex-wrap:wrap; }
.stat-pill{ background: rgba(255,255,255,.06); border:1px dashed rgba(255,255,255,.3); border-radius:12px; padding:12px 16px; flex:1; min-width:130px; }
.stat-pill b{ display:block; font-size:13px; color:#ff8f96; }
.stat-pill span{ font-size:12px; color:#b7bfc8; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-media{ order:-1; }
}

/* ---------- breadcrumb / page header ---------- */
.pagehead{
  position:relative; overflow:hidden; color:#fff; padding: 64px 0 58px;
  background: radial-gradient(900px 420px at 85% -25%, #242a32 0%, var(--dark) 60%), var(--dark);
}
.pagehead::before{
  content:""; position:absolute; inset:0; opacity:.4; pointer-events:none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px);
}
.pagehead .container{ position:relative; }
.pagehead .crumbs{ font-size:13px; color:#9aa4ad; margin-bottom:14px; }
.pagehead .crumbs a:hover{ color:#fff; }
.pagehead .crumbs .sep{ margin:0 6px; }
.pagehead h1{ margin-bottom:10px; letter-spacing:-.015em; }
.pagehead p{ color:#b7bfc8; max-width:680px; margin-bottom:0; }

/* ---------- grid / cards ---------- */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  padding:26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(227,19,28,.25); }
.card h3{ margin-bottom:8px; }
.card p:last-child{ margin-bottom:0; }
.icon-tile{
  width:52px; height:52px; border-radius:12px; background:#fdeceb; color: var(--red);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; flex-shrink:0;
  transition: transform .2s ease;
}
.icon-tile svg{ width:25px; height:25px; }
.card:hover .icon-tile{ transform: scale(1.07); }

.card-link{ display:inline-flex; align-items:center; gap:6px; font-weight:800; color: var(--red); margin-top:12px; font-size:14px; }
.card-link .arrow{ transition: transform .15s; }
.card:hover .card-link .arrow{ transform: translateX(4px); }

/* product category cards */
.product-card{
  background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; display:flex; flex-direction:column;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.product-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
/* Equal-height light stage for every card in a grid — image is never
   stretched or cropped, just centered with even breathing room. */
.product-card .media{
  background: var(--media-bg); height:360px; padding:20px;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.product-card .media img{
  max-width:92%; max-height:92%; width:auto; height:auto;
  object-fit:contain; object-position:center; display:block;
}
@media (max-width:560px){
  .product-card .media{ height:280px; padding:16px; }
}
.product-card .body{ padding:24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-card .tagrow{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.tag{ font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; background:#f0f1f3; color: var(--ink-soft); padding:4px 10px; border-radius:999px; }
.tag-red{ background:#fdeceb; color:var(--red); }

/* ---------- placeholder blocks (data to be filled) ---------- */
.tbd{
  border:2px dashed var(--amber-line); background: var(--amber-bg); color:#8a6416;
  border-radius: var(--radius-sm); padding:14px 16px; font-size:13.5px; font-weight:600;
  display:flex; gap:10px; align-items:flex-start;
}
.tbd b{ color:#7a5000; }
.tbd .mark{ flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--amber); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:900; }
.tbd-inline{ display:inline-flex; padding:2px 8px; border-radius:5px; }

table.spec-table{ width:100%; border-collapse:collapse; font-size:14.5px; }
table.spec-table th, table.spec-table td{ text-align:left; padding:14px; border-bottom:1px solid var(--line); }
table.spec-table th{ width:42%; color: var(--muted); font-weight:700; background:#fafbfc; }
table.spec-table td{ font-weight:600; }
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow: var(--shadow-sm); }
.table-wrap table.spec-table{ min-width:480px; }
.table-wrap .cart-table{ border:none; }

/* ---------- steps / process ---------- */
.steps{ counter-reset: step; display:grid; grid-template-columns: repeat(4,1fr); gap:20px; position:relative; }
.steps::before{ content:""; position:absolute; top:26px; left:6%; right:6%; height:2px; background: var(--line); z-index:0; }
.section-dark .steps::before{ background: rgba(255,255,255,.14); }
@media (max-width:900px){ .steps{ grid-template-columns: repeat(2,1fr); } .steps::before{ display:none; } }
@media (max-width:560px){ .steps{ grid-template-columns: 1fr; } }
.step{ position:relative; z-index:1; padding-top:0; }
.step::before{
  counter-increment: step; content: counter(step,decimal-leading-zero);
  width:52px; height:52px; border-radius:50%; background:#fff; border:2px solid var(--red); color: var(--red);
  font-size:16px; font-weight:900; display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}

/* ---------- tools strip ---------- */
.tool-card{ text-align:center; }
.tool-card .media{
  background: var(--media-bg); border-radius:12px; box-shadow: var(--shadow-sm);
  height:260px; padding:20px; margin-bottom:14px;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.tool-card .media img{
  max-width:90%; max-height:90%; width:auto; height:auto;
  object-fit:contain; object-position:center; display:block;
}
@media (max-width:560px){
  .tool-card .media{ height:200px; padding:16px; }
}

/* ---------- forms ---------- */
.form-panel{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:32px; box-shadow: var(--shadow); }
.form-panel.on-dark{ background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.form-panel h3{ margin-bottom:6px; }
.form-panel .lead{ margin-bottom:22px; font-size:14.5px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; font-weight:700; margin-bottom:6px; color: var(--ink-soft); }
.on-dark .field label{ color:#dfe4e9; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:8px; font-family:inherit; font-size:14.5px;
  background:#fff; color: var(--ink); transition: border-color .15s;
}
.on-dark .field input, .on-dark .field select, .on-dark .field textarea{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color:#fff; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--red); }
.field textarea{ resize:vertical; min-height:100px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .field-row{ grid-template-columns:1fr; } }
.consent{ display:flex; gap:10px; align-items:flex-start; font-size:12.5px; color: var(--muted); margin:14px 0 18px; }
.on-dark .consent{ color:#9aa4ad; }
.consent input{ margin-top:3px; }
.form-note{ font-size:12.5px; color: var(--muted); margin-top:14px; }
.on-dark .form-note{ color:#8b95a0; }
.form-success{ display:none; align-items:center; gap:12px; background:#eafaf0; border:1px solid #b9e6c9; color:#146c37; padding:16px 18px; border-radius:10px; font-weight:700; font-size:14.5px; }
.form-success.show{ display:flex; }
.form-panel form.hidden{ display:none; }

/* ---------- CTA band ---------- */
.cta-band{
  position:relative; overflow:hidden;
  background: linear-gradient(120deg, var(--red-dark), var(--red)); color:#fff; border-radius:22px; padding:48px;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  box-shadow: 0 24px 60px -18px rgba(227,19,28,.5);
}
.cta-band::before{
  content:""; position:absolute; inset:0; opacity:.15; pointer-events:none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 2px, transparent 2px 18px);
}
.cta-band > *{ position:relative; }
.cta-band h2{ color:#fff; margin-bottom:8px; }
.cta-band p{ color:#ffe1e2; margin-bottom:0; }
.cta-band .btn-outline{ border-color: rgba(255,255,255,.6); }
.cta-band .btn-white{ background:#fff; color: var(--red-dark); }
.cta-band .btn-white:hover{ background:#ffe9e9; }

/* ---------- logos / trust strip ---------- */
.trust-strip{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; justify-content:space-between; padding:22px 0; }
.trust-strip .tbd{ flex:1; min-width:260px; }

/* ---------- footer ---------- */
.site-footer{ background: var(--dark); color:#b7bfc8; padding: 56px 0 0; font-size:14px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:36px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1); }
@media (max-width:900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color:#fff; font-size:14px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.footer-grid ul{ display:flex; flex-direction:column; gap:10px; }
.footer-grid a:hover{ color:#fff; }
.footer-brand img{ height:42px; margin-bottom:14px; }
/* the global p{color:var(--ink-soft)} rule (dark, meant for light
   backgrounds) was winning over the inherited light .site-footer color
   here since it's a direct match, not an inheritance — that's why this
   text was reading as near-invisible dark-on-dark. */
.footer-brand p{
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.65;
  max-width: 340px;
}
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:22px 0; gap:16px; flex-wrap:wrap; font-size:12.5px; color:#7c8790; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:34px; height:34px; border-radius:8px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88); font-weight:700; font-size:12.5px;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.footer-social a:hover{ background: var(--red); border-color: var(--red); color:#fff; }
.footer-tbd{ display:inline-block; font-style:italic; color:#8b95a0; border-bottom:1px dashed rgba(255,255,255,.3); }
.footer-tbd b{ color:#c9cfd6; font-style:normal; }

/* ---------- misc utility ---------- */
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:start; }
@media (max-width:900px){ .two-col{ grid-template-columns: 1fr; } }
.list-check{ display:flex; flex-direction:column; gap:12px; }
.list-check li{ display:flex; gap:12px; align-items:flex-start; color: var(--ink-soft); font-weight:600; font-size:15px; }
.list-check li::before{ content:"✓"; flex-shrink:0; width:22px; height:22px; border-radius:50%; background:#e9f9ee; color:var(--ok); font-size:12px; font-weight:900; display:flex; align-items:center; justify-content:center; margin-top:2px; }
.section-dark .list-check li{ color:#dfe4e9; }
.section-dark .list-check li::before{ background: rgba(28,138,74,.25); color:#5fe08e; }

.badge-num{ display:flex; gap:16px; align-items:flex-start; }
.badge-num b{
  font-size:15px; font-weight:900; color:#fff; background: var(--red); flex-shrink:0;
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
}

.compare-table th.h-vin{ color: var(--red); }
.compare-table th.h-epx{ color:#2456c9; }

.skip-link{ position:absolute; left:-999px; top:0; background:#fff; padding:10px 16px; z-index:1000; }
.skip-link:focus{ left:10px; top:10px; }

/* ---------- calculator ---------- */
.calc-panel-wrap{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:32px; box-shadow: var(--shadow); }
.calc-tabs{ display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap; }
.calc-tab-btn{ padding:12px 22px; border-radius:999px; border:2px solid var(--line); background:#fff; font-weight:800; font-size:14.5px; cursor:pointer; color: var(--ink-soft); transition: all .15s; }
.calc-tab-btn:hover{ border-color: var(--red); color: var(--red); }
.calc-tab-btn.active{ background: var(--red); color:#fff; border-color: var(--red); }
.calc-panel{ display:none; }
.calc-panel.active{ display:block; }
.calc-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:8px; }
@media (max-width:900px){ .calc-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .calc-grid{ grid-template-columns:1fr; } }
.calc-hint{ font-size:12px; color: var(--muted); margin-top:6px; }
.calc-actions{ display:flex; justify-content:flex-end; margin:8px 0 4px; }
.calc-actions button{ background:none; border:none; color: var(--red); font-weight:800; font-size:13px; cursor:pointer; padding:6px 0; }
.calc-results{ margin-top:30px; padding-top:26px; border-top:1px solid var(--line); }
.calc-results h3{ margin-bottom:16px; }
.calc-results-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:26px; }
@media (max-width:560px){ .calc-results-grid{ grid-template-columns:1fr; } }
.calc-result-box{ background:#fafbfc; border:1px solid var(--line); border-radius:10px; padding:16px 18px; }
.calc-result-box .num{ font-size:28px; font-weight:900; color: var(--red); line-height:1.2; }
.calc-result-box .lbl{ font-size:12.5px; color: var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.cart-table{ width:100%; border-collapse:collapse; font-size:13.5px; min-width:560px; }
.cart-table th, .cart-table td{ padding:11px 10px; border:1px solid var(--line); text-align:center; }
.cart-table th{ background:#fafbfc; font-weight:800; color: var(--ink-soft); }
.cart-table td.hl{ font-weight:900; color: var(--red); font-size:15px; }
/* calculator result tables only have 3 columns (label + 300мл + 400мл),
   not the 7-column diameter tables the shared 560px min-width was sized
   for — without this override they'd force needless horizontal scroll
   on mobile and look sparse/empty on desktop. */
#c-cart-table, #h-cart-table{ min-width:0; }
#c-cart-table th:first-child, #h-cart-table th:first-child{ width:52%; text-align:left; }
.calc-custom-cart{ display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; margin-top:22px; padding:18px; background:#fafbfc; border:1px dashed var(--line); border-radius:10px; }
.calc-custom-cart .field{ margin-bottom:0; min-width:180px; flex:1; }
.calc-custom-result{ font-size:14px; font-weight:700; color: var(--ink-soft); }
.calc-custom-result b{ color: var(--red); font-size:16px; }
.calc-disclaimer{ margin-top:24px; }

/* =========================================================
   HOMEPAGE REDESIGN — industrial / premium (2026-08-18)
   Everything below is scoped to #page-home or .hp-* classes
   (except .hero, which only index.html ever used) so the
   other 19 pages keep their current look untouched.
   ========================================================= */

:root{
  --concrete:      #dcd9d3;
  --concrete-2:    #cbc7c0;
  --concrete-ink:  #2b2f33;
}

.section-concrete{ background: var(--concrete); }
.section-concrete .eyebrow{ color: var(--red-dark); }
.section-concrete .muted-note{ color:#5c5f5a; }

/* ---------- fixed, transparent-to-dark header (home only) ---------- */
#page-home .site-header .topbar{ display:none; }
#page-home .site-header{
  position:fixed; top:0; left:0; right:0; width:100%; z-index:200;
  background:transparent; border-bottom:1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
#page-home .site-header .navwrap{ background:transparent; }
#page-home .site-header .brand img{ filter: drop-shadow(0 2px 8px rgba(0,0,0,.55)); }
#page-home .site-header .nav-link{ color:#fff; }
#page-home .site-header .nav-link:hover, #page-home .site-header li.open > .nav-link{ color:#fff; background: rgba(255,255,255,.14); }
#page-home .site-header li.current > .nav-link{ color:#ff5a63; }
#page-home .site-header .brand-tagline-text{ color: rgba(255,255,255,.8); text-shadow:0 1px 4px rgba(0,0,0,.5); }
#page-home .site-header .tel-link{ color:#fff; }
#page-home .site-header .tel-link small{ color: rgba(255,255,255,.65); }
#page-home .site-header .burger{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
#page-home .site-header .burger span{ background:#fff; }
#page-home .site-header .dropdown{ background:#fff; }
#page-home .site-header .dropdown a{ color: var(--ink); }

/* larger, more premium logo block (~30% bigger than the sitewide 52px) */
#page-home .site-header .navwrap{ padding:16px 0 12px; transition: padding .3s ease; }
#page-home .site-header .brand img{ height:68px; transition: height .3s ease, filter .2s ease; }
@media (max-width:768px){ #page-home .site-header .brand img{ height:58px; } }
@media (max-width:400px){ #page-home .site-header .brand img{ height:40px; } }

/* tighter, lighter, more premium nav (desktop row only — unscoped, these
   used to leak into the mobile off-canvas panel too since they don't sit
   inside a max-width query, shrinking mobile-menu tap targets back down
   to 13.5px/9px on the homepage specifically). */
@media (min-width:1081px){
  #page-home .site-header .main-nav > ul{ gap:2px; }
  #page-home .site-header .main-nav a.nav-link{ padding:9px 9px; font-weight:600; font-size:13.5px; gap:4px; }
  #page-home .site-header .caret{ width:6px; height:6px; }
}

/* compact, vertically-centered consultation block */
#page-home .site-header .header-cta-row{ gap:16px; padding-bottom:14px; }
#page-home .site-header .tel-link{ font-size:14px; }
#page-home .site-header .tel-link small{ font-size:10.5px; }
#page-home .site-header .btn-sm{ padding:9px 16px; font-size:13px; }

body.header-scrolled#page-home .site-header{
  background: rgba(16,19,23,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,.08);
}
/* logo shrinks ~15% once the header goes solid on scroll, so it keeps a low profile.
   Each tier below must stay smaller than its own non-scrolled size above (68/58/40),
   and each media block must come after the last so the narrower one wins the cascade. */
body.header-scrolled#page-home .site-header .navwrap{ padding:11px 0 9px; }
body.header-scrolled#page-home .site-header .brand img{ height:58px; }
@media (max-width:768px){ body.header-scrolled#page-home .site-header .brand img{ height:50px; } }
@media (max-width:400px){ body.header-scrolled#page-home .site-header .brand img{ height:35px; } }

@media (max-width:1080px){
  #page-home .site-header .main-nav .nav-link{ color: var(--ink); }
  #page-home .site-header .main-nav .nav-link:hover{ color: var(--red); background:#fdeceb; }
  /* these two were still falling through to the transparent-hero-header's
     white / pastel-red text colors (unscoped rules above, meant for the
     see-through desktop header) — invisible or low-contrast once the
     mobile panel's background is opaque white. */
  #page-home .site-header .main-nav li.open > .nav-link{ color: var(--red); background:#fdeceb; }
  #page-home .site-header .main-nav li.current > .nav-link{ color: var(--red); }
}

/* content start needs to clear the fixed header everywhere on home */
#page-home main{ display:block; }

/* ---------- hero ---------- */
.hp-hero{
  position:relative; overflow:hidden; min-height:92vh;
  display:flex; align-items:center;
  padding: 190px 0 72px;
  background: var(--dark);
  color:#fff;
}
.hp-hero-bg{ position:absolute; inset:0; z-index:0; }
.hp-hero-bg img{ width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.hp-hero-bg::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(10,12,15,.94) 0%, rgba(10,12,15,.82) 32%, rgba(10,12,15,.55) 58%, rgba(10,12,15,.35) 100%),
    linear-gradient(0deg, rgba(10,12,15,.65) 0%, rgba(10,12,15,0) 30%);
}
.hp-hero .container{ position:relative; z-index:1; }
.hp-hero-content{ max-width:760px; }
.hp-status{
  display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:800;
  letter-spacing:.14em; text-transform:uppercase; color:#ff8f96; margin-bottom:22px;
}
.hp-status::before{ content:""; width:26px; height:2px; background: var(--red); }
.hp-hero h1{
  font-size: clamp(38px, 5.6vw, 78px); line-height:1.04; letter-spacing:-.01em;
  font-weight:900; margin-bottom:22px; text-wrap:balance;
}
.hp-hero .lead{ color:#dfe4e9; font-size:clamp(16px,1.6vw,19px); max-width:560px; margin-bottom:0; }
.hp-hero .cta-row{ margin-top:34px; }
.hp-hero .btn-primary{ padding:17px 30px; font-size:16px; }
.hp-hero .btn-outline{ padding:17px 30px; font-size:16px; }
.hp-hero-badges{ display:flex; gap:22px; flex-wrap:wrap; margin-top:38px; padding-top:26px; border-top:1px solid rgba(255,255,255,.14); }
.hp-hero-badges span{ font-size:13px; font-weight:700; color:#b7bfc8; display:flex; align-items:center; gap:8px; }
.hp-hero-badges .dot{ width:6px; height:6px; border-radius:50%; background: var(--red); flex-shrink:0; }

@media (max-width:1080px){ .hp-hero{ padding-top:140px; } }
@media (max-width:900px){
  .hp-hero{ padding-top:132px; min-height:auto; padding-bottom:56px; }
}
@media (max-width:560px){
  .hp-hero{ padding-top:118px; }
  .hp-hero h1{ font-size: clamp(32px,9vw,44px); }
  .hp-hero-content{ max-width:none; }
}
@media (max-width:400px){ .hp-hero{ padding-top:104px; } }

/* ---------- advantages strip ---------- */
.hp-stats{ background: var(--surface); padding:0; }
.hp-stats-row{ display:grid; grid-template-columns:repeat(4,1fr); }
.hp-stat{ padding:44px 30px; border-left:1px solid var(--line); position:relative; }
.hp-stat:first-child{ border-left:none; }
.hp-stat-icon{ width:44px; height:44px; color: var(--red); margin-bottom:20px; }
.hp-stat-icon svg{ width:100%; height:100%; }
.hp-stat h3{ font-size:19px; margin-bottom:8px; letter-spacing:-.01em; }
.hp-stat p{ font-size:14px; margin-bottom:0; color: var(--muted); }
@media (max-width:900px){
  .hp-stats-row{ grid-template-columns:repeat(2,1fr); }
  .hp-stat:nth-child(2n+1){ border-left:none; }
  .hp-stat:nth-child(-n+2){ border-bottom:1px solid var(--line); }
}
@media (max-width:560px){
  .hp-stats-row{ grid-template-columns:1fr; }
  .hp-stat{ border-left:none !important; border-bottom:1px solid var(--line); }
  .hp-stat:last-child{ border-bottom:none; }
}

/* ---------- product showcase ---------- */
.hp-showcase{ display:flex; flex-direction:column; gap:28px; }
.hp-product{
  display:grid; grid-template-columns: .9fr 1.1fr; gap:0; align-items:stretch;
  background:#fff; border-radius:20px; overflow:hidden; box-shadow: var(--shadow);
}
.hp-product-media{ position:relative; background: linear-gradient(160deg,#f2f0ec,#e4e1da); min-height:360px; overflow:hidden; }
.hp-product-media img{ width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.hp-product-body{ padding:48px; display:flex; flex-direction:column; justify-content:center; }
.hp-product-body .tag{ align-self:flex-start; margin-bottom:16px; }
.hp-product-body h3{ font-size:clamp(24px,2.4vw,32px); margin-bottom:14px; }
.hp-product-body > p{ font-size:16px; margin-bottom:24px; }
.hp-feature-list{ display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; margin-bottom:30px; }
.hp-feature-list li{ display:flex; gap:10px; align-items:flex-start; font-size:14.5px; font-weight:600; color: var(--ink-soft); }
.hp-feature-list li::before{ content:""; flex-shrink:0; width:8px; height:8px; border-radius:2px; background: var(--red); margin-top:6px; transform:rotate(45deg); }
.hp-product--epoxy .hp-feature-list li::before{ background:#2456c9; }
.hp-product--reverse{ grid-template-columns: 1.1fr .9fr; }
.hp-product--reverse .hp-product-media{ order:2; }
.hp-product--reverse .hp-product-body{ order:1; }
@media (max-width:900px){
  .hp-product, .hp-product--reverse{ grid-template-columns:1fr; }
  .hp-product--reverse .hp-product-media, .hp-product--reverse .hp-product-body{ order:0; }
  .hp-product-media{ min-height:260px; }
  .hp-product-body{ padding:32px 24px; }
  .hp-feature-list{ grid-template-columns:1fr; }
}

/* ---------- "in work" full-bleed ---------- */
.hp-inwork{
  position:relative; min-height:70vh; display:flex; align-items:center; justify-content:center;
  text-align:center; color:#fff; overflow:hidden; background: var(--dark);
  background-attachment: fixed; background-position:center; background-size:cover;
}
.hp-inwork::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(8,9,11,.85), rgba(8,9,11,.5) 55%, rgba(8,9,11,.75));
}
.hp-inwork-content{ position:relative; z-index:1; padding:0 24px; }
.hp-inwork h2{ font-size:clamp(30px,4.6vw,54px); margin-bottom:16px; color:#fff; }
.hp-inwork p{ font-size:15px; letter-spacing:.06em; text-transform:uppercase; font-weight:700; color:#c9cfd6; margin-bottom:0; }
.hp-inwork p .sep{ color: var(--red); margin:0 10px; }
@media (max-width:900px){ .hp-inwork{ background-attachment:scroll; min-height:52vh; } }

/* ---------- applications ---------- */
.hp-apps-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.hp-app-tile{
  position:relative; border-radius:16px; overflow:hidden; min-height:320px;
  display:flex; align-items:flex-end; color:#fff; isolation:isolate;
  transition: box-shadow .38s ease, transform .38s ease;
}
.hp-app-tile:hover{ box-shadow: 0 22px 44px -14px rgba(0,0,0,.55); transform: translateY(-3px); }
.hp-app-tile.has-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform .38s ease; z-index:-2; }
.hp-app-tile:not(.has-photo){ background: linear-gradient(155deg, var(--dark-3), var(--dark)); }
.hp-app-tile:not(.has-photo)::after{
  content:""; position:absolute; inset:0; z-index:-1; opacity:.5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}
.hp-app-tile::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.18) 100%);
  transition: opacity .38s ease;
}
.hp-app-tile:hover::before{ opacity:.86; }
.hp-app-tile:hover img{ transform: scale(1.05); }
.hp-app-body{ position:relative; padding:26px; width:100%; }
.hp-app-icon{ width:34px; height:34px; color: var(--red); margin-bottom:14px; transition: transform .38s ease; }
.hp-app-icon svg{ width:100%; height:100%; }
.hp-app-tile:hover .hp-app-icon{ transform: translateY(-4px); }
.hp-app-tile h3{ font-size:19px; margin-bottom:0; }
.hp-app-desc{ max-height:0; opacity:0; overflow:hidden; transition: max-height .35s ease, opacity .35s ease, margin-top .35s ease; }
.hp-app-tile:hover .hp-app-desc, .hp-app-tile:focus-within .hp-app-desc{ max-height:80px; opacity:1; margin-top:10px; }
.hp-app-desc p{ font-size:13.5px; color:#dfe4e9; margin-bottom:8px; }
.hp-app-arrow{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:800; color: var(--red); text-transform:uppercase; letter-spacing:.04em; }
.hp-app-tile:hover .hp-app-arrow{ transform:translateX(4px); }
@media (max-width:900px){ .hp-apps-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){
  .hp-apps-grid{ grid-template-columns:1fr; }
  .hp-app-tile{ min-height:220px; }
  .hp-app-desc{ max-height:none !important; opacity:1 !important; margin-top:10px !important; overflow:visible; }
}

/* ---------- testing ---------- */
.hp-testing{
  position:relative; padding:96px 0; color:#fff; overflow:hidden;
  background: var(--dark);
}
.hp-testing-bg{ position:absolute; inset:0; z-index:0; }
.hp-testing-bg img{ width:100%; height:100%; object-fit:cover; object-position:80% 60%; }
.hp-testing-bg::after{ content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(6,7,9,.95) 0%, rgba(6,7,9,.85) 45%, rgba(6,7,9,.5) 100%); }
.hp-testing .container{ position:relative; z-index:1; }
.hp-testing-inner{ max-width:620px; }
.hp-testing h2{ color:#fff; font-size:clamp(28px,3.6vw,46px); }
.hp-testing .lead{ color:#c9cfd6; }
.hp-testing-note{ font-weight:800; font-size:15.5px; color:#fff; margin:22px 0 0; }

/* ---------- comparison ---------- */
/* ---------- comparison table (vinylester vs epoxy) ---------- */
.cmp-lede{ color: var(--muted); font-size:16px; max-width:640px; margin-top:10px; margin-bottom:0; }

.cmp-table-wrap{
  background:#fff; border:1px solid var(--line); border-radius:18px;
  box-shadow: var(--shadow-sm); overflow:hidden; overflow-x:auto;
}
.cmp-table{ width:100%; border-collapse:collapse; }
.cmp-table th, .cmp-table td{ text-align:left; padding:16px 22px; }
.cmp-table th:first-child, .cmp-table td:first-child{ width:34%; }
.cmp-table th:not(:first-child), .cmp-table td:not(:first-child){ width:33%; }

.cmp-table thead th{ font-size:14.5px; font-weight:800; letter-spacing:-.005em; }
.cmp-th-param{ background: var(--bg); color: var(--muted); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; font-weight:800; }
.cmp-th-vin{ background:#fdeceb; color: var(--red); border-bottom:3px solid var(--red); }
.cmp-th-epx{ background: var(--dark); color:#fff; border-bottom:3px solid var(--dark); }

.cmp-table tbody td{ border-top:1px solid var(--line); font-size:14.5px; color: var(--ink-soft); }
.cmp-table tbody tr:first-child td{ border-top:none; }
.cmp-table tbody td:first-child{ font-weight:700; color: var(--ink); }
.cmp-table tbody tr.cmp-hl td{ background: var(--bg); }

.cmp-table td.cmp-vin b{ color: var(--red); }
.cmp-table td.cmp-epx b{ color: var(--ink); }
.cmp-table td b{ font-weight:800; }
.cmp-table .cmp-standout{ display:inline-block; font-size:18px; font-weight:900; letter-spacing:-.01em; }
.cmp-table .cmp-stars{ font-size:15px; letter-spacing:1px; }

.cmp-phrase{
  text-align:center; font-size:28px; font-weight:800; letter-spacing:-.015em;
  margin:40px 0 36px; line-height:1.3;
}
.cmp-phrase-vin{ color: var(--red); }
.cmp-phrase-epx{ color: var(--ink); }

.cmp-verdicts{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:22px; }
.cmp-verdict{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:28px; box-shadow: var(--shadow-sm); }
.cmp-verdict h3{ font-size:19px; margin-bottom:10px; letter-spacing:-.01em; }
.cmp-verdict p{ color: var(--muted); font-size:14.5px; margin-bottom:20px; }
.cmp-verdict--vin{ border-top:4px solid var(--red); }
.cmp-verdict--epx{ border-top:4px solid var(--dark); }

.cmp-footnote{ font-size:12.5px; font-style:italic; color: var(--muted); margin-bottom:0; max-width:760px; }

@media (max-width:900px){ .cmp-verdicts{ grid-template-columns:1fr; } }

@media (max-width:640px){ .cmp-phrase{ font-size:22px; margin:32px 0 28px; } }

/* Below tablet width the table becomes a stack of per-parameter cards
   instead of scrolling horizontally: each row turns into its own card,
   the parameter name becomes the card heading, and each remaining cell
   grows a small caption (from its data-label) above the value — so
   Vinylester and Epoxy are still shown as clearly labelled, stacked
   comparisons rather than a cramped scrollable table. */
@media (max-width:760px){
  .cmp-table-wrap{ background:none; border:none; box-shadow:none; overflow:visible; }
  .cmp-table, .cmp-table tbody{ display:block; width:100%; }
  .cmp-table thead{ display:none; }
  .cmp-table tr{
    display:block; background:#fff; border:1px solid var(--line); border-radius:14px;
    box-shadow: var(--shadow-sm); padding:16px 18px; margin-bottom:14px;
  }
  .cmp-table tbody tr.cmp-hl{ background: var(--bg); }
  .cmp-table tbody tr.cmp-hl td{ background:none; }
  .cmp-table td{ display:block; width:auto; border-top:none; padding:0; }
  .cmp-table td:first-child{
    font-size:12px; text-transform:uppercase; letter-spacing:.05em; color: var(--muted);
    font-weight:800; padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid var(--line);
  }
  .cmp-table td:not(:first-child){ padding:8px 0; }
  .cmp-table td:not(:first-child)::before{
    content: attr(data-label); display:block; font-size:11px; font-weight:800;
    text-transform:uppercase; letter-spacing:.04em; color: var(--muted); margin-bottom:3px;
  }
  .cmp-table .cmp-standout{ font-size:19px; }
}

/* ---------- process ---------- */
.hp-process-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; position:relative; }
.hp-process-row::before{ content:""; position:absolute; top:26px; left:6%; right:6%; height:2px; background: var(--concrete-2); }
.hp-step{ position:relative; }
.hp-step-num{
  width:52px; height:52px; border-radius:50%; background:#fff; border:2px solid var(--red);
  color: var(--red); font-weight:900; font-size:17px; display:flex; align-items:center; justify-content:center;
  margin-bottom:20px; position:relative; z-index:1;
}
.hp-step h3{ margin-bottom:6px; }
@media (max-width:900px){
  .hp-process-row{ grid-template-columns:1fr; gap:0; }
  .hp-process-row::before{ display:none; }
  .hp-step{ padding-left:28px; border-left:2px solid var(--concrete-2); padding-bottom:32px; }
  .hp-step:last-child{ padding-bottom:0; }
  .hp-step-num{ margin-left:-28px; }
}

/* ---------- dealer ---------- */
.hp-dealer{
  position:relative; padding:100px 0; text-align:center; color:#fff; overflow:hidden;
  background: radial-gradient(1200px 500px at 50% -20%, #2a1416 0%, var(--dark) 60%), linear-gradient(160deg, #17191d, #0e1013);
}
.hp-dealer::before{
  content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
}
.hp-dealer .container{ position:relative; max-width:720px; }
.hp-dealer h2{ color:#fff; font-size:clamp(30px,4.2vw,50px); }
.hp-dealer .lead{ color:#c9cfd6; margin:0 auto 34px; }
.hp-dealer .btn-primary{ padding:18px 36px; font-size:16px; }

/* ---------- simplified lead form ---------- */
.hp-form-lead h3{ font-size:26px; margin-bottom:8px; }
.field-collapse summary{ cursor:pointer; font-weight:700; font-size:13.5px; color: var(--red); margin:2px 0 16px; list-style:none; display:inline-flex; align-items:center; gap:6px; }
.field-collapse summary::-webkit-details-marker{ display:none; }
.field-collapse summary::before{ content:"+"; font-size:16px; line-height:1; }
.field-collapse[open] summary::before{ content:"–"; }
.field-collapse .field{ margin-top:6px; }

/* ---------- scroll reveal ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- application category illustrations ---------- */
.app-card{ padding:0; }
.app-illust-wrap{
  background: var(--concrete); height:160px; padding:14px;
  display:flex; align-items:center; justify-content:center; border-bottom:1px solid var(--line);
}
.app-illust-wrap svg{ width:100%; height:100%; max-width:260px; }
.app-card-body{ padding:22px 24px 26px; }
.app-card-body h3{ margin-bottom:8px; }
.app-card-body p:last-child{ margin-bottom:0; }

/* ---------- mobile sticky CTA (home only) ---------- */
.hp-mobile-cta{ display:none; }
@media (max-width:900px){
  .hp-mobile-cta{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:150;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20,24,29,.92); backdrop-filter: blur(10px); border-top:1px solid rgba(255,255,255,.1);
  }
  .hp-mobile-cta .btn{ width:100%; min-height:48px; }
  #page-home{ padding-bottom:0; }
}
