/* ==========================================================================
   SWM Powersports — main stylesheet (Bootstrap 5.3.8 theme layer)
   --------------------------------------------------------------------------
   Load order: vendors/bootstrap → vendors/bootstrap-icons → vendors/swiper
               → css/fonts.css → css/main.css
   Structure:
     01. Design tokens (colours, fonts, GLOBAL FONT SIZES, spacing)
     02. Bootstrap variable overrides
     03. Base & typography
     04. Typographic blocks (titles/texts of any length)
     05. Buttons
     06. Header & navigation (desktop, "More" overflow, offcanvas)
     07. Hero
     08. Vehicles carousel
     09. Video
     10. Models slider (Swiper)
     11. News
     12. Lead (ask a question) + modal form
     12a. Slogan (full-width banner, animated SVG)
     12b. About page (breadcrumbs, company, brand, motto, values tabs)
     12c. Products page (compact hero, page H1, product group cards)
     12d. Category page (model filter + cards, photo mosaic & viewer)
     13. Footer
     14. Cookie bar
     15. Scroll animations
     16. Utilities / accessibility / reduced motion
   Breakpoints (Bootstrap): sm 576 · md 768 · lg 992 · xl 1200 · xxl 1400
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Brand palette (taken from the live site) --- */
  --swm-red:          #d62f2e;   /* main brand red: active cards, specs  */
  --swm-red-bright:   #ed3333;   /* "Новости" button                     */
  --swm-red-cta:      #f12535;   /* "Связаться" CTA                      */
  --swm-red-dark:     #b52423;   /* hover / pressed                      */
  --swm-black:        #000000;
  --swm-ink:          #231815;   /* model names                          */
  --swm-text:         #212529;   /* body text                            */
  --swm-muted:        #6c757d;
  --swm-date:         #9a9a9a;   /* news date (original #ccc, darkened for contrast) */
  --swm-gray-100:     #f8f9fa;   /* lead section                         */
  --swm-gray-200:     #f3f3f3;   /* models slider background             */
  --swm-border-dark:  #494646;   /* dropdown border                      */
  --swm-header-bg:    rgba(0, 0, 0, .8);
  --swm-dropdown-bg:  rgba(0, 0, 0, .95);

  /* --- Font families --- */
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;            /* headings      */
  --font-alt:     'Bahnschrift', 'Oswald', 'Arial Narrow', sans-serif;    /* nav, specs    */
  --font-body:    'Bahnschrift', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; /* defaults texts  */

  /* --- GLOBAL FONT SIZES ---------------------------------------------------
     All blocks take their sizes from these variables only.
     Fluid clamp(min, preferred, max): min = mobile (≥ 16px for body text per
     Google mobile-friendly guidance), max = wide desktop.                  */
  --fs-display:   clamp(2.25rem, 1.15rem + 4.2vw, 4.75rem);   /* hero H1           36 → 76px */
  --fs-h1:        clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem);   /* section titles    30 → 52px */
  --fs-h2:        clamp(1.625rem, 1.2rem + 1.7vw, 2.875rem);  /* block titles      26 → 46px */
  --fs-h3:        clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem);   /* model name        22 → 36px */
  --fs-h4:        clamp(1.125rem, 1rem + .45vw, 1.375rem);    /* card titles       18 → 22px */
  --fs-h5:        clamp(1.0625rem, 1rem + .25vw, 1.1875rem);  /*                   17 → 19px */
  --fs-lead:      clamp(1.0625rem, 1rem + .35vw, 1.3125rem);  /* subtitles         17 → 21px */
  --fs-caption:   clamp(1.25rem, .9rem + 1.4vw, 2.125rem);    /* video caption     20 → 34px */
  --fs-stat:      clamp(1.75rem, 1.4rem + 1vw, 2.25rem);      /* spec numbers      28 → 36px */
  --fs-nav:       1.0625rem;                                  /* menu              17px      */
  --fs-base:      1rem;                                       /* body              16px      */
  --fs-sm:        .9375rem;                                   /* secondary         15px      */
  --fs-xs:        .8125rem;                                   /* labels / units    13px      */

  --lh-tight: 1.1;
  --lh-title: 1.2;
  --lh-base:  1.6;

  /* --- Layout --- */
  --header-h:       64px;          /* ≥1200: one row */
  --nav-bp:         1024px;        /* menu → burger breakpoint (also NAV_BP in main.js) */
  --container-pad:  clamp(1rem, .5rem + 2.5vw, 3.5rem);   /* side gutters like the original wide layout */
  --section-py:     clamp(3rem, 2rem + 4vw, 6rem);
  --radius:         .375rem;
  --radius-lg:      .875rem;
  --shadow-card:    0 2px 6px rgba(204, 204, 204, .5);
  --ease-out:       cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  :root { --header-h: 84px; }      /* two rows: phone above menu */
}
@media (max-width: 1023.98px) {
  :root { --header-h: 60px; }
}


/* ==========================================================================
   02. BOOTSTRAP VARIABLE OVERRIDES (runtime CSS vars, no Sass build needed)
   ========================================================================== */
:root {
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size:   var(--fs-base);
  --bs-body-line-height: var(--lh-base);
  --bs-body-color:       var(--swm-text);
  --bs-link-color:       var(--swm-red);
  --bs-link-color-rgb:   214, 47, 46;
  --bs-link-hover-color: var(--swm-red-dark);
  --bs-link-hover-color-rgb: 181, 36, 35;
  --bs-danger:           var(--swm-red);
  --bs-danger-rgb:       214, 47, 46;
  --bs-border-radius:    var(--radius);
  --bs-focus-ring-color: rgba(214, 47, 46, .35);
}
/* wide fluid container with brand gutters */
.container-swm {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}


/* ==========================================================================
   03. BASE & TYPOGRAPHY
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;            /* off-screen mobile menu must not widen the page */
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--swm-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;              /* clip (not hidden): keeps position: sticky working */
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  line-height: var(--lh-title);
  color: inherit;
  /* long words (model codes, URLs) never break the layout */
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-h5); }
p { text-wrap: pretty; }
img, video { max-width: 100%; height: auto; }
a { transition: color .2s, background-color .2s, border-color .2s, opacity .2s; }

/* Font helpers */
.font-display { font-family: var(--font-display) !important; font-weight: 700; }
.font-alt     { font-family: var(--font-alt) !important; }
.font-body    { font-family: var(--font-body) !important; }
.text-swm-red { color: var(--swm-red) !important; }
.bg-swm-gray  { background-color: var(--swm-gray-200) !important; }


/* ==========================================================================
   04. TYPOGRAPHIC BLOCKS — for headings & texts of ANY length
   --------------------------------------------------------------------------
   Every content block uses these classes, so a 2-word or a 15-word title
   both fit without breaking the layout:
     .block-title            section heading (Oswald, uppercase)
       + .block-title--sm/--lg     manual size step
       + .is-long / .is-xlong      set automatically by main.js
                                   ([data-fit-text]) from character count
     .heading-line           grey rule with a red segment under a heading
                             (span with aria-hidden="true", right after it)
     .block-subtitle         lead paragraph under a title
     .block-text             regular paragraph text
     .clamp-1 … .clamp-4     cut text to N lines with an ellipsis
   ========================================================================== */
.block-title {
  --title-size: var(--fs-h1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--title-size);
  line-height: var(--lh-tight);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--swm-black);
  margin-bottom: .5em;
}
.block-title--sm { --title-size: var(--fs-h2); }
.block-title--lg { --title-size: var(--fs-display); }
.block-title.is-long  { --title-size: calc(var(--fs-h1) * .8); }
.block-title.is-xlong { --title-size: calc(var(--fs-h1) * .65); line-height: var(--lh-title); }

.heading-line {                   /* "red-halfbord" of the original page */
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  margin-top: .625rem;
  background: #e7e5e5;
}
.heading-line::after {            /* short red segment over the grey rule */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 3px;
  background: var(--swm-red-bright);
}

.block-subtitle {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.4;
  color: var(--swm-text);
  max-width: 60ch;
}
.text-center .block-subtitle,
.block-subtitle.mx-auto { margin-inline: auto; }
.block-text {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  max-width: 68ch;
}

/* Line clamp utilities */
[class*="clamp-"] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.clamp-4 { -webkit-line-clamp: 4; line-clamp: 4; }


/* ==========================================================================
   05. BUTTONS
   ========================================================================== */
.btn-swm {
  --bs-btn-font-family: var(--font-alt);
  --bs-btn-font-size: var(--fs-base);
  --bs-btn-font-weight: 700;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .625rem;
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--swm-red-cta);
  --bs-btn-border-color: var(--swm-red-cta);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--swm-red-dark);
  --bs-btn-hover-border-color: var(--swm-red-dark);
  --bs-btn-active-bg: var(--swm-red-dark);
  --bs-btn-active-border-color: var(--swm-red-dark);
  --bs-btn-focus-shadow-rgb: 214, 47, 46;
  --bs-btn-border-radius: .4375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;                /* touch target ≥ 48px (Google) */
  text-transform: uppercase;
  letter-spacing: .02em;
}
.btn-swm img { width: 1.25em; height: auto; transition: transform .25s var(--ease-out); }
.btn-swm:hover img { transform: translateX(4px); }
.btn-swm--sm {
  --bs-btn-font-size: var(--fs-sm);
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: .375rem;
  min-height: 40px;
}
/* light variant (used on red background of the active model card) */
.btn-swm--light {
  --bs-btn-color: var(--swm-red);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--swm-red-dark);
  --bs-btn-hover-bg: #f2f2f2;
  --bs-btn-hover-border-color: #f2f2f2;
}


/* ==========================================================================
   06. HEADER & NAVIGATION
   --------------------------------------------------------------------------
   One menu markup serves all screens (breakpoint 1024px, see --nav-bp):
   • ≥1200px       logo · menu · ••• · phone            (one row)
   • 1024–1199px   logo · [phone above / menu + ••• below]
   • <1024px       logo · phone · burger → offcanvas panel
   Desktop shows max 5 items (ul[data-max-items]); items above that limit
   and items that don't fit the width go into the ••• dropdown (main.js).
   To add a menu item, just add another <li class="nav-item"> — nothing else.
   ========================================================================== */
.site-header {
  height: var(--header-h);
  padding: 0;
  transform: translateY(-100%);           /* slides in on load (original effect) */
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out);
  z-index: 1040;
}
/* Background + blur live on a pseudo-element: backdrop-filter on the header
   itself would trap the fixed-position mobile offcanvas inside the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--swm-header-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .3s;
}
.site-header.is-loaded   { transform: none; opacity: 1; }
.site-header.is-hidden   { transform: translateY(-100%); }   /* hides on scroll down */
.site-header.is-scrolled::before { background: rgba(0, 0, 0, .92); }
.no-js .site-header { transform: none; opacity: 1; }

.site-header .container-swm {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2.5rem);
}

/* Logo */
.site-logo { flex: 0 0 auto; display: block; line-height: 0; }
.site-logo img { width: clamp(110px, 9vw, 150px); height: auto; }

/* Phone in the bar on <1024px */
.header-phone-mobile {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  margin-inline: auto;
}
.header-phone-mobile:hover { color: var(--swm-red-bright); }

/* Burger */
.swm-burger {
  border: 0;
  padding: 0;
  width: 48px;
  height: 48px;
  color: #fff;
  background: none;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.swm-burger:focus-visible { box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .25); outline: 0; }

/* Phone inside the nav block (desktop / offcanvas) */
.nav-top-line { display: flex; justify-content: flex-end; }
.nav-phone {
  font-family: var(--font-alt);
  font-size: 1.125rem;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--swm-red-bright); }

/* Menu links */
.main-menu .nav-link {
  font-family: var(--font-alt);
  font-size: var(--fs-nav);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .02em;
  white-space: nowrap;
}
.main-menu .nav-link:hover,
.main-menu .nav-link:focus-visible,
.main-menu .nav-link.active { color: var(--swm-red-bright); }

/* Sub-menu toggle: red chevron-down; chevron-up on hover / when open */
.main-menu .dropdown-toggle-btn {
  background: none;
  border: 0;
  color: var(--swm-red-bright);
  line-height: 1;
}
.main-menu .dropdown-toggle-btn .bi::before { content: "\f282"; }          /* bi-chevron-down */
.main-menu .dropdown-toggle-btn:hover .bi::before,
.main-menu .dropdown-toggle-btn[aria-expanded="true"] .bi::before { content: "\f286"; }  /* bi-chevron-up */

.main-menu .dropdown-menu {
  --bs-dropdown-bg: var(--swm-dropdown-bg);
  --bs-dropdown-color: #fff;
  --bs-dropdown-border-color: var(--swm-border-dark);
  --bs-dropdown-border-radius: 2px;
  --bs-dropdown-link-color: #fff;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: var(--swm-red);
  --bs-dropdown-link-active-bg: var(--swm-red);
  --bs-dropdown-item-padding-y: .625rem;
  --bs-dropdown-item-padding-x: 1rem;
  --bs-dropdown-font-size: var(--fs-sm);
  --bs-dropdown-min-width: 13rem;
}
.main-menu .dropdown-item.is-child { padding-left: 1.75rem; }

/* ••• — trigger for hidden items */
.nav-dots__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
}
.nav-dots.has-items .nav-dots__btn { cursor: pointer; }
.nav-dots__btn img { width: 26px; height: auto; display: block; transition: transform .25s var(--ease-out); }
.nav-dots.has-items:hover .nav-dots__btn img,
.nav-dots__btn[aria-expanded="true"] img { transform: scale(1.15); }
.nav-dots:not(.has-items) .dropdown-menu { display: none !important; }


/* ---------- Desktop: ≥1024px — offcanvas becomes a normal inline block ---------- */
@media (min-width: 1024px) {
  .d-nav-mobile { display: none !important; }

  .site-nav.offcanvas {
    position: static;
    z-index: auto;
    visibility: visible !important;
    transform: none !important;
    transition: none;
    width: auto;
    height: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;                 /* lets the overflow script detect overflow */
    display: flex;
    background: transparent !important;
    border: 0 !important;
    color: inherit;
  }
  .site-nav .offcanvas-header { display: none; }
  .site-nav .offcanvas-body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: visible;
  }
  .nav-right { display: flex; flex: 1 1 auto; min-width: 0; height: 100%; }

  .main-menu {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(.75rem, 1.4vw, 2.25rem);
    min-width: 0;
  }
  .main-menu > .nav-item { position: relative; display: flex; align-items: center; }
  .main-menu > .nav-item.is-overflow { display: none !important; }
  .main-menu .nav-link { padding: .25rem 0 !important; }
  .main-menu .dropdown-toggle-btn { padding: .25rem 0 .25rem .3rem; font-size: .75rem; }

  /* hover / keyboard focus opens dropdowns; chevron flips while open */
  .main-menu > .dropdown:hover > .dropdown-menu,
  .main-menu > .dropdown:focus-within > .dropdown-menu { display: block; }
  .main-menu > .dropdown:hover > .dropdown-toggle-btn .bi::before,
  .main-menu > .dropdown:focus-within > .dropdown-toggle-btn .bi::before { content: "\f286"; }

  .main-menu > .dropdown > .dropdown-menu {
    position: absolute;          /* .navbar-nav makes it static by default */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: .9rem;
    animation: dropdownIn .25s var(--ease-out);
  }
  /* invisible bridge so the menu doesn't close when the cursor moves down */
  .main-menu > .dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    inset: -1rem 0 auto 0;
    height: 1rem;
  }
  .main-menu > .nav-dots > .dropdown-menu { left: auto; right: 0; transform: none; margin-top: .6rem; }
}

/* ≥1200px: logo · menu · ••• · phone in ONE row */
@media (min-width: 1200px) {
  .nav-right { flex-direction: row; align-items: center; justify-content: flex-end; gap: clamp(1rem, 1.8vw, 2.5rem); }
  .nav-right .main-menu { flex: 1 1 auto; order: 1; }
  .nav-right .nav-top-line { order: 2; flex: 0 0 auto; }
}

/* 1024–1199px: phone ABOVE the menu, equal vertical spacing
   (header top → phone = phone → menu = menu → header bottom) */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .nav-right {
    flex-direction: column;
    justify-content: space-evenly;
    align-items: stretch;
  }
  .nav-right .main-menu { width: 100%; }
  .nav-right .nav-dots__btn { height: 28px; }
}

@keyframes dropdownIn {
  from { opacity: 0; translate: 0 8px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- Mobile panel: <1024px ---------- */
@media (max-width: 1023.98px) {
  .d-nav-desktop { display: none !important; }

  .site-nav {
    --bs-offcanvas-width: min(88vw, 380px);
    --bs-offcanvas-bg: #000;
    --bs-offcanvas-color: #fff;
    border-left: 1px solid #1d1d1d;
  }
  .site-nav .offcanvas-header .btn-close { width: 2rem; height: 2rem; }

  .nav-right { display: flex; flex-direction: column; }
  .nav-top-line { order: 2; justify-content: flex-start; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid #222; }
  .nav-phone { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }

  .main-menu > .nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #1d1d1d;
  }
  .main-menu .nav-link {
    flex: 1 1 auto;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    padding: .875rem 0;
    min-height: 48px;
  }
  .main-menu .dropdown-toggle-btn { width: 48px; height: 48px; font-size: 1rem; }
  .main-menu .dropdown-menu {
    position: static !important;
    transform: none !important;
    flex: 0 0 100%;
    background: transparent;
    border: 0;
    padding: 0 0 .75rem;
    margin: 0;
  }
  .main-menu .dropdown-item { padding: .625rem 1rem; font-size: var(--fs-base); color: #cfcfcf; min-height: 44px; display: flex; align-items: center; }
  .main-menu .dropdown-item:hover { color: #fff; }
  .main-menu .nav-dots { display: none !important; }
}


/* ==========================================================================
   07. HERO  (sticky — next sections slide over it, as on the original)
   ========================================================================== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hero__link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media img { transform-origin: center; }
.hero::after {           /* soft gradient for title legibility on the light sky */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  z-index: 2;
  inset: calc(var(--header-h) + clamp(2rem, 6vh, 5rem)) 0 auto 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
  max-width: 16ch;
  margin: 0;
  color: #fff;
}
.hero__subtitle {
  font-family: var(--font-alt);
  font-weight: 300;
  font-size: var(--fs-lead);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
  margin-top: 1rem;
  max-width: 40ch;
}
.hero__subtitle:empty { display: none; }
.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 4vh, 2.5rem);
  translate: -50% 0;
  font-size: 2rem;
  color: #fff;
  opacity: .85;
  animation: heroBounce 2s infinite;
}
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
/* CTA "Оставить заявку": bottom-right on desktop, bottom-left on mobile / portrait */
.hero__cta {
  position: absolute;
  z-index: 3;                          /* above the hero link and the gradient */
  left: 0;
  right: 0;
  bottom: clamp(1.5rem, 6vh, 4rem);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;                /* only the button itself is clickable */
}
.hero__cta .btn { pointer-events: auto; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
@media (max-width: 767.98px), (orientation: portrait) {
  .hero__cta { justify-content: flex-start; }
}

/* everything after the hero covers it while scrolling */
.page-content { position: relative; z-index: 1; background: #fff; }


/* ==========================================================================
   08. VEHICLES CAROUSEL (Квадроциклы / Багги)
   ========================================================================== */
/* The whole carousel (slide + tabs) always fits the visible screen height:
   --veh-h = viewport − fixed header − section paddings − tabs row.
   Images scale down inside the remaining space (object-fit: contain). */
.vehicles {
  --veh-pad:  clamp(1.25rem, 3.5vh, 3rem);
  --veh-tabs-h:   3rem;                            /* tabs row height              */
  --veh-tabs-gap: clamp(.25rem, 1.5vh, 1rem);     /* space between slide and tabs */
  --veh-tabs: calc(var(--veh-tabs-h) + var(--veh-tabs-gap));
  --veh-h: calc(100vh - var(--header-h) - 2 * var(--veh-pad) - var(--veh-tabs));
  padding-block: var(--veh-pad);
  overflow: hidden;
}
@supports (height: 100svh) {
  .vehicles {
    --veh-pad: clamp(1.25rem, 3.5svh, 3rem);
    --veh-h: calc(100svh - var(--header-h) - 2 * var(--veh-pad) - var(--veh-tabs));
  }
}
.vehicles .carousel { position: relative; }

.vehicle-slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "title" "image" "info";
  gap: clamp(.75rem, 2vh, 1.5rem);
  height: var(--veh-h);
  min-height: 300px;
  max-height: 920px;                                /* don't stretch endlessly on very tall screens */
  color: var(--swm-black);
  text-decoration: none;
  padding-inline: 0;
  /* SWM wordmark watermark behind every slide, scaled to the slide width */
  background: url('../img/swm.png') no-repeat center 50% / 100% auto;
}
@media (min-width: 576px) {
  .vehicle-slide { padding-inline: clamp(4rem, 6vw, 6.5rem); }   /* room for the arrows */
}
.vehicle-slide:hover { color: var(--swm-black); }

/* two columns: desktop, and tablets / phones in landscape */
@media (min-width: 992px), (min-width: 640px) and (orientation: landscape) {
  .vehicle-slide {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "title image" ".     image" "info  image";
    column-gap: clamp(1.5rem, 3vw, 4rem);
    background-position: center 55%;
  }
}
.vehicle-slide__type {
  grid-area: title;
  align-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.vehicle-slide__image {
  grid-area: image;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-slide__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 720px;                                 /* source photos are 500px wide */
  object-fit: contain;                              /* fills the free height/width, never crops */
}
.vehicle-slide__info { grid-area: info; align-self: end; }
.vehicle-slide__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1;
  text-transform: uppercase;
  color: var(--swm-ink);
  margin: 0 0 clamp(.5rem, 1.5vh, 1rem);
}
.vehicle-slide__desc { font-size: var(--fs-base); max-width: 34rem; margin: 0; color: var(--swm-text); }

/* short screens (landscape phones, small laptops): tighter tabs, 2-line description */
@media (max-height: 560px) {
  .vehicles { --veh-tabs-h: 2.5rem; --veh-tabs-gap: .25rem; --veh-pad: .75rem; }
  .vehicle-slide { min-height: 200px; }
  .vehicle-slide__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}
.vehicle-slide__more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  font-family: var(--font-alt);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--swm-red);
}
.vehicle-slide:hover .vehicle-slide__more i { transform: translateX(4px); }
.vehicle-slide__more i { transition: transform .25s; }

/* arrows */
.vehicles .carousel-control-prev,
.vehicles .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  translate: 0 -50%;
  opacity: .85;
}
.vehicles .carousel-control-prev:hover,
.vehicles .carousel-control-next:hover { opacity: 1; }
.vehicles .carousel-control-prev img,
.vehicles .carousel-control-next img { width: 100%; height: auto; }
@media (max-width: 991.98px) {
  .vehicles .carousel-control-prev,
  .vehicles .carousel-control-next { width: 44px; height: 44px; }
}

/* text tabs as indicators */
.vehicle-tabs {
  position: static;
  margin: var(--veh-tabs-gap) 0 0;
  height: var(--veh-tabs-h);                        /* fixed, so --veh-h math is exact */
  align-items: stretch;
  gap: clamp(1rem, 4vw, 3rem);
  justify-content: center;
}
.vehicle-tabs [data-bs-target] {
  width: auto;
  height: 100%;
  min-height: 40px;
  text-indent: 0;
  margin: 0;
  padding: .5rem 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  opacity: .55;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h5);
  text-transform: uppercase;
  color: var(--swm-red);
  transition: opacity .3s, border-color .3s;
}
.vehicle-tabs [data-bs-target].active,
.vehicle-tabs [data-bs-target]:hover { opacity: 1; border-bottom-color: var(--swm-red); }


/* ==========================================================================
   09. VIDEO
   ========================================================================== */
.promo-video { position: relative; background: #000; overflow: hidden; }
.promo-video__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100svh;
  object-fit: cover;
}
.promo-video__btn {
  position: absolute;
  z-index: 2;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), opacity .25s;
}
.promo-video__btn:hover { transform: scale(1.06); }
.promo-video__btn--play {
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: clamp(110px, 12vw, 222px);
}
.promo-video__btn--pause {
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.promo-video__btn--pause img { width: 32px; }
.promo-video__btn img { width: 100%; height: auto; display: block; }
.promo-video.is-playing .promo-video__btn--play { opacity: 0; pointer-events: none; }
.promo-video:not(.is-playing) .promo-video__btn--pause { opacity: 0; pointer-events: none; }
.promo-video__caption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(1.5rem, 6vw, 4rem);
  margin: 0;
  padding-inline: var(--container-pad);
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-caption);
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}


/* ==========================================================================
   10. MODELS SLIDER (Swiper) — active card turns red, as on the original
   ========================================================================== */
.models { background: var(--swm-gray-200); padding-block: clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.models .swiper { padding: .5rem 0 3rem; overflow: visible; }
.models .swiper-wrapper { align-items: stretch; }
.models .swiper-slide { width: min(86vw, 560px); height: auto; }
@media (min-width: 768px) { .models .swiper-slide { width: 520px; } }
@media (min-width: 1400px) { .models .swiper-slide { width: 576px; } }

.model-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: background-color .45s var(--ease-out), color .45s;
}
.model-card__img {
  flex: 0 0 44%;
  max-width: 44%;
  align-self: center;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-left: -.5rem;
}
.model-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.model-card__title {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-h5);
  line-height: 1.2;
  color: var(--swm-black);
  margin: 0 0 .75rem;
  text-transform: uppercase;
}
.model-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 0 0 1rem;
}
.model-card__spec { display: flex; flex-direction: column; margin: 0; }
.model-card__spec dd {
  order: -1;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--swm-red);
}
.model-card__spec dd small { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; }
.model-card__spec dt { font-weight: 400; font-size: var(--fs-xs); color: var(--swm-black); margin-top: .25rem; }

/* active (centered) card */
.swiper-slide-active .model-card { background: var(--swm-red); }
.swiper-slide-active .model-card__title,
.swiper-slide-active .model-card__spec dd,
.swiper-slide-active .model-card__spec dt { color: #fff; }
.swiper-slide-active .model-card .btn-swm {
  --bs-btn-color: var(--swm-red);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--swm-red-dark);
  --bs-btn-hover-bg: #f2f2f2;
  --bs-btn-hover-border-color: #f2f2f2;
}
.models .swiper-pagination-bullet { width: 10px; height: 10px; background: #bbb; opacity: 1; }
.models .swiper-pagination-bullet-active { background: var(--swm-red); width: 26px; border-radius: 5px; transition: width .3s; }

@media (max-width: 575.98px) {
  .model-card { flex-direction: column; padding: 1rem; text-align: left; }
  .model-card__img { flex: none; max-width: 80%; margin: 0 auto; }
  .model-card__body { width: 100%; }
}


/* ==========================================================================
   11. NEWS
   ========================================================================== */
.news { padding-block: var(--section-py); background: #fff; }
.news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.news__head .block-title { margin: 0; }
.btn-news {
  --bs-btn-bg: var(--swm-red-bright);
  --bs-btn-border-color: var(--swm-red-bright);
  --bs-btn-font-family: var(--font-body);
  --bs-btn-font-weight: 500;
  --bs-btn-border-radius: 0;
}

/* mobile: horizontal swipe list; md+: 3-column grid */
.news__list {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}
@media (max-width: 767.98px) {
  .news__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .5rem;
  }
  .news__list::-webkit-scrollbar { display: none; }
  .news__list > * { flex: 0 0 82%; max-width: 82%; scroll-snap-align: start; }
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--swm-black);
  text-decoration: none;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.news-card:hover { color: var(--swm-black); }
.news-card__media { aspect-ratio: 389 / 252; overflow: hidden; background: #eee; }
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1rem 1rem 1.25rem; }
.news-card__title {
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: var(--fs-h5);
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 0 .75rem;
  transition: color .2s;
}
.news-card:hover .news-card__title { color: var(--swm-red); }
.news-card__date {
  margin-top: auto;           /* dates line up regardless of title length */
  font-family: var(--font-alt);
  font-size: var(--fs-sm);
  color: var(--swm-date);
}


/* ==========================================================================
   12. LEAD (ask a question) + MODAL FORM
   ========================================================================== */
.lead-block { background: var(--swm-gray-100); padding-block: var(--section-py); }
.lead-block .block-title { color: var(--swm-text); }

.lead-modal .modal-content { border: 0; border-radius: var(--radius-lg); }
.lead-modal .modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  text-transform: uppercase;
}
.lead-modal .form-label-group {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h5);
  text-transform: uppercase;
  margin-bottom: .75rem;
}
/* topic tabs */
.topic-tabs { gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.topic-tabs .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  color: var(--swm-text);
  background: var(--swm-gray-200);
  border-radius: 999px;
  padding: .5rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.topic-tabs .nav-link.active { background: var(--swm-red); color: #fff; }
/* inputs: 16px font avoids iOS zoom; 48px height = good tap target */
.lead-modal .form-control,
.lead-modal .form-select {
  font-size: var(--fs-base);
  min-height: 48px;
  border-radius: var(--radius);
}
.lead-modal textarea.form-control { min-height: 110px; }
.lead-modal .form-control:focus,
.lead-modal .form-select:focus { border-color: var(--swm-red); box-shadow: 0 0 0 .2rem rgba(214, 47, 46, .2); }
.lead-modal .form-check-input:checked { background-color: var(--swm-red); border-color: var(--swm-red); }
.lead-modal .form-check-label { font-size: var(--fs-sm); color: var(--swm-muted); }
.form-success { display: none; }
.lead-form.is-sent .form-fields { display: none; }
.lead-form.is-sent .form-success { display: block; }


/* ==========================================================================
   12a. SLOGAN — «Энергия в каждом километре жизни»
   --------------------------------------------------------------------------
   Full page width. The photo fills the block (object-fit: cover);
   the slogan is an inline SVG placed like on the layouts:
     ≥768px  — wide photo (1502×470), text on the right, vertically centred
     <768px  — tall photo (800×1200), text centred at the top
   SVG animation (starts when the block enters the viewport, main.js adds
   .is-animated): each line's outline is drawn, then filled with white;
   the lines follow one another, the slanted line slides in from the left.
   ========================================================================== */
.slogan {
  position: relative;
  width: 100%;
  aspect-ratio: 1502 / 470;
  min-height: 340px;                 /* text stays readable on tablets */
  max-height: 100svh;
  overflow: hidden;
  background: #1f2b20;               /* forest tone while the photo loads */
  isolation: isolate;
}
.slogan__media,
.slogan__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;       /* keep the rider in frame when cropped */
}
.slogan__media { z-index: -2; }
.slogan::after {                     /* soft shade under the text */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .28) 100%);
  pointer-events: none;
}

.slogan__text {
  position: absolute;
  top: 50%;
  right: 11%;
  width: 31.5%;                      /* as on the desktop layout */
  translate: 0 -48%;
}
.slogan__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 4px 40px rgba(0, 0, 0, .35));
}
.slogan__svg path { fill: #fff; stroke: #fff; stroke-width: 4; }

/* tablets: a bit larger text, closer to the edge */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .slogan__text { right: 6%; width: 42%; }
}

/* phones / portrait: tall photo, text at the top */
@media (max-width: 767.98px) {
  .slogan { aspect-ratio: 800 / 1200; min-height: 0; max-height: none; }
  .slogan__media img { object-position: center; }
  .slogan::after { background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 45%); }
  .slogan__text {
    top: 8%;
    right: auto;
    left: 50%;
    width: 67%;
    translate: -50% 0;
  }
}

/* ---------- SVG animation ---------- */
.js .slogan__svg path {
  fill-opacity: 0;
  stroke-dasharray: 1;               /* pathLength="1" on every path */
  stroke-dashoffset: 1;
  transition:
    stroke-dashoffset 1.6s ease-in-out var(--d, 0s),
    fill-opacity .9s ease-out calc(var(--d, 0s) + 1.1s),
    stroke-opacity .6s ease-out calc(var(--d, 0s) + 1.8s);
}
.js .slogan__svg.is-animated path { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }

.js .slogan__line {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: transform 1.4s var(--ease-out) var(--d, 0s), opacity .6s ease-out var(--d, 0s);
}
.slogan__line--1 { --d: 0s; }
.slogan__line--2 { --d: .45s; }
.slogan__line--3 { --d: .9s; }
.js .slogan__line--1 { transform: translateY(-12%); }
.js .slogan__line--2 { transform: translateX(-8%) rotate(-2deg); }
.js .slogan__line--3 { transform: translateY(12%); }
.js .slogan__svg.is-animated .slogan__line { opacity: 1; transform: none; }
.slogan__line path { --d: inherit; }


/* ==========================================================================
   12b. ABOUT PAGE (about.html)
   --------------------------------------------------------------------------
   .hero--about      banner: title top-right (as on the original page)
   .swm-breadcrumb   breadcrumbs (also usable on other inner pages)
   .about-company    2 columns on the factory photo with a white veil
   .about-brand      black block: 3 rows "photo + text", photo alternates
   .about-motto      red box with "FREE YOUR SOUL" + text
   .about-core       values tabs (Bootstrap tabs + about.js)
   Texts use .about-text (16–18px, line-height 1.7, max ~70 characters).
   ========================================================================== */

/* ---------- Hero: title on the right ---------- */
.hero--about .hero__content { text-align: right; }
.hero--about .hero__title { margin-left: auto; max-width: 12ch; }
.hero--about::after {          /* shade top-right so the white title reads on the sky */
  background: linear-gradient(200deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 50%);
}
@media (max-width: 767.98px) {
  .hero--about .hero__content { text-align: left; }
  .hero--about .hero__title { margin-left: 0; }
  .hero--about::after { background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 45%); }
}

/* ---------- Breadcrumbs ---------- */
/* wrapper between the hero and <main>: like .page-content it covers the sticky hero;
   resets Bootstrap's .breadcrumb (flex, margin) — that class is meant for the <ol> */
section.breadcrumb {
  display: flow-root;                  /* keeps the nav's margin inside the white background */
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #fff;
  /* #pageStart (banner link target): the header hides on the way down, so land
     flush with the top instead of leaving a banner strip in the header's place */
  scroll-margin-top: calc(-1 * var(--header-h));
}
.swm-breadcrumb {
  position: relative;
  padding-block: clamp(1.25rem, 2.5vw, 2rem) 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.swm-breadcrumb::after {               /* thin fading line, as on the original */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cecccc 30%, transparent);
}
.swm-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider: "";
  --bs-breadcrumb-item-padding-x: 1.75rem;
  margin: 0;
  padding: 0;
  font-size: var(--fs-base);
  align-items: center;
}
.swm-breadcrumb .breadcrumb-item + .breadcrumb-item { position: relative; }
.swm-breadcrumb .breadcrumb-item + .breadcrumb-item::before {   /* chevron divider */
  content: "";
  position: absolute;
  left: .65rem;
  top: 50%;
  width: .45rem;
  height: .45rem;
  padding: 0;
  border: solid #8a8a8a;
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
}
.swm-breadcrumb a { color: #6c6c6c; text-decoration: none; }
.swm-breadcrumb a:hover { color: var(--swm-red); }
.swm-breadcrumb .breadcrumb-item.active { color: #3a3a3a; }

/* ---------- Shared text styles ---------- */
.about-text { font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.7; color: #3a3a3a; }
.about-text p { margin-bottom: 1em; max-width: 70ch; }
.about-text p:last-child { margin-bottom: 0; }
.about-text--dark { color: #e8e8e8; }          /* on black */
.about-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.1;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}
.about-list { list-style: none; padding: 0; margin: 0 0 1em; }
.about-list li { position: relative; padding-left: 1.5rem; margin-bottom: .4em; }
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: .6rem;
  height: 2px;
  background: var(--swm-red);
}

/* ---------- Company ---------- */
.about-company {
  position: relative;
  background: #fff url('../img/about/company-bg.webp') center bottom / cover no-repeat;
  padding-bottom: clamp(4rem, 12vw, 12rem);    /* lets the factory show below the text */
  isolation: isolate;
}
.about-company::before {        /* white veil: solid at the top, fades over the factory */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #fff 0%, #fff 35%, rgba(255, 255, 255, .82) 70%, rgba(255, 255, 255, .25) 100%);
}
.about-company__logo { width: clamp(150px, 16vw, 220px); height: auto; margin-bottom: 1.5rem; }
.about-company__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  text-transform: uppercase;
  color: #2a2a2a;
  margin-bottom: 1.25rem;
}
.about-values-list { margin: 0; }
.about-values-list__item {
  padding: .9rem 0 .9rem 1.25rem;
  border-left: 3px solid var(--swm-red);
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, .55);         /* extra contrast when it overlaps the photo */
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.about-values-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-h5);
  color: var(--swm-red);
  letter-spacing: .03em;
  margin-bottom: .35rem;
}
.about-values-list dd { margin: 0; font-size: clamp(1rem, .95rem + .2vw, 1.0625rem); line-height: 1.65; color: #333; }

/* ---------- Brand (black) ---------- */
.about-brand { background: #000; color: #fff; padding-block: var(--section-py); overflow: hidden; }
.about-brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  text-transform: uppercase;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}
.about-row + .about-row { margin-top: clamp(3rem, 7vw, 6.5rem); }
@media (min-width: 768px) {
  .about-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-row--reverse .about-row__media { order: 2; }
}
.about-row__media { margin: 0; overflow: hidden; }
.about-row__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.about-row__media:hover img { transform: scale(1.03); }
.about-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.1;
  color: #9a9a9a;               /* original #636363 was too dark on black */
  margin-bottom: 1.25rem;
}
.about-row__title--sm { font-size: var(--fs-h3); color: #fff; margin-top: 1.5rem; }
.about-row__lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h4);
  text-transform: uppercase;
  color: var(--swm-red-bright);
}
.about-row__accent {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--swm-red);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* ---------- Motto ---------- */
.about-motto { background: #fff; padding-block: var(--section-py); }
.about-motto__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 992px) {
  .about-motto__row { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
}
.about-motto__media {               /* red box, the lettering sits on its bottom edge */
  position: relative;
  background: #e22d34;
  aspect-ratio: 921 / 808;
  max-width: 640px;
  width: 100%;
}
.about-motto__media img {
  position: absolute;
  left: 7.6%;
  bottom: 0;
  width: 82%;
  height: auto;
}
.about-motto__final { font-weight: 700; font-size: var(--fs-lead); color: #2a2a2a; }

/* ---------- Core values (tabs) ---------- */
.about-core { background: #fff; padding-block: clamp(1rem, 2vw, 2rem) var(--section-py); }
.about-core__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}
.about-core__tabs { gap: clamp(.5rem, 2vw, 2rem); flex-wrap: nowrap; }
.about-core__tabs .nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h5);
  text-transform: uppercase;
  color: #7f7f7f;
  background: none;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  padding: .5rem clamp(.25rem, 1vw, 1rem);
  min-height: 44px;
  transition: color .25s, border-color .25s;
}
.about-core__tabs .nav-link:hover { color: #000; }
.about-core__tabs .nav-link.active { color: #000; border-bottom-color: var(--swm-red); }

.about-core__box { position: relative; }
.about-core__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 64px;
  padding: 0;
  border: 0;
  background: none;
  opacity: .7;
  transition: opacity .2s;
}
.about-core__arrow:hover { opacity: 1; }
.about-core__arrow img { width: 18px; height: auto; }
.about-core__arrow--prev { left: .25rem; }
.about-core__arrow--next { right: .25rem; }
.about-core__arrow--next img { transform: scaleX(-1); }

.core-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #e5e5e5;
  overflow: hidden;
}
@media (min-width: 992px) {
  .core-card { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); min-height: clamp(420px, 38vw, 600px); }
}
.core-card__body {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.core-card__word {                    /* big outlined word behind the title */
  position: absolute;
  left: clamp(2.5rem, 5vw, 5rem);
  top: clamp(.5rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(3.5rem, 2rem + 6vw, 9rem);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px #d9b4b6;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.core-card__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: #000;
  margin: clamp(2.5rem, 5vw, 5rem) 0 clamp(1rem, 2vw, 1.75rem);
}
.core-card__text { font-size: clamp(1rem, .95rem + .25vw, 1.1875rem); line-height: 1.6; color: #1e1e1e; max-width: 34em; }
.core-card__motto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h5);
  line-height: 1.35;
  text-transform: uppercase;
  color: #3a3a3a;
  margin: 1.25rem 0 0;
}
.core-card__img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
@media (max-width: 991.98px) {
  .core-card__img { order: -1; height: auto; }          /* photo on top on small screens */
  .about-core__arrow { top: 28%; }
  .about-core__arrow img { filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6)) brightness(4); }
}
@media (max-width: 575.98px) {
  .about-core__head { flex-direction: column; align-items: flex-start; }
  .about-core__tabs { width: 100%; justify-content: space-between; }
}

/* replayed on every tab change (class toggled by about.js) */
.core-card.is-playing .core-card__word  { animation: coreWord 1s var(--ease-out) both; }
.core-card.is-playing .core-card__title { animation: coreUp .7s var(--ease-out) .15s both; }
.core-card.is-playing .core-card__text  { animation: coreUp .7s var(--ease-out) .3s both; }
.core-card.is-playing .core-card__motto { animation: coreUp .7s var(--ease-out) .45s both; }
.core-card.is-playing .core-card__img   { animation: coreImg 1.2s var(--ease-out) both; }
@keyframes coreWord { from { opacity: 0; transform: translateX(-12%); } to { opacity: 1; transform: none; } }
@keyframes coreUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes coreImg  { from { opacity: .3; transform: scale(1.08); } to { opacity: 1; transform: none; } }


/* ==========================================================================
   12c. PRODUCTS PAGE (products.html)
   --------------------------------------------------------------------------
   .hero--products   compact dark banner without a photo (as on the original
                     page); outlined "SWM" drifts in the background
   .page-heading     the page H1 between the breadcrumbs and <main>
                     (reusable on any inner page)
   .product-groups   large centred "photo + title" cards; the grid centres
                     any number of groups (auto-fit), new group = copy an <li>
   .product-perks    icon links to the buyer sections
   ========================================================================== */

/* ---------- Hero: compact, CSS background ---------- */
.hero--products {
  height: clamp(420px, 62vh, 640px);
  height: clamp(420px, 62svh, 640px);
  min-height: 0;
  background:
    radial-gradient(ellipse 60% 70% at 85% 15%, rgba(214, 47, 46, .38), transparent 70%),
    linear-gradient(135deg, #1b1b1b 0%, #000 65%);
}
.hero--products::after {        /* faint diagonal stripes instead of the photo shade */
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 44px);
}
.hero-products__bg {
  position: absolute;
  right: -2vw;
  bottom: -.12em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 32vw, 34rem);
  line-height: .8;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .12);
  user-select: none;
  pointer-events: none;
  animation: heroProductsDrift 18s ease-in-out infinite alternate;
}
@keyframes heroProductsDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-6vw); }
}
.hero--products .hero__subtitle { margin-top: 0; color: #e8e8e8; }
.hero-products__line {             /* red stroke drawn left → right under the title */
  display: block;
  width: clamp(80px, 12vw, 180px);
  height: 4px;
  margin-block: clamp(1rem, 2.5vh, 1.5rem);
  background: linear-gradient(90deg, var(--swm-red), rgba(214, 47, 46, 0));
}
.js .hero-products__line[data-animate] {
  transform: scaleX(0);
  transform-origin: left center;
  transition-duration: 1.2s;
}

/* ---------- Page heading (H1) ---------- */
/* like section.breadcrumb it covers the sticky hero */
.page-heading {
  position: relative;
  z-index: 1;
  background: #fff;
  padding-bottom: clamp(.5rem, 1.5vw, 1rem);
}
.page-heading__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-title);
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
}
.page-heading__line {             /* "red-halfbord" of the original page */
  display: block;
  width: min(240px, 40%);
  height: 3px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--swm-red) 50%, rgba(214, 47, 46, 0));
}

/* ---------- Product groups ---------- */
.product-groups { padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section-py); }
.product-groups__intro {
  max-width: 70ch;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.product-groups__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 560px));
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.product-group {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #f3f3f3 100%);
  box-shadow: var(--shadow-card);
  color: var(--swm-ink);
  text-align: center;
  text-decoration: none;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.product-group::before {          /* red bar grows along the bottom edge on hover */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--swm-red);
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.product-group__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.product-group__media::after {    /* soft ground shadow under the vehicle */
  content: "";
  position: absolute;
  z-index: -1;
  left: 15%;
  right: 15%;
  bottom: 4%;
  height: 12%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent);
  transition: transform .6s var(--ease-out), opacity .6s;
}
.product-group__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;       /* white photo background melts into the card */
  transition: transform .6s var(--ease-out);
}
.product-group__series {
  margin-top: clamp(.75rem, 1.5vw, 1.25rem);
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .3em;
  color: var(--swm-red);
}
.product-group__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  text-transform: uppercase;
  margin: .25rem 0 clamp(1rem, 2vw, 1.5rem);
  transition: color .3s;
}
.product-group__more {            /* looks like .btn-swm, but larger */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 54px;
  margin-top: auto;
  padding: .8rem 2rem;
  border-radius: .4375rem;
  background: var(--swm-red-cta);
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-lead);
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background-color .25s;
}
.product-group__more img { width: 1.25em; height: auto; transition: transform .25s var(--ease-out); }

.product-group:hover,
.product-group:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); color: var(--swm-ink); }
.product-group:hover::before,
.product-group:focus-visible::before { transform: scaleX(1); }
.product-group:hover .product-group__media img { transform: scale(1.06) translateY(-2%); }
.product-group:hover .product-group__media::after { transform: scaleX(.85); opacity: .7; }
.product-group:hover .product-group__title { color: var(--swm-red); }
.product-group:hover .product-group__more { background: var(--swm-red-dark); }
.product-group:hover .product-group__more img { transform: translateX(4px); }

/* ---------- Buyer links ---------- */
.product-perks {
  background: var(--swm-gray-100);
  padding-block: var(--section-py);
}
.product-perks__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.product-perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 2rem) 1rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--swm-ink);
  font-family: var(--font-alt);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s;
}
.product-perk .bi { font-size: 2.5rem; line-height: 1; color: var(--swm-red); transition: transform .3s var(--ease-out); }
.product-perk:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .1); color: var(--swm-red); }
.product-perk:hover .bi { transform: scale(1.12); }


/* ==========================================================================
   12d. CATEGORY PAGE (products_kvadro.html — /products/kvadrotsikly/)
   --------------------------------------------------------------------------
   .hero--kvadro       full-screen photo hero (base styles from section 07)
   .page-heading__lead subtitle under the page H1
   .atv-filter         size filter buttons (catalog.js)
   .atv-models         centred grid of model cards; .atv-card = whole-card link
   .atv-gallery        photo mosaic + "more" tile; GLightbox viewer ([data-lightbox])
   ========================================================================== */

/* ---------- Page heading subtitle ---------- */
.page-heading__lead {
  margin: 1rem 0 0;
  font-family: var(--font-alt);
  font-size: var(--fs-lead);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--swm-muted);
}

/* ---------- Size filter ---------- */
.atv-models { padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section-py); }
.atv-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.atv-filter__btn {
  min-height: 44px;
  padding: .5rem 1.5rem;
  border: 2px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
  color: var(--swm-ink);
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background-color .25s, border-color .25s, color .25s;
}
.atv-filter__btn:hover { border-color: var(--swm-red); color: var(--swm-red); }
.atv-filter__btn.is-active { background: var(--swm-red); border-color: var(--swm-red); color: #fff; }

/* ---------- Model cards ---------- */
/* flex (not grid) so that 1–2 filtered cards stay centred at the same width */
.atv-models__list {
  --gap: clamp(1.25rem, 2.5vw, 2.5rem);
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1600px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
.atv-models__item { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); }
@media (max-width: 1099.98px) { .atv-models__item { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 639.98px)  { .atv-models__item { flex-basis: 100%; } }
.atv-models__item[hidden] { display: none; }
.atv-models__item.is-filtered-in { animation: atvCardIn .5s var(--ease-out) both; }
@keyframes atvCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.atv-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--swm-text);
  text-decoration: none;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.atv-card::before {               /* red bar grows along the bottom edge on hover */
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--swm-red);
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.atv-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: clamp(.75rem, 2vw, 1.5rem);
  background: linear-gradient(180deg, #fff 0%, var(--swm-gray-200) 100%);
}
.atv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease-out);
}
.atv-card__status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .3rem .75rem;
  border-radius: var(--radius);
  background: var(--swm-red);
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-xs);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.atv-card__status--soon { background: var(--swm-ink); }
.atv-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.atv-card__year {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--swm-red);
}
.atv-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  text-transform: uppercase;
  color: var(--swm-ink);
  margin: .35rem 0 .75rem;
  transition: color .3s;
}
.atv-card__text {
  display: block;
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: #4a4a4a;
}
.atv-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e6e6e6;
}
.atv-card__price {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-h4);
  color: var(--swm-black);
  white-space: nowrap;
}
.atv-card__more {                 /* looks like .btn-swm */
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-left: auto;
  padding: .5rem 1.25rem;
  border-radius: .4375rem;
  background: var(--swm-red-cta);
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background-color .25s;
}
.atv-card__more img { width: 1.25em; height: auto; transition: transform .25s var(--ease-out); }

.atv-card:hover,
.atv-card:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); color: var(--swm-text); }
.atv-card:hover::before,
.atv-card:focus-visible::before { transform: scaleX(1); }
.atv-card:hover .atv-card__media img { transform: scale(1.06) translateY(-2%); }
.atv-card:hover .atv-card__title { color: var(--swm-red); }
.atv-card:hover .atv-card__more { background: var(--swm-red-dark); }
.atv-card:hover .atv-card__more img { transform: translateX(4px); }

/* ---------- Photo mosaic ---------- */
.atv-gallery { background: #000; color: #fff; padding-block: var(--section-py); }
.atv-gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.atv-gallery__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  text-transform: uppercase;
}
.atv-gallery__all {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
}
.atv-gallery__all .bi { display: inline-block; color: var(--swm-red-bright); transition: transform .25s var(--ease-out); }
.atv-gallery__all:hover { color: var(--swm-red-bright); }
.atv-gallery__all:hover .bi { transform: translateX(4px); }

.atv-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, clamp(160px, 17vw, 340px));
  grid-template-areas:
    "one one two   more"
    "one one three three";
  gap: clamp(.5rem, 1vw, 1rem);
}
.atv-gallery__item--1 { grid-area: one; }
.atv-gallery__item--2 { grid-area: two; }
.atv-gallery__item--3 { grid-area: three; }
.atv-gallery__more    { grid-area: more; }
@media (max-width: 767.98px) {
  .atv-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 56vw 32vw 40vw;
    grid-template-areas:
      "one   one"
      "two   more"
      "three three";
  }
}
.atv-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111;
}
.atv-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.atv-gallery__item::after {       /* zoom icon on hover (bootstrap-icons "zoom-in") */
  content: "\F62C";
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.25rem;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .3s;
}
.atv-gallery__item:hover img,
.atv-gallery__item:focus-visible img { transform: scale(1.06); }
.atv-gallery__item:hover::after,
.atv-gallery__item:focus-visible::after { opacity: 1; }
.atv-gallery__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--radius-lg);
  background: var(--swm-red);
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s;
}
.atv-gallery__more .bi { font-size: 2.5rem; line-height: 1; transition: transform .3s var(--ease-out); }
.atv-gallery__more:hover { background: var(--swm-red-dark); color: #fff; }
.atv-gallery__more:hover .bi { transform: scale(1.12); }

/* ---------- Photo lightbox (GLightbox, vendors/glightbox) ---------- */
.glightbox-container .goverlay { background: rgba(0, 0, 0, .95); }
.glightbox-clean .gnext,
.glightbox-clean .gprev,
.glightbox-clean .gclose {
  background: rgba(0, 0, 0, .45);
  transition: background-color .25s;
}
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover,
.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:focus-visible,
.glightbox-clean .gprev:focus-visible,
.glightbox-clean .gclose:focus-visible { background: var(--swm-red-cta); opacity: 1; }
@media (max-width: 768.98px) {    /* the vendor moves the arrows off-screen below 769px — keep them, centred on the sides */
  .glightbox-clean .gprev,
  .glightbox-clean .gnext { top: calc(50% - 25px); }
  .glightbox-clean .gprev { left: 8px; }
  .glightbox-clean .gnext { right: 8px; }
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
  background: #000;
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 2rem;
  font-size: var(--fs-sm);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--swm-red-bright); }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li + li { margin-top: .25rem; }
.footer-menu a { display: inline-block; padding-block: .3rem; }   /* comfortable tap height */
.footer-company img { width: clamp(150px, 14vw, 190px); height: auto; }
.footer-company address { font-style: normal; margin: 1.25rem 0 0; line-height: 1.5; }
.footer-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  margin-block: .5rem;
}
/* red line fading to black at both ends (replaces footer-line.png) */
.footer-hr {
  height: 3px;
  margin: 2rem 0 1.25rem;
  border: 0;
  opacity: 1;
  color: transparent;
  background: linear-gradient(90deg, #000 0%, var(--swm-red) 50%, #000 100%);
}
.footer-copy { text-align: center; font-size: var(--fs-sm); color: #bdbdbd; margin: 0; }


/* ==========================================================================
   14. COOKIE BAR
   ========================================================================== */
.cookie-bar {
  position: fixed;
  z-index: 1080;
  left: 0;
  right: 0;
  bottom: 0;
  background: #222;
  color: #fff;
  padding: 1rem var(--container-pad);
  font-size: var(--fs-sm);
  transform: translateY(110%);
  transition: transform .5s var(--ease-out);
}
.cookie-bar.is-visible { transform: none; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar .btn { min-height: 44px; font-size: var(--fs-sm); }
.cookie-bar .btn-accept { background: var(--swm-red); border-color: var(--swm-red); color: #fff; }
.cookie-bar .btn-reject { background: #555; border-color: #555; color: #fff; }


/* ==========================================================================
   15. SCROLL ANIMATIONS
   --------------------------------------------------------------------------
   Same effects as the original site:
     data-animate="fade-up"     text rises 40px and fades in   (.text-up)
     data-animate="slide-left"  image flies in from the right
                                with scale .6 → 1              (.right-left)
     data-animate="fade"        simple fade                    (.animate-fade)
     data-animate="zoom-out"    hero picture 1.1 → 1           (.zoomOut)
     data-animate="pop"         icon pop                       (.animate-icon)
     data-animate="reveal-left" / "reveal-right"  photo slides in from that side
   Delay: style="--delay: .3s"   or classes .delay-1 … .delay-5
   main.js adds .is-animated when the element enters the viewport.
   Without JS (.no-js) everything is simply visible.
   ========================================================================== */
.js [data-animate] {
  transition-property: opacity, transform;
  transition-timing-function: ease-out;
  transition-duration: .8s;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js [data-animate="fade-up"]    { opacity: 0; transform: translateY(40px); }
.js [data-animate="fade"]       { opacity: 0; transition-duration: 1.5s; }
.js [data-animate="pop"]        { opacity: 0; transform: scale(.9); transition-duration: .6s; }
.js [data-animate="slide-left"] {
  opacity: 0;
  transform: translateX(50%) scale(.6);
  transition-duration: 2s, 2s;
  transition-property: transform, opacity;
}
.js [data-animate="zoom-out"]   { transform: scale(1.1); transition-duration: 2.5s; }
.js [data-animate="reveal-left"]  { opacity: 0; transform: translateX(-60px); transition-duration: 1.1s; }   /* photo from the left  */
.js [data-animate="reveal-right"] { opacity: 0; transform: translateX(60px);  transition-duration: 1.1s; }   /* photo from the right */

.js [data-animate].is-animated { opacity: 1; transform: none; }

.delay-1 { --delay: .2s; }
.delay-2 { --delay: .4s; }
.delay-3 { --delay: .6s; }
.delay-4 { --delay: .8s; }
.delay-5 { --delay: 1s; }


/* ==========================================================================
   16. UTILITIES / ACCESSIBILITY / REDUCED MOTION
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--swm-red);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }
:focus-visible { outline: 2px solid var(--swm-red-bright); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-animate] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .cookie-bar, .promo-video, .hero__scroll { display: none !important; }
  .hero { position: relative; height: auto; }
}
