/* ============================================================
   Vélar og búnaður — site styles
   Ported from "Velar og bunadur - standalone.html". Tokens (colours,
   fonts, container) live in Views/Partials/Vob/Utility/Colors.cshtml.
   Breakpoint: 1060px (desktop nav + side-by-side hero), as in the design.
   Grids use minmax(min(Npx,100%),1fr) so nothing overflows on phones.
   ============================================================ */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-strong);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy-900); text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
input, textarea, select, button { font-family: var(--font-text); }
::selection { background: var(--accent); color: var(--white); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
main:focus { outline: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }

.edit-page-link {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  background: var(--accent); color: var(--white); padding: 10px 16px; font: 600 14px var(--font-text);
}
.edit-page-link:hover { background: var(--accent-hover); color: var(--white); text-decoration: none; }

/* ---------- surfaces & rhythm ---------- */
.on-dark { background: var(--surface-inverse); color: var(--text-inverse); }
.on-dark a:hover { color: var(--white); }
.bg-sunken { background: var(--surface-sunken); }
.rule-top { border-top: 1px solid var(--border); }
.section--rule { border-top: 3px solid var(--accent); }

.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--md { padding: clamp(48px, 6vw, 88px) 0; }
.section--sm { padding: clamp(48px, 6vw, 84px) 0; }
.section--stats { padding: clamp(48px, 6vw, 80px) 0; }
.section--contact { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); }
.section-tail { padding: 0 0 clamp(56px, 7vw, 100px); }
.section-tail--sm { padding: 0 0 clamp(48px, 6vw, 84px); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.split--wide { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(32px, 5vw, 80px); }
.split--center { align-items: center; }
.split--contact { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(32px, 5vw, 88px); }
@media (min-width: 700px) { .split--reverse > :first-child { order: 2; } }

.measure-20 { max-width: 20ch; } .measure-22 { max-width: 22ch; } .measure-34 { max-width: 34ch; }
.measure-46 { max-width: 46ch; } .measure-48 { max-width: 48ch; } .measure-52 { max-width: 52ch; }
.measure-58 { max-width: 58ch; } .measure-60 { max-width: 60ch; } .measure-70 { max-width: 70ch; }
.measure-760 { max-width: 760px; }

/* ---------- type ---------- */
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.025em; font-weight: 900; }
.h2--lg { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 18px; }
.h2--md { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 14px; }
.h2--sm { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.06; margin-bottom: 16px; }
.h2--xs { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; margin-bottom: 26px; }
.h2--text { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin-bottom: 20px; }
.h2--text-sm { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin-bottom: 26px; }
.h2--panel { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 22px; }
.on-dark .h2 { color: var(--text-inverse); }

.body-lg { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); margin: 0 0 26px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.arrow { font-family: var(--font-mono); font-size: 15px; color: var(--accent); }

.rte p { font-size: 17px; line-height: 1.7; color: var(--text-body); margin: 0 0 18px; }
.rte ul, .rte ol { font-size: 17px; line-height: 1.7; color: var(--text-body); margin: 0 0 18px; padding-left: 1.25em; }
.rte h2, .rte h3 { margin: 1.4em 0 .5em; }
.rte a { text-decoration: underline; }
.rte > :last-child { margin-bottom: 0; }
.rte--column { margin-bottom: 28px; }
.rte--column p { max-width: 56ch; }
.rte--article { margin-bottom: 36px; }
.rte--article p { line-height: 1.75; margin-bottom: 20px; }
.rte--article > :last-child { margin-bottom: 0; }
.rte--product p { font-size: 17.5px; line-height: 1.75; margin-bottom: 22px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 0;
  padding: 16px 30px;
  font: 600 15.5px/1.2 var(--font-text);
  text-align: center; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--grey-50); }
.on-dark .btn-outline { border-color: var(--navy-600); color: var(--grey-50); }
.on-dark .btn-outline:hover { background: var(--navy-850); color: var(--grey-50); }
.btn-sm { padding: 14px 24px; font-size: 14.5px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-xl { padding: 20px 38px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1059.98px) {
  .btn-row--stack { flex-direction: column; gap: 10px; }
  .btn-row--stack .btn { width: 100%; padding: 17px 24px; }
}

.link-underline {
  display: inline-block; font: 600 15px var(--font-text); color: var(--navy-900);
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}
.link-underline:hover { color: var(--accent); text-decoration: none; }
.link-mono {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 3px;
}
.link-mono:hover { color: var(--navy-900); border-color: var(--navy-900); text-decoration: none; }

/* ---------- images ---------- */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-placeholder { display: block; width: 100%; height: 100%; background: var(--surface-sunken); }
.media-frame { position: relative; overflow: hidden; height: min(360px, 44vh); background: var(--surface-sunken); }
.media-frame--sm { height: min(300px, 38vh); background: var(--grey-200); }
.media-frame--lg { height: min(460px, 52vh); }
.media-frame--xl { height: min(560px, 60vh); background: var(--navy-900); }
.media-frame--product { height: min(520px, 56vh); margin-bottom: clamp(28px, 3.5vw, 48px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--grey-50); border-bottom: 1px solid var(--border); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__mark { display: block; width: 96px; height: 38px; overflow: hidden; flex: none; border-radius: 3px; background: var(--navy-900); }
.brand__mark img { width: 96px; height: auto; display: block; margin-top: -5px; }
.brand__word { font-family: var(--font-display); font-weight: 900; font-size: 12.5px; letter-spacing: .1em; color: var(--accent); white-space: nowrap; }
.brand__word span { color: var(--navy-900); }

.main-nav { display: none; align-items: center; gap: 2px; }
.main-nav__link {
  display: block; padding: 12px 14px; font: 500 15px/1.2 var(--font-text); color: var(--navy-900); white-space: nowrap;
}
.main-nav__link:hover, .main-nav__link[data-active="true"] { color: var(--accent); text-decoration: none; }
.main-nav__cta { margin-left: 10px; padding: 14px 24px; font-size: 15px; }
.main-nav__group { position: relative; }
.main-nav__menu {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.main-nav__group:not([data-dismissed]):hover .main-nav__menu,
.main-nav__group:not([data-dismissed]):focus-within .main-nav__menu,
.main-nav__group[data-open] .main-nav__menu { opacity: 1; visibility: visible; transform: none; }
.main-nav__menu ul { list-style: none; margin: 0; padding: 6px 0; }
.main-nav__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; font-size: 15px; color: var(--text-body);
}
.main-nav__menu a:hover { background: var(--grey-50); color: var(--accent); text-decoration: none; }
.main-nav__menu a span { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border); padding: 13px; cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--navy-900); }

.mobile-nav {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border); background: var(--white);
  padding: 12px var(--gutter) 28px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__link {
  border-bottom: 1px solid var(--border-soft); padding: 18px 0;
  font: 700 19px var(--font-display); color: var(--navy-900);
}
.mobile-nav__sublink {
  border-bottom: 1px solid var(--border-soft); padding: 14px 0 14px 18px;
  font-size: 15px; color: var(--text-body);
}
.mobile-nav__link:hover, .mobile-nav__sublink:hover { color: var(--accent); text-decoration: none; }
.mobile-nav__cta { margin-top: 20px; }
.mobile-nav__phone { margin-top: 14px; font-family: var(--font-mono); font-size: 14px; color: var(--navy-900); }

@media (min-width: 1060px) {
  .main-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; color: var(--slate-400); margin-bottom: 26px;
}
.breadcrumb a { color: var(--slate-400); }
.breadcrumb a:hover { color: var(--navy-900); text-decoration: none; }
.breadcrumb [aria-current] { color: var(--navy-900); }
.breadcrumb--dark { margin-bottom: 28px; }
.breadcrumb--dark a:hover, .breadcrumb--dark [aria-current] { color: var(--mist-300); }

/* ---------- hero (heroBlock) ---------- */
.hero { display: flex; flex-direction: column; }
.hero__media { order: -1; height: min(260px, 34vh); background: var(--navy-800); overflow: hidden; }
.hero__body { padding: 32px 24px 10px; }
.hero__title {
  font-size: clamp(30px, 8.4vw, 42px); line-height: 1.05; font-weight: 900; letter-spacing: -.03em;
  color: var(--grey-50); margin: 0 0 16px;
}
.hero__text { font-size: 16px; line-height: 1.6; color: var(--mist-300); margin: 0 0 28px; max-width: 50ch; }
.hero .btn-row { margin-bottom: 32px; }

@media (min-width: 1060px) {
  .hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); height: 700px; }
  .hero__media { order: 0; height: auto; min-height: min(434px, 48vh); background: var(--grey-100); }
  .hero__body {
    display: flex; align-items: center;
    padding: clamp(30px, 4.2vw, 66px) clamp(24px, 4vw, 72px) clamp(30px, 4.2vw, 66px) max(28px, calc((100vw - 1320px) / 2 + 28px));
  }
  .hero__content { max-width: 620px; width: 100%; }
  .hero__title { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; margin-bottom: 24px; }
  .hero__text { font-size: clamp(16px, 1.5vw, 18px); margin-bottom: 36px; }
  .hero .btn-row { margin-bottom: 44px; }
}

/* ---------- nav cards (navCardsBlock) ---------- */
.nav-cards { position: relative; z-index: 2; margin-top: 24px; }
@media (min-width: 1060px) { .nav-cards--overlap { margin-top: -64px; } }
.nav-cards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.nav-card {
  position: relative; display: block; height: 210px; overflow: hidden;
  background: var(--grey-100); box-shadow: var(--shadow-card);
  transition: opacity var(--dur) var(--ease);
}
.nav-card:hover { opacity: .94; text-decoration: none; }
.nav-card__bar {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--navy-900); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-card__title { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; color: var(--grey-50); }

/* ---------- intro (introBlock) ---------- */
.intro__lead { font-size: clamp(18px, 2vw, 23px); line-height: 1.55; color: var(--navy-900); margin: 0 0 20px; max-width: 46ch; }
.intro__text { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 0 0 28px; max-width: 52ch; }
.rule-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 24px; }
.rule-stat { border-top: 2px solid var(--accent); padding-top: 16px; }
.rule-stat__value { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.02em; color: var(--navy-900); margin: 0 0 8px; }
.rule-stat__label { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* ---------- section heads ---------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--border); padding-top: 28px; margin-bottom: 32px;
}
.section-head .h2 { margin: 0; }
.section-intro { max-width: 560px; margin-bottom: 36px; }
.section-intro .body-lg { margin: 0; }
.section-foot { margin-top: 32px; }

/* ---------- categories (categoriesBlock / CategoryCard) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.cat-grid--detailed { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.cat-card { background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; }
.cat-card__media { display: block; height: 280px; background: var(--grey-100); overflow: hidden; transition: opacity var(--dur) var(--ease); }
.cat-card__media:hover { opacity: .92; }
.cat-card__media--sm { height: 180px; border-bottom: 1px solid var(--border); }
.cat-card__body { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--border); }
.cat-card__body--sm { padding: 20px 20px 22px; border-top: 0; }
.cat-card__title-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.cat-card__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; letter-spacing: -.025em; }
.cat-card__title a, .cat-card__name a { color: var(--navy-900); }
.cat-card__title a:hover, .cat-card__name a:hover { color: var(--accent); text-decoration: none; }
.cat-card__tagline { font-size: 16.5px; line-height: 1.6; color: var(--text-body); margin: 0 0 14px; max-width: 48ch; }
.cat-card__desc { font-size: 15.5px; line-height: 1.7; color: var(--text-soft); margin: 0 0 26px; max-width: 52ch; }
.cat-card__cta, .cat-card__more { margin-top: auto; align-self: flex-start; }
.cat-card__name { font-size: 18.5px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 14px; }
.cat-card__products { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--border-soft); }
.cat-card__products li { border-bottom: 1px solid var(--border-soft); }
.cat-card__products a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; font-size: 14.5px; color: var(--text-body);
}
.cat-card__products a:hover { color: var(--accent); text-decoration: none; }
.cat-card__products span { font-family: var(--font-mono); font-size: 13px; color: var(--slate-400); }

/* ---------- hairline grids ---------- */
.hairline-grid { display: grid; gap: 2px; background: var(--grey-250); }
.hairline-grid--dark { background: var(--navy-700); }
.hairline-grid--boxed { background: var(--border); border: 1px solid var(--border); }

/* ---------- testimonials (testimonialsBlock) ---------- */
.testimonials__heading { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.06; margin-bottom: 40px; }
.quotes { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.quote { background: var(--navy-900); margin: 0; padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote__text { margin: 0; font-family: var(--font-display); font-size: 17.5px; line-height: 1.5; font-weight: 400; color: var(--grey-50); }
.quote__by { border-top: 2px solid var(--accent); padding-top: 14px; }
.quote__name { display: block; font-size: 14.5px; font-weight: 600; color: var(--grey-50); }
.quote__company { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--mist-400); margin-top: 4px; }
.logos { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); margin-top: 2px; }
.logos__cell { background: var(--navy-900); height: 84px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.logos__cell img { max-height: 44px; width: auto; object-fit: contain; }

/* ---------- facts (factsBlock) ---------- */
.facts { grid-template-columns: 1fr 1fr; }
.fact { background: var(--grey-50); padding: 26px 24px; }
.fact__value { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--navy-900); margin: 0 0 6px; }
.fact__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin: 0; }
@media (max-width: 420px) { .fact { padding: 20px 16px; } .fact__value { font-size: 21px; } }

/* ---------- services (servicesBlock) ---------- */
.service-tiles { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.service-tile { background: var(--grey-50); padding: 28px 24px 32px; }
.service-tile .num { font-size: 11px; margin: 0 0 18px; }
.service-tile__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.service-tile__text { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 0; }

.service-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(20px, 4vw, 64px); padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--border); align-items: start;
}
.service-row__head { display: flex; gap: 20px; align-items: baseline; }
.service-row__title { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.service-row__text { font-size: 17px; line-height: 1.7; color: var(--text-body); margin: 0 0 18px; max-width: 56ch; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}

/* ---------- CTA band (ctaBlock + product enquiry) ---------- */
.cta-band { padding: clamp(64px, 8vw, 120px) 0; }
.cta-band--product { padding: clamp(56px, 7vw, 100px) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 36px 44px; align-items: center; justify-content: space-between; }
.cta-band__inner--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 44px; align-items: end; }
.cta-band__title {
  font-size: clamp(32px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.035em; font-weight: 900;
  color: var(--grey-50); max-width: 18ch;
}
.cta-band__title--sm { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.03em; max-width: 22ch; }
.cta-band__text { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: var(--mist-300); margin: 20px 0 0; max-width: 44ch; }
.cta-band--product .cta-band__text { font-size: 16.5px; line-height: 1.6; margin-top: 14px; max-width: 46ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-band__phone { font-family: var(--font-mono); font-size: 13px; color: var(--slate-400); margin: 0; }
.cta-band__phone a { color: var(--white); text-decoration: underline; }

/* ---------- page heads (pageHeaderBlock, category, product, contact) ---------- */
.page-head { padding: clamp(32px, 4vw, 60px) 0 clamp(32px, 4vw, 52px); }
.page-head__split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 4vw, 72px); align-items: end;
  border-bottom: 1px solid var(--border); padding-bottom: clamp(28px, 3.5vw, 44px);
}
.page-head__title { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 900; }
.page-head__intro { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: var(--text-muted); margin: 0; }
.page-head__intro--lg { font-size: clamp(17px, 1.9vw, 21px); color: var(--text-body); }

.page-head--dark { padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px); }
.page-head--dark .page-head__title { color: var(--grey-50); }
.page-head--dark .page-head__intro { color: var(--mist-300); }
.page-head__title--xl { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.03em; font-weight: 700; margin-bottom: 24px; }

.page-head--plain { padding: clamp(48px, 6vw, 88px) 0 0; }
.page-head--plain .page-head__title--xl { font-size: clamp(38px, 5.6vw, 72px); margin-bottom: 32px; }
.page-head--plain .page-head__intro { margin-bottom: 56px; }

.page-head--category { padding: clamp(32px, 4vw, 56px) 0 clamp(28px, 3.5vw, 44px); }
.page-head__title--category { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -.03em; margin-bottom: 18px; }
.page-head__title--product { font-size: clamp(34px, 5vw, 62px); margin-bottom: 18px; }
.page-head__title--lg { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.03; letter-spacing: -.03em; font-weight: 700; margin-bottom: 24px; }

/* ---------- about (statsBlock, columnsBlock, contactCardsBlock) ---------- */
.stat-boxes { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.stat-box { background: var(--grey-50); padding: 32px 24px; }
.stat-box__value { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.stat-box__label { font-size: 14.5px; line-height: 1.5; color: var(--text-muted); margin: 0; }

.tiles { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.tile {
  background: var(--white); height: 88px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400);
}
.tile img { max-height: 48px; width: auto; object-fit: contain; }

.contact-cards__heading { margin-bottom: 40px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.contact-card { background: var(--grey-50); border: 1px solid var(--grey-250); border-radius: var(--radius); padding: 26px; }
.contact-card p { font-size: 14.5px; margin: 0 0 4px; }
.contact-card .contact-card__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.contact-card .contact-card__role { color: var(--text-soft); margin-bottom: 18px; }

/* ---------- contact (contactBlock) ---------- */
.contact__intro { font-size: clamp(17px, 1.8vw, 20px); margin-bottom: 44px; }
.details { margin: 0; border-top: 1px solid var(--border); }
.details__row { padding: 20px 0; border-bottom: 1px solid var(--border); }
.details__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 8px; }
.details__value { margin: 0; font-size: 17px; line-height: 1.5; color: var(--navy-900); }
.details__value--link { font-size: 19px; font-weight: 500; }

.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px); scroll-margin-top: calc(var(--header-h) + 16px);
}
.form-card__title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.form-card__title--lg { font-size: 26px; letter-spacing: -.015em; margin-bottom: 14px; }
.form-card__note { font-size: 14.5px; color: var(--text-soft); margin: 0 0 28px; }
.form-card__privacy { font-size: 13px; line-height: 1.5; color: var(--slate-400); margin: 16px 0 0; }
.form-subject { background: var(--red-50); border-left: 3px solid var(--accent); padding: 14px 16px; font-size: 14.5px; color: var(--navy-900); margin: 0 0 24px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.form-grid .field { margin-bottom: 0; }
.field--last { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-body); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--grey-300); border-radius: var(--radius);
  padding: 14px; font-size: 15.5px; line-height: 1.4; background: var(--grey-25); color: var(--navy-900);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-900); }
.field textarea { line-height: 1.55; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { background: var(--red-60); border-left: 3px solid var(--red-600); padding: 12px 14px; font-size: 14.5px; color: var(--red-900); margin: 0 0 18px; }
.form-success { padding: 24px 0; }
.form-success__icon {
  width: 44px; height: 44px; border: 1.5px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--accent); font-size: 20px;
}
.form-success__text { font-size: 17px; line-height: 1.6; color: var(--text-body); margin: 0 0 28px; max-width: 44ch; }

/* ---------- category page ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.product-card:hover { border-color: var(--navy-900); text-decoration: none; }
.product-card__media { display: block; height: 210px; background: var(--grey-100); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--border); }
.product-card__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--navy-900); }
.product-card .arrow { font-size: 14px; }

/* ---------- product page ---------- */
.product-head { padding: clamp(28px, 3.5vw, 48px) 0 0; }
.product-head__intro { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; color: var(--text-body); margin: 0 0 30px; }
.product-head__actions { margin-bottom: clamp(36px, 4.5vw, 64px); }

.highlights { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.highlight { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; background: var(--grey-100); padding: 16px 20px; }
.highlight__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.highlight__value { font-size: 15px; font-weight: 600; color: var(--navy-900); }

.features {
  list-style: none; margin: 0; padding: 0; max-width: 1000px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 40px;
}
.features li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; line-height: 1.5; color: var(--navy-900); }
.features__mark { flex: none; width: 7px; height: 7px; margin-top: 8px; background: var(--accent); }

.specs { margin: 0; border-top: 1px solid var(--grey-250); }
.specs__row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--grey-250); }
.specs dt { font-size: 15px; color: var(--text-soft); }
.specs dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--navy-900); text-align: right; }

.downloads { display: flex; flex-direction: column; gap: 2px; }
.download {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--grey-50); border: 1px solid var(--grey-250); padding: 18px 20px; color: var(--navy-900);
}
.download:hover { border-color: var(--navy-900); color: var(--navy-900); text-decoration: none; }
.download__name { font-size: 15px; font-weight: 500; }
.download__meta { font-family: var(--font-mono); font-size: 12px; color: var(--slate-400); white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: var(--mist-400); padding: clamp(56px, 7vw, 88px) 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; padding-bottom: 8px; }
.brand--footer { display: inline-flex; margin: 0 0 18px; }
.brand--footer .brand__mark { width: 104px; height: 41px; background: none; }
.brand--footer .brand__mark img { width: 104px; }
.brand--footer .brand__word { font-weight: 700; font-size: 13px; }
.brand--footer .brand__word span { color: var(--grey-50); }
.site-footer__text { font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 34ch; }
.site-footer__heading {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey-50); font-weight: 500; margin: 0 0 18px;
}
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__links a { font-size: 14.5px; color: var(--mist-400); }
.site-footer__links a:hover { color: var(--grey-50); text-decoration: none; }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.site-footer__contact a { color: var(--grey-50); }
.site-footer__contact a:hover { color: var(--white); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
