/* ==========================================================================
   Naturavizyon — public site styles (mobile-first, single file)
   ========================================================================== */

/* ---------- Design tokens (old site palette) ---------- */
:root {
  --c-brand: #2A5189;        /* logo blue */
  --c-ink: #404040;          /* logo gray, body text */
  --c-green: #0B6B33;
  --c-navy: #131B5C;         /* headings */
  --c-accent: #55ADFA;
  --c-teal: #1AA0AE;         /* active tab (brand, decorative) */
  --c-teal-dark: #0E7C88;    /* teal for text / backgrounds behind white text (WCAG AA) */
  --c-button: #7BD1DF;
  --c-footer-bg: #E0E3EA;
  --c-footer-accent: #AC5042;
  --c-brown: #674631;
  --c-salmon: #DA927C;
  --c-dark: #4C4C4C;
  --c-blush: #F2EAED;

  --c-tab-icon: #1558B5;
  --c-bg: #FFFFFF;
  --c-surface: #F6F8FB;
  --c-line: #E3E6EC;
  --c-muted: #6B7280;
  --c-white: #FFFFFF;
  --c-success-bg: #E7F5EC;
  --c-error: #B42318;
  --c-error-bg: #FDECEA;

  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(19, 27, 92, .06), 0 6px 20px rgba(19, 27, 92, .07);
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Fonts ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Montserrat-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Montserrat-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Montserrat-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Montserrat-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Montserrat-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Montserrat-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--c-ink); background: var(--c-bg); }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-brand); text-underline-offset: 2px; }
a:hover { color: var(--c-navy); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--c-navy); line-height: 1.25; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--c-navy); color: var(--c-white); padding: var(--space-2) var(--space-4); border-radius: var(--radius); }
.skip-link:focus { top: var(--space-2); color: var(--c-white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.container--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: .75rem 1.35rem; border-radius: 999px; border: 2px solid var(--c-brand); background: var(--c-brand); color: var(--c-white); font-weight: 500; text-decoration: none; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.btn--ghost { background: transparent; color: var(--c-brand); }
.btn--ghost:hover { background: var(--c-brand); color: var(--c-white); }
.btn--light { background: var(--c-white); border-color: var(--c-white); color: var(--c-navy); }
.btn--light:hover { background: var(--c-button); border-color: var(--c-button); color: var(--c-navy); }
.btn--outline-light { background: transparent; border-color: var(--c-white); color: var(--c-white); }
.btn--outline-light:hover { background: var(--c-white); color: var(--c-navy); }
.btn--small { padding: .5rem 1rem; font-size: .9rem; }

/* ---------- Home device slider ---------- */
.home-devices { padding-top: var(--space-6); padding-bottom: var(--space-5); }
.home-devices .section__head { flex-wrap: nowrap; align-items: center; }
.home-devices .slider__btn { display: none; }
@media (min-width: 600px) { .home-devices .slider__btn { display: inline-flex; } }
.slider__controls { display: flex; align-items: center; gap: var(--space-2); }
.slider__controls .link-more { margin-right: var(--space-2); }
.slider__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-white); color: var(--c-brand); cursor: pointer; transition: background .15s, color .15s; }
.slider__btn:hover:not(:disabled) { background: var(--c-brand); color: var(--c-white); border-color: var(--c-brand); }
.slider__btn:disabled { opacity: .35; cursor: default; }
.icon--flip { transform: scaleX(-1); }
.slider { --per: 1.15; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--space-4)) / var(--per)); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px var(--space-2); }
.slider::-webkit-scrollbar { display: none; }
.slider > li { scroll-snap-align: start; }
.slider .card:hover { transform: none; }
.slider .card__media { aspect-ratio: 1 / 1; background: var(--c-white); padding: var(--space-4); }
.slider .card__media picture, .slider .card__media img { object-fit: contain; }
.slider .card__body { padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--c-line); }
.slider .card__title { font-size: 1rem; margin-bottom: var(--space-1); }
.slider .card__text { display: none; }
.slider .card__more { font-size: .9rem; }
/* Phones: one full card (no half card peeking past the edge) with arrows over the image sides.
   The side arrows only exist below 600px; tablets and desktop keep the header arrows. */
@media (max-width: 599.98px) {
  .slider { --per: 1; }
  .slider-wrap { position: relative; }
  .slider__nav { position: absolute; top: 4px; left: 0; right: 0; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-2); pointer-events: none; }
  .home-devices .slider__btn--side { display: inline-flex; pointer-events: auto; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(19, 27, 92, .18); }
  .home-devices .slider__btn--side:disabled { opacity: 0; visibility: hidden; }
  .home-devices .slider__btn--side:hover:not(:disabled) { background: rgba(255, 255, 255, .92); color: var(--c-brand); border-color: var(--c-line); }
  .home-devices .slider__btn--side:active:not(:disabled) { background: var(--c-brand); color: var(--c-white); }
}
@media (min-width: 600px) { .slider__nav { display: none; } }
@media (min-width: 600px) { .slider { --per: 2; } }
@media (min-width: 900px) { .slider { --per: 3; } }
@media (min-width: 1200px) { .slider { --per: 4; } }

/* ---------- Header & navigation ---------- */
/* Minimal one-row header on every screen: logo left; home, socials, phone right with thin separators.
   Phones show icons only; labels appear from 768px. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-white); box-shadow: 0 1px 0 rgba(19, 27, 92, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--space-3); }
.brand { display: block; flex: 0 1 auto; min-width: 0; }
.brand__logo { width: 140px; max-width: 100%; height: auto; }
.site-nav, .site-nav__list, .site-nav__social { display: flex; align-items: center; list-style: none; }
.site-nav__social::before, .site-nav__phone::before { content: ""; width: 1px; height: 14px; background: #B9C0CC; flex: none; margin: 0 .35rem; }
.site-nav__link, .site-nav__phone, .site-nav__social a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 36px; min-height: 44px; color: var(--c-brand); text-decoration: none; font-size: .875rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.site-nav__link:hover, .site-nav__phone:hover, .site-nav__social a:hover { color: var(--c-navy); }
.site-nav__link.is-active { color: var(--c-navy); font-weight: 600; }
.site-nav .icon { width: 17px; height: 17px; flex: none; }
/* Language switch: small outlined pill */
.site-nav__lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: .35rem; color: var(--c-brand); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.site-nav__lang-code { padding: .15rem .45rem; border: 1px solid #B9C0CC; border-radius: 4px; line-height: 1.3; }
.site-nav__lang:hover .site-nav__lang-code { border-color: var(--c-navy); color: var(--c-navy); }
.site-nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 768px) {
  .brand__logo { width: 190px; }
  .site-nav__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .site-nav .icon { width: 15px; height: 15px; }
  .site-nav__social::before, .site-nav__phone::before { margin: 0 .9rem; }
  .site-nav__social a { min-width: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-6) 0; }
.section--tint { background: var(--c-surface); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.section__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.section__title--center { text-align: center; margin-bottom: var(--space-6); }
.section__title--small { font-size: 1.35rem; }
.link-more { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 500; text-decoration: none; }
.eyebrow { margin: 0 0 var(--space-2); font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--c-teal-dark); }
.empty { padding: var(--space-6); background: var(--c-surface); border-radius: var(--radius); text-align: center; }

/* ---------- Hero ---------- */
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.page-head { background: var(--c-surface); padding: var(--space-6) 0 var(--space-5); border-bottom: 1px solid var(--c-line); }
.page-head__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin: 0; }
.page-head__lead { margin: var(--space-3) 0 0; color: var(--c-dark); }
.breadcrumbs { font-size: .875rem; color: var(--c-muted); margin-bottom: var(--space-3); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-brand); text-decoration: underline; }

/* ---------- Cards ---------- */
.card-grid { list-style: none; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(5, 1fr); } }
/* compact product cards (same look as the home slider) */
.card-grid .card__media { aspect-ratio: 1 / 1; background: var(--c-white); padding: var(--space-3); }
.card-grid .card__media picture, .card-grid .card__media img { object-fit: contain; }
.card-grid .card__body { padding: var(--space-3); border-top: 1px solid var(--c-line); }
.card-grid .card__title { font-size: .95rem; margin-bottom: var(--space-1); }
.card-grid .card__text { display: none; }
.card-grid .card__more { font-size: .85rem; }
.card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__media { aspect-ratio: 4 / 3; background: var(--c-surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media picture, .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .card__placeholder { width: 60px; height: auto; opacity: .35; object-fit: contain; }
.card__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.card__eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-teal-dark); margin-bottom: var(--space-1); }
.card__title { font-size: 1.2rem; margin-bottom: var(--space-2); }
.card__text { font-size: .95rem; color: var(--c-dark); }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-1); color: var(--c-brand); font-weight: 500; }

/* ---------- Features ---------- */
.features { list-style: none; display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--c-white); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); text-align: center; box-shadow: var(--shadow); }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #E6F4F6; color: var(--c-teal); margin-bottom: var(--space-4); }
.feature__icon .icon { width: 30px; height: 30px; }
.feature__title { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--c-dark); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--c-navy), var(--c-brand)); color: var(--c-white); }
.cta__title { color: var(--c-white); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
.cta p { margin: 0; opacity: .9; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 900px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--space-6) var(--space-7); } .cta__actions { flex: none; } }

/* ---------- Prose (rich text) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin-top: var(--space-6); }
.prose h3 { font-size: 1.2rem; margin-top: var(--space-5); }
.prose h4 { font-size: 1.05rem; margin-top: var(--space-4); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-1); }
.prose blockquote { margin: var(--space-5) 0; padding: var(--space-3) var(--space-5); border-left: 4px solid var(--c-teal); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; }
.page-cover { margin-bottom: var(--space-5); border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Device hero ---------- */
.preview-bar { background: var(--c-salmon); color: var(--c-navy); text-align: center; padding: var(--space-2) var(--space-4); font-weight: 500; }


/* ---------- Device tabs ---------- */
/* Device page: compact title, left vertical menu (icons), right panel swaps. */
.device-head { padding: var(--space-5) 0 var(--space-4); }
.device-head__title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); margin: var(--space-2) 0 var(--space-1); }
.device-head__lead { margin: 0; color: var(--c-dark); max-width: 70ch; }

.dtabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding-bottom: var(--space-6); }
.dtabs__nav { min-width: 0; }
/* phones: menu is a horizontal, swipeable strip */
.dtabs__list { list-style: none; display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4) var(--space-1); }
.dtabs__list::-webkit-scrollbar { display: none; }
.dtabs__item { flex: none; }
.dtabs__tab { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-ink); background: var(--c-white); text-decoration: none; font-size: .95rem; white-space: nowrap; transition: background .15s, color .15s; }
.dtabs__tab:hover { color: var(--c-navy); background: var(--c-surface); }
.dtabs__icon { width: 20px; height: 20px; flex: none; color: var(--c-tab-icon); }
.dtabs__tab[aria-selected="true"] { background: var(--c-teal-dark); border-color: var(--c-teal-dark); color: var(--c-white); }
.dtabs__tab[aria-selected="true"] .dtabs__icon { color: var(--c-white); }
/* phones/tablets: arrows either side of the strip step to the previous/next section */
.dtabs__arrow { display: none; }
@media (max-width: 899.98px) {
  .dtabs.is-enhanced .dtabs__nav { display: flex; align-items: center; gap: var(--space-2); }
  .dtabs.is-enhanced .dtabs__list { flex: 1; min-width: 0; margin: 0; padding: 2px 0; }
  .dtabs.is-enhanced .dtabs__arrow { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-white); color: var(--c-brand); cursor: pointer; box-shadow: 0 2px 8px rgba(19, 27, 92, .12); }
  .dtabs.is-enhanced .dtabs__arrow:active:not(:disabled) { background: var(--c-brand); color: var(--c-white); border-color: var(--c-brand); }
  .dtabs.is-enhanced .dtabs__arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
}
/* "Go back" button where each section's content ends (tabs mode only; without JS all sections are stacked) */
.panel-back { display: flex; justify-content: flex-end; clear: both; margin: var(--space-6) 0 var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--c-line); }
.dtabs:not(.is-enhanced) .panel-back { display: none; }
.dtabs__panel { scroll-margin-top: calc(var(--header-h) + 1rem); min-width: 0; }
.dtabs__panel + .dtabs__panel { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--c-line); }
.dtabs__heading { font-size: 1.4rem; }
.dtabs.is-enhanced .dtabs__panel + .dtabs__panel { margin-top: 0; padding-top: 0; border-top: 0; }
.dtabs.is-enhanced .dtabs__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dtabs.is-enhanced .dtabs__panel[hidden] { display: none; }
.dtabs__panel:focus-visible { outline-offset: 6px; }
.dtabs__panel::after { content: ""; display: block; clear: both; }

.device-photo { max-width: 200px; margin: 0 auto var(--space-5); }
.device-photo img { width: 100%; height: auto; }
.highlights { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
.highlight { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.highlight__value { font-family: var(--font-head); font-size: 1.15rem; color: var(--c-brand); line-height: 1.2; }
.highlight__label { font-size: .85rem; color: var(--c-dark); }

@media (min-width: 900px) {
  .dtabs { grid-template-columns: 270px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
  /* right panel is exactly as tall as the menu; longer content scrolls inside it */
  .dtabs__nav { align-self: start; }
  /* --panel-h (set by JS) stretches the panel down to just above the pinned footer */
  .dtabs.is-enhanced { padding-bottom: 0; }
  .section--tight:has(> .container > .dtabs.is-enhanced) { padding-bottom: var(--space-4); }
  .dtabs.is-enhanced .dtabs__panels { position: relative; align-self: stretch; min-height: var(--panel-h, 0px); }
  .dtabs.is-enhanced .dtabs__panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: var(--space-4); }
  /* Always-visible scrollbar: macOS hides overlay scrollbars until you scroll, so long content looked cut off.
     Chrome/Safari draw ::-webkit-scrollbar styles permanently (only when scrollbar-width/color are NOT set);
     Firefox gets the standard properties instead. */
  .dtabs.is-enhanced .dtabs__panel::-webkit-scrollbar { width: 8px; }
  .dtabs.is-enhanced .dtabs__panel::-webkit-scrollbar-track { background: #EEF1F5; border-radius: 4px; }
  .dtabs.is-enhanced .dtabs__panel::-webkit-scrollbar-thumb { background: #9AA3B2; border-radius: 4px; }
  .dtabs.is-enhanced .dtabs__panel::-webkit-scrollbar-thumb:hover { background: var(--c-brand); }
  @supports not selector(::-webkit-scrollbar) {
    .dtabs.is-enhanced .dtabs__panel { scrollbar-width: thin; scrollbar-color: #9AA3B2 #EEF1F5; }
  }
  /* fade at the bottom while there is more to read */
  .dtabs.is-enhanced .dtabs__panels::after { content: ""; position: absolute; left: 0; right: 12px; bottom: 0; height: 56px; background: linear-gradient(rgba(255, 255, 255, 0), var(--c-white)); pointer-events: none; opacity: 0; transition: opacity .2s; }
  .dtabs.has-more .dtabs__panels::after { opacity: 1; }
  /* desktop: vertical list like the reference — thin rules, icon column, teal active row */
  .dtabs__list { display: block; overflow: visible; margin: 0; padding: 0; border-top: 2px solid #9AA3B2; border-bottom: 2px solid #9AA3B2; }
  .dtabs__item + .dtabs__item { border-top: 1px solid var(--c-line); }
  .dtabs__tab { gap: 0; min-height: 46px; padding: .6rem 1rem .6rem .7rem; border: 0; border-radius: 0; font-size: 1rem; white-space: normal; }
  .dtabs__icon { width: 24px; height: 24px; margin-right: 1.4rem; }
  .device-photo { float: right; width: 38%; margin: 0 0 var(--space-4) var(--space-5); }
  .highlights { grid-template-columns: repeat(2, minmax(0, 220px)); }
}

.ind-list { list-style: none; display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .ind-list { grid-template-columns: repeat(2, 1fr); } }
.ind-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); background: var(--c-surface); border-radius: var(--radius); }
.ind-list__icon { color: var(--c-teal-dark); margin-top: .2em; }

.adv-grid { list-style: none; display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
.adv { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: var(--c-white); }
.adv__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.adv__body { padding: var(--space-4) var(--space-5); }
.adv__title { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 1.05rem; }
.adv__icon { color: var(--c-teal); width: 22px; height: 22px; }
.adv__body p { margin-bottom: var(--space-2); font-size: .95rem; color: var(--c-dark); }
.adv__body p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.spec-table th[scope="row"] { width: 42%; font-weight: 500; color: var(--c-navy); background: var(--c-surface); }
.spec-table__group th { background: var(--c-brand); color: var(--c-white); font-family: var(--font-head); font-weight: 600; }

.ref-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 768px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }
.ref > a, .ref > span:first-child, .ref { color: inherit; text-decoration: none; }
.ref { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--space-4); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.ref a { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.ref__logo img { max-height: 64px; width: auto; object-fit: contain; margin-bottom: var(--space-2); }
.ref__name { font-weight: 500; color: var(--c-navy); }
.ref__city { font-size: .85rem; color: var(--c-muted); }

.video-list { display: grid; gap: var(--space-5); }
.video { margin: 0; }
.video figcaption { margin-top: var(--space-2); font-size: .9rem; color: var(--c-dark); }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery, before/after, FAQ ---------- */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
/* Whole photo visible inside a square tile (no cropping/zoom). */
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--c-white); border: 1px solid var(--c-line); transition: border-color .2s, box-shadow .2s; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: var(--space-2); }
.gallery a:hover { border-color: var(--c-brand, #2A5189); box-shadow: var(--shadow); }
.gallery a { cursor: zoom-in; }

/* ---------- Gallery lightbox (dialog) ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 14, 40, .94); color: var(--c-white); overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 14, 40, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: calc(100vw - 32px); touch-action: pan-y; }
.lightbox__img { display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); background: var(--c-white); user-select: none; -webkit-user-drag: none; }
.lightbox__count { font-size: .9rem; opacity: .85; }
.lightbox__img { transition: opacity .15s; }
.lightbox.is-loading .lightbox__img { opacity: 0; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--c-white); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--c-brand); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.lightbox__nav:hover { background: var(--c-white); }
.lightbox__nav[hidden] { display: none; }
@media (min-width: 900px) {
  .lightbox__img { max-width: calc(100vw - 200px); max-height: calc(100dvh - 120px); }
  .lightbox__nav--prev { left: 32px; }
  .lightbox__nav--next { right: 32px; }
  .lightbox__nav { width: 56px; height: 56px; }
}

.catalog { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4); max-width: 640px; padding: var(--space-4) var(--space-5); background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.catalog__icon { flex: none; display: grid; place-items: center; width: 56px; height: 68px; border-radius: 6px; background: #C0392B; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.catalog__text { flex: 1 1 180px; min-width: 0; }
.catalog__title { margin: 0; font-weight: 600; color: var(--c-navy); overflow-wrap: anywhere; }
.catalog__meta { margin: .2rem 0 0; font-size: .9rem; opacity: .7; }
.catalog__btn { display: inline-flex; align-items: center; gap: .5rem; }
.catalog__btn .icon { width: 20px; height: 20px; }
.ba figcaption { padding: var(--space-3) var(--space-2) var(--space-1); font-size: .9rem; color: var(--c-dark); }

.faq { display: grid; gap: var(--space-3); }
.faq__item { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-white); }
.faq__item summary { cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 500; color: var(--c-navy); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--c-teal-dark); }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 var(--space-5) var(--space-4); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-7); } }
.contact-list { list-style: none; display: grid; gap: var(--space-3); }
.contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-list .icon { color: var(--c-brand); margin-top: .2em; }
.contact-list--large { font-size: 1.05rem; margin-top: var(--space-5); }
.map { margin-top: var(--space-5); }
.map__frame { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); background: var(--c-surface); }
.map__link { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); font-size: .95rem; font-weight: 500; text-decoration: none; }
.map__link .icon { width: 18px; height: 18px; }
@media (min-width: 600px) { .modal__body .map__frame { aspect-ratio: 16 / 9; } }
.contact-form-wrap { background: var(--c-surface); border-radius: var(--radius-lg); padding: var(--space-5); }
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-1); }
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 500; font-size: .95rem; color: var(--c-navy); }
.field input, .field textarea { width: 100%; padding: .7rem .9rem; border: 1px solid #C9CED8; border-radius: var(--radius); background: var(--c-white); color: var(--c-ink); }
.field input:focus, .field textarea:focus { border-color: var(--c-brand); outline: 2px solid rgba(42, 81, 137, .25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field__error { margin: 0; color: var(--c-error); font-size: .875rem; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 0; font-size: .85rem; color: var(--c-muted); }
.form .btn { justify-self: start; }
.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-4); }
.notice--success { background: var(--c-success-bg); color: var(--c-green); }
.notice--error { background: var(--c-error-bg); color: var(--c-error); }

/* ---------- Error page ---------- */
.error-page { text-align: center; }
.error-page__code { font-family: var(--font-head); font-size: 4rem; font-weight: 600; color: var(--c-button); margin: 0; line-height: 1; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); }

/* ---------- Footer ---------- */
/* footer is pinned to the bottom of the window like the header (sticky: stays in flow, so nothing hides behind it at the end) */
.site-footer { position: sticky; bottom: 0; z-index: 50; background: var(--c-white); box-shadow: 0 -1px 0 rgba(19, 27, 92, .08); }
/* footer sits at the bottom of the window; short pages grow main instead of leaving space under the footer */
main { flex: 1 0 auto; }
.page-home { display: flex; align-items: center; }
.page-home > section { width: 100%; }
.site-footer__inner { display: flex; align-items: center; padding-top: var(--space-1); padding-bottom: var(--space-1); }
/* phones: one-row app-style bar (icon + short label); logo already in header */
.site-footer__brand { display: none; }
.site-footer nav { width: 100%; }
.footer-nav { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.footer-nav li { display: flex; justify-content: center; min-width: 0; }
.footer-nav a, .footer-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 56px; padding: 4px 2px; border: 0; background: none; font: inherit; color: var(--c-brand); text-decoration: none; font-size: .7rem; line-height: 1.15; text-align: center; cursor: pointer; }
.footer-nav .icon { width: 22px; height: 22px; flex: none; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--c-navy); }
.fn-long { display: none; }
@media (min-width: 900px) {
  .site-footer__inner { justify-content: space-between; min-height: var(--header-h); padding-top: 0; padding-bottom: 0; padding-right: 88px; }
  .site-footer__brand { display: block; }
  .site-footer nav { width: auto; }
  .footer-nav { display: flex; align-items: center; justify-content: flex-end; }
  .footer-nav li + li::before { content: ""; width: 1px; height: 14px; background: #B9C0CC; margin: 0 .8rem; align-self: center; }
  .footer-nav a, .footer-nav button { flex-direction: row; width: auto; min-height: 44px; padding: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
  .footer-nav .icon { display: none; }
  .fn-long { display: inline; }
  .fn-short { display: none; }
}
html:not(.js) .needs-js { display: none !important; }

/* ---------- Modal ---------- */
.modal { width: min(680px, calc(100% - 32px)); max-height: min(85vh, 900px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(19, 27, 92, .25); color: var(--c-ink); background: var(--c-white); }
.modal::backdrop { background: rgba(19, 27, 92, .45); }
.modal[open] { display: flex; flex-direction: column; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--c-line); }
.modal__title { margin: 0; font-size: 1.15rem; }
.modal__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--c-surface); color: var(--c-navy); font-size: 1.6rem; line-height: 1; cursor: pointer; flex: none; }
.modal__close:hover { background: var(--c-line); }
.modal__body { padding: var(--space-5); overflow-y: auto; }
.modal__body .features { grid-template-columns: 1fr; gap: var(--space-3); }
.modal__body .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--space-4); text-align: left; padding: 0; background: none; box-shadow: none; }
.modal__body .feature__icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
.modal__body .feature__title { margin: 0 0 var(--space-1); font-size: 1rem; }
.modal__body .contact-form-wrap > .section__title { display: none; }
html:has(.modal[open]), html:has(.lightbox[open]) { overflow: hidden; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: var(--c-white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform .15s, bottom .2s; }
/* phones: lift the WhatsApp button above the footer bar while the footer is on screen */
@media (max-width: 899px) { .footer-visible .wa-float { bottom: calc(var(--footer-h, 64px) + 12px); } }
.wa-float:hover { transform: scale(1.06); color: var(--c-white); }
.wa-float .icon { width: 30px; height: 30px; }

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

/* ---------- Short laptop screens (e.g. 14" at 125% scaling, ~730px tall window) ----------
   Header, footer, device title and menu are compacted so the menu, the reading panel and its
   "Geri" button all fit above the pinned footer. Tall screens are unchanged. */
@media (min-width: 900px) and (max-height: 860px) {
  :root { --header-h: 60px; }
  .device-head { padding: var(--space-3) 0 var(--space-2); }
  .device-head__title { font-size: 1.8rem; margin: var(--space-1) 0 2px; }
  .device-head__lead { font-size: .95rem; }
  .section--tight:has(> .container > .dtabs) { padding-top: var(--space-3); }
  .dtabs__tab { min-height: 40px; padding-top: .35rem; padding-bottom: .35rem; font-size: .95rem; }
  .dtabs__icon { width: 22px; height: 22px; }
}
@media (min-width: 900px) and (max-height: 700px) {
  .device-head__lead { display: none; }
  .dtabs__tab { min-height: 36px; padding-top: .25rem; padding-bottom: .25rem; }
}
