/* MyBulka — власний стиль поверх спільного style.css:
   персиково-кремові кольори, помаранчевий акцент, Bebas Neue + DM Sans + Space Mono,
   головна з мозаїкою фото та бігучою стрічкою. */

:root {
  --bg: #f3e3c8;
  --surface: #fbf2e2;
  --surface-2: #f6e8d0;
  --text: #2a1d0f;
  --muted: #6b5a3f;
  --faint: #b0a182;
  --line: rgba(42, 29, 15, 0.1);
  --accent: #b45309;
  --accent-ink: #ffffff;
  --summer: #d97706;
  --glow-rgb: 238, 163, 98;
  --header-bg: rgba(243, 227, 200, 0.9);
  --radius: 12px;
  --serif: 'Bebas Neue', Impact, sans-serif;
  --sans: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}
html[data-theme="dark"] {
  --bg: #1a1a1a;
  --surface: #2e2216;
  --surface-2: #3c2c1b;
  --text: #f0e6d8;
  --muted: #b6a585;
  --faint: #6e5c43;
  --line: rgba(240, 230, 216, 0.1);
  --accent: #e0934a;
  --accent-ink: #2a1606;
  --summer: #f0a85e;
  --glow-rgb: 180, 83, 9;
  --header-bg: rgba(46, 32, 19, 0.9);
}

/* Теплий фон з легким світінням, як на старому сайті */
body {
  background-image:
    radial-gradient(ellipse 110% 90% at 50% 0%, rgba(var(--glow-rgb), .3), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, rgba(var(--glow-rgb), .16) 50%, var(--bg) 100%);
  background-attachment: fixed;
}

/* Заголовки — Bebas Neue */
.section-title, .hero-title, .p-title, .drawer-head h3, .empty-title, .info-title, .info-subtitle {
  font-family: var(--serif); font-weight: 400; letter-spacing: .02em;
}
.section-title { position: relative; padding-left: 16px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 72%; background: var(--accent); border-radius: 2px; }

/* Шапка */
.header-bar { border-radius: 14px; }
.logo { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .06em; }
.nav-link { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nav-indicator { height: 2px; background: var(--accent); }
.badge { background: var(--accent); color: #fff; }
.lang-switch button.active { color: var(--accent); }

/* Вкладки фільтрів — чіткі, у верхньому регістрі */
.tab { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 8px; padding: 9px 16px; }
.tabs-sub .tab { font-size: 12px; border-radius: 6px; }
.frow-label { font-family: var(--mono); font-weight: 400; letter-spacing: .14em; }
.dd-btn, .dd-opt { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dd-label { font-family: var(--mono); font-weight: 400; }
.dd-grid .dd-opt:first-child { font-family: var(--sans); font-size: 13px; }

/* Картки */
.card-brand, .p-brand { font-family: var(--mono); font-weight: 400; color: var(--accent); letter-spacing: .1em; }
.tag { background: var(--accent); color: #fff; font-family: var(--mono); font-weight: 400; }
.p-label, .count { font-family: var(--mono); font-weight: 400; }
.btn { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; }
.footer-ig, .footer-links { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* ───────── Головна: мозаїка фото ───────── */
.hero-mosaic {
  height: min(100svh, 920px); min-height: 600px; max-height: none;
  color: var(--text); background: transparent; border-radius: 0;
}
.hero-mosaic .hero-slides, .hero-mosaic .hero-shade, .hero-mosaic .hero-dots { display: none; }
/* Ліва панель і помаранчева діагональ */
.hero-mosaic::before {
  content: ''; position: absolute; inset: 0; z-index: 1; background: var(--bg);
  clip-path: polygon(0 0, 46% 0, 38% 100%, 0 100%);
}
.hero-mosaic::after {
  content: ''; position: absolute; inset: 0; z-index: 2; background: var(--accent); pointer-events: none;
  clip-path: polygon(46% 0, 47.4% 0, 39.4% 100%, 38% 100%);
  transform: translateY(-100%); transition: transform 1.1s var(--ease) .1s;
}
.hero-mosaic.ready::after { transform: none; }
.hero-tiles {
  position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; left: 37%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px;
  padding: calc(var(--header-h) + 30px) clamp(12px, 2vw, 28px) 18px 40px;
}
.hero-tile {
  position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .9s var(--ease), transform 1s var(--ease), box-shadow .4s var(--ease);
  transition-delay: calc(var(--d) * 90ms + 250ms);
}
.hero-mosaic.ready .hero-tile { opacity: 1; transform: none; }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-tile:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .2); z-index: 2; }
.hero-tile:hover img { transform: scale(1.06); }
.hero-mosaic .hero-content {
  z-index: 3; top: 50%; bottom: auto; transform: translateY(-40%);
  left: clamp(24px, 5vw, 80px); right: auto; max-width: min(380px, 32vw);
}
.hero-mosaic .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .24em; color: var(--muted); margin-bottom: 18px;
}
.hero-mosaic .hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.hero-mosaic .hero-title { font-size: clamp(44px, 5.4vw, 76px); line-height: .94; margin-bottom: 20px; }
.hero-mosaic .hero-sub { font-family: var(--sans); font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.hero-mosaic .hero-actions { flex-direction: column; align-items: flex-start; gap: 2px; }
.hero-link {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 8px 0; transition: color .25s;
}
.hero-link::before { content: '·'; color: var(--accent); margin-right: 10px; display: inline-block; transition: margin-right .3s var(--ease); }
.hero-link-main { color: var(--text); }
.hero-link-main::before { content: '→'; }
.hero-link:hover { color: var(--accent); }
.hero-link:hover::before { margin-right: 16px; }

/* Бігуча стрічка */
.ticker { background: var(--accent); height: 42px; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-row { display: flex; align-items: center; flex-shrink: 0; min-width: 100vw; }
.ticker span, .ticker b { font-family: var(--serif); font-weight: 400; font-size: 16px; letter-spacing: .16em; color: #fff; white-space: nowrap; padding: 0 20px; }
.ticker b { padding: 0; }
.ticker i { font-style: normal; font-size: 10px; color: #fff; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ───────── Телефон: слайдер фото зверху, текст під ним ───────── */
@media (max-width: 760px) {
  .hero-mosaic { height: auto; min-height: 0; display: block; }
  .hero-mosaic::before, .hero-mosaic::after, .hero-tiles { display: none; }
  .hero-mosaic .hero-slides { display: block; position: relative; inset: auto; height: 50svh; min-height: 300px; border-radius: 0 0 24px 24px; overflow: hidden; }
  .hero-mosaic .hero-dots { display: flex; position: absolute; top: calc(50svh - 30px); left: 50%; transform: translateX(-50%); bottom: auto; }
  .hero-mosaic .hero-content { position: relative; top: auto; left: auto; transform: none; max-width: none; padding: 26px 20px 30px; }
  .hero-mosaic .hero-title { font-size: clamp(40px, 11vw, 54px); }
  .hero-mosaic .hero-actions { align-items: stretch; gap: 0; }
  .hero-link { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
  .hero-link::after { content: '›'; font-size: 20px; color: var(--faint); }
}

/* Смуга прокрутки — помаранчева, як акцент MyBulka */
:root { --scroll: #b45309; --scroll-hover: #c9620a; }
html[data-theme="dark"] { --scroll: #e0934a; --scroll-hover: #f0a85e; }
