/* Bernar Aesthetics — design system */

:root {
  --bordo: #c41b17;
  --bordo-dark: #991512;
  --bordo-darker: #660e0c;
  --ink: #201a1a;
  --paper: #ffffff;
  --paper-elevated: #ffffff;
  --paper-soft: #f3ece4;
  --line: #e6dccf;
  --muted: #766a61;
  --radius: 8px;
  --radius-sm: 4px;
  --container: 1180px;
  --container-wide: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Lenis (homepage only, see hero-motion.js) drives scrolling itself —
   native smooth-scroll would fight it on anchor jumps. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 .5em;
  letter-spacing: 0;
}
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; }
h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

.eyebrow-bordo {
  color: var(--bordo);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12.5px;
  font-weight: 700;
}

.section { padding: 88px 0; }
.section-tight { padding: 52px 0; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-bordo { background: var(--bordo); color: #fff; }
.btn-bordo:hover { background: var(--bordo-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-outline-white:hover { background: #fff; color: var(--bordo-darker); }
.btn-block { display: flex; width: 100%; }

/* Quiet text link — the secondary action everywhere on the site */
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.link-quiet:hover { color: var(--bordo); border-color: var(--bordo); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100px;
}
.header-region {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  flex-wrap: wrap;
}
.header-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color .15s ease;
}
.header-nav a:hover,
.header-nav a.active { color: var(--bordo); }

.cart-icon-link,
.account-icon-link {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  color: var(--ink);
}
.cart-icon-link:hover,
.cart-icon-link.active,
.account-icon-link:hover,
.account-icon-link.active { color: var(--bordo); }
.cart-icon-link svg,
.account-icon-link svg { width: 21px; height: 21px; display: block; }
.cart-badge[hidden] { display: none; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bordo);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  position: absolute;
  top: -7px;
  right: -9px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.burger span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; }

/* Logo lockup */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  height: 41px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.logo-word {
  height: 38px;
  width: auto;
  display: block;
}
.logo-lg { gap: 14px; }
.logo-lg .logo-mark { height: 58px; }
.logo-lg .logo-word { height: 54px; }

/* ===== Mobile menu overlay ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bordo-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.menu-overlay.open { transform: translateX(0); }
.menu-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.menu-close {
  background: none; border: none; color: #fff; cursor: pointer;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.menu-close svg { width: 22px; height: 22px; }
.menu-links { display: flex; flex-direction: column; gap: 26px; }
.menu-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-links .cart-badge { position: static; }

/* ===== Hero / generic banners ===== */
.hero-bordo {
  background: var(--bordo-dark);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.hero-bordo h1 { color: #fff; font-size: clamp(30px, 4.6vw, 46px); }
.hero-bordo p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 620px; }
/* Homepage only: the closing CTA doesn't need to be nearly full-screen */
.hero-bordo--compact { padding: 60px 0; }

/* ===== Homepage full-bleed hero photo ===== */
.hero-photo {
  position: relative;
  height: min(88vh, 840px);
  min-height: 560px;
  color: #fff;
  overflow: hidden;
  /* Matches the rose video's own near-white background so a scaled-down
     video (desktop, see .hero-photo-video below) blends seamlessly into
     the section instead of showing a hard rectangular edge. */
  background: #fbfcfc;
}
.hero-photo > img,
.hero-photo > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Extra headroom so the parallax translateY (hero-motion.js) never
   reveals an edge of the video. Scaled down and left-anchored on
   desktop/tablet so the flower reads as one element among several,
   not the whole hero — reset back to full size on mobile (see the
   620px breakpoint), where the composition is already tight. */
.hero-photo-video {
  top: -12%;
  height: 124%;
  object-position: left center;
}
@media (min-width: 621px) {
  /* `.hero-photo > video` (a combinator selector) outranks the plain
     `.hero-photo-video` class on specificity, so it was silently
     winning on object-fit/top/height regardless of source order —
     the video was rendering with zero crop margin, which is why
     rotation frames could clip a petal against the box edge. Match
     that specificity here and switch to `contain` so the whole
     (already white-padded) video frame is always visible, never cropped. */
  .hero-photo > .hero-photo-video {
    object-fit: contain;
    object-position: left bottom;
    transform: scale(.78);
    transform-origin: 0% 100%;
  }
}
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 620px 420px at 50% 46%, rgba(255,255,255,.62) 0%, rgba(255,255,255,.22) 62%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,.28) 100%);
}
/* Faint, semi-transparent product shapes drifting across the whole
   hero — a soft atmospheric echo, not readable product shots. Kept out
   of the text column (roughly 55-95% x, 28-82% y) so copy stays crisp. */
.hero-photo-float {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-float-item {
  position: absolute;
  opacity: .14;
  object-fit: contain;
  filter: saturate(.85) blur(1.5px);
}
.hero-float-item.hf-1 { top: 4%;   left: 2%;  width: 180px; transform: rotate(-14deg); }
.hero-float-item.hf-2 { top: 4%;   right: 6%; width: 120px; transform: rotate(11deg); }
.hero-float-item.hf-3 { bottom: 6%; right: 6%; width: 150px; transform: rotate(-8deg); }
.hero-float-item.hf-4 { top: 26%;  left: 24%; width: 100px; transform: rotate(15deg); }
.hero-float-item.hf-5 { top: 36%;  left: 42%; width: 120px; transform: rotate(19deg); }
.hero-photo-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  max-width: 760px;
  margin: 0 auto;
}
.hero-photo-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bordo);
  margin: 0 0 16px;
}
.hero-photo-title {
  font-family: 'Italiana', 'Fraunces', serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(32px, 5.8vw, 64px);
  letter-spacing: .05em;
  color: var(--ink);
  margin: 0 0 20px;
}
/* Word-split entrance animation targets (hero-motion.js) */
.hero-photo-title .word-wrap { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.hero-photo-title .word { display: inline-block; }
.hero-photo-content p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-photo-content .btn { min-width: 240px; }
/* Variant for hero visuals with the subject on the left (e.g. the
   rotating glossy rose) — text hugs the empty right side instead of
   sitting centered over the subject. */
.hero-photo-content--side {
  align-items: flex-end;
  text-align: right;
  max-width: 640px;
  margin: 0 48px 0 auto;
}

/* ===== Homepage: product showcase — logo + diagonal product cascade ===== */
.product-showcase {
  background: var(--paper);
  padding: 110px 0 130px;
  overflow: hidden;
}
.product-showcase-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-showcase-logo {
  width: 25%;
  min-width: 170px;
  max-width: 260px;
  height: auto;
  opacity: .92;
  margin: 0 auto 64px;
}
.product-showcase-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.product-fly-item { flex: 0 1 auto; }
.product-fly-item img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(32,26,26,.14));
  transform: rotate(var(--pf-tilt, 0deg));
}
/* Each product sits at its own tilt, like it settled mid-tumble rather
   than standing upright — reinforces the "floating" feel. */
.product-fly-item.pf-1 { margin-top: 0; --pf-tilt: -7deg; }
.product-fly-item.pf-1 img { max-height: 340px; }
.product-fly-item.pf-2 { margin-top: 54px; --pf-tilt: 9deg; }
.product-fly-item.pf-2 img { max-height: 300px; }
.product-fly-item.pf-3 { margin-top: 108px; --pf-tilt: -11deg; }
.product-fly-item.pf-3 img { max-height: 260px; }
.product-fly-item.pf-4 { margin-top: 170px; --pf-tilt: 13deg; }
.product-fly-item.pf-4 img { max-height: 165px; }

/* ===== Homepage: 3D product carousel =====
   Ported from a React/Tailwind reference (rotation/perspective/easing
   math kept identical, see assets/product-carousel.js); only the DOM
   plumbing and card content changed. */
.product-carousel-section {
  padding: 90px 0 110px;
  background: var(--paper);
  overflow: hidden;
}
.product-carousel-section .container { text-align: center; margin-bottom: 8px; }
.carousel-stage {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.carousel-viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1350px;
  pointer-events: none;
}
.carousel-track {
  position: relative;
  transform-style: preserve-3d;
}
.carousel-card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: auto;
}
.carousel-card-slice {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
}
.carousel-card-slice--mid {
  background: #d9cfc1;
  border: 1px solid rgba(0,0,0,.06);
}
.carousel-card-slice--front {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px rgba(32,26,26,.28), inset 0 1px 1px rgba(255,255,255,.7);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.carousel-card-photo {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 26px 20px 6px;
}
.carousel-card-mark {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 20px;
  width: auto;
  opacity: .8;
}
.carousel-card-info {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  flex: none;
}
.carousel-card-name {
  font-family: 'Fraunces', serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--ink);
}
.carousel-card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  gap: 4px 8px;
}
.carousel-card-vol { color: var(--muted); }
.carousel-card-price { color: var(--bordo); font-weight: 700; white-space: nowrap; }
.carousel-card-tg {
  color: var(--bordo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex: 1 0 100%;
}
.carousel-card-slice--back {
  background: linear-gradient(155deg, var(--bordo-dark) 0%, var(--bordo) 55%, var(--bordo-darker) 100%);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-card-back-inner { text-align: center; padding: 20px; }
.carousel-card-back-logo { height: 24px; margin-bottom: 10px; opacity: .95; }
.carousel-card-back-tagline {
  color: rgba(255,255,255,.85);
  font-size: 10.5px;
  line-height: 1.4;
  max-width: 150px;
  margin: 0 auto;
}
@media (max-width: 620px) {
  .carousel-stage { height: 360px; }
}

/* ===== Homepage: "Напрями роботи" — editorial list, not boxed cards ===== */
.directions-list {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 64px;
}
.direction-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 18px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.direction-row .direction-index {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--bordo);
}
.direction-row h3 { margin-bottom: 0; }
.direction-row p { grid-column: 2; margin: 0; color: var(--muted); font-size: 14.5px; }

/* ===== Homepage: brand tiles (image-forward) ===== */
.brand-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.brand-tile {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
  display: block;
}
.brand-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.brand-tile:hover img { transform: scale(1.04); }
.brand-tile.no-photo { background: var(--bordo-dark); }
.brand-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,10,9,.72) 0%, rgba(20,10,9,0) 55%);
}
.brand-tile-label {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
}
.brand-tile-label span {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-top: 2px;
}

/* ===== Homepage only: bold bordo band around the featured brands —
   a deliberate color break in an otherwise all-white page, so the
   scroll has a rhythm instead of one long white run. Cards stay light
   and float on top of it, "HUSH New Arrivals"-style. ===== */
.brands-band {
  background: var(--bordo-dark);
  padding: 80px 0;
}
.brands-band .eyebrow-bordo { color: rgba(255,255,255,.7); }
.brands-band h2 { color: #fff; }
.brands-band .link-quiet { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); }
.brands-band .link-quiet:hover { color: #fff; border-color: #fff; }

/* ===== Homepage only: featured brand tiles — photo on top, text below,
   no scrim over the product photo ===== */
.brand-tiles-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.brand-tile-featured {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-elevated);
  box-shadow: 0 1px 2px rgba(32,26,26,.05), 0 16px 34px -24px rgba(32,26,26,.24);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) and (pointer: fine) {
  .brand-tile-featured:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -24px rgba(32,26,26,.32); }
}
.brand-tile-featured-photo {
  aspect-ratio: 1/1;
  background: var(--paper-soft);
  overflow: hidden;
  color: var(--bordo);
}
.brand-tile-featured-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.brand-tile-featured:hover .brand-tile-featured-photo img { transform: scale(1.06); }
.brand-tile-featured-photo.no-photo { display: flex; align-items: center; justify-content: center; }
.brand-tile-featured-photo.no-photo svg { width: 34%; height: 34%; }
.brand-tile-featured-body { padding: 16px 18px 20px; }
.brand-tile-featured-body h3 { font-size: 16.5px; margin-bottom: 2px; }
.brand-tile-featured-cat { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.brand-tile-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: color .3s ease;
}
.brand-tile-featured:hover .brand-tile-featured-link { color: var(--bordo); }

/* ===== Homepage / training: event cards (wide, magazine-style) ===== */
.event-cards { display: flex; flex-direction: column; gap: 2px; }
.event-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.event-card:first-child { border-top: 1px solid var(--line); }
.event-cover { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--paper-soft); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-meta { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.event-body h3 { margin-bottom: 6px; }
.event-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }

/* ===== Homepage only: featured events — large photo gallery ===== */
.featured-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.featured-event-card { display: flex; flex-direction: column; }
.featured-event-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
  margin-bottom: 18px;
}
.featured-event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) {
  .featured-event-card:hover .featured-event-photo img { transform: scale(1.06); }
}
.featured-event-meta { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.featured-event-card h3 { margin-bottom: 8px; }
.featured-event-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

/* ===== Catalog category grid ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow .25s ease, background .25s ease, transform .25s ease;
  background: var(--paper-elevated);
  box-shadow: 0 1px 2px rgba(32,26,26,.05), 0 14px 30px -24px rgba(32,26,26,.22);
}
.cat-card:hover { background: var(--paper-soft); }
@media (hover: hover) and (pointer: fine) {
  .cat-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -22px rgba(32,26,26,.28); }
}
.cat-card h3 { font-size: 17px; margin-bottom: 4px; }
.cat-card span { font-size: 13px; color: var(--muted); }
.cat-card .cat-badge-pro {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bordo);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  margin-bottom: 12px;
}

/* ===== Profession gate ===== */
.pro-gate {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 0;
  text-align: center;
}
.pro-gate h2 { font-size: clamp(22px, 3vw, 28px); }
.pro-gate p:not(.eyebrow-bordo) { color: var(--muted); }
.pro-gate-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== Product grid & cards ===== */
.cat-heading {
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--bordo);
  margin: 48px 0 24px;
}
.cat-heading:first-child { margin-top: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-photo {
  aspect-ratio: 1;
  background: var(--paper-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--bordo);
  overflow: hidden;
}
.product-photo svg { width: 40%; height: 40%; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16.5px;
  margin-bottom: 4px;
}
.product-name a { color: var(--ink); }
.product-name a:hover { color: var(--bordo); }
.product-vol { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.product-price { font-size: 14px; font-weight: 700; color: var(--bordo); margin-bottom: 14px; }
.product-card-actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.product-card-actions .btn { width: 100%; }

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  height: 40px;
  overflow: hidden;
}
.qty-stepper button {
  width: 38px; height: 100%;
  background: var(--paper-soft);
  border: none;
  font-size: 17px;
  cursor: pointer;
  color: var(--ink);
}
.qty-stepper button:hover { background: var(--line); }
.qty-stepper output { font-size: 14px; font-weight: 600; }

/* ===== Product detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.product-detail .product-photo { aspect-ratio: 1; margin-bottom: 0; }
.product-detail h1 { font-size: clamp(26px, 3.4vw, 36px); }
.product-detail .product-price { font-size: 20px; margin-bottom: 20px; }
.product-detail-actions { display: flex; gap: 16px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.product-detail-actions .qty-stepper { width: 140px; }

/* ===== Cart ===== */
.cart-empty { color: var(--muted); padding: 40px 0; }
.cart-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr 140px 90px 32px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cart-photo { width: 72px; height: 72px; margin-bottom: 0; border-radius: var(--radius-sm); }
.cart-photo svg { width: 42%; height: 42%; }
.cart-row-info .product-name { font-size: 14px; }
.cart-row-total { font-weight: 700; color: var(--bordo); text-align: right; white-space: nowrap; }
.cart-remove {
  border: none; background: transparent; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer; justify-self: end;
}
.cart-remove:hover { color: var(--bordo); }
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cart-total { font-size: 18px; }
.cart-total strong { color: var(--bordo); }
.cart-error { width: 100%; color: var(--bordo); font-size: 13.5px; margin-top: 12px; }

@media (max-width: 640px) {
  .cart-row { grid-template-columns: 56px 1fr; grid-template-areas: "photo info" "photo qty" "photo total" "photo remove"; row-gap: 8px; }
  .cart-photo { grid-area: photo; width: 56px; height: 56px; }
  .cart-row-info { grid-area: info; }
  .cart-row .qty-stepper { grid-area: qty; width: 120px; }
  .cart-row-total { grid-area: total; text-align: left; }
  .cart-remove { grid-area: remove; justify-self: start; }
}

/* ===== Forms ===== */
.form-field {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
  background: var(--paper-elevated);
  color: var(--ink);
}
.form-field:focus { outline: none; border-color: var(--bordo); }
textarea.form-field { resize: vertical; min-height: 110px; }
.contact-form { max-width: 480px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.checkbox-row input[type=checkbox] { width: auto; accent-color: var(--bordo); }
.checkbox-row label { font-size: 14px; cursor: pointer; }

/* ===== Cart checkout: contact/delivery fields ===== */
.checkout-contact { max-width: 480px; margin-bottom: 32px; }
.checkout-contact h3 { margin-bottom: 4px; }
.checkout-logged-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.checkout-logged-in button { background: none; border: none; color: var(--bordo); font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }

/* ===== Contact info block (light background) ===== */
.contact-info h4 {
  color: var(--bordo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-info p { color: var(--ink); margin-bottom: 4px; }
.contact-info a { color: var(--ink); }
.contact-info a:hover { color: var(--bordo); }

/* ===== Account page: login/register tabs, dashboard, order history ===== */
.account-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.account-tab {
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
}
.account-tab.active { border-color: var(--bordo); color: var(--bordo); }
.account-hint { color: var(--muted); font-size: 13.5px; margin-top: -8px; margin-bottom: 20px; }
.account-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.account-orders { display: flex; flex-direction: column; gap: 14px; }
.account-order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.account-order-card .order-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.account-order-card .order-items { font-size: 14px; margin-bottom: 8px; }
.account-order-card .order-total { font-weight: 700; color: var(--bordo); }
.account-order-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  color: var(--muted);
  margin-left: 8px;
}
.account-order-status.paid { background: #e8f5e9; color: #2e7d32; }
.account-orders-empty { color: var(--muted); padding: 12px 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bordo-dark);
  color: rgba(255,255,255,.92);
  padding: 60px 0 28px;
  border-top: 3px solid var(--bordo);
}

/* Primary block — navigation + contacts, the two things people actually look for */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-bottom: 44px;
}
.footer-col h4 {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a, .footer-col p, .footer-col span {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-bottom: 12px;
}
.footer-col a:hover { color: #fff; }
.footer-nav-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.footer-hours-line { color: rgba(255,255,255,.85); margin-bottom: 18px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.footer-social svg { width: 17px; height: 17px; }

/* Secondary block — catalog links, kept quiet on purpose */
.footer-brands {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 12.5px;
  line-height: 2;
}
.footer-brands-label {
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 8px;
}
.footer-brands a {
  color: rgba(255,255,255,.55);
  margin-right: 2px;
}
.footer-brands a:hover { color: #fff; }
.footer-brands a:not(:last-child)::after {
  content: "·";
  color: rgba(255,255,255,.3);
  margin: 0 8px 0 10px;
}

.footer-bottom {
  margin-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
  position: relative;
  z-index: 1;
}

/* ===== Trips / training cards ===== */
.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== "Додаткові бонуси" photo cards (pro-nas.html) ===== */
.trip-photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.trip-photo-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--bordo-dark) 0%, var(--bordo) 55%, var(--bordo-darker) 100%);
  color: #fff;
  display: block;
  transition: transform .35s ease, box-shadow .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .trip-photo-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(20,10,8,.5); }
  .trip-photo-card:hover img.trip-photo-bg { transform: scale(1.05); }
}

.trip-photo-card img.trip-photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.trip-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.trip-photo-badge {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  z-index: 1;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: rgba(20,14,13,.22);
  backdrop-filter: blur(1.5px);
}
.trip-photo-badge h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.28;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 12px;
  color: #fff;
}
.trip-photo-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.trip-photo-meta-row:last-child { margin-bottom: 0; }
.trip-photo-meta-row svg { width: 16px; height: 16px; flex: none; opacity: .95; }
.trip-photo-foot {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.trip-photo-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.6);
  padding-bottom: 1px;
}
.trip-photo-logo { height: 20px; opacity: .92; }
.trip-card {
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper-elevated);
  box-shadow: 0 1px 2px rgba(32,26,26,.05), 0 14px 30px -24px rgba(32,26,26,.22);
  transition: box-shadow .25s ease, transform .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .trip-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -22px rgba(32,26,26,.28); }
}
.trip-date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.trip-card h4 { margin-bottom: 4px; font-family: 'Fraunces', serif; font-size: 17px; }
.trip-place { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.trip-price { font-weight: 700; color: var(--bordo); font-size: 14px; }
.trip-cat-heading { font-size: clamp(22px, 3vw, 28px); color: var(--bordo); margin: 44px 0 20px; }
.trip-cat-heading:first-child { margin-top: 0; }

/* ===== Events gallery (training.html "Наші поїздки та фотозвіти") ===== */
.events-empty { color: var(--muted); padding: 32px 0; }
.event-gallery { display: none; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.event-gallery.open { display: grid; }
.event-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); width: 100%; height: 100%; }
.event-toggle { margin-top: 10px; }

/* ===== Status page (404 / thank you): white card, bordered, on white ===== */
.status-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
  padding: 64px 24px;
}
.status-card {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 44px;
  max-width: 440px;
  width: 100%;
}
.status-card h1 { color: var(--bordo); font-size: clamp(26px, 3.6vw, 34px); }
.status-card p { color: var(--muted); max-width: 360px; margin: 0 auto; }
.status-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ===== Utility rows ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo-block {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* ===== Scroll reveal (progressive enhancement — see initScrollReveal in site.js) ===== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .brand-tile-featured,
  .brand-tile-featured-photo img,
  .brand-tile-featured-link,
  .featured-event-photo img,
  .trip-photo-card,
  .trip-photo-card img.trip-photo-bg {
    transition: none !important;
  }
  .brand-tile-featured:hover { transform: none !important; box-shadow: none !important; }
  .brand-tile-featured:hover .brand-tile-featured-photo img,
  .featured-event-card:hover .featured-event-photo img {
    transform: none !important;
  }
  .trip-photo-card:hover { transform: none !important; box-shadow: none !important; }
  .trip-photo-card:hover img.trip-photo-bg { transform: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .header-nav { display: none; }
  .header-region span { display: none; }
  .burger { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .trip-grid { grid-template-columns: repeat(2, 1fr); }
  .trip-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-tiles { grid-template-columns: repeat(2, 1fr); }
  .brand-tiles-featured { grid-template-columns: repeat(2, 1fr); }
  .directions-list { grid-template-columns: 1fr; grid-auto-flow: row; column-gap: 0; }
  .event-card { grid-template-columns: 140px 1fr; gap: 18px; }
  .featured-events-grid { grid-template-columns: 1fr; }
  .product-showcase { padding: 84px 0 96px; }
  .product-showcase-stage { gap: 22px; }
  .product-fly-item.pf-1 { margin-top: 0; }
  .product-fly-item.pf-1 img { max-height: 260px; }
  .product-fly-item.pf-2 { margin-top: 36px; }
  .product-fly-item.pf-2 img { max-height: 230px; }
  .product-fly-item.pf-3 { margin-top: 72px; }
  .product-fly-item.pf-3 img { max-height: 200px; }
  .product-fly-item.pf-4 { margin-top: 112px; }
  .product-fly-item.pf-4 img { max-height: 130px; }
}

@media (max-width: 620px) {
  .container, .container-wide { padding: 0 18px; }
  .section { padding: 56px 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .trip-grid { grid-template-columns: 1fr; }
  .trip-photo-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .trip-photo-card { scroll-snap-align: start; }
  .product-showcase { padding: 64px 0 76px; }
  .product-showcase-logo { min-width: 130px; margin-bottom: 40px; }
  .product-showcase-stage { flex-wrap: wrap; gap: 30px 16px; max-width: 340px; }
  .product-fly-item { flex: 0 0 calc(50% - 8px); display: flex; justify-content: center; }
  .product-fly-item.pf-1, .product-fly-item.pf-3 { margin-top: 0; }
  .product-fly-item.pf-2, .product-fly-item.pf-4 { margin-top: 34px; }
  .product-fly-item.pf-1 img { max-height: 170px; }
  .product-fly-item.pf-2 img { max-height: 150px; }
  .product-fly-item.pf-3 img { max-height: 150px; }
  .product-fly-item.pf-4 img { max-height: 110px; }
  .brand-tiles { grid-template-columns: 1fr 1fr; }
  .brand-tiles-featured { grid-template-columns: 1fr 1fr; }
  .logo-lg .logo-mark { height: 44px; }
  .logo-lg .logo-word { height: 41px; }
  .hero-photo { height: 86vh; min-height: 480px; }
  .hero-photo-content--side { align-items: center; text-align: center; max-width: 100%; margin: 0 auto; }
  /* The desktop composition (subject left, blank right) crops badly on a
     narrow/tall viewport with object-fit:cover — show the whole video
     instead, scaled down with its own white background filling the gaps. */
  .hero-photo > .hero-photo-video { object-position: 32% 42%; }
  .hero-photo-content--side {
    background: rgba(255,255,255,.82);
    border-radius: 16px;
    padding: 24px 20px;
    backdrop-filter: blur(2px);
  }
  .event-card { grid-template-columns: 1fr; }
  .event-cover { aspect-ratio: 16/9; }
  .event-gallery { grid-template-columns: repeat(3, 1fr); }
  .hero-float-item.hf-2, .hero-float-item.hf-4 { display: none; }
  .hero-float-item { opacity: .2; }
  .hero-float-item.hf-1 { top: 5%; left: -4%; width: 120px; }
  .hero-float-item.hf-3 { top: auto; bottom: 30%; right: -6%; width: 150px; }
  .hero-float-item.hf-5 { top: auto; bottom: 6%; left: -2%; width: 110px; }
}

@media (max-width: 480px) {
  .brand-tiles { grid-template-columns: 1fr; }
  .brand-tiles-featured { grid-template-columns: 1fr; }
}
