/* ==== DIM loft — фірмовий стиль ==== */
:root {
  --navy: #041E37;
  --navy-soft: #0A2A46;
  --black-pearl: #041E37;
  --pearl-grad: linear-gradient(115deg, #041E37 0%, #0A2A46 55%, #0C3255 100%);
  --gold: #CFB68D;
  --gold-deep: #B89A6A;
  --tan: #CFB68D;
  --sugar: #F1F1E5;
  --light: #F1F1E5;
  --white: #ffffff;
  --ink: #0B1620;
  --muted: #6b7683;
  --muted-d: rgba(241,241,229,.62);
  --line: #e5e3da;
  --line-gold: rgba(207,182,141,.28);
  --line-dark: rgba(11,22,32,.1);
  --shadow: 0 2px 12px rgba(4,30,55,.08);
  --shadow-hover: 0 8px 28px rgba(4,30,55,.16);
  --shadow-lg: 0 30px 80px -30px rgba(4,30,55,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
  --radius: 14px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;
  --maxw: 1240px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sugar);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* блокування фонового скролу на iOS Safari: overflow:hidden сам по собі не
   заважає "гумовому" скролу body під fixed-елементом, тому фіксуємо body */
body.no-scroll { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; }
a { color: inherit; text-decoration: none; }

/* повноекранний перегляд фото */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(4,10,20,.94);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--light);
  font-size: 18px; cursor: pointer; transition: .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.18); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }

/* eyebrow-мітка */
.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow.on-dark { color: var(--gold); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border: none; border-radius: var(--r-pill);
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: .4s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--navy); color: var(--gold); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--light); border: 1px solid var(--line-gold); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { background: transparent; color: var(--navy); border: 1px solid var(--line-dark); }
.btn-ghost-dark:hover { border-color: var(--navy); background: var(--navy); color: var(--light); }

/* десктоп: розкритий номер замість "Зателефонувати" */
a.call-revealed { white-space: nowrap; }
.call-copy-hint { font-size: 11px; opacity: .6; font-weight: 400; white-space: normal; }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==== Header ==== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,30,55,.96); backdrop-filter: blur(14px);
  color: var(--sugar);
  box-shadow: 0 12px 40px -24px rgba(0,0,0,.6);
  transition: .4s var(--ease);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { height: 34px; flex-shrink: 0; display: flex; align-items: center; }
.logo svg, .logo img { height: 100%; width: auto; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 17px; color: var(--light); opacity: .82; transition: .25s; position: relative; letter-spacing: .01em; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--gold); transition: .35s var(--ease); }
.nav a:hover, .nav a.active { color: var(--gold); opacity: 1; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-phone {
  font-weight: 700; color: var(--gold); font-size: 17px; white-space: nowrap;
}
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 60; }
.burger span { width: 26px; height: 2px; background: var(--gold); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобільне випадне меню (усі сторінки) */
@media (max-width: 860px) {
  .burger { display: flex; margin-left: auto; }
  .header-in { gap: 14px; }
  .nav {
    position: absolute; top: 100%; left: 0; width: 100%; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 0;
    background: var(--navy); border-top: 1px solid var(--line-gold);
    max-height: 0; overflow: hidden; margin: 0;
    transition: max-height .3s var(--ease);
  }
  .nav.open { max-height: 320px; }
  .nav a { padding: 16px 32px; border-bottom: 1px solid rgba(207,182,141,.1); }
  .nav a::after { display: none; }
  .site-header { position: sticky; }
  .header-in { position: relative; }
}
@media (max-width: 460px) {
  .header-phone { display: none; }
}

/* ==== Catalog page ==== */
.catalog-head { padding: 48px 0 24px; }
.catalog-head h1 { font-size: clamp(30px, 4.5vw, 46px); color: var(--navy); margin: 16px 0 8px; }
.catalog-head .sub { color: rgba(11,22,32,.6); font-size: 17px; font-weight: 300; }
.catalog-layout { display: grid; grid-template-columns: 264px 1fr; gap: 32px; padding-bottom: 80px; }

/* Filters: звичайний потік сторінки — прокручуються разом з нею, без прилипання */
.filters { align-self: start; }
.filters-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.filters-toolbar .close-filters { display: none; } /* "Готово" тільки на мобільному overlay */
.filter-group { background: var(--white); border-radius: var(--r-md); padding: 20px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.filter-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); font-weight: 600; margin-bottom: 14px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; transition: color .2s; }
.filter-opt:hover { color: var(--gold-deep); }
.filter-opt input { accent-color: var(--gold-deep); width: 16px; height: 16px; cursor: pointer; }
.filter-opt .cnt { margin-left: auto; color: var(--muted); font-size: 12px; }
.filter-reset { width: 100%; padding: 12px; background: transparent; border: 1px solid var(--line-dark); border-radius: var(--r-pill); color: var(--navy); font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit; transition: .3s var(--ease); }
.filter-reset:hover { background: var(--navy); color: var(--light); border-color: var(--navy); }

/* Grid */
/* Пошук */
.search-bar {
  position: relative; display: flex; align-items: center; margin-bottom: 20px;
  background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--r-pill);
  box-shadow: var(--shadow); transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--gold); }
.search-bar svg { position: absolute; left: 20px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-bar input {
  width: 100%; border: 0; background: transparent; padding: 14px 44px 14px 50px;
  font-family: inherit; font-size: 15px; color: var(--navy);
}
.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 14px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: var(--sugar); color: var(--muted); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.search-clear:hover { background: var(--line-dark); color: var(--navy); }

.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-bar .count { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.load-more-wrap { text-align: center; margin-top: 40px; }
.load-more { padding: 15px 40px; background: transparent; border: 1px solid var(--line-dark); border-radius: var(--r-pill); color: var(--navy); font-weight: 600; font-size: 14px; letter-spacing: .04em; cursor: pointer; font-family: inherit; transition: .3s var(--ease); }
.load-more:hover { background: var(--navy); color: var(--light); border-color: var(--navy); }

/* Card */
.card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; border: 1px solid transparent; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--line-gold); }
/* фото у повний зріст — не обрізаємо (contain), з відступом і центруванням */
.card-img { position: relative; aspect-ratio: 3/5; background: var(--white); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
/* стрічка мініатюр модифікацій (шпоновані) */
.card-mods { display: flex; gap: 5px; padding: 8px 10px 0; align-items: center; flex-wrap: wrap; }
.card-mod { width: 30px; height: 46px; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; background: var(--white); cursor: pointer; transition: border-color .15s, transform .15s; padding: 2px; }
.card-mod:hover, .card-mod.on { border-color: var(--tan); transform: translateY(-2px); }
.card-mod-more { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }

.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-vyr { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-deep); font-weight: 600; }
.card-model { font-weight: 600; font-size: 16px; color: var(--navy); }
.card-kol { font-size: 12px; color: var(--muted); }
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }

/* Badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; }
.badge-pok { background: rgba(207,182,141,.18); color: var(--navy); border: 1px solid var(--line-gold); }
.seg { font-weight: 700; letter-spacing: .02em; }
.seg-economy { color: #4b8b5a; }
.seg-middle  { color: #c79a3a; }
.seg-premium { color: var(--gold-deep); }
.seg-dim { opacity: .28; }

/* Chips (active filters) — на сторінці каталогу (не плутати з .chip у моделі) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips .chip { background: var(--navy); color: var(--light); padding: 6px 10px 6px 14px; border-radius: var(--r-pill); font-size: 13px; display: flex; align-items: center; gap: 6px; border: 0; }
.chips .chip button { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }

/* Loading / empty */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ==== Home ==== */
section.section { padding: 120px 0; }
.sec-head { max-width: 640px; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 48px); color: var(--navy); margin: 20px 0 18px; }
.sec-head p { color: rgba(11,22,32,.6); font-size: 17px; font-weight: 300; }

/* HERO */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: var(--pearl-grad); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(207,182,141,.14), transparent 45%);
}
.hero-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center; width: 100%; padding: 100px 0 60px;
}
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 74px); color: var(--light); margin: 26px 0 24px; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero p { color: var(--muted-d); font-size: 18px; font-weight: 300; max-width: 460px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line-gold); }
.stat .num { font-size: 34px; font-weight: 700; color: var(--gold); letter-spacing: -.02em; }
.stat .lbl { font-size: 13px; color: var(--muted-d); letter-spacing: .04em; margin-top: 2px; }

.hero-visual { position: relative; height: 600px; }
.hero-photo {
  position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(207,182,141,.2);
  background:
    radial-gradient(circle at 50% 40%, rgba(207,182,141,.1), transparent 60%),
    linear-gradient(200deg, #12324f, #08243c);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.hero-photo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.hero-photo.ph img { display: none; }
.hero-photo.ph::after {
  content: "DIM loft"; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(207,182,141,.4); font-size: 24px; letter-spacing: .3em; font-weight: 600;
}
.hero-badge {
  position: absolute; bottom: 34px; right: 34px; z-index: 3;
  background: rgba(4,30,55,.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line-gold); border-radius: var(--r-md);
  padding: 18px 22px; max-width: 230px;
}
.hero-badge .t { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero-badge .d { color: var(--muted-d); font-size: 13px; margin-top: 6px; line-height: 1.5; }

/* CATEGORIES */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cat {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 38px; transition: .55s var(--ease); background: var(--navy);
}
.cat.cat-lg { grid-row: span 2; }
.cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: .7s var(--ease); }
/* фото-двері (малі) показуємо contain справа, не розтягуючи */
.cat-photo { position: absolute; top: 0; right: -4%; bottom: 0; width: 62%; background-size: contain; background-repeat: no-repeat; background-position: center right; opacity: .9; transition: .7s var(--ease); }
.cat:hover .cat-photo { transform: scale(1.05) translateX(-2%); }
.cat:hover .cat-bg { transform: scale(1.06); }
.cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,30,55,.94) 8%, rgba(4,30,55,.3) 60%, transparent);
}
.cat-grad-3 { background: linear-gradient(150deg, #3a2f1d, #201a0a); }
.cat-grad-4 { background: linear-gradient(150deg, #2a2436, #15101f); }
.cat-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(207,182,141,.06) 38px, rgba(207,182,141,.06) 39px);
}
.cat-inner { position: relative; z-index: 2; }
.cat .num { font-size: 12px; color: var(--gold); letter-spacing: .2em; font-weight: 600; }
.cat h3 { font-size: 26px; color: var(--light); margin: 12px 0 8px; }
.cat p { color: var(--muted-d); font-size: 14px; max-width: 320px; }
.cat .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .06em; opacity: 0; transform: translateY(8px); transition: .45s var(--ease); }
.cat .go svg { width: 15px; height: 15px; }
.cat:hover .go { opacity: 1; transform: translateY(0); }

/* ПОКРИТТЯ */
.pok-section { background: var(--white); }
.pok-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pok-card {
  background: var(--navy); color: var(--light); border-radius: var(--r-md);
  padding: 34px 30px; transition: .4s var(--ease); position: relative; overflow: hidden;
  border: 1px solid transparent;
}
.pok-card:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.pok-seg { font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .05em; }
.pok-card h3 { color: var(--light); font-size: 24px; margin: 10px 0 10px; }
.pok-card p { color: var(--muted-d); font-size: 14px; font-weight: 300; margin-bottom: 18px; }
.pok-go { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .04em; }

/* ADVANTAGES */
.adv { background: var(--navy); color: var(--light); padding: 120px 0; }
.adv .sec-head h2 { color: var(--light); }
.adv .sec-head p { color: var(--muted-d); }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.adv-item { background: var(--navy-soft); padding: 40px 34px; transition: .4s var(--ease); border: 1px solid rgba(207,182,141,.12); border-radius: var(--r-md); }
.adv-item:hover { background: #0d3050; transform: translateY(-4px); border-color: var(--line-gold); }
.adv-ico { width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--gold); margin-bottom: 24px; }
.adv-ico svg { width: 24px; height: 24px; }
.adv-item h3 { font-size: 19px; color: var(--light); margin-bottom: 10px; }
.adv-item p { color: var(--muted-d); font-size: 14px; font-weight: 300; }

/* PROCESS STRIP */
.strip { background: var(--gold); color: var(--navy); padding: 64px 0; }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.strip h2 { font-size: clamp(24px, 3vw, 34px); max-width: 620px; }
.btn-navy { background: var(--navy); color: var(--gold); }
.btn-navy:hover { background: var(--ink); transform: translateY(-2px); }

/* CONTACT */
.contact { background: var(--sugar); padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.contact-info h2 { font-size: clamp(30px, 3.6vw, 46px); color: var(--navy); margin: 20px 0 22px; }
.contact-info p { color: rgba(11,22,32,.62); font-size: 17px; font-weight: 300; margin-bottom: 34px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci { width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--line-gold); display: grid; place-items: center; color: var(--gold-deep); border-radius: 50%; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list .lbl { font-size: 15px; color: var(--gold-deep); font-weight: 600; }
.contact-list .val { color: var(--navy); font-size: 15px; }
.contact-list .val a { font-weight: 600; }

.form-card { background: var(--navy); border-radius: var(--r-lg); padding: 48px; color: var(--light); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.form-card h3 { font-size: 24px; color: var(--light); margin-bottom: 8px; }
.form-card .sub { color: var(--muted-d); font-size: 14px; margin-bottom: 30px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; font-weight: 600; }
.field input, .field select { width: 100%; padding: 15px 18px; background: rgba(241,241,229,.05); border: 1px solid var(--line-gold); border-radius: var(--r-sm); color: var(--light); font-family: inherit; font-size: 15px; transition: .3s; }
.field input::placeholder { color: rgba(241,241,229,.35); }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); background: rgba(241,241,229,.08); }
.field select {
  cursor: pointer;
  /* Safari/iOS малює select власним нативним виглядом (заокруглення, паддінги,
     стрілка), який перекриває наш border/background лише частково —
     скидаємо його явно й малюємо свою стрілку. */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CFB68D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}
.field select option { background: var(--navy); color: var(--light); }
.form-card .btn-gold { width: 100%; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--muted-d); text-align: center; margin-top: 16px; }
.form-ok { display: none; text-align: center; padding: 30px 0; }
.form-ok.show { display: block; }
.form-ok .check { width: 64px; height: 64px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); margin: 0 auto 20px; }
.form-ok .check svg { width: 30px; height: 30px; }
.form-ok h3 { color: var(--gold); }
.form-ok p { color: var(--muted-d); font-size: 15px; margin-top: 8px; }

@media (max-width: 960px) {
  section.section, .adv, .contact { padding: 80px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 420px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cats { grid-template-columns: 1fr; }
  .cat.cat-lg { grid-row: auto; }
  .pok-grid, .adv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .hero-badge { display: none; }
  .form-card { padding: 32px 24px; }
}

/* ==== Model page ==== */
.crumb { padding-top: 26px; }
.crumb ol { list-style: none; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.crumb a { color: rgba(11,22,32,.5); transition: .3s; }
.crumb a:hover { color: var(--gold-deep); }
.crumb .sep { color: rgba(11,22,32,.3); }
.crumb .cur { color: var(--navy); font-weight: 500; }
.crumb .cur-vyr { color: rgba(11,22,32,.5); }

.product { padding: 34px 0 90px; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* GALLERY */
.gallery { position: sticky; top: 100px; }
.g-main {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  height: min(600px, 78vh);
  background: radial-gradient(circle at 50% 40%, rgba(207,182,141,.08), transparent 60%), linear-gradient(200deg, #12324f, #08243c);
  border: 1px solid var(--line-gold); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  cursor: zoom-in;
}
.g-main img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.35)); transition: opacity .3s;
}
.g-empty span { color: var(--muted-d); font-size: 15px; }
.g-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.thumb {
  width: 72px; aspect-ratio: 1/1.15; border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: .3s var(--ease); background: var(--white); padding: 5px;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--line); }
.thumb.active { border-color: var(--gold); }

/* INFO */
.p-brand { color: var(--gold-deep); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.p-title { font-size: clamp(30px, 4vw, 44px); color: var(--navy); margin: 12px 0 18px; }
.p-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.p-tag { font-size: 12px; font-weight: 500; color: var(--navy); background: rgba(207,182,141,.2); padding: 7px 15px; border-radius: var(--r-pill); border: 1px solid var(--line-gold); }

.seg-box { background: var(--navy); border-radius: var(--r-lg); padding: 26px 30px; color: var(--light); margin-bottom: 28px; position: relative; overflow: hidden; }
.seg-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.seg-row { display: flex; align-items: baseline; gap: 14px; }
.seg-sign { font-size: 32px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.seg-name { font-size: 15px; color: var(--muted-d); }
.seg-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted-d); line-height: 1.5; }
.seg-note svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* OPTIONS */
.opt { margin-bottom: 26px; }
.opt-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 12px; }
.opt-label #curVar { text-transform: none; letter-spacing: 0; color: var(--navy); font-weight: 600; }
.opt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 11px 18px; border: 1px solid var(--line-dark); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--navy); background: #fff; transition: .3s var(--ease); font-family: inherit; }
.chip-static { cursor: default; }
.chip-static:hover { border-color: var(--gold); }
.chip-photo { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 6px 14px 6px 6px; }
.chip-photo img { width: 30px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--sugar); }
.chip-photo:hover { border-color: var(--gold); }
.chip-photo.active { background: var(--navy); color: var(--light); border-color: var(--navy); }
.chip-choice { cursor: pointer; }
.chip-choice:hover { border-color: var(--gold); }
.chip-choice.active { background: var(--navy); color: var(--light); border-color: var(--navy); }

.p-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }
.p-actions .btn { flex: 1; min-width: 200px; }
.p-help { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #fff; border: 1px solid var(--line-dark); border-radius: var(--r-md); font-size: 14px; color: rgba(11,22,32,.7); }
.p-help svg { width: 30px; height: 30px; color: #7360f2; flex-shrink: 0; }

/* SPECS */
.specs { padding: 0 0 90px; }
.specs-head { max-width: 600px; margin-bottom: 44px; }
.specs-head h2 { font-size: clamp(26px, 3vw, 38px); color: var(--navy); margin: 16px 0 0; }
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec-card { background: #fff; border: 1px solid var(--line-dark); border-radius: var(--r-lg); overflow: hidden; }
.spec-card h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--light); background: var(--navy); padding: 18px 26px; font-weight: 600; }
.spec-list { padding: 10px 26px 20px; list-style: none; }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; }
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { color: rgba(11,22,32,.6); }
.spec-list .v { color: var(--navy); font-weight: 600; text-align: right; }
.spec-list .spec-note { display: block; color: rgba(11,22,32,.5); font-size: 12.5px; font-style: italic; padding-top: 12px; border-bottom: none; line-height: 1.5; }
.note-list { padding: 18px 26px 22px; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.note-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(11,22,32,.75); }
.note-list svg { width: 18px; height: 18px; color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }

/* BENEFITS */
.benefits { background: var(--navy); color: var(--light); padding: 80px 0; }
.benefits .eyebrow { color: var(--gold); }
.benefits h2 { font-size: clamp(26px, 3vw, 38px); color: var(--light); margin: 16px 0 44px; max-width: 600px; }
.ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ben { background: var(--navy-soft); border: 1px solid rgba(207,182,141,.12); border-radius: var(--r-md); padding: 32px 28px; transition: .4s var(--ease); }
.ben:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.ben-ico { width: 52px; height: 52px; border: 1px solid var(--gold); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--gold); margin-bottom: 20px; }
.ben-ico svg { width: 24px; height: 24px; }
.ben h3 { font-size: 17px; margin-bottom: 8px; }
.ben p { color: var(--muted-d); font-size: 14px; font-weight: 300; }
.ben .ben-text { color: var(--light); font-size: 15px; font-weight: 400; }
@media (max-width: 960px) { .ben-grid { grid-template-columns: 1fr !important; } }

/* CTA */
.cta { padding: 90px 0; background: var(--sugar); }
.cta-card { background: linear-gradient(120deg, var(--navy), #0c3255); border-radius: var(--r-lg); padding: 70px 60px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(207,182,141,.15), transparent 50%); }
.cta-card > * { position: relative; z-index: 2; }
.cta-card h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--light); margin: 16px auto 16px; max-width: 640px; }
.cta-card p { color: var(--muted-d); font-size: 17px; font-weight: 300; max-width: 520px; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .eyebrow { color: var(--gold); justify-content: center; }
.cta .eyebrow::before { background: var(--gold); }

@media (max-width: 960px) {
  .p-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { position: static; }
  .spec-cols { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cta-card { padding: 48px 28px; }
  .p-actions .btn { min-width: 100%; }
  .crumb.wrap { padding-left: 16px; padding-right: 16px; }
}

/* ==== Modal ==== */
.modal { position: fixed; inset: 0; background: rgba(4,30,55,.6); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--white); border-radius: var(--radius); padding: 32px; max-width: 440px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); }
.modal-box h3 { font-size: 22px; margin-bottom: 4px; }
.modal-sub { color: var(--tan); font-weight: 600; margin-bottom: 20px; }
.modal-box form { display: flex; flex-direction: column; gap: 12px; }
.modal-box input, .modal-box textarea { padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; }
.modal-box input:focus, .modal-box textarea:focus { outline: 2px solid var(--tan); border-color: var(--tan); }
.modal-box textarea { min-height: 72px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 12px; color: var(--muted); }
.modal-ok { text-align: center; padding: 30px 10px; font-size: 16px; font-weight: 600; color: #4b8b5a; }

/* ==== Footer ==== */
.site-footer { background: var(--ink); color: var(--light); padding: 70px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 50px; border-bottom: 1px solid rgba(207,182,141,.14); }
.foot-brand .logo { margin-bottom: 20px; height: 40px; }
.foot-brand p { color: var(--muted-d); font-size: 14px; font-weight: 300; max-width: 280px; }
.foot-col h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col li, .foot-col a { color: var(--muted-d); font-size: 14px; transition: .3s; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 14px; }
.foot-bottom p { color: rgba(241,241,229,.4); font-size: 13px; }

/* соцмережі: футер (темний фон) і секція контактів (світлий фон) */
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-gold); color: var(--gold); transition: .25s var(--ease);
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-2px); }
.contact-list + .social-row { margin-top: 26px; }
.contact-info .social-btn { border-color: var(--line-dark); color: var(--gold-deep); }
.contact-info .social-btn:hover { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }
.contact-list .lbl a { color: inherit; }
.contact-list .lbl a:hover { color: var(--gold-deep); }

/* стара розмітка футера (сумісність зі сторінкою моделі) */
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--gold); font-size: 13px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .14em; }
.footer-grid p, .footer-grid a { font-size: 14px; color: var(--muted-d); margin-bottom: 6px; }
.footer-logo { height: 40px; margin-bottom: 14px; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(207,182,141,.14); font-size: 13px; color: rgba(241,241,229,.4); }

/* ==== Mobile ==== */
.filter-toggle { display: none; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .filters { position: fixed; inset: 0; top: 0; height: 100vh; height: 100dvh; z-index: 100; background: var(--sugar); padding: 20px; overflow-y: scroll; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; display: none; }
  .filters.open { display: block; }
  .filters-toolbar { position: sticky; top: 0; background: var(--sugar); padding-top: 4px; margin-bottom: 16px; z-index: 2; }
  .filters-toolbar .filter-reset { margin: 0; }
  .filters-toolbar .close-filters { display: block; flex-shrink: 0; width: auto; padding: 12px 18px; background: var(--black-pearl); color: var(--sugar); border: 0; border-radius: var(--r-pill); font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--black-pearl); color: var(--sugar); border: 0; border-radius: 10px; font-weight: 600; cursor: pointer; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 901px) { .filters .close-filters { display: none; } }
