/* ============================================================
   OBRIY — світла холодна тема
   Та сама холодна палітра (бетон, сталь), тільки в світлому
   ключі: білі й світло-сірі поверхні, глибокий сталевий акцент.
   ============================================================ */

:root {
  --bg:        #F5F6F7;
  --surface:   #FFFFFF;
  --surface-2: #ECEEF1;
  --line:      #DBDFE3;
  --line-soft: #E7E9EC;
  --text:      #16181C;
  --muted:     #5B626A;
  --dim:       #98A0A8;
  --accent:    #3D5670;
  --sale:      #B23B30;
  --ok:        #3F7657;

  --header-h:  132px;
  --wrap:      1400px;
  --radius:    2px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- типографіка ---------- */

h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }

.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}

.section-title {
  font-size: clamp(24px, 3vw, 38px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 300;
}

.section-sub { color: var(--muted); font-size: 14px; margin-top: 10px; }

.eyebrow {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.32em; color: var(--accent);
}

.link-more {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted); border-bottom: 1px solid var(--line);
  padding-bottom: 4px; transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-more:hover { color: var(--text); border-color: var(--accent); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.2em; border: 1px solid var(--line);
  border-radius: var(--radius); background: transparent; color: var(--text);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { border-color: var(--accent); background: var(--surface-2); }

.btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============================================================
   ШАПКА
   ============================================================ */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 246, 247, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-top {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px; padding: 24px 0 18px;
}

/* text-indent компенсує «хвіст», який letter-spacing лишає після
   останньої літери: без нього слово оптично сидить лівіше центру. */
.logo {
  font-size: 26px; font-weight: 300; letter-spacing: 0.3em;
  text-transform: uppercase; white-space: nowrap;
  text-align: center; text-indent: 0.3em;
}
.header-left, .header-right {
  display: flex; align-items: center; gap: 22px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
/* z-index потрібен, щоб випадні панелі (мова, пошук) лягали
   поверх рядка навігації, а не під напис Sale.
   Дрібний gap — щоб іконки читались як одна група, а не як
   окремі розкидані кнопки; ім'я в Instagram відсунуте окремо. */
.header-right { justify-content: flex-end; position: relative; z-index: 2; gap: 2px; }
.header-left a, .header-right a { color: var(--muted); transition: color .3s var(--ease); }
.header-left a:hover, .header-right a:hover { color: var(--text); }

.header-city { color: var(--dim); font-size: 12px; letter-spacing: .08em; }

/* Instagram у шапці — іконка з ніком, поруч із містом */
.header-ig {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted) !important; font-size: 12px;
  letter-spacing: .06em; text-transform: none; white-space: nowrap;
  margin-right: 14px;
  transition: color .3s var(--ease);
}
.header-ig:hover { color: var(--text) !important; }
.header-ig svg {
  width: 17px; height: 17px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 1.4;
}

.icon-btn { position: relative; display: inline-flex; padding: 4px; color: var(--muted); transition: color .3s var(--ease); }
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.search-btn.is-open { color: var(--text); }

.search-panel {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 150;
  width: 300px; max-width: calc(100vw - 40px);
  background: none; border: none; box-shadow: none; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.search-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-panel input {
  width: 100%; padding: 8px 2px 10px; background: none;
  border: none; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px;
}
.search-panel input::placeholder { color: var(--dim); }
.search-panel input:focus { outline: none; border-bottom-color: var(--accent); }

/* перемикач мов — один значок глобуса з кодом і випадним списком */
.lang-switch { position: relative; display: inline-flex; align-items: center; }

.lang-toggle { display: inline-flex; align-items: center; gap: 4px; }
.lang-toggle.is-open { color: var(--text); }
.lang-code { font-size: 10px; letter-spacing: .08em; font-weight: 600; line-height: 1; }

.lang-menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 150;
  min-width: 150px; padding: 6px 0;
  background: var(--surface); box-shadow: 0 8px 26px rgba(20, 22, 26, .14);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-opt {
  text-align: left; padding: 9px 18px; font-size: 13px;
  color: var(--muted); white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-opt:hover { color: var(--text); background: var(--surface-2); }
.lang-opt.is-on { color: var(--text); font-weight: 600; }

@media (max-width: 1000px) {
  .search-panel { right: -16px; }
}

.cart-count {
  position: absolute; top: -4px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: none; align-items: center; justify-content: center;
  background: var(--accent); color: var(--bg);
  font-size: 10px; font-weight: 600; border-radius: 9px;
}

/* --- головна навігація --- */

.nav-bar { border-top: 1px solid var(--line-soft); }

.nav {
  display: flex; align-items: center; justify-content: center;
  gap: 46px; list-style: none; padding: 0;
}

.nav > li { position: relative; }

.nav > li > a {
  display: block; padding: 17px 0;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); transition: color .3s var(--ease);
}
.nav > li > a::after {
  content: ''; display: block; height: 1px; margin-top: 6px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav > li > a:hover, .nav > li > a.active { color: var(--text); }
.nav > li > a:hover::after, .nav > li > a.active::after { transform: scaleX(1); }

.nav .sale > a { color: var(--sale); }

/* випадне меню підкатегорій */
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 210px; padding: 14px 0;
  background: none; border: none;
  list-style: none; opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav > li:hover .submenu,
.nav > li:focus-within .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.submenu a {
  display: block; padding: 9px 24px; font-size: 13px; font-weight: 600;
  color: #000; white-space: nowrap;
  text-shadow: 0 1px 1px rgba(245,246,247,.9), 0 0 5px rgba(245,246,247,.85), 0 0 5px rgba(245,246,247,.85);
  transition: color .25s var(--ease);
}
.submenu a:hover {
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(20,22,26,.75), 1px -1px 0 rgba(20,22,26,.75),
    -1px 1px 0 rgba(20,22,26,.75), 1px 1px 0 rgba(20,22,26,.75),
    0 1px 6px rgba(20,22,26,.5);
}

/* бургер */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 1px; background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: flex-end;
  overflow: hidden; border-bottom: none;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.05) contrast(1.03) brightness(1.02);
  animation: kenburns 26s var(--ease) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.5%, -1.5%, 0); }
}

.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(245,246,247,.05) 38%, rgba(245,246,247,.22) 100%),
    linear-gradient(to right, rgba(245,246,247,.15), transparent 48%);
}

/* Відступ тримає кнопки на місці після того, як вислів переїхав
   із hero у сусідній блок під ним. */
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 0 0 126px; }

.hero h1 {
  font-size: clamp(30px, 5vw, 62px);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 300; margin: 16px 0 20px; max-width: 15ch;
}

.hero p {
  color: #000; max-width: 46ch; margin-bottom: 38px; font-size: 16px; font-weight: 500;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Вислів під кнопками — тим самим Inter, що й уся сторінка, прямим
   накресленням, кегль як у заголовків категорій (.cat-card h3).

   Живе поза .hero навмисно: у hero стоїть overflow:hidden (він тримає
   ken-burns), і текст, опущений нижче, там просто обрізало б. Тому це
   сусідній блок, піднятий негативним відступом на низ фото. Сторінка
   від цього не росте — блок лягає в уже наявний простір. */
.hero-credo {
  position: relative; z-index: 2;
  /* значення прив'язане до висоти двох рядків: коли міняється кегль,
     міняється й воно, інакше напис поповзе вниз */
  margin-top: -49px;
}

/* кегль і колір — ті самі, що в пунктів меню (.nav > li > a):
   12px і приглушений --muted, тому напис читається так само тихо */
.hero-credo p {
  margin: 0; max-width: none;
  font-size: 18px; line-height: 1.6;
  font-weight: 300; letter-spacing: .01em;
  color: var(--muted);
}

.hero-scroll {
  position: absolute; right: 40px; bottom: 92px; z-index: 1;
  writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--dim);
}

/* ============================================================
   СТРІЧКА БРЕНДІВ
   ============================================================ */

/* Смуга брендів не має різати сторінку рискою: дим ущільнюється
   до середини й розчиняється назад у фон зверху та знизу. */
.marquee-block {
  /* верхній відступ зменшено рівно на стільки, на скільки опустився
     вислів над стрічкою — сумарна висота сторінки не змінилась */
  padding: 90px 0 22px; border-bottom: none;
  background: linear-gradient(180deg,
    var(--bg) 0%,
    var(--surface-2) 34%,
    var(--surface-2) 60%,
    var(--bg) 100%);
}

.marquee {
  position: relative; overflow: hidden;
  margin-bottom: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee var(--speed, 52s) linear infinite;
}
.marquee--reverse .marquee-track { animation-direction: reverse; }

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.brand-tile {
  flex: 0 0 auto; width: 210px; height: 118px;
  border: none; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.brand-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .35s var(--ease); }
.brand-tile:hover { box-shadow: 0 10px 26px rgba(20,22,26,.12); transform: translateY(-3px); }
.brand-tile:hover img { opacity: 1; }

/* Підпис під стрічкою брендів, притиснутий праворуч.
   Кегль і колір ті самі, що у вислові під кнопками й у меню. */
/* Розрив рядка приходить із тексту (<br>), тому ширину не обмежуємо —
   інакше з'явився б третій рядок. margin-right відсуває підпис від
   правого краю, margin-top опускає його нижче під стрічку. */
.marquee-note {
  /* Верхній відступ опускає підпис на середину проміжку між стрічкою
     й наступною секцією. Від'ємний нижній компенсує його рівно на ту
     саму величину, тому блок лишається тієї самої висоти, а сторінка
     не росте. */
  margin: 97px 64px -53px auto; max-width: none;
  text-align: right;
  font-size: 15px; line-height: 1.65;
  font-weight: 300; letter-spacing: .01em;
  color: var(--muted);
}

@media (max-width: 900px) {
  /* на вузькому екрані два довгі рядки не вміщаються — знімаємо
     жорсткий перенос і повертаємо текст ліворуч */
  .marquee-note { text-align: left; margin: 26px 0 0; }
  .marquee-note br { display: none; }
}

/* запасний варіант, якщо в бренду немає файлу логотипа */
.brand-tile__text {
  padding: 0 18px; text-align: center; font-size: 15px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .hero-media img { animation: none; }
}

/* ============================================================
   КАТЕГОРІЇ
   ============================================================ */

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.cat-card {
  position: relative; min-height: 460px; overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  justify-content: flex-end; padding: 34px;
}
.cat-card__bg { position: absolute; inset: 0; z-index: 0; }
.cat-card__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.15) contrast(1.03) brightness(.93);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.cat-card:hover .cat-card__bg img { transform: scale(1.07); filter: grayscale(.05) contrast(1.06) brightness(.98); }
.cat-card__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(245,246,247,.72) 8%, rgba(245,246,247,.1) 55%, rgba(245,246,247,.18));
}

.cat-card__body { position: relative; z-index: 1; }
.cat-card h3 {
  font-size: 27px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 300; margin-bottom: 16px;
}
.cat-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cat-card li a {
  font-size: 13px; color: var(--muted);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.cat-card li a:hover { color: var(--text); border-color: var(--accent); }

/* ============================================================
   КАРТКИ ТОВАРІВ
   ============================================================ */

.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.products-grid--wide { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

.product-card {
  position: relative; background: none;
  border: none;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease);
}
.product-card:hover { transform: translateY(-4px); }

.product-media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }

.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.16em; background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
.product-badge--sale { background: var(--sale); border-color: var(--sale); color: #fff; }

/* сердечко «в обране» — картки є на всіх сторінках, тож стиль тут */
.product-wish {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--muted); filter: drop-shadow(0 1px 2px rgba(255,255,255,.75)) drop-shadow(0 0 5px rgba(255,255,255,.55));
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.product-wish svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.product-wish:hover { color: var(--sale); transform: scale(1.08); }
.product-wish.is-on { color: var(--sale); }
.product-wish.is-on svg { fill: currentColor; }

/* іконка людини в шапці, коли клієнт увійшов */
.account-btn.is-in { color: var(--accent); }

.product-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 13px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  text-align: center; font-weight: 600;
  background: none; border: none; color: var(--text);
  text-shadow: 0 1px 3px rgba(245,246,247,.9), 0 0 8px rgba(245,246,247,.8);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.product-card:hover .product-add { opacity: 1; transform: translateY(0); }
.product-add:hover { color: var(--accent); }

.product-info { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.product-brand {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.24em; color: var(--accent);
}
.product-name { font-size: 15px; font-weight: 400; line-height: 1.4; }
.product-meta { font-size: 12px; color: var(--dim); }

.product-price { margin-top: auto; padding-top: 8px; font-size: 16px; letter-spacing: .02em; }
.product-price .old {
  color: var(--dim); text-decoration: line-through; font-size: 13px; margin-right: 9px;
}
.product-price .now--sale { color: var(--sale); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 90px 20px; color: var(--muted);
}
.empty-state h3 { font-size: 20px; margin-bottom: 10px; color: var(--text); letter-spacing: .08em; text-transform: uppercase; font-weight: 300; }

/* ============================================================
   СМУГА-ПАРАЛАКС
   ============================================================ */

.strip {
  position: relative; min-height: 480px; display: flex; align-items: center;
  overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.strip__bg { position: absolute; inset: 0; background: #0B0C0E; }
.strip__bg img,
.strip__bg video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.15) contrast(1.04);
}
.strip__bg::after {
  content: ''; position: absolute; inset: 0;
  /* текст лежить по обидва боки, тому серпанок рівний по всій ширині */
  background: rgba(11, 12, 14, .5);
}
.strip__wrap { position: relative; z-index: 1; }
/* заголовок із кнопкою — ліва половина, абзац — права */
.strip__body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 70px; align-items: center;
}
/* вужчий блок, притиснутий до правого краю: рядки виходять рівніші,
   balance не лишає в кінці самотнього короткого хвостика */
.strip__text {
  /* правий край упирається в поле сторінки, тому блок їде вправо за
     рахунок ширини: кожні 38px — це ~1 см зсуву початку рядків */
  max-width: 346px; justify-self: end;
  text-wrap: balance;
  font-size: 13px; line-height: 1.8;
  /* зсув візуальний, тому сітка й висота секції лишаються ті самі */
  position: relative; left: 24px; top: 30px;
}
/* зсув чисто візуальний — сітка й висота секції від нього не міняються */
.strip__main { position: relative; left: 40px; top: 40px; }
/* світлий текст — на темному відео чорний просто не читається */
.strip h2 {
  font-size: clamp(12px, 1.3vw, 17px); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 300; margin: 0 0 30px;
  color: #F2F4F6;
}
.strip p { color: #C3CAD1; margin: 0; }
/* ~2.5 см нижче заголовка; секція має запас висоти, тому не росте */
.strip .btn { margin-top: 95px; color: #F2F4F6; border-color: rgba(242,244,246,.42); }
.strip .btn:hover { background: rgba(242,244,246,.12); border-color: #F2F4F6; }

/* на вузькому екрані колонки складаються в одну, а порядок повертається
   до звичного: заголовок → текст → кнопка */
@media (max-width: 900px) {
  .strip__body { display: flex; flex-direction: column; gap: 26px; }
  .strip__main { display: contents; position: static; }
  .strip h2 { order: 1; margin: 0; }
  .strip__text { order: 2; max-width: none; text-wrap: initial; position: static; }
  .strip .btn { order: 3; align-self: flex-start; margin-top: 0; }
}

/* ============================================================
   ПЕРЕВАГИ
   ============================================================ */

.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
.usp {
  background: var(--bg); padding: 40px 28px; text-align: center;
}
.usp svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.2; margin: 0 auto 16px; }
.usp h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 8px; font-weight: 500; }
.usp p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   МАНІФЕСТ
   ------------------------------------------------------------
   Єдине місце на сайті з антиквою: тут не продають, а говорять,
   тому текст навмисно відрізняється від інтерфейсного Inter.
   Тонка лінія зверху — обрій, з якого й почалась назва.
   ============================================================ */

/* у секції лишились тільки лінія та підпис, тож колишні відступи під
   повний маніфест утворювали порожню діру перед футером */
.manifesto { padding: 40px 0 46px; text-align: center; }

.manifesto__inner { max-width: 820px; }

.manifesto__horizon {
  display: block; width: 132px; height: 1px; margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .55;
}

.manifesto__lead {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 3.2vw, 39px);
  font-weight: 300; line-height: 1.4; color: var(--text);
  letter-spacing: .004em; text-wrap: balance;
}

.manifesto__call {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(19px, 2.05vw, 26px);
  font-weight: 300; font-style: italic; line-height: 1.72;
  color: var(--muted); margin-top: 42px;
}

.manifesto__sign {
  margin-top: 28px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .3em;
  color: var(--accent);
}

@media (max-width: 700px) {
  .manifesto { padding: 78px 0 84px; }
  .manifesto__horizon { width: 92px; margin-bottom: 38px; }
  .manifesto__call { margin-top: 30px; }
  .manifesto__sign { margin-top: 38px; letter-spacing: .22em; }
}

/* ============================================================
   СТОРІНКА-ЗАГОЛОВОК
   ============================================================ */

.page-head { padding: 62px 0 44px; border-bottom: 1px solid var(--line-soft); }
.breadcrumb { font-size: 12px; color: var(--dim); margin-bottom: 16px; letter-spacing: .06em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.page-head h1 {
  font-size: clamp(28px, 4.2vw, 50px); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 300;
}
.page-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; }

/* ============================================================
   КАТАЛОГ: ФІЛЬТРИ
   ============================================================ */

.catalog-layout {
  display: grid; grid-template-columns: 258px 1fr; gap: 42px;
  align-items: start; padding: 46px 0 100px;
}

.filters { position: sticky; top: calc(var(--header-h) + 20px); }

.filter-group { border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
.filter-group:first-child { padding-top: 0; }

.filter-group h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted); margin-bottom: 14px; font-weight: 500;
}

.filter-list { list-style: none; display: flex; flex-direction: column; gap: 3px; max-height: 264px; overflow-y: auto; }
.filter-list::-webkit-scrollbar { width: 3px; }
.filter-list::-webkit-scrollbar-thumb { background: var(--line); }

.filter-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--muted); padding: 5px 0;
  transition: color .25s var(--ease);
}
.filter-opt:hover { color: var(--text); }
.filter-opt input { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }
.filter-opt .count { margin-left: auto; font-size: 11px; color: var(--dim); }

.filter-sub { padding-left: 24px; }

.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input {
  width: 100%; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); font-size: 13px;
  border-radius: var(--radius);
}
.price-inputs input:focus { outline: none; border-color: var(--accent); }
.price-inputs span { color: var(--dim); }

.catalog-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-soft);
}
.result-count { font-size: 13px; color: var(--muted); }
.result-count b { color: var(--text); font-weight: 500; }

.select {
  padding: 11px 16px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-size: 13px; border-radius: var(--radius); cursor: pointer;
}
.select:focus { outline: none; border-color: var(--accent); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; font-size: 12px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius);
}
.chip button { color: var(--dim); line-height: 1; font-size: 15px; }
.chip button:hover { color: var(--sale); }

.filters-toggle { display: none; }

/* ============================================================
   СТОРІНКА ТОВАРУ
   ============================================================ */

/* Галерею тримаємо в фіксованій колонці, а не в частці від екрана:
   на широкому моніторі 1.15fr розтягувало фото майже на висоту сторінки. */
.product-layout {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 60px;
  padding: 42px 0 90px; align-items: start; max-width: 1160px;
}

.gallery-main {
  position: relative; aspect-ratio: 3 / 4; background: var(--surface); border: 1px solid var(--line-soft);
  overflow: hidden; margin-bottom: 10px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main:focus { outline: none; }
.gallery-main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: rgba(245, 246, 247, .82); border: 1px solid var(--line);
  color: var(--text); opacity: 0; transition: opacity .25s var(--ease), background .25s var(--ease);
  backdrop-filter: blur(4px);
}
.gallery-main:hover .gallery-arrow, .gallery-main:focus-visible .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: var(--surface); border-color: var(--accent); }
.gallery-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }

@media (max-width: 1000px) {
  .gallery-arrow { opacity: 1; }
}

/* збільшене фото товару на весь екран */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: rgba(8, 9, 10, .95);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-out; }

.lightbox-close {
  position: absolute; top: 22px; right: 26px; z-index: 2;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  color: #E8EAED; transition: color .2s var(--ease), transform .2s var(--ease);
}
.lightbox-close:hover { color: #fff; transform: scale(1.08); }
.lightbox-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: #E8EAED; transition: color .2s var(--ease), transform .2s var(--ease);
}
.lightbox-arrow:hover { color: #fff; }
.lightbox-arrow svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lightbox-arrow--prev { left: 18px; }
.lightbox-arrow--next { right: 18px; }

@media (max-width: 700px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 14px; }
  .lightbox-arrow--prev { left: 6px; }
  .lightbox-arrow--next { right: 6px; }
}

.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs button {
  width: 68px; aspect-ratio: 3 / 4; border: 1px solid var(--line-soft);
  overflow: hidden; opacity: .55; transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-brand { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.pd-title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 300; margin: 12px 0 16px; letter-spacing: .01em; }
.pd-price { font-size: 23px; margin-bottom: 6px; }
.pd-price .old { color: var(--dim); text-decoration: line-through; font-size: 16px; margin-right: 12px; }
.pd-price .now--sale { color: var(--sale); }
.pd-save { font-size: 13px; color: var(--ok); margin-bottom: 26px; }

.pd-desc { color: var(--muted); font-size: 14px; line-height: 1.7; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; }

.pd-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 10px; }

.size-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.size-btn {
  min-width: 50px; padding: 10px 13px; text-align: center;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px;
  border-radius: var(--radius); transition: all .25s var(--ease);
}
.size-btn:hover { border-color: var(--accent); }
.size-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.pd-actions { display: flex; gap: 10px; margin-bottom: 24px; }
.pd-actions .btn { flex: 1; padding: 13px 20px; }

.pd-facts { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.pd-facts li { display: flex; gap: 12px; align-items: flex-start; }
.pd-facts svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.3; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   КОШИК
   ============================================================ */

.cart-layout { display: grid; grid-template-columns: 1fr 336px; gap: 38px; align-items: start; padding: 42px 0 90px; }

.cart-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: center;
}
.cart-item__img { aspect-ratio: 3 / 4; background: var(--surface-2); border: 1px solid var(--line-soft); overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-size: 15px; font-weight: 400; margin-bottom: 5px; }
.cart-item__meta { font-size: 12px; color: var(--dim); margin-bottom: 12px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 32px; height: 32px; color: var(--muted); transition: color .25s var(--ease), background .25s var(--ease); }
.qty button:hover { color: var(--text); background: var(--surface-2); }
.qty span { min-width: 36px; text-align: center; font-size: 13px; }

.cart-remove { display: block; margin-top: 10px; font-size: 12px; color: var(--dim); transition: color .25s var(--ease); }
.cart-remove:hover { color: var(--sale); }

.cart-item__price { font-size: 16px; white-space: nowrap; }

.summary { background: var(--surface); border: 1px solid var(--line); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 14px; font-weight: 500; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 13px; color: var(--muted); }
.summary-row.total { padding: 0 0 4px; font-size: 19px; color: var(--text); }
.summary-note { font-size: 11px; color: var(--dim); line-height: 1.5; }

/* Форма замовлення щільніша за решту форм сайту: вона стоїть у вузькій
   колонці збоку, тому підписи винесені в самі поля, а не над ними. */
.summary #order-form { margin-top: 18px; }
.summary .field { margin-bottom: 8px; }
.summary .field input,
.summary .field textarea { padding: 11px 12px; font-size: 13px; }
.summary .field textarea { min-height: 54px; }
.summary .field .error { font-size: 11px; margin-top: 3px; }
.summary .btn { padding: 13px 20px; }

/* місто й відділення — в один рядок */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* коментар розкривається тільки за потреби */
.note-toggle { margin: 4px 0 12px; }
.note-toggle summary {
  font-size: 12px; color: var(--muted); cursor: pointer;
  padding: 3px 0; list-style: none; transition: color .25s var(--ease);
}
.note-toggle summary::-webkit-details-marker { display: none; }
.note-toggle summary::before { content: '+ '; color: var(--dim); }
.note-toggle[open] summary::before { content: '− '; }
.note-toggle summary:hover { color: var(--text); }
.note-toggle .field { margin: 8px 0 0; }

.pay-note { font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.4; text-align: center; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text); font-size: 14px; border-radius: var(--radius);
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 84px; resize: vertical; }
.field .error { display: none; color: var(--sale); font-size: 12px; margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: var(--sale); }
.field.invalid .error { display: block; }

.cart-empty { text-align: center; padding: 100px 20px; }
.cart-empty h2 { font-size: 24px; font-weight: 300; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.cart-empty p { color: var(--muted); margin-bottom: 30px; }

.order-done { text-align: center; padding: 90px 20px; max-width: 560px; margin: 0 auto; }
.order-done .tick {
  width: 62px; height: 62px; border: 1px solid var(--ok); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
  color: var(--ok); font-size: 26px;
}
.order-done h2 { font-size: 26px; font-weight: 300; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.order-done p { color: var(--muted); margin-bottom: 12px; }
.order-done .order-id { font-size: 18px; color: var(--accent); letter-spacing: .1em; margin-bottom: 30px; }

/* ============================================================
   СІТКА БРЕНДІВ (brands.html)
   ============================================================ */

.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 46px 0 100px; }

.brand-card {
  border: none; background: none;
  transition: transform .3s var(--ease);
}
.brand-card:hover { transform: translateY(-4px); }
.brand-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.brand-card__media img { width: 100%; height: 100%; object-fit: cover; }
.brand-card__body { padding: 18px 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand-card__body h3 { font-size: 15px; font-weight: 400; letter-spacing: .04em; }
.brand-card__body span { font-size: 12px; color: var(--dim); white-space: nowrap; }

/* ============================================================
   ТЕКСТОВІ СТОРІНКИ
   ============================================================ */

.prose { max-width: 760px; padding: 56px 0 100px; }
.prose h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .12em; font-weight: 300; margin: 40px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 16px; line-height: 1.8; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 18px 20px; }
.prose li { margin-bottom: 9px; line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 500; }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 56px 0 100px; align-items: start; }
.contact-block { margin-bottom: 34px; }
.contact-block h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.contact-block a, .contact-block p { color: var(--text); font-size: 17px; line-height: 1.7; }
.contact-block a:hover { color: var(--accent); }

/* Instagram на сторінці контактів */
.contact-ig { display: inline-flex; align-items: center; gap: 11px; }
.contact-ig svg {
  width: 21px; height: 21px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 1.4;
}

/* ============================================================
   ФУТЕР
   ============================================================ */

.footer { border-top: 1px solid var(--line-soft); padding: 76px 0 34px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; margin-bottom: 56px; }
/* тепер це перший елемент колонки, тому рядок стає врівень із
   заголовками сусідніх колонок */
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 0; max-width: 34ch; line-height: 1.75; }

.footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a, .footer ul li { font-size: 14px; color: var(--muted); transition: color .25s var(--ease); }
.footer ul a:hover { color: var(--text); }
.footer-phone { font-size: 17px; color: var(--text) !important; letter-spacing: .02em; }

/* Instagram у підвалі */
.footer-ig { display: inline-flex; align-items: center; gap: 9px; }
.footer-ig svg {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 1.4;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
}
.footer-bottom a { color: var(--dim); }
.footer-bottom a:hover { color: var(--muted); }

/* ============================================================
   TOAST
   ============================================================ */

.toast {
  position: fixed; right: 26px; bottom: 26px; z-index: 300;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 22px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; opacity: 0; transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none; max-width: calc(100vw - 52px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .tick { color: var(--ok); }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1200px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav { gap: 30px; }
}

@media (max-width: 1000px) {
  :root { --header-h: 108px; }
  .container { padding: 0 22px; }

  .header-top { padding: 16px 0; gap: 12px; }
  /* на телефоні від Instagram лишаємо саму іконку — нік з'їдає місце */
  .header-left a, .header-city, .hero-scroll, .header-ig span { display: none; }
  .logo { font-size: 20px; letter-spacing: .22em; text-indent: .22em; }
  .burger { display: flex; }

  /* меню кріпимо до самої шапки, а не до фіксованої висоти:
     висота шапки різна на різних екранах */
  .nav-bar {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    background: var(--bg); border-top: none; border-bottom: none;
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .nav-bar.open {
    max-height: 78vh; overflow-y: auto; border-bottom: 1px solid var(--line);
  }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 22px; }
  .nav > li { border-bottom: 1px solid var(--line-soft); }
  .nav > li > a { padding: 15px 0; font-size: 14px; }
  .nav > li > a::after { display: none; }

  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    border: none; background: transparent; padding: 0 0 12px 14px; min-width: 0;
  }
  .submenu a { padding: 7px 0; }

  .catalog-layout { grid-template-columns: 1fr; gap: 0; }
  .filters {
    position: static; max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease); margin-bottom: 0;
  }
  .filters.open { max-height: 1800px; margin-bottom: 30px; }
  .filters-toggle { display: inline-flex; }

  .product-layout { grid-template-columns: 1fr; gap: 34px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .contacts-grid { grid-template-columns: 1fr; gap: 34px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 340px; }
  .section { padding: 66px 0; }
}

@media (max-width: 700px) {
  .products-grid, .products-grid--wide { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-info { padding: 14px 14px 18px; }
  .product-name { font-size: 14px; }
  .product-add { opacity: 1; transform: none; font-size: 10px; padding: 11px; }
  .brand-tile { width: 158px; height: 92px; }
  .cart-item { grid-template-columns: 84px 1fr; }
  .cart-item__price { grid-column: 2; }
  .hero-inner { padding-bottom: 60px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  /* дві колонки лишаємо — так каталог на телефоні гортається швидше */
  .products-grid, .products-grid--wide, .brands-grid { gap: 10px; }
  .usp-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .product-info { padding: 12px 12px 16px; gap: 5px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 14px; }
  .product-brand { font-size: 9px; letter-spacing: .2em; }
}
