:root {
  --accent: #a81c0c;
  --accent-hover: #c52a18;
  --accent-soft: rgba(168, 28, 12, 0.12);
  --ink: #15181d;
  --muted: #5d6570;
  --line: #dfe3e7;
  --surface: #ffffff;
  --surface-soft: #f3f5f6;
  --graphite: #111419;
  --graphite-2: #1b2027;
  --steel: #d8dde1;
  --shadow: 0 18px 50px rgba(9, 13, 18, 0.12);
  --radius: 18px;
  --container: 1240px;
  --header-height: 76px;
  --font: Inter, "Segoe UI", Arial, sans-serif;
  --dialog-bg: rgba(250,252,254,.97);
  --dialog-card: #f0f3f6;
  --dialog-field: #ffffff;
  --header-bg: rgba(255,255,255,.96);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 3000; padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: var(--header-height);
  color: #fff;
  background: rgba(13, 16, 20, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px) saturate(1.25);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(13, 16, 20, 0.97); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.header__inner { min-height: var(--header-height); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: #fff; }
.brand__mark { position: relative; width: 38px; height: 34px; display: inline-block; }
.brand__mark i { position: absolute; display: block; background: linear-gradient(135deg, #fff 15%, #8e969e 100%); transform: skewX(-28deg); }
.brand__mark i:nth-child(1) { width: 11px; height: 31px; left: 7px; top: 1px; }
.brand__mark i:nth-child(2) { width: 11px; height: 23px; left: 20px; top: 9px; }
.brand__mark i:nth-child(3) { width: 24px; height: 7px; left: 7px; bottom: 3px; background: var(--accent); }
.brand__text { font-size: 21px; font-weight: 760; letter-spacing: .02em; white-space: nowrap; }
.brand__text b { color: #fff; }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); margin-left: auto; font-size: 14px; font-weight: 650; }
.desktop-nav a, .desktop-nav span { position: relative; color: rgba(255,255,255,.82); white-space: nowrap; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--accent); transition: right .2s ease; }
.desktop-nav a:hover { color: #fff; }
.desktop-nav a:hover::after { right: 0; }
.nav-planned { opacity: .55; cursor: default; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.06); }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 760;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(168, 28, 12, .2);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 15px 30px rgba(168, 28, 12, .28); }
.button--compact { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.button--large { min-height: 54px; padding-inline: 30px; }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.34); box-shadow: none; }
.button--ghost:hover { background: rgba(255,255,255,.09); }
.eyebrow { display: inline-flex; margin-bottom: 12px; color: var(--accent); font-size: 13px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }

.page-hero {
  position: relative;
  min-height: min(780px, 92vh);
  padding: calc(var(--header-height) + 70px) 0 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--graphite);
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media picture, .page-hero__media img { width: 100%; height: 100%; }
.page-hero__media img { object-fit: cover; object-position: center; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,13,17,.97) 0%, rgba(10,13,17,.85) 37%, rgba(10,13,17,.25) 72%, rgba(10,13,17,.42) 100%), linear-gradient(0deg, rgba(10,13,17,.48), transparent 45%); }
.page-hero__content { position: relative; z-index: 1; max-width: 760px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: rgba(255,255,255,.68); font-size: 14px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .55; }
.page-hero h1 { margin: 0 0 22px; max-width: 800px; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.page-hero__lead { max-width: 690px; margin: 0 0 30px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero__fact { padding: 10px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.82); font-size: 14px; backdrop-filter: blur(10px); }

.section { padding: clamp(68px, 8vw, 112px) 0; }
.section--soft { background: var(--surface-soft); }
.section--dark { color: #fff; background: var(--graphite); }
.section__head { max-width: 780px; margin-bottom: 42px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 50px); line-height: 1.12; letter-spacing: -.025em; }
.section__head p { margin: 0; color: var(--muted); font-size: 18px; }
.section--dark .section__head p { color: rgba(255,255,255,.66); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { position: relative; min-height: 370px; overflow: hidden; border-radius: var(--radius); background: var(--graphite-2); color: #fff; box-shadow: var(--shadow); }
.service-card img { width: 100%; height: 100%; min-height: 370px; object-fit: cover; transition: transform .5s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,13,17,.96), rgba(10,13,17,.05) 70%); }
.service-card__content { position: absolute; inset: auto 24px 24px; z-index: 1; }
.service-card h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.18; }
.service-card p { margin: 0 0 16px; color: rgba(255,255,255,.7); font-size: 14px; }
.service-card__link { color: #fff; font-weight: 750; border-bottom: 2px solid var(--accent); }
.service-card:hover img { transform: scale(1.045); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.feature__icon { width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); position: relative; }
.feature__icon::before, .feature__icon::after { content: ""; position: absolute; background: var(--accent); }
.feature__icon::before { width: 22px; height: 3px; left: 12px; top: 15px; }
.feature__icon::after { width: 14px; height: 3px; left: 12px; top: 25px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; border-left: 1px solid rgba(255,255,255,.16); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 32px; color: var(--accent); font-size: 15px; font-weight: 850; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; }

.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 5vw, 72px); align-items: start; }
.prose { max-width: 830px; }
.prose h2 { margin: 58px 0 18px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.18; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 12px; font-size: 22px; }
.prose p { margin: 0 0 19px; color: #343a42; font-size: 17px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin: 8px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.planned-link { color: var(--muted); border-bottom: 1px dashed #aeb5bb; cursor: help; }
.prose strong { color: var(--ink); }
.needs-data { padding: 2px 6px; border-radius: 5px; background: #fff0d6; color: #7a4b00; font-size: .9em; }
.toc { position: sticky; top: calc(var(--header-height) + 24px); padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
.toc a:last-child { border: 0; }
.toc a:hover { color: var(--accent); }
.content-media { margin: 42px 0 52px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); box-shadow: 0 18px 50px rgba(24, 29, 36, .08); }
.content-media__frame { aspect-ratio: 16 / 9; overflow: hidden; background: #dfe3e6; }
.content-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.content-media figcaption { display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: var(--muted); font-size: 14px; }
.content-media figcaption span { width: 22px; height: 3px; flex: 0 0 auto; border-radius: 2px; background: var(--accent); }
.content-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 36px 0 52px; }
.content-highlight { display: flex; gap: 13px; min-width: 0; padding: 18px 16px; border-top: 2px solid var(--accent); background: var(--surface-soft); }
.content-highlight > span { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.content-highlight strong { display: block; margin-bottom: 6px; font-size: 15px; line-height: 1.25; }
.content-highlight p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.related-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-3px); border-color: rgba(168,28,12,.4); box-shadow: var(--shadow); }
.related-card span { display: block; margin-bottom: 9px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.related-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.faq-list { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; padding: 22px 44px 22px 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 760; position: relative; }
.faq-question::after { content: "+"; position: absolute; right: 6px; top: 16px; color: var(--accent); font-size: 28px; font-weight: 400; }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { padding: 0 44px 22px 0; color: var(--muted); }
.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 22px; color: #fff; background: linear-gradient(135deg, #171b21, #0c0e12); box-shadow: var(--shadow); }
.cta-panel::before { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -140px; border-radius: 50%; background: rgba(168,28,12,.34); filter: blur(40px); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
.cta-panel p { margin: 0; color: rgba(255,255,255,.68); }
.cta-panel__action { display: flex; justify-content: flex-end; }

.site-footer { padding: 66px 0 24px; color: rgba(255,255,255,.72); background: #0d1014; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 42px; }
.brand--footer { margin-bottom: 18px; }
.footer__grid h2 { margin: 0 0 16px; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.footer__grid p { margin: 0 0 16px; }
.footer__grid a, .footer__grid span { display: block; margin: 9px 0; font-size: 14px; }
.footer__grid a:hover { color: #fff; }
.footer__pending { font-size: 14px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,7,10,.78); backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(100%, 920px); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(24px, 4vw, 48px); border-radius: 20px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.4); }
.modal__close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--ink); font-size: 28px; line-height: 1; }
.modal__intro { max-width: 660px; margin-bottom: 26px; }
.modal__intro h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.modal__intro p { margin: 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 680; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfd5da; border-radius: 9px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; outline: 0; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #d92d20; }
.file-field { padding: 16px; border: 1px dashed #b9c0c6; border-radius: 10px; background: var(--surface-soft); }
.file-field input { min-height: auto; padding: 0; border: 0; background: transparent; }
.file-field small { color: var(--muted); font-weight: 400; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 14px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form__actions { display: flex; align-items: center; gap: 18px; }
.form__actions p { margin: 0; color: var(--muted); font-size: 13px; }
.form-result { margin-top: 18px; padding: 15px; border-radius: 10px; background: var(--accent-soft); color: #6f1308; font-weight: 680; }

.not-found { min-height: 75vh; display: grid; place-items: center; padding: calc(var(--header-height) + 60px) 20px 60px; text-align: center; background: var(--surface-soft); }
.not-found__inner { max-width: 650px; }
.not-found strong { display: block; color: var(--accent); font-size: clamp(70px, 16vw, 160px); line-height: .9; }
.not-found h1 { font-size: clamp(32px, 5vw, 54px); }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { position: fixed; top: var(--header-height); right: 0; width: min(100%, 420px); height: calc(100vh - var(--header-height)); padding: 24px; display: flex; flex-direction: column; gap: 8px; background: #111419; color: #fff; transform: translateX(105%); transition: transform .28s ease; box-shadow: -20px 20px 50px rgba(0,0,0,.3); }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav a, .mobile-nav span { padding: 13px 14px; border-radius: 9px; background: rgba(255,255,255,.05); }
  .mobile-nav span { color: rgba(255,255,255,.45); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .content-shell { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header__actions > .button { display: none; }
  .brand__text { font-size: 18px; }
  .brand__mark { transform: scale(.9); transform-origin: left center; margin-right: -3px; }
  .page-hero { min-height: 720px; padding-top: calc(var(--header-height) + 56px); align-items: flex-end; }
  .page-hero__media::after { background: linear-gradient(0deg, rgba(10,13,17,.98) 0%, rgba(10,13,17,.74) 58%, rgba(10,13,17,.26) 100%); }
  .page-hero h1 { font-size: clamp(32px, 9.2vw, 44px); }
  .page-hero__lead { font-size: 17px; }
  .service-grid, .related-grid { grid-template-columns: 1fr; }
  .service-card, .service-card img { min-height: 340px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .step::before { margin-bottom: 10px; }
  .content-media { margin: 32px 0 40px; border-radius: 13px; }
  .content-media__frame { aspect-ratio: 16 / 9; }
  .content-highlights { grid-template-columns: 1fr; margin: 28px 0 40px; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel__action { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .form__actions { align-items: stretch; flex-direction: column; }
  .modal { padding: 0; }
  .modal__panel { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; padding-top: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}

/* MezoTOP-inspired layout: light header, split hero and glass dialogs */
:root {
  --header-height: 86px;
  --glass: rgba(255, 255, 255, .78);
  --glass-strong: rgba(255, 255, 255, .9);
  --glass-line: rgba(255, 255, 255, .72);
  --glass-shadow: 0 28px 80px rgba(18, 24, 33, .2);
}

.site-header {
  min-height: var(--header-height);
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(21, 24, 29, .08);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 12px 36px rgba(18, 24, 33, .09); }
.header__inner { min-height: var(--header-height); }
.brand { color: var(--ink); }
.brand__mark i { background: linear-gradient(135deg, #242a31 15%, #7b858f 100%); }
.brand__mark i:nth-child(3) { background: var(--accent); }
.brand__text b { color: var(--accent); }
.header__actions { margin-left: auto; }
.menu-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 112px;
  height: 46px;
  padding: 10px 15px;
  border: 1px solid rgba(21, 24, 29, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-weight: 780;
  box-shadow: 0 6px 18px rgba(18, 24, 33, .06);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { color: var(--accent); border-color: rgba(168, 28, 12, .28); background: var(--accent-soft); transform: translateY(-1px); }
.menu-toggle__icon { width: 21px; display: grid; gap: 4px; }
.menu-toggle__icon i { display: block; width: 100%; height: 2px; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-menu { position: fixed; inset: 0; z-index: 1900; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.site-menu.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.site-menu__backdrop { position: absolute; inset: 0; background: rgba(17, 20, 25, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-menu__dialog {
  position: absolute;
  top: calc(var(--header-height) + 18px);
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  max-height: calc(100vh - var(--header-height) - 36px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  transform: translate(-50%, 14px) scale(.985);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.93), rgba(241,244,247,.72));
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(32px) saturate(1.45);
  -webkit-backdrop-filter: blur(32px) saturate(1.45);
  transition: transform .24s ease;
}
.site-menu.is-open .site-menu__dialog { transform: translate(-50%, 0) scale(1); }
.site-menu__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 28px 20px; border-bottom: 1px solid rgba(21,24,29,.1); }
.site-menu__head .eyebrow { margin-bottom: 5px; }
.site-menu__head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.site-menu__head p { margin: 7px 0 0; color: var(--muted); }
.site-menu__close { flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid rgba(21,24,29,.1); border-radius: 50%; background: rgba(255,255,255,.7); color: var(--ink); font-size: 30px; line-height: 1; }
.site-menu__nav { overflow-y: auto; padding: 20px 28px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; scrollbar-width: thin; scrollbar-color: rgba(168,28,12,.35) transparent; }
.site-menu__group { min-width: 0; border: 1px solid rgba(21,24,29,.1); border-radius: 16px; background: rgba(255,255,255,.56); overflow: hidden; }
.site-menu summary { list-style: none; cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu__group > summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; color: var(--ink); font-size: 17px; font-weight: 820; }
.site-menu__group > summary::after, .site-menu__subgroup > summary::after { content: "+"; order: 2; color: var(--accent); font-size: 22px; font-weight: 400; }
.site-menu__group[open] > summary::after, .site-menu__subgroup[open] > summary::after { content: "−"; }
.site-menu summary b { order: 1; margin-left: auto; min-width: 30px; padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; text-align: center; }
.site-menu__group-body { padding: 0 12px 12px; display: grid; gap: 8px; }
.site-menu__subgroup { border: 1px solid rgba(21,24,29,.08); border-radius: 12px; background: rgba(243,245,246,.68); }
.site-menu__subgroup > summary { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; color: var(--ink); font-size: 14px; font-weight: 760; }
.site-menu__subgroup-links { padding: 0 8px 8px; display: grid; gap: 5px; }
.site-menu__link { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.7); color: #39414b; font-size: 14px; line-height: 1.3; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.site-menu__link:hover { color: var(--accent); border-color: rgba(168,28,12,.2); background: #fff; }
.site-menu__link--root { color: var(--ink); font-weight: 760; background: var(--accent-soft); }
.site-menu__nav > .site-menu__link--root { grid-column: 1 / -1; min-height: 52px; padding-inline: 18px; }
.site-menu__link small { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; background: rgba(93,101,112,.1); color: #737c87; font-size: 11px; }
.site-menu__link.is-planned { border-style: dashed; }
.site-menu__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; border-top: 1px solid rgba(21,24,29,.1); background: rgba(255,255,255,.54); }
.site-menu__footer p { margin: 0; color: var(--muted); font-size: 14px; }

.page-hero {
  min-height: min(860px, 100svh);
  padding: calc(var(--header-height) + 70px) 0 72px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff 0%, #f8f2f1 58%, #fff 100%);
}
.page-hero__grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(21,24,29,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(21,24,29,.055) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(90deg, #000, transparent 82%); }
.page-hero__layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: clamp(42px, 6vw, 88px); }
.page-hero__content { position: relative; z-index: 1; max-width: 760px; }
.breadcrumbs { margin-bottom: 30px; color: #737b86; }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero .eyebrow { padding: 7px 13px; border: 1px solid rgba(168,28,12,.13); border-radius: 999px; background: rgba(255,255,255,.66); box-shadow: 0 7px 24px rgba(18,24,33,.04); }
.page-hero h1 { margin-bottom: 24px; max-width: 900px; font-size: clamp(42px, 5vw, 70px); color: #171922; }
.page-hero__lead { max-width: 680px; color: var(--muted); font-size: clamp(18px, 1.8vw, 22px); }
.page-hero .button--ghost { color: var(--ink); border-color: rgba(21,24,29,.18); background: rgba(255,255,255,.48); }
.page-hero .button--ghost:hover { color: var(--accent); border-color: rgba(168,28,12,.32); background: #fff; }
.page-hero__media { position: relative; inset: auto; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 28px; background: var(--graphite); box-shadow: 0 28px 80px rgba(25,31,39,.22); isolation: isolate; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(7,10,13,.66)); }
.page-hero__media picture, .page-hero__media img { width: 100%; height: 100%; }
.page-hero__media img { min-height: 520px; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 7s ease; }
.page-hero:hover .page-hero__media img { transform: scale(1.035); }
.page-hero__media-label { position: absolute; z-index: 2; left: 24px; bottom: 22px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(12,15,19,.34); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 760; letter-spacing: .08em; backdrop-filter: blur(12px); }
.page-hero__media-label b { color: var(--accent-hover); }

.section--media-cta { padding-top: clamp(44px, 6vw, 82px); }
.media-cta { position: relative; min-height: 590px; overflow: hidden; display: flex; align-items: center; padding: clamp(44px, 7vw, 92px); border-radius: 28px; background: #090c10; color: #fff; box-shadow: 0 30px 80px rgba(9,13,18,.28); isolation: isolate; }
.media-cta::after { content: ""; position: absolute; inset: 22px; z-index: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; pointer-events: none; }
.media-cta__media { position: absolute; inset: 0; z-index: -2; }
.media-cta__media img { width: 100%; height: 100%; object-fit: cover; animation: media-cta-drift 18s ease-in-out infinite alternate; }
.media-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,7,10,.95) 0%, rgba(4,7,10,.82) 48%, rgba(4,7,10,.42) 100%), linear-gradient(0deg, rgba(4,7,10,.5), transparent 55%); }
@keyframes media-cta-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.media-cta__content { position: relative; z-index: 2; max-width: 860px; }
.media-cta__tag { display: inline-flex; margin-bottom: 36px; padding: 8px 15px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.11); color: rgba(255,255,255,.88); font-size: 14px; font-weight: 760; backdrop-filter: blur(12px); }
.media-cta h2 { margin: 0 0 22px; max-width: 900px; font-size: clamp(38px, 5vw, 68px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.media-cta p { max-width: 720px; margin: 0 0 34px; color: rgba(255,255,255,.76); font-size: clamp(17px, 1.8vw, 21px); }
.button--light { border-color: #fff; background: #fff; color: var(--accent); box-shadow: 0 16px 36px rgba(0,0,0,.22); }
.button--light:hover { border-color: #fff; background: #f5f5f5; color: var(--accent-hover); }

.modal__backdrop { background: rgba(10,14,19,.48); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); }
.modal__panel { border: 1px solid var(--glass-line); background: linear-gradient(135deg, rgba(255,255,255,.91), rgba(238,242,245,.76)); box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(34px) saturate(1.4); -webkit-backdrop-filter: blur(34px) saturate(1.4); }
.modal__close { border: 1px solid rgba(21,24,29,.09); background: rgba(255,255,255,.62); }
.field input, .field select, .field textarea { border-color: rgba(21,24,29,.14); background: rgba(255,255,255,.66); backdrop-filter: blur(10px); }
.field select { appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, #6d7580 50%), linear-gradient(135deg, #6d7580 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.file-field { background: rgba(255,255,255,.42); }

@media (max-width: 1080px) {
  .page-hero { min-height: auto; }
  .page-hero__layout { grid-template-columns: 1fr 420px; gap: 38px; }
  .page-hero h1 { font-size: clamp(38px, 5.6vw, 58px); }
  .site-menu__nav { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header-height: 72px; }
  .header__inner { gap: 12px; }
  .header__quote { display: none; }
  .menu-toggle { min-width: 48px; width: 48px; padding: 0; }
  .menu-toggle > span:last-child { display: none; }
  .page-hero { padding: calc(var(--header-height) + 42px) 0 52px; align-items: initial; }
  .page-hero__layout { grid-template-columns: 1fr; gap: 34px; }
  .page-hero__media { order: 2; border-radius: 22px; }
  .page-hero__media img { min-height: 0; aspect-ratio: 16 / 11; }
  .site-menu__dialog { top: calc(var(--header-height) + 8px); width: calc(100% - 20px); max-height: calc(100vh - var(--header-height) - 18px); border-radius: 20px; }
  .site-menu__head { padding: 20px 20px 16px; }
  .site-menu__head p { display: none; }
  .site-menu__nav { padding: 14px 16px 20px; }
  .site-menu__footer { align-items: stretch; flex-direction: column; padding: 16px 20px 20px; }
  .site-menu__footer .button { width: 100%; }
  .media-cta { min-height: 540px; padding: 48px 32px; border-radius: 22px; align-items: flex-end; }
  .media-cta::after { inset: 14px; border-radius: 16px; }
  .media-cta::before { background: linear-gradient(0deg, rgba(4,7,10,.96) 0%, rgba(4,7,10,.68) 70%, rgba(4,7,10,.24) 100%); }
  .media-cta__tag { margin-bottom: 22px; }
}

@media (max-width: 560px) {
  .page-hero h1 { font-size: clamp(34px, 10vw, 46px); overflow-wrap: normal; }
  .page-hero__lead { font-size: 17px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .button { width: 100%; }
  .page-hero__media img { aspect-ratio: 4 / 3; }
  .page-hero__media-label { left: 14px; bottom: 14px; }
  .site-menu__head h2 { font-size: 26px; }
  .site-menu__group > summary { min-height: 58px; padding: 14px; font-size: 16px; }
  .site-menu__link { font-size: 13px; }
  .media-cta { min-height: 520px; padding: 42px 25px; }
  .media-cta h2 { font-size: clamp(32px, 9vw, 44px); }
  .media-cta p { font-size: 16px; }
  .modal__panel { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(238,242,245,.86)); }
}

/* Theme surfaces and legible dialogs. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf1f5;
  --muted: #acb6c3;
  --line: #323b47;
  --surface: #10141a;
  --surface-soft: #191f28;
  --accent-soft: rgba(218,65,46,.17);
  --dialog-bg: rgba(24,30,39,.97);
  --dialog-card: #232c38;
  --dialog-field: #171e27;
  --header-bg: rgba(18,23,30,.96);
  --glass-line: rgba(255,255,255,.15);
}
.site-header, .site-header.is-scrolled { background: var(--header-bg); color: var(--ink); border-color: var(--line); }
.menu-toggle, .theme-toggle { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.menu-toggle > span { display: inline; height: auto; margin: 0; background: none; transform: none !important; opacity: 1 !important; }
.menu-toggle__glyph { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; padding: 11px; border-radius: 12px; cursor: pointer; }
.theme-toggle svg { display: block; width: 24px; height: 24px; }
.theme-toggle .theme-icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon--sun { display: block; }
.theme-toggle:hover { border-color: var(--accent); }
.site-menu__backdrop, .modal__backdrop { background: rgba(4,8,14,.65); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.site-menu__dialog, .modal__panel { background: var(--dialog-bg); color: var(--ink); border-color: var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.site-menu__group, .site-menu__subgroup, .site-menu__footer { background: var(--dialog-card); border-color: var(--line); }
.site-menu__head { border-color: var(--line); }
.site-menu__link { background: var(--dialog-field); color: var(--ink); }
.site-menu__link:hover { background: var(--surface-soft); }
.site-menu__link--root { background: var(--accent-soft); }
.site-menu__close, .modal__close { background: var(--dialog-card); color: var(--ink); border-color: var(--line); }
.field input, .field select, .field textarea { background-color: var(--dialog-field); color: var(--ink); border-color: var(--line); }
.file-field { background: var(--dialog-card); }
[data-theme="dark"] .feature, [data-theme="dark"] .related-card { background: var(--surface-soft); }
[data-theme="dark"] .prose p { color: #c2cbd6; }
[data-theme="dark"] .needs-data { background: #45341a; color: #f1cc91; }
[data-theme="dark"] .form-result { color: #ffb7ac; }
.form-result a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-result--ok { background: rgba(28, 135, 78, .12); color: #135c34; }
[data-theme="dark"] .form-result--ok { background: rgba(60, 190, 120, .14); color: #a6e8c2; }
.quote-form [type="submit"]:disabled { opacity: .65; cursor: progress; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
[data-theme="dark"] .brand__mark i { background: linear-gradient(135deg,#fff,#8e969e); }
[data-theme="dark"] .brand__mark i:nth-child(3) { background: var(--accent); }
.brand--footer { color: #fff; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
@media (max-width: 820px) {
  .menu-toggle > span:last-child { display: none; }
  .theme-toggle { width: 44px; height: 44px; flex-basis: 44px; }
}

/* Frosted select popovers render above the scrolling form in the top layer. */
.glass-select { position: relative; min-width: 0; }
.field .glass-select__native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.glass-select__trigger { position: relative; width: 100%; min-height: 48px; padding: 11px 44px 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--dialog-field); color: var(--ink); font-size: 16px; font-weight: 400; text-align: left; transition: border-color .2s, box-shadow .2s, background .2s; }
.glass-select__trigger::after { content: ''; position: absolute; right: 18px; top: 19px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .22s; }
.glass-select__trigger[aria-expanded="true"]::after { transform: translateY(4px) rotate(225deg); }
.glass-select__trigger:hover, .glass-select__trigger:focus-visible, .glass-select__trigger[aria-expanded="true"] { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.glass-select__trigger.is-placeholder { color: var(--muted); }
.glass-select__trigger[aria-invalid="true"] { border-color: #d92d20; }
.glass-select__list { position: fixed; inset: auto; margin: 0; box-sizing: border-box; padding: 8px; overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: linear-gradient(135deg,rgba(243,250,255,.84),rgba(255,255,255,.9)); color: #263344; box-shadow: 0 22px 65px rgba(12,24,38,.24), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(26px) saturate(1.45); -webkit-backdrop-filter: blur(26px) saturate(1.45); scrollbar-width: thin; scrollbar-color: #87929d transparent; font-weight: 450; }
.glass-select__list:popover-open { animation: glass-select-in .2s ease-out; }
.glass-select__option { position: relative; z-index: 1; min-height: 46px; display: flex; align-items: center; padding: 11px 30px 11px 16px; border-radius: 12px; cursor: pointer; font-size: 16px; line-height: 1.35; transition: color .18s; }
.glass-select__option[aria-selected="true"] { color: var(--accent); font-weight: 700; }
.glass-select__option[aria-selected="true"]::after { content: ''; position: absolute; right: 13px; width: 6px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.glass-select__highlight { position: absolute; z-index: 0; top: 0; left: 8px; right: 8px; border: 1px solid rgba(255,255,255,.6); border-radius: 12px; background: linear-gradient(135deg,rgba(168,28,12,.14),rgba(168,28,12,.06)); box-shadow: 0 8px 20px rgba(28,40,54,.1), inset 0 1px 0 rgba(255,255,255,.6); pointer-events: none; transition: transform .22s cubic-bezier(.2,.8,.2,1), height .2s; }
[data-theme="dark"] .glass-select__list { background: linear-gradient(135deg,rgba(32,45,60,.87),rgba(20,28,39,.94)); color: #e2eaf3; border-color: rgba(255,255,255,.2); box-shadow: 0 22px 65px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.13); }
[data-theme="dark"] .glass-select__highlight { border-color: rgba(255,255,255,.17); background: linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.05)); box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.13); }
[data-theme="dark"] .glass-select__option[aria-selected="true"] { color: #ff9d8f; }
@keyframes glass-select-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .glass-select__list:popover-open { animation: none; } .glass-select__highlight { transition: none; } }

/* Hold snapshots while the radial reveal runs; freeze unrelated hover/scroll animations. */
.is-changing-theme *, .is-changing-theme *::before, .is-changing-theme *::after { transition: none !important; animation-play-state: paused !important; }
::view-transition-new(root) { animation: theme-snapshot-hold .9s linear both; }
@keyframes theme-snapshot-hold { from, to { opacity: 1; } }
.site-menu__dialog { background: linear-gradient(135deg,rgba(239,247,253,.9),rgba(255,255,255,.94)); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4); }
[data-theme="dark"] .site-menu__dialog { background: linear-gradient(135deg,rgba(31,43,58,.92),rgba(20,28,39,.96)); }
.site-menu__nav { position: relative; isolation: isolate; min-height: 0; grid-auto-rows: max-content; align-items: start; }
.site-menu__group, .site-menu__subgroup { height: auto; min-height: min-content; align-self: start; }
.site-menu__group, .site-menu__subgroup { background: transparent; }
.site-menu__link { background: rgba(255,255,255,.28); }
[data-theme="dark"] .site-menu__link { background: rgba(255,255,255,.035); }
.site-menu__hover { position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; border-radius: 12px; border: 1px solid rgba(255,255,255,.6); background: linear-gradient(135deg,rgba(168,28,12,.18),rgba(168,28,12,.05)); box-shadow: 0 8px 22px rgba(24,37,54,.12),inset 0 1px 0 rgba(255,255,255,.6); opacity: 0; transition: transform .24s cubic-bezier(.2,.8,.2,1),width .24s,height .24s,opacity .15s; }
[data-theme="dark"] .site-menu__hover { background: linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.06)); border-color: rgba(255,255,255,.2); box-shadow: 0 8px 22px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.15); }
.site-menu__link:hover { background: transparent; }
.form-refinements[hidden], .form-refinements .field[hidden] { display: none; }
.form-refinements { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--accent-soft); animation: glass-select-in .22s ease-out; }
.form-extra { border-top: 1px solid var(--line); padding-top: 14px; }
.form-extra summary { cursor: pointer; color: var(--ink); font-weight: 650; }
.form-extra summary span { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.form-extra__fields { display: grid; gap: 14px; padding-top: 16px; }
.modal__panel { width: min(100%,680px); }
@media (max-width:760px) { .modal__panel { width: 100%; } }

/* Full-bleed hero: the page image fills the complete first screen. */
.page-hero {
  min-height: min(900px, 100svh);
  padding: calc(var(--header-height) + 66px) 0 76px;
  align-items: center;
  color: #fff;
  background: var(--graphite);
}
.page-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--graphite);
  box-shadow: none;
}
.page-hero__media picture,
.page-hero__media img { width: 100%; height: 100%; }
.page-hero__media img { min-height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; transform: scale(1.01); }
.page-hero:hover .page-hero__media img { transform: scale(1.04); }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7,10,14,.96) 0%, rgba(7,10,14,.84) 42%, rgba(7,10,14,.3) 74%, rgba(7,10,14,.42) 100%), linear-gradient(0deg, rgba(7,10,14,.58), transparent 56%);
}
.page-hero__grid {
  z-index: 1;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.page-hero__layout { z-index: 2; display: block; }
.page-hero__content { max-width: 820px; }
.page-hero .breadcrumbs { color: rgba(255,255,255,.66); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .eyebrow { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(12px); }
.page-hero h1 { color: #fff; text-shadow: 0 12px 38px rgba(0,0,0,.24); }
.page-hero__lead { color: rgba(255,255,255,.8); }
.page-hero .button--ghost { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.page-hero .button--ghost:hover { color: #fff; border-color: rgba(255,255,255,.52); background: rgba(255,255,255,.16); }

/* Exact animated attention background adapted from the supplied MezoTOP archive. */
.attention-grabber-section { padding-top: clamp(44px, 7vw, 86px); padding-bottom: clamp(44px, 7vw, 86px); }
.attention-card {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 86px);
  border-radius: 28px;
  background: radial-gradient(circle at 72% 18%, rgba(168,28,12,.2), transparent 30%), linear-gradient(135deg,#050609 0,#11141b 48%,#050609 100%);
  color: #fff;
  box-shadow: 0 28px 80px rgba(26,26,46,.22), 0 18px 54px rgba(0,0,0,.28);
  isolation: isolate;
}
.attention-card__shader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .98; transform: translateZ(0); }
.attention-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 18% 52%,rgba(0,0,0,.12),transparent 34%), linear-gradient(90deg,rgba(0,0,0,.3) 0,rgba(0,0,0,.14) 50%,rgba(0,0,0,.32) 100%), linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.3)); }
.attention-card::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; pointer-events: none; z-index: 2; }
.attention-card > *:not(.attention-card__shader) { position: relative; z-index: 3; }
.attention-card__tag { align-self: flex-start; display: inline-flex; margin-bottom: 28px; padding: 8px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 14px; font-weight: 760; backdrop-filter: blur(12px); }
.attention-card h2 { max-width: 940px; margin: 0 0 20px; color: #fff; font-size: clamp(38px, 5vw, 68px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.attention-card p { max-width: 700px; margin: 0 0 30px; color: rgba(255,255,255,.86); font-size: clamp(17px, 1.8vw, 21px); }
.attention-card .button { align-self: flex-start; }

@media (max-width: 820px) {
  .page-hero { min-height: 760px; padding: calc(var(--header-height) + 46px) 0 54px; align-items: flex-end; }
  .page-hero__media { order: initial; border-radius: 0; }
  .page-hero__media img { min-height: 100%; aspect-ratio: auto; object-position: center; }
  .page-hero__media::after { background: linear-gradient(0deg, rgba(7,10,14,.98) 0%, rgba(7,10,14,.76) 58%, rgba(7,10,14,.28) 100%); }
  .page-hero__grid { mask-image: linear-gradient(0deg, #000, transparent 82%); }
  .attention-card { min-height: clamp(560px, 126vw, 640px); padding: 56px 32px; border-radius: 22px; }
  .attention-card::before { inset: 12px; border-radius: 16px; }
}

@media (max-width: 560px) {
  .page-hero { min-height: 720px; }
  .page-hero__media img { aspect-ratio: auto; }
  .attention-grabber-section { padding-top: 10px; padding-bottom: 34px; }
  .attention-card { padding: 48px 26px; }
  .attention-card h2 { font-size: clamp(32px, 9vw, 45px); }
  .attention-card p { font-size: 16px; }
}

/* Мобильный первый экран: вертикальная картинка отдельным блоком сверху, текст под ней */
@media (max-width: 760px) {
  .page-hero { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; min-height: 0; padding: 0 0 44px; }
  .page-hero__media { position: relative; inset: auto; height: min(68svh, 560px); flex: none; }
  .page-hero__media img { object-position: center 60%; }
  .page-hero__media::after { background: linear-gradient(180deg, rgba(10,13,17,.55) 0%, rgba(10,13,17,0) 22%, rgba(10,13,17,0) 62%, rgba(10,13,17,1) 100%); }
  .page-hero__layout { position: relative; margin-top: -72px; }
  .page-hero .breadcrumbs { margin-bottom: 14px; }
}

/* H1-оффер: длиннее ключа, поэтому чуть меньше кегль и шире строка */
.page-hero h1 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.06; max-width: 1000px; text-wrap: balance; }
@media (max-width: 760px) { .page-hero h1 { font-size: clamp(27px, 7.6vw, 33px); line-height: 1.12; } }

/* Логотип в футере */
.brand--footer .brand__logo { display: block; height: 36px; width: auto; max-width: 100%; filter: brightness(1.15) contrast(1.08); }

/* Блок загрузки чертежей */
.file-drop { display: grid; gap: 10px; font-weight: 400; }
.file-drop__zone { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed #b9c0c6; border-radius: 12px; background: rgba(255,255,255,.42); color: var(--ink); cursor: pointer; transition: border-color .18s, background-color .18s, box-shadow .18s; }
.file-drop__zone:hover { border-color: var(--accent); }
.file-drop__zone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.file-drop__zone.is-dragover { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.file-drop__icon { display: flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-soft); color: var(--accent); }
.file-drop__text { display: grid; gap: 3px; min-width: 0; }
.file-drop__title { font-size: 15px; font-weight: 650; line-height: 1.3; }
.file-drop__hint { color: var(--muted); font-size: 13px; line-height: 1.4; }
.file-drop .file-drop__input { position: absolute; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; white-space: nowrap; }
.file-drop__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.file-drop__list[hidden], .file-drop__error[hidden] { display: none; }
.file-drop__item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); font-size: 14px; }
.file-drop__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.file-drop__size { flex-shrink: 0; color: var(--muted); font-size: 13px; }
.file-drop__remove { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.file-drop__remove:hover { background: var(--accent-soft); color: var(--accent); }
.file-drop__error { margin: 0; color: #c0261a; font-size: 13px; font-weight: 600; }
.file-drop.is-invalid .file-drop__zone { border-color: #d92d20; }
[data-theme="dark"] .file-drop__zone { border-color: #3a4452; background: transparent; }
[data-theme="dark"] .file-drop__zone:hover, [data-theme="dark"] .file-drop__zone:focus-within { border-color: #ff6a55; }
[data-theme="dark"] .file-drop__zone.is-dragover { border-color: #ff6a55; background: rgba(218,65,46,.12); }
[data-theme="dark"] .file-drop__icon { background: #1d232c; color: #ff6a55; }
[data-theme="dark"] .file-drop__item { background: var(--dialog-field); }
[data-theme="dark"] .file-drop__remove:hover { color: #ff8a78; }
[data-theme="dark"] .file-drop__error { color: #ff9c8e; }
@media (max-width: 760px) { .file-drop__zone { padding: 12px 14px; } }

/* ===== Главная: слайдер «Наша продукция» ===== */
.section--products { padding-top: 0; }
.product-rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.product-rail__head h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.12; letter-spacing: -.025em; }
.product-rail__all { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; color: var(--ink); font-weight: 750; white-space: nowrap; }
.product-rail__all svg { color: var(--accent); transition: transform .2s; }
.product-rail__all:hover svg { transform: translateX(4px); }
.product-rail { position: relative; }
.product-rail__track { display: flex; gap: 16px; margin: 0 calc(50% - 50vw); padding: 6px calc(50vw - 50%) 18px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.product-rail__track::-webkit-scrollbar { display: none; }
.product-rail__track.is-dragging { cursor: grabbing; user-select: none; }
.product-rail__track.is-dragging .product-card { pointer-events: none; }
.product-rail__item { flex: 0 0 clamp(220px, 21vw, 280px); }
.product-card { position: relative; display: block; height: 100%; min-height: 320px; overflow: hidden; border-radius: var(--radius); background: var(--graphite-2, #171b21); color: #fff; box-shadow: 0 10px 30px rgba(9,13,18,.12); isolation: isolate; transition: transform .3s ease, box-shadow .3s ease; }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; -webkit-user-drag: none; }
.product-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(10,13,17,.94) 0%, rgba(10,13,17,.35) 45%, rgba(10,13,17,0) 70%); }
.product-card__body { position: absolute; inset: auto 20px 20px; z-index: 1; display: grid; gap: 6px; padding-right: 44px; }
.product-card__cat { color: rgba(255,255,255,.66); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-card__title { font-size: 19px; font-weight: 750; line-height: 1.22; }
.product-card__go { position: absolute; right: 18px; bottom: 20px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); transition: background .25s, transform .25s; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(9,13,18,.22); }
.product-card:hover img, .product-card:focus-visible img { transform: scale(1.06); }
.product-card:hover .product-card__go, .product-card:focus-visible .product-card__go { background: var(--accent); transform: translateX(2px); }
.product-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.product-card--all { display: flex; background: linear-gradient(140deg, #a81c0c, #6f1207); }
.product-card--all::after { display: none; }
.product-card--all .product-card__title { font-size: 22px; }
.product-card--all .product-card__go { background: rgba(255,255,255,.18); }
.product-rail__controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.product-rail__progress { flex: 1; height: 3px; margin-right: 10px; overflow: hidden; border-radius: 3px; background: var(--line); }
.product-rail__progress span { display: block; width: 20%; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; will-change: transform; }
.product-rail__btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.product-rail__btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); color: #fff; }
.product-rail__btn:disabled { opacity: .35; cursor: default; }
[data-theme="dark"] .product-card { box-shadow: none; border: 1px solid rgba(255,255,255,.06); }
@media (hover: none) {
  .product-rail__track { scroll-snap-type: x mandatory; scroll-padding-inline: 14px; cursor: auto; }
  .product-rail__item { scroll-snap-align: start; }
  .product-rail__btn { display: none; }
}
@media (max-width: 760px) {
  .product-rail__track { gap: 12px; scroll-padding-inline: 14px; }
  .product-rail__item { flex-basis: 66%; }
  .product-card { min-height: 280px; }
  .product-card__title { font-size: 17px; }
  .product-rail__head { align-items: center; margin-bottom: 20px; }
  .product-rail__all { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card img, .product-card__go { transition: none; }
}
.product-rail__tabs { display: flex; gap: 8px; margin: 0 calc(50% - 50vw) 18px; padding: 2px calc(50vw - 50%); overflow-x: auto; scrollbar-width: none; }
.product-rail__tabs::-webkit-scrollbar { display: none; }
.product-rail__tab { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.product-rail__tab span { color: var(--muted); font-size: 13px; font-weight: 600; }
.product-rail__tab:hover { border-color: var(--accent); }
.product-rail__tab[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.product-rail__tab[aria-pressed="true"] span { color: rgba(255,255,255,.75); }
.product-rail__tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.product-rail__item[hidden] { display: none; }
.product-rail__track.is-switching .product-rail__item { animation: rail-in .45s ease both; }
@keyframes rail-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .product-rail__tab { min-height: 40px; padding: 0 14px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .product-rail__track.is-switching .product-rail__item { animation: none; } }

/* Сетка услуг: ряды по три карточки; если в последнем ряду две — растягиваем их на всю ширину */
@media (min-width: 761px) {
  .service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-grid > * { grid-column: span 2; }
  .service-grid > :nth-child(3n+1):nth-last-child(2),
  .service-grid > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; }
}
/* Связанные материалы: четыре карточки — в один ряд, на планшете 2 × 2 */
@media (min-width: 1101px) { .related-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1100px) { .related-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
