/* RIVARO NAUTIC — main stylesheet
   Palette: Adriatic ink, hull white, HDPE graphite, signal orange (buoys, life vests), sea glass. */
:root {
  --ink: #0f2433;
  --ink-2: #183a50;
  --hull: #f3f5f6;
  --paper: #ffffff;
  --graphite: #2b333a;
  --muted: #5a6975;
  --line: #d6dee3;
  --signal: #e35f1e;
  --signal-d: #c14e14;
  --sea: #8dbfc4;
  --radius: 3px;
  --wrap: 1240px;
  --head-h: 76px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--graphite); background: var(--paper); font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ic { display: inline-flex; width: 1.2em; height: 1.2em; flex: none; }
.ic svg { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--signal); color: #fff; }
.btn-solid:hover { background: var(--signal-d); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(15,36,51,.06); color: var(--ink); cursor: pointer;
}
.icon-btn .ic { width: 22px; height: 22px; }
.link-more { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--signal); }
.link-more:hover { color: var(--signal-d); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--head-h);
  background: var(--paper); border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s;
}
.is-home .site-header { position: fixed; left: 0; right: 0; }
.site-header.over-hero:not(.scrolled) { background: transparent; border-color: transparent; color: #fff; }
.header-in { display: flex; align-items: center; height: 100%; gap: 28px; max-width: 1480px; }
.langs a, .brand, .header-cta { white-space: nowrap; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.wordmark { font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: currentColor; }
.site-header:not(.over-hero) .wordmark, .site-header.scrolled .wordmark { color: var(--ink); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a.on { border-bottom-color: var(--signal); }
.nav-mobile-extra { display: none; }
.header-tools { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; }
.langs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 7px; border-radius: var(--radius); text-decoration: none; font-size: .8125rem; font-weight: 600; opacity: .7; }
.langs a.on, .langs a:hover { opacity: 1; }
.langs a.on { background: rgba(127,140,150,.16); }
.langs .fi { width: 1.25em; line-height: 1em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle .ic { width: 24px; height: 24px; }
.nav-toggle .ic-close { display: none; }

/* ---------- Notice ---------- */
.notice {
  position: fixed; top: calc(var(--head-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 150;
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--radius);
  background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(15,36,51,.25); max-width: calc(100% - 32px);
}
.notice.err { background: #8a2412; }
.notice .ic { color: var(--sea); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,36,.55) 0%, rgba(10,25,36,.15) 35%, rgba(10,25,36,.78) 100%); }
.hero-sea {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 75% 15%, #2d5c78 0%, transparent 60%),
    linear-gradient(180deg, #16354a 0%, #0f2433 55%, #0a1a26 100%);
}
.hero-sea::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 40%;
  background: repeating-linear-gradient(180deg, rgba(141,191,196,.10) 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.hero-in { position: relative; padding-top: calc(var(--head-h) + 40px); padding-bottom: 56px; }
.hero-title {
  color: #fff; font-stretch: 125%; font-weight: 750; letter-spacing: -.015em; line-height: .96;
  font-size: clamp(2.6rem, 7.2vw, 6.6rem); max-width: 13ch; margin-bottom: .35em;
}
.hero-text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 54ch; color: rgba(255,255,255,.88); margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.waterline { position: relative; border-top: 1px solid rgba(255,255,255,.35); background: rgba(10,25,36,.35); backdrop-filter: blur(6px); }
.facts { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 18px 20px 20px 0; font-size: .9375rem; color: rgba(255,255,255,.9); }
.facts li + li { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-text, .hero-actions { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text { animation-delay: .12s; }
  .hero-actions { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-tint { background: var(--hull); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.sec-title { font-stretch: 115%; font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.01em; max-width: 20ch; }
.sec-intro { max-width: 62ch; color: var(--muted); font-size: 1.0625rem; margin: 0; }
.h-sub { font-stretch: 110%; font-size: 1.5rem; margin-bottom: .8em; }

.grid { display: grid; gap: 40px 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 32px 22px; }

/* Cards */
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-media { aspect-ratio: 4 / 3; background: var(--hull); overflow: hidden; border-radius: 2px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.card-title { font-stretch: 112%; font-size: 1.375rem; margin-bottom: .25em; }
.card-small .card-title { font-size: 1.0625rem; font-stretch: 100%; font-weight: 600; }
.card-sub { color: var(--muted); font-size: .9375rem; margin-bottom: 12px; }
.card-specs { display: flex; gap: 22px; margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-specs dt { font-size: .75rem; color: var(--muted); }
.card-specs dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.card-price { margin: auto 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; }
.card-price .from { color: var(--muted); font-size: .875rem; }
.card-price strong { color: var(--ink); font-size: 1.125rem; }
.card-cta { margin-left: auto; font-size: .875rem; font-weight: 600; color: var(--signal-d); }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }

.ph { width: 100%; height: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #e9eef1, #dfe6ea); color: #9fb0ba; }
.ph-ic { width: 42%; max-width: 180px; height: auto; display: block; }
.ph-ic svg { width: 100%; height: auto; }
.ph-tall { aspect-ratio: 4 / 5; }

/* Engines (dark band) */
.sec-engine { background: var(--ink); color: rgba(255,255,255,.86); border-top: 0; }
.sec-engine + .sec { border-top: 0; }
.sec-engine .sec-title, .sec-engine .link-more { color: #fff; }
.sec-engine .sec-intro { color: rgba(255,255,255,.7); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.engines { width: 100%; border-collapse: collapse; font-size: 1rem; }
.engines th, .engines td { text-align: left; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); }
.engines thead th { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.engines tbody th a { text-decoration: none; font-weight: 600; color: var(--ink); font-stretch: 108%; }
.engines .num { text-align: right; font-weight: 600; white-space: nowrap; }
.engines .go { width: 44px; text-align: right; }
.engines .go a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; color: var(--signal); }
.engines tbody tr:hover th a { text-decoration: underline; text-decoration-color: var(--signal); }
.sec-engine .engines th, .sec-engine .engines td { border-color: rgba(255,255,255,.12); }
.sec-engine .engines thead th { color: rgba(255,255,255,.55); }
.sec-engine .engines tbody th a { color: #fff; }
.sec-engine .engines tbody .num { color: #fff; }
.engines thead th.num { font-weight: 500; }

/* About teaser */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--muted); max-width: 58ch; }
.about-copy .btn { margin-top: 8px; }
.about-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }

/* Contact */
.sec-contact { background: var(--hull); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.contact-list dt .ic { color: var(--signal); width: 18px; height: 18px; }
.contact-list dd { margin: 2px 0 0 26px; font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.follow-label { font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.socials a:hover { background: var(--signal); border-color: var(--signal); }
.socials-dark a { border-color: var(--line); color: var(--ink); background: var(--paper); }
.socials-dark a:hover { color: #fff; }
.socials .ic { width: 20px; height: 20px; }
.map-box { margin: 28px 0 12px; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; border: 1px solid var(--line); background: #e5ebee; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Forms */
.contact-form { background: var(--paper); padding: 36px; border: 1px solid var(--line); border-radius: 2px; }
.form-title { font-stretch: 110%; font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; color: var(--muted); }
.fld-full { grid-column: 1 / -1; }
.fld input, .fld select, .fld textarea {
  font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1px solid #c3ced5; border-radius: var(--radius); background: #fff; width: 100%;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); outline: 2px solid rgba(227,95,30,.25); outline-offset: 0; }
.form-hint { font-size: .8125rem; color: var(--muted); margin-bottom: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inner pages ---------- */
.page-head { padding: 64px 0 40px; background: var(--hull); border-bottom: 1px solid var(--line); }
.page-title { font-stretch: 120%; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.015em; max-width: 18ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span:last-child { color: var(--ink); }
.vat-note { font-size: .8125rem; color: var(--muted); margin-top: 24px; }
.empty { color: var(--muted); font-size: 1.125rem; }
.nf { padding: 120px 0; }

.about-hero { position: relative; padding: 72px 0 48px; background: var(--hull); border-bottom: 1px solid var(--line); }
.about-hero.has-bg { min-height: 62vh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); border: 0; }
.about-hero-bg { position: absolute; inset: 0; }
.about-hero-bg img, .about-hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.about-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,36,.25), rgba(10,25,36,.75)); }
.about-hero .wrap { position: relative; }
.about-hero.has-bg .page-title, .about-hero.has-bg .crumbs, .about-hero.has-bg .crumbs a, .about-hero.has-bg .crumbs span:last-child { color: #fff; }
.about-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; }
.prose { max-width: 68ch; }
.prose p { font-size: 1.125rem; line-height: 1.7; }
.about-facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.about-facts li { padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; }
.masonry img, .masonry video { width: 100%; border-radius: 2px; }
.masonry img { cursor: zoom-in; }
.sec-cta { background: var(--ink); color: #fff; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text { font-stretch: 110%; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; margin: 0; max-width: 34ch; color: #fff; }

/* ---------- Product ---------- */
.product-top { padding: 40px 0 72px; }
.product-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.gallery { position: relative; }
.g-stage { aspect-ratio: 4 / 3; background: var(--hull); border-radius: 2px; overflow: hidden; }
.g-stage img, .g-stage video { width: 100%; height: 100%; object-fit: cover; }
.g-stage img { cursor: zoom-in; }
.g-stage video { object-fit: contain; background: #000; }
.g-prev, .g-next { position: absolute; top: calc((100% - 88px) / 2); background: rgba(255,255,255,.88); }
.gallery:not(:has(.g-thumbs)) .g-prev, .gallery:not(:has(.g-thumbs)) .g-next { top: 50%; }
.g-prev { left: 12px; transform: translateY(-50%); }
.g-next { right: 12px; transform: translateY(-50%); }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.g-thumb { position: relative; flex: none; width: 96px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 2px; overflow: hidden; cursor: pointer; background: var(--hull); }
.g-thumb.on { border-color: var(--signal); }
.g-thumb img, .g-thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb-play { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.product-title { font-stretch: 120%; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.015em; margin-bottom: .2em; }
.product-sub { color: var(--muted); font-size: 1.125rem; }
.product-price { display: flex; flex-direction: column; margin: 24px 0 0; }
.product-price span { font-size: .875rem; color: var(--muted); }
.product-price strong { font-stretch: 115%; font-size: 2.2rem; color: var(--ink); line-height: 1.1; }
.product-intro .vat-note { margin-top: 4px; }
.spec-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.spec-mini > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-mini dt { font-size: .8125rem; color: var(--muted); }
.spec-mini dd { margin: 0; font-weight: 600; color: var(--ink); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-actions .ic { width: 20px; height: 20px; }
.product-details { background: var(--hull); }
.details-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 50%; padding-right: 16px; }
.spec-table td { font-weight: 600; color: var(--ink); }

.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 2px; overflow: hidden; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--signal); color: #fff; }
.yt-stage { height: 100%; }

/* Configurator */
.cfg-sec { border-top: 0; }
.cfg { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; margin-top: 32px; }
.cfg-group { padding: 28px 0; border-top: 1px solid var(--line); }
.cfg-group:first-child { padding-top: 0; border-top: 0; }
.cfg-h { font-stretch: 108%; font-size: 1.25rem; margin-bottom: 16px; }
.cfg-hint { color: var(--muted); font-size: .9375rem; margin: -8px 0 16px; }
.opt-set { border: 0; margin: 0 0 22px; padding: 0; }
.opt-set legend { font-weight: 600; color: var(--ink); margin-bottom: 10px; padding: 0; }
.opt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: #9fb0ba; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-name { flex: 1; font-weight: 500; color: var(--ink); line-height: 1.3; }
.opt-name small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.opt-price { font-size: .9375rem; color: var(--muted); white-space: nowrap; }
.opt.on { border-color: var(--ink); background: #f0f4f6; box-shadow: inset 4px 0 0 var(--signal); }
.opt.on .opt-price { color: var(--ink); font-weight: 600; }
.opt:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.opt-none .opt-name { color: var(--muted); }
.tick { display: inline-flex; width: 22px; height: 22px; border: 1.5px solid #9fb0ba; border-radius: 2px; flex: none; color: transparent; }
.tick .ic { width: 100%; height: 100%; }
.opt.on .tick { background: var(--signal); border-color: var(--signal); color: #fff; }
.engine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.qty-row { display: flex; align-items: center; gap: 16px; font-weight: 600; color: var(--ink); }
.qty-row input { width: 110px; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); }

.sheet { position: sticky; top: calc(var(--head-h) + 20px); background: var(--ink); color: rgba(255,255,255,.85); padding: 28px; border-radius: 2px; }
.sheet-h { color: rgba(255,255,255,.6); font-size: .875rem; font-weight: 500; margin-bottom: 4px; }
.sheet-model { color: #fff; font-stretch: 115%; font-weight: 700; font-size: 1.5rem; margin-bottom: 18px; }
.sheet-row, .sheet-lines li { display: flex; justify-content: space-between; gap: 16px; font-size: .9375rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.sheet-lines { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; }
.sheet-lines li span:last-child, .sheet-row span:last-child { white-space: nowrap; color: #fff; }
.sheet-lines .muted { color: rgba(255,255,255,.5); }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; }
.sheet-total span { color: rgba(255,255,255,.7); }
.sheet-total strong { color: #fff; font-stretch: 118%; font-size: 2rem; line-height: 1; }
.sheet-vat { font-size: .8125rem; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.sheet .btn + .btn { margin-top: 10px; }
.sheet .btn .ic { width: 20px; height: 20px; }
.cfg-bar { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1a26; color: rgba(255,255,255,.72); padding: 72px 0 0; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.3fr .8fr .9fr; gap: 48px; }
.site-footer .wordmark { color: #fff; font-size: 1.3rem; }
.f-logo { height: 44px; width: auto; margin-bottom: 16px; }
.f-brand p { margin-top: 14px; max-width: 36ch; }
.f-small { font-size: .8125rem; color: rgba(255,255,255,.5); }
.f-h { color: #fff; font-size: .9375rem; font-weight: 600; margin-bottom: 16px; }
.f-list, .f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-list li { display: flex; gap: 10px; align-items: flex-start; }
.f-list .ic { color: var(--signal); width: 18px; height: 18px; margin-top: 3px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8125rem; color: rgba(255,255,255,.5); }

/* ---------- Floating / dialogs ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float .ic { width: 30px; height: 30px; }

.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; gap: 14px; }
.dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; }
.dots a.on { background: var(--signal); border-color: var(--signal); transform: scale(1.25); }
.dots a span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .8125rem; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a:hover span { opacity: 1; }
.dots.on-dark a:not(.on) { border-color: rgba(255,255,255,.7); }

dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(10,25,36,.6); }
.offer-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); border-radius: 4px; color: var(--graphite); }
.offer-form { padding: 28px; }
.od-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.od-head h2 { font-stretch: 112%; font-size: 1.5rem; margin: 0; }
.od-summary { background: var(--hull); padding: 16px 18px; border-radius: 2px; margin-bottom: 18px; }
.od-product { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.od-lines { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.od-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.od-total { display: flex; justify-content: space-between; margin: 10px 0 0; font-weight: 700; color: var(--ink); }
.od-vat { font-size: .75rem; color: var(--muted); margin: 2px 0 0; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(6,15,22,.96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; }
.lightbox .icon-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 120; max-width: 420px; background: var(--paper); border: 1px solid var(--line); padding: 18px 20px; border-radius: 3px; box-shadow: 0 12px 40px rgba(15,36,51,.18); }
.cookie p { font-size: .875rem; margin-bottom: 12px; }
.cookie div { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .header-cta { display: none; }
}
@media (max-width: 1360px) {
  .main-nav ul { gap: 16px; }
  .main-nav a { font-size: .875rem; }
  .header-cta { display: none; }
  .header-in { gap: 20px; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--head-h) 0 0 0; background: var(--paper); color: var(--ink);
    padding: 24px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  body.nav-open .site-header { background: var(--paper); color: var(--ink); }
  body.nav-open .site-header .wordmark { color: var(--ink); }
  body.nav-open .nav-toggle .ic-open { display: none; }
  body.nav-open .nav-toggle .ic-close { display: inline-flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 16px 0; font-size: 1.25rem; font-stretch: 112%; font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav-mobile-extra { display: block; margin-top: 24px; }
  .nav-mobile-extra .btn { width: 100%; }
}
@media (max-width: 1040px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .product-grid, .details-grid, .about-grid, .contact-grid, .about-page { grid-template-columns: 1fr; gap: 40px; }
  .cfg { grid-template-columns: 1fr; }
  .sheet { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dots { display: none; }
}
@media (max-width: 720px) {
  :root { --head-h: 64px; }
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .langs a { padding: 6px 5px; gap: 4px; font-size: .75rem; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .facts li { font-size: .8125rem; padding: 14px 12px 14px 0; }
  .facts li + li { padding-left: 12px; }
  .hide-sm { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .g-thumb { width: 72px; height: 54px; }
  .g-prev, .g-next { width: 38px; height: 38px; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  body.has-cfg-bar .wa-float { bottom: 84px; }
  .cfg-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff;
    transform: translateY(110%); transition: transform .25s ease;
  }
  .cfg-bar span { display: block; font-size: .75rem; color: rgba(255,255,255,.65); }
  .cfg-bar strong { font-stretch: 115%; font-size: 1.35rem; }
  body.has-cfg-bar .cfg-bar { transform: none; }
  .lightbox img { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
}
@media (max-width: 380px) {
  .lang-code { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (min-width: 1241px) and (max-width: 1400px) {
  .nav-many .main-nav ul { gap: 12px; }
  .nav-many .main-nav a { font-size: .8125rem; }
  .nav-many .lang-code { display: none; }
}

/* Dealers */
.sec-dealers { background: var(--paper); }
.dealer-groups { display: grid; gap: 40px; margin-bottom: 64px; }
.dealer-country-name { font-stretch: 110%; font-size: 1.25rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.dealer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dealer { padding: 20px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
.dealer-name { font-size: 1.125rem; margin: 0 0 4px; color: var(--ink); }
.dealer-note { color: var(--muted); font-size: .875rem; margin-bottom: 10px; }
.dealer-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; }
.dealer-info li { display: flex; gap: 10px; align-items: flex-start; }
.dealer-info .ic { color: var(--signal); width: 18px; height: 18px; margin-top: 3px; }
.dealer-info a { color: var(--ink); text-decoration: none; }
.dealer-info a:hover { text-decoration: underline; }
.become { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; padding-top: 56px; border-top: 1px solid var(--line); }
.become-title { font-stretch: 115%; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.become-copy p { color: var(--muted); max-width: 48ch; }
.become-ok { display: flex; gap: 8px; align-items: center; color: #1f7a4d !important; font-weight: 600; }
.become-ok .ic { color: #1f7a4d; }
.become-form { background: var(--hull); }
.dealer-strip { background: var(--ink-2); color: #fff; padding: 28px 0; }
.dealer-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dealer-strip p { margin: 0; font-stretch: 108%; font-size: 1.2rem; font-weight: 600; max-width: 44ch; }
.dealer-strip-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1040px) { .become { grid-template-columns: 1fr; gap: 28px; } }

.prose .prose-h { font-stretch: 112%; font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 1.8em 0 .6em; color: var(--ink); }
.prose .prose-h:first-child { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
