/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }
  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ============ Tokens ============ */
:root {
  --concrete: #e9ebec;
  --paper: #f7f8f8;
  --white: #ffffff;
  --ink: #1c2023;
  --ink-2: #33393e;
  --muted: #565d63;
  --line: #c9ced2;
  --red: #b90818;
  --red-dark: #920614;
  --red-soft: #f6dcde;
  --on-red: #ffffff;
  --on-ink-muted: #b4bac0;
  --wa: #1f8f4e;          /* WhatsApp green, darkened for white-text contrast */
  --wa-dark: #17723e;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .875rem;
  --fs-sm: 1rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: clamp(1.1875rem, 1.5vw, 1.375rem);
  --fs-h2: clamp(1.75rem, 2.8vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 4.2vw, 3.75rem);
  --fs-h1-page: clamp(2rem, 3.6vw, 3.25rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --wrap: 1320px;
  --header-h: 80px;
  --r: 6px;
  --t-fast: 180ms;
  --t-med: 260ms;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--concrete); color: var(--ink); font-family: var(--f); font-size: var(--fs-base); line-height: 1.6; font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; font-variation-settings: "wdth" 112; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.tag { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.on-red .tag::before, .on-ink .tag::before { background: #fff; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); text-decoration: none; }
.skip:focus { top: 16px; }
.prose { display: grid; gap: var(--s4); font-size: var(--fs-lg); color: var(--ink-2); max-width: 36em; line-height: 1.6; }
.prose strong { color: var(--ink); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; padding: 0 var(--s5); border: 2px solid transparent; border-radius: var(--r); font: 700 var(--fs-sm)/1.1 var(--f); text-decoration: none; text-align: center; cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.btn .od-icon { --od-icon-size: 20px; }
.btn--red { background: var(--red); color: var(--on-red); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--wa { background: var(--wa); color: #fff; }
.btn[disabled] { background: #d5d9dc; color: #5f666c; border-color: transparent; cursor: not-allowed; }
@media (hover: hover) {
  .btn--red:not([disabled]):hover { background: var(--red-dark); }
  .btn--ink:not([disabled]):hover { background: var(--ink-2); }
  .btn--line:hover { background: var(--ink); color: #fff; }
  .btn--white:not([disabled]):hover { background: var(--ink); color: #fff; }
  .btn--ghost-white:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .btn--wa:not([disabled]):hover { background: var(--wa-dark); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ============ Header ============ */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: rgba(233,235,236,.95); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease-out); }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); flex: none; }
.brand img { display: block; height: 48px; width: auto; aspect-ratio: 288 / 177; }
.brand__txt { display: grid; }
.brand__name { font-weight: 900; font-size: 1.375rem; line-height: 1; font-variation-settings: "wdth" 125; letter-spacing: -.01em; }
.brand__sub { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; line-height: 1.4; white-space: nowrap; }
.nav { margin-inline: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s1); }
.nav li { list-style: none; }
.header__right .btn { white-space: nowrap; }
.nav ul a { display: block; padding: var(--s2) var(--s3); border-radius: var(--r); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--t-fast) var(--ease-out); }
@media (hover: hover) { .nav ul a:hover { background: var(--white); } }
.nav ul a[aria-current="page"] { background: var(--ink); color: #fff; }
.header__right { display: flex; align-items: center; gap: var(--s4); flex: none; }
.header__tel { display: flex; align-items: center; gap: var(--s2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__tel .od-icon { --od-icon-size: 18px; color: var(--red); }
@media (hover: hover) { .header__tel:hover { color: var(--red); } }
.menu-btn { display: none; width: 48px; height: 48px; place-items: center; background: var(--ink); color: #fff; border: 0; border-radius: var(--r); cursor: pointer; }
.menu-btn .od-icon { --od-icon-size: 22px; }
.nav__extra { display: none; }
@media (max-width: 1240px) { .header__tel { display: none; } }
@media (max-width: 1000px) {
  .menu-btn { display: grid; margin-left: auto; }
  .header__right { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; margin: 0; padding: var(--s4) 24px var(--s6); background: var(--concrete); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: var(--s3) var(--s3); font-size: 1.125rem; font-weight: 700; font-variation-settings: "wdth" 100; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .nav__extra .btn { width: 100%; white-space: normal; }
  .nav .nav__extra { display: grid; gap: var(--s3); margin-top: var(--s5); }
}
@media (max-width: 420px) { .brand__sub { display: none; } .brand img { height: 40px; } }

/* ============ Home hero ============ */
.hero { padding-top: var(--header-h); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(820px, calc(100vh - var(--header-h))); }
.hero__copy { padding: var(--s9) var(--s7) var(--s8) max(24px, calc((100vw - var(--wrap)) / 2)); display: grid; align-content: center; gap: var(--s5); }
.hero h1 { font-size: var(--fs-h1); }
.hero h1 span { color: var(--red); }
.hero__lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 32em; line-height: 1.55; }
.hero__panel { position: relative; overflow: hidden; background: var(--red); color: var(--on-red); padding: calc(var(--s5) + .8 * var(--word-size) + 56px) max(48px, calc((100vw - var(--wrap)) / 2 + 24px)) var(--s8) calc(var(--s8) + 48px); display: grid; align-content: center; gap: 120px; clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%); }
/* Oversized outline word: decorative backdrop, anchored top-right */
.hero__panel { --word-size: clamp(5rem, 11vw, 10rem); }
.hero__word { position: absolute; top: var(--s5); right: -.06em; font-weight: 900; font-variation-settings: "wdth" 125; font-size: var(--word-size); line-height: .8; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.3); pointer-events: none; user-select: none; }
.hero__media { position: relative; z-index: 1; margin: 0; }
.hero__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1; background: var(--ink); border-radius: var(--r); }
.hero__media img { position: relative; border-radius: var(--r); }
.hcard { position: absolute; z-index: 2; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: 0 12px 32px rgba(28,32,35,.28); font-size: var(--fs-sm); line-height: 1.3; text-decoration: none; animation: hcard-in 400ms var(--ease-out) both; }
.hcard b { display: block; font-weight: 800; font-variation-settings: "wdth" 112; font-size: var(--fs-lg); line-height: 1.15; }
.hcard--top { top: -28px; left: -32px; animation-delay: 150ms; }
.hcard__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--red); color: #fff; border-radius: var(--r); }
.hcard__icon .od-icon { --od-icon-size: 24px; }
.hcard__txt { display: grid; }
.hcard__txt > span { color: var(--muted); }
.hcard--bottom { bottom: -80px; right: 48px; display: grid; gap: 2px; padding: var(--s4) var(--s5); background: var(--ink); color: #fff; animation-delay: 250ms; transition: background-color var(--t-fast) var(--ease-out); }
.hcard__k { color: var(--on-ink-muted); }
.hcard__link { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s2); font-weight: 700; color: #ff8a91; }
.hcard__link .od-icon { --od-icon-size: 18px; transition: transform var(--t-fast) var(--ease-out); }
@media (hover: hover) { .hcard--bottom:hover { background: #000; } .hcard--bottom:hover .hcard__link .od-icon { transform: translateX(3px); } }
@keyframes hcard-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero__services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero__services li { display: flex; align-items: center; gap: var(--s4); }
.hero__services li + li::before { content: ""; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: var(--s8) 24px var(--s7); }
  .hero__panel { padding: calc(var(--s5) + .8 * var(--word-size) + 48px) 48px var(--s8); clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); }
}

/* ============ Page hero (sub pages) ============ */
.phero { padding: calc(var(--header-h) + var(--s8)) 0 var(--s8); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s8); align-items: end; }
.phero__copy { display: grid; gap: var(--s5); }
.phero h1 { font-size: var(--fs-h1-page); }
.phero h1 span { color: var(--red); }
.phero__lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 34em; }
.phero__aside { margin: 0; }
.phero__aside img { border-radius: var(--r); }
.phero--plain .phero__grid { grid-template-columns: 1fr; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; gap: var(--s6); } .phero { padding-top: calc(var(--header-h) + var(--s7)); } }

/* ============ Fact band ============ */
.band { background: var(--ink); color: #fff; }
.band__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band .od-stat { padding: var(--s6) var(--s5); border-left: 1px solid #3a4146; }
.band .od-stat:first-child { border-left: 0; padding-left: 0; }
.band__num { font-weight: 800; font-variation-settings: "wdth" 125; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1; white-space: nowrap; }
.band__lbl { color: var(--on-ink-muted); font-size: var(--fs-sm); margin-top: var(--s2); }
@media (max-width: 860px) {
  .band__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .od-stat { padding: var(--s5) var(--s4); }
  .band .od-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .band .od-stat:nth-child(-n+2) { border-bottom: 1px solid #3a4146; }
}

/* ============ Sections ============ */
.section { padding: var(--s10) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .head p, .section--ink .muted { color: var(--on-ink-muted); }
.head { display: grid; gap: var(--s4); max-width: 48rem; margin-bottom: var(--s8); }
.head h2 { font-size: var(--fs-h2); }
.head p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.55; }
@media (max-width: 760px) { .section { padding: var(--s9) 0; } .head { margin-bottom: var(--s7); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.split--rev > :first-child { order: 2; }
.split figure { margin: 0; }
.split img { border-radius: var(--r); }
.split__copy { display: grid; gap: var(--s5); }
.split__copy h2 { font-size: var(--fs-h2); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s7); } .split--rev > :first-child { order: 0; } }

/* Work types */
.works { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
.work { padding: var(--s5); background: var(--white); border-radius: var(--r); display: grid; align-content: start; gap: var(--s3); }
.work__n { font-weight: 800; font-size: var(--fs-sm); color: var(--red); letter-spacing: .1em; }
.work h3 { font-size: 1.1875rem; font-variation-settings: "wdth" 108; }
.work p { color: var(--muted); font-size: var(--fs-sm); }
.works-note { margin-top: var(--s5); color: var(--muted); max-width: 48em; }
@media (max-width: 1100px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .works { grid-template-columns: 1fr; } }

/* Reasons */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.reason { padding: var(--s6); background: var(--white); border-radius: var(--r); display: grid; align-content: start; gap: var(--s3); }
.reason .od-icon { --od-icon-size: 28px; color: var(--red); }
.reason h3 { font-size: var(--fs-h3); }
.reason p { color: var(--muted); }
.section--paper .reason { background: var(--concrete); }
.reason--feature { background: var(--red) !important; color: #fff; }
.reason--feature .od-icon { color: #fff; }
.reason--feature p { color: rgba(255,255,255,.92); }
@media (max-width: 960px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.checks li { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); background: var(--white); border-radius: var(--r); font-weight: 600; }
.checks .od-icon { --od-icon-size: 20px; color: var(--red); margin-top: 3px; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s7); }
.tl { padding: var(--s5); border-top: 4px solid var(--red); background: var(--white); border-radius: 0 0 var(--r) var(--r); display: grid; gap: var(--s2); }
.tl b { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; }
.tl span { color: var(--muted); }
@media (max-width: 720px) { .timeline { grid-template-columns: 1fr; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.partners li { min-height: 120px; display: grid; place-items: center; padding: var(--s5); background: #262b2f; border-radius: var(--r); font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(1.125rem, 1.8vw, 1.5rem); letter-spacing: .02em; text-align: center; }
@media (max-width: 760px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.motto { margin-top: var(--s7); padding: var(--s6); border-left: 0; background: var(--red); border-radius: var(--r); display: grid; gap: var(--s3); }
.motto q { font-weight: 800; font-variation-settings: "wdth" 120; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; quotes: "„" "”"; }
.motto p { color: rgba(255,255,255,.92); max-width: 52em; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); }
.svc { padding: var(--s6); background: var(--white); border-radius: var(--r); display: grid; align-content: space-between; gap: var(--s7); min-height: 260px; }
.svc:nth-child(1) { grid-column: span 7; background: var(--red); color: #fff; }
.svc:nth-child(2) { grid-column: span 5; }
.svc:nth-child(3) { grid-column: span 5; }
.svc:nth-child(4) { grid-column: span 7; background: var(--ink); color: #fff; }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.svc__num { font-weight: 800; font-size: var(--fs-sm); letter-spacing: .1em; }
.svc .od-icon { --od-icon-size: 40px; }
.svc h3 { font-size: var(--fs-h3); margin-bottom: var(--s3); }
.svc p { color: var(--muted); max-width: 30em; }
.svc:nth-child(1) p { color: rgba(255,255,255,.92); }
.svc:nth-child(4) p { color: var(--on-ink-muted); }
@media (max-width: 860px) { .svc-grid > .svc { grid-column: 1 / -1; min-height: 0; } }

/* Price factors */
.factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); counter-reset: f; }
.factors li { counter-increment: f; padding: var(--s5); background: var(--white); border-radius: var(--r); display: grid; gap: var(--s3); font-weight: 700; font-size: var(--fs-lg); line-height: 1.3; }
.factors li::before { content: counter(f, decimal-leading-zero); color: var(--red); font-size: var(--fs-sm); letter-spacing: .1em; }
@media (max-width: 900px) { .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .factors { grid-template-columns: 1fr; } }

/* ============ Class picker ============ */
.picker { display: grid; gap: var(--s5); }
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
.tab { min-height: 76px; padding: var(--s3) var(--s4); display: grid; align-content: center; justify-items: start; gap: 2px; background: var(--white); color: var(--ink); border: 2px solid transparent; border-radius: var(--r); cursor: pointer; text-align: left; font-family: var(--f); transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.tab b { display: block; font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 800; font-variation-settings: "wdth" 115; line-height: 1.1; white-space: nowrap; }
.tab span { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
@media (hover: hover) { .tab:hover { border-color: var(--ink); } }
.tab[aria-selected="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.tab[aria-selected="true"] span { color: rgba(255,255,255,.9); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); padding: var(--s7); background: var(--white); border-radius: var(--r); }
.panel__main { display: grid; gap: var(--s5); align-content: start; }
.panel__cls { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: .95; letter-spacing: -.03em; white-space: nowrap; }
.panel__spec { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; padding: 6px var(--s3); border-radius: 999px; background: var(--concrete); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.chip--red { background: var(--red-soft); color: var(--red-dark); }
.panel__txt { color: var(--ink-2); }
.panel__chart { display: grid; gap: var(--s3); align-content: start; }
.panel__chart h3 { font-size: var(--fs-sm); font-weight: 700; font-variation-settings: "wdth" 100; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.panel__chart svg { display: block; width: 100%; height: auto; }
.panel__note { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; padding: var(--s5); gap: var(--s6); } }
@media (max-width: 640px) { .tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: var(--s1); scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } }

/* ============ Calculator ============ */
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s3); }
.calc__in { padding: var(--s7); background: #262b2f; border-radius: var(--r); display: grid; gap: var(--s6); }
.types { display: flex; flex-wrap: wrap; gap: var(--s2); border: 0; margin: 0; padding: 0; }
.types legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s3); padding: 0; }
.type { position: relative; }
.type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1.5px solid #6a737b; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
@media (hover: hover) { .type:hover span { border-color: #fff; } }
.type input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.type input:focus-visible + span { outline: 3px solid #ff6a74; outline-offset: 2px; }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.calc .field > label { color: #fff; }
.calc .field input { background: #1c2023; color: #fff; border-color: #6a737b; }
.calc .unit span { color: var(--on-ink-muted); }
.calc__check { color: #e3e6e8; }
.calc__out { padding: var(--s7); background: var(--red); color: #fff; border-radius: var(--r); display: grid; align-content: space-between; gap: var(--s6); }
.calc__empty { display: grid; gap: var(--s3); }
.calc__empty b { font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.5rem; line-height: 1.1; }
.calc__empty span { color: rgba(255,255,255,.92); }
.calc__res { display: grid; gap: var(--s5); }
.calc__lbl { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.calc__vol { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(3rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -.03em; white-space: nowrap; }
.calc__vol small { font-size: .4em; margin-left: 6px; }
.calc__meta { margin: 0; display: grid; gap: var(--s2); }
.calc__meta div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid rgba(255,255,255,.4); }
.calc__meta dt { color: rgba(255,255,255,.92); }
.calc__meta dd { margin: 0; font-weight: 700; text-align: right; }
.calc__actions { display: grid; gap: var(--s2); }
.calc__out .btn[disabled], .calc__out .btn.is-off { background: rgba(255,255,255,.22); color: #fff; border-color: transparent; cursor: not-allowed; }
.btn.is-off { pointer-events: none; }
.hint { font-size: var(--fs-xs); color: var(--on-ink-muted); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc__in, .calc__out { padding: var(--s5); } }
@media (max-width: 520px) { .dims { grid-template-columns: 1fr; } }

/* ============ Fields ============ */
.field { display: grid; gap: var(--s2); align-content: start; }
/* Form fields reserve one line for the error message, so validation never shifts the layout */
.fgrid .field { grid-template-rows: auto auto minmax(20px, auto); row-gap: 6px; }
.field > label, .field .lbl { font-weight: 600; font-size: var(--fs-sm); }
.req { color: var(--red); }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 52px; padding: var(--s3) var(--s4); background: var(--white); color: var(--ink); border: 1.5px solid #8e959b; border-radius: var(--r); font: 400 var(--fs-base)/1.4 var(--f); transition: border-color var(--t-fast) var(--ease-out); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(185,8,24,.35); }
.unit { position: relative; }
.unit input { padding-right: 52px !important; }
.unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; pointer-events: none; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.err { display: flex; gap: 6px; align-items: center; margin: 0; min-height: 20px; color: var(--red-dark); font-size: var(--fs-xs); line-height: 1.35; font-weight: 600; }
.err .od-icon { --od-icon-size: 15px; }
.check { display: flex; align-items: center; gap: var(--s3); cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin: 0; }

/* ============ CTA band ============ */
.cta { background: var(--red); color: #fff; padding: var(--s9) 0; }
.cta__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s7); align-items: end; }
.cta h2 { font-size: var(--fs-h2); }
.cta p { color: rgba(255,255,255,.92); font-size: var(--fs-lg); margin-top: var(--s4); max-width: 34em; }
.cta__side { display: grid; gap: var(--s4); justify-items: start; }
.cta__tel { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .cta__tel:hover { text-decoration: underline; text-underline-offset: 6px; } }
.cta__motto { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.4); font-weight: 800; font-variation-settings: "wdth" 115; font-size: var(--fs-lg); letter-spacing: .02em; }
@media (max-width: 860px) { .cta__in { grid-template-columns: 1fr; } }

/* ============ Gallery ============ */
.gallery { columns: 3 300px; column-gap: var(--s3); }
.gallery button { display: block; width: 100%; margin: 0 0 var(--s3); padding: 0; border: 0; background: var(--white); border-radius: var(--r); overflow: hidden; cursor: zoom-in; break-inside: avoid; text-align: left; color: var(--ink); font-family: var(--f); }
.gallery img { display: block; transition: opacity var(--t-fast) var(--ease-out); }
.gallery button span { display: block; padding: var(--s3) var(--s4); font-size: var(--fs-sm); font-weight: 600; }
@media (hover: hover) { .gallery button:hover img { opacity: .86; } }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
.strip img { border-radius: var(--r); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } }

.lightbox { padding: 0; border: 0; border-radius: var(--r); background: var(--white); color: var(--ink); width: min(1200px, 94vw); max-width: none; }
.lightbox::backdrop { background: rgba(28,32,35,.88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: var(--ink); }
.lb-bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); }
.lb-bar figcaption { flex: 1; min-width: 0; font-weight: 600; font-size: var(--fs-sm); }
.round { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.round .od-icon { --od-icon-size: 20px; }
@media (hover: hover) { .round:hover { background: var(--ink); color: #fff; } }
.lightbox[open] { animation: lb var(--t-med) var(--ease-out); }
@keyframes lb { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ============ Contact ============ */
.cinfo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s3); }
.ci { padding: var(--s5); background: var(--white); border-radius: var(--r); display: grid; gap: var(--s2); align-content: start; }
.ci .od-icon { --od-icon-size: 28px; color: var(--red); }
.ci span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ci a, .ci strong { font-weight: 800; font-variation-settings: "wdth" 100; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.ci small { color: var(--muted); font-size: var(--fs-sm); }
@media (hover: hover) { .ci a:hover { color: var(--red); } }
.ci--wa { background: var(--wa); color: #fff; }
.ci--wa .od-icon, .ci--wa span, .ci--wa small { color: #fff; }
@media (hover: hover) { .ci--wa a:hover { color: #fff; text-decoration: underline; } }
@media (max-width: 1000px) { .cinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cinfo { grid-template-columns: 1fr; } }
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s3); margin-top: var(--s3); align-items: stretch; }
.card { background: var(--white); color: var(--ink); border-radius: var(--r); padding: var(--s7); display: grid; gap: var(--s5); align-content: start; }
.card h2 { font-size: var(--fs-h3); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); align-items: start; }
.fgrid .full { grid-column: 1 / -1; }
.summary { padding: var(--s4); border-radius: var(--r); background: var(--red-soft); color: var(--red-dark); display: grid; gap: var(--s2); }
.summary strong { font-weight: 700; }
.summary ul { margin: 0; padding-left: 20px; }
.summary a { color: var(--red-dark); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); }
.foot small { color: var(--muted); font-size: var(--fs-xs); }
.done__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.done__mark .od-icon { --od-icon-size: 30px; }
.done p { color: var(--muted); }
.map { background: var(--white); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: minmax(360px, 1fr) auto; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.map__bar { padding: var(--s4) var(--s5); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); }
.map__bar { font-size: var(--fs-sm); }
.map__bar strong { font-weight: 700; }
.map__bar a { font-weight: 700; color: var(--red); text-underline-offset: 4px; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s2); }
.map__bar .od-icon { --od-icon-size: 16px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .card { padding: var(--s5); } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--on-ink-muted); padding: var(--s8) 0 calc(var(--s6) + 72px); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--s7); }
.footer .brand { color: #fff; }
.footer .brand img { background: #fff; border-radius: var(--r); padding: 6px 8px; height: 56px; box-sizing: border-box; }
.footer .brand__sub { color: var(--on-ink-muted); }
.footer__about { margin-top: var(--s4); max-width: 30em; }
.footer h2 { font-size: var(--fs-xs); font-variation-settings: "wdth" 100; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: var(--s4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer a { text-decoration: none; }
@media (hover: hover) { .footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; } }
.footer__bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid #3a4146; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: var(--s6); } }

/* ============ Floating WhatsApp ============ */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: var(--s2); min-height: 56px; padding: 0 var(--s5) 0 var(--s4); background: var(--wa); color: #fff; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; text-decoration: none; box-shadow: 0 6px 20px rgba(28,32,35,.28); transition: background-color var(--t-fast) var(--ease-out); }
.wa-float .od-icon { --od-icon-size: 26px; }
@media (hover: hover) { .wa-float:hover { background: var(--wa-dark); } }
@media (max-width: 560px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* ============ About hero ============ */
.ahero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + var(--s8)) 0 var(--s9); }
.ahero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s8); align-items: center; }
.ahero__copy { display: grid; gap: var(--s5); align-content: center; }
.ahero h1 { font-size: var(--fs-h1-page); }
.ahero h1 span { color: #ff6a73; }
.ahero__lede { font-size: var(--fs-lg); color: #d3d7db; max-width: 32em; }
.ahero__stats { margin: var(--s2) 0 var(--s3); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #3a4146; }
.ahero__stats .od-stat { padding: var(--s4) var(--s4) 0 0; flex-direction: column-reverse; }
.ahero__stats .od-stat + .od-stat { padding-left: var(--s4); border-left: 1px solid #3a4146; }
.ahero__stats dt { order: 2; color: var(--on-ink-muted); font-size: var(--fs-sm); }
.ahero__stats dd { order: 1; margin: 0; font-weight: 800; font-variation-settings: "wdth" 112; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.05; white-space: nowrap; }
.ahero__mosaic { display: flex; justify-content: flex-end; }
.ahero__tall img { width: auto; max-height: min(620px, 78vh); }
.ahero__mosaic figure { margin: 0; }
.ahero__mosaic img { border-radius: var(--r); }
@media (max-width: 960px) {
  .ahero__grid { grid-template-columns: 1fr; gap: var(--s7); }
  .ahero__mosaic { justify-content: flex-start; }
  .ahero { padding: calc(var(--header-h) + var(--s7)) 0 var(--s8); }
}
@media (max-width: 600px) {
  .ahero { padding: calc(var(--header-h) + var(--s6)) 0 var(--s7); }
  .ahero__stats dd { font-size: 1.375rem; font-variation-settings: "wdth" 104; }
  .ahero__stats dt { font-size: var(--fs-xs); }
  .ahero__stats .od-stat { padding-right: var(--s3); }
  .ahero__stats .od-stat + .od-stat { padding-left: var(--s3); }
  .ahero__tall img { max-height: 460px; }
}

/* ============ Mobile type scale ============ */
@media (max-width: 600px) {
  :root {
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1rem;
    --fs-lg: 1.0625rem;
    --fs-h1: 2rem;
    --fs-h1-page: 1.875rem;
    --fs-h2: 1.625rem;
    --fs-h3: 1.125rem;
  }
  h1, h2, h3 { font-variation-settings: "wdth" 104; line-height: 1.12; }
  .section { padding: var(--s8) 0; }
  .head { margin-bottom: var(--s6); gap: var(--s3); }
  .phero { padding: calc(var(--header-h) + var(--s6)) 0 var(--s6); }
  .hero__copy { padding: var(--s7) 24px var(--s6); gap: var(--s4); }
  .hero__panel { --word-size: 4.5rem; padding: calc(var(--s5) + .8 * var(--word-size) + 40px) 32px var(--s7); gap: var(--s8); clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); }
  .hero__media::before { inset: 14px -14px -14px 14px; }
  .hcard { padding: var(--s2) var(--s3); gap: var(--s2); }
  .hcard__icon { width: 36px; height: 36px; }
  .hcard__icon .od-icon { --od-icon-size: 20px; }
  .hcard--top { top: -20px; left: -20px; }
  .hcard--bottom { bottom: -60px; right: 12px; padding: var(--s3) var(--s4); }
  .hero__panel { gap: 96px; }
  .brand__name { font-size: 1.125rem; }
  .band__num { font-size: 1.375rem; font-variation-settings: "wdth" 104; }
  .band__lbl { font-size: var(--fs-xs); }
  .tl b, .partners li { font-size: 1.25rem; font-variation-settings: "wdth" 104; }
  .motto q { font-size: 1.25rem; }
  .panel__cls { font-size: 2.5rem; }
  .calc__vol { font-size: 2.75rem; }
  .calc__empty b { font-size: 1.25rem; }
  .cta { padding: var(--s8) 0; }
  .cta__tel { font-size: 1.625rem; }
  .cta__motto { font-size: var(--fs-base); }
  .factors li { font-size: var(--fs-base); }
  .reason, .svc, .card, .calc__in, .calc__out, .motto { padding: var(--s5); }
  .tab b { font-size: 1.125rem; }
  .btn { min-height: 48px; padding: 0 var(--s4); }
}

/* ============ Reveal ============ */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
