/* ============================================================
   NEOFLAME — електрокаміни. Темна преміум-тема.
   ============================================================ */

:root {
  --bg:        #0d0b0a;
  --bg-2:      #14100e;
  --bg-3:      #1c1613;
  --panel:     #191411;
  --line:      #2a211c;
  --text:      #e9e2d8;
  --text-dim:  #a99f92;
  --text-mute: #7d746a;
  --gold:      #c9a06a;
  --gold-2:    #e0bd86;
  --fire:      #ff7a1a;
  --fire-glow: rgba(255,122,26,.35);
  --radius:    4px;
  --maxw:      1200px;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #17110c; }

/* тонкий темний скролбар із золотим повзунком */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #3a2f26; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: 11px; }
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #17110c;
}
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,160,106,.25); }
.btn--outline { background: transparent; border-color: var(--gold); color: var(--gold-2); }
.btn--outline:hover { background: var(--gold); color: #17110c; }
.btn--ghost { background: rgba(255,255,255,.04); border-color: rgba(233,226,216,.25); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Хедер ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
  padding: 18px 0;
}
.header.is-scrolled {
  background: rgba(13,11,10,.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__flame { width: 30px; height: 30px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(255,140,40,.45)); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-family: var(--font-head); font-size: 22px; letter-spacing: 3px; color: var(--text); font-weight: 700; }
.logo__text small { font-size: 8px; letter-spacing: 3px; color: var(--gold); }

.nav { display: flex; gap: 34px; }
.nav__link { font-size: 13px; letter-spacing: 1px; color: var(--text-dim); transition: color .2s; position: relative; }
.nav__link:hover { color: var(--gold-2); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
.nav__link:hover::after { width: 100%; }
.nav__link.is-current { color: var(--gold-2); }
.nav__link.is-current::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--text); transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* фонове фото + запасний градієнт, поки фото вантажиться */
  background:
    url("https://images.unsplash.com/photo-1648536474504-7bbf8a1ee3ab?w=1920&q=80") center 60% / cover no-repeat,
    linear-gradient(180deg, #0d0b0a 0%, #1a1310 55%, #0d0b0a 100%);
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,11,10,.94) 0%, rgba(13,11,10,.78) 42%, rgba(13,11,10,.25) 75%, rgba(13,11,10,.45) 100%),
    linear-gradient(0deg, rgba(13,11,10,1) 0%, transparent 18%),
    linear-gradient(180deg, rgba(13,11,10,.65) 0%, transparent 22%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding-top: 90px; }
.hero__content { max-width: 620px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero__title .accent { color: var(--gold); }
.hero__subtitle {
  margin: 26px 0 38px;
  font-size: 16px;
  color: var(--text-dim);
  max-width: 480px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__flame-glow {
  position: absolute;
  right: 0; bottom: 0;
  width: 60%; height: 70%;
  background: radial-gradient(ellipse at 70% 80%, var(--fire-glow), transparent 60%);
  filter: blur(40px);
  animation: flicker 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes flicker { 0% { opacity: .6; } 50% { opacity: 1; } 100% { opacity: .75; } }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 44px;
  border: 1px solid rgba(233,226,216,.4);
  border-radius: 16px;
  display: flex; justify-content: center;
  transition: border-color .25s;
}
.hero__scroll:hover { border-color: var(--gold); }
.hero__scroll span {
  width: 3px; height: 9px;
  background: var(--gold-2);
  border-radius: 2px;
  margin-top: 8px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  61% { transform: translateY(0); opacity: 0; }
}

/* ---------- Стрічка цифр ---------- */
.strip { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 32px 20px; text-align: center; border-right: 1px solid var(--line); }
.strip__item:last-child { border-right: none; }
.strip__item b {
  display: block; font-family: var(--font-head); font-size: 40px; font-weight: 600;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #a87f4e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-2); /* запасний колір, якщо clip не підтримується */
}
.strip__item span { font-size: 12px; letter-spacing: 1px; color: var(--text-mute); text-transform: uppercase; }

/* ---------- Секції загальне ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head__label {
  font-size: 12px; letter-spacing: 4px; color: var(--gold); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 14px;
}
.section-head__label::before, .section-head__label::after {
  content: ''; width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head__label::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-head__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 12px 0 16px;
}
.section-head__text { color: var(--text-dim); font-size: 15px; }

/* ---------- Фільтри ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filters__btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.filters__btn:hover { border-color: var(--gold); color: var(--gold-2); }
.filters__btn.is-active { background: var(--gold); border-color: var(--gold); color: #17110c; }

/* ---------- Сітка товарів ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2), transparent);
  transform: scaleX(0);
  transition: transform .45s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-6px); border-color: rgba(201,160,106,.5); box-shadow: 0 18px 40px rgba(0,0,0,.45); }

.card__media-wrap { position: relative; display: block; }
.card__title a { color: inherit; transition: color .2s; }
.card__title a:hover { color: var(--gold-2); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  /* світлий нейтральний фон: фото товарів здебільшого на білому/сірому */
  background: linear-gradient(160deg, #f1ece4, #dcd4c8);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* фото вписуються ЦІЛКОМ (contain), нічого не обрізається */
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--placeholder { background: linear-gradient(160deg, #241a14, #0f0b09); }
/* заглушка-полум'я, якщо немає фото */
.card__media--placeholder::after {
  content: '🔥';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; opacity: .5;
  background: radial-gradient(circle at 50% 70%, var(--fire-glow), transparent 60%);
}
.card__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(13,11,10,.8);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
}
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__cat { font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.card__title { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.card__desc { font-size: 13px; color: var(--text-dim); flex: 1; }
.card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card__spec { font-size: 11px; color: var(--text-mute); background: var(--bg-3); border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; }
.card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.card__price { font-family: var(--font-head); font-size: 26px; color: var(--gold-2); font-weight: 600; white-space: nowrap; }
.card__price small { font-size: 13px; color: var(--text-mute); }
.card__price--onreq { font-size: 15px; letter-spacing: 1px; }

/* ---------- Переваги ---------- */
.advantages { background: var(--bg-2); }
.advantages__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }

/* сітка 2×2 з тонкими розділювачами — як у преміум-референсі */
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(13,11,10,.35);
}
.adv { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.adv:nth-child(2n) { border-right: none; }
.adv:nth-child(n+3) { border-bottom: none; }
.adv:hover { background: rgba(201,160,106,.05); }

.adv__icon { color: var(--gold); margin-bottom: 16px; height: 34px; display: flex; align-items: center; }
.adv__icon svg { width: 32px; height: 32px; stroke-linecap: round; stroke-linejoin: round; }
.adv h3 {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 45px; /* вирівнює початок тексту в сусідніх комірках (1–2 рядки заголовка) */
}
.adv p { font-size: 13px; color: var(--text-dim); }
.advantages__text h2 { font-family: var(--font-head); font-size: clamp(28px, 3.5vw, 40px); text-transform: uppercase; letter-spacing: 1px; line-height: 1.15; margin-bottom: 20px; }
.advantages__text p { color: var(--text-dim); margin-bottom: 28px; }

/* ---------- Під замовлення ---------- */
.custom {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(255,122,26,.10), transparent 50%),
    linear-gradient(135deg, #1a1310 0%, #0d0b0a 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.custom::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.custom__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.custom__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 14px 0 18px;
}
.custom__title .accent { color: var(--gold); }
.custom__lead { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; max-width: 480px; }
.custom__list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.custom__list li { position: relative; padding-left: 28px; font-size: 14px; }
.custom__list li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 3px; }

.custom__steps { list-style: none; display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-bottom: none;
  background: rgba(25,20,17,.6);
  transition: background .25s, border-color .25s;
}
.step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.step:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.step:hover { background: rgba(201,160,106,.06); }
.step__num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #a87f4e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-2);
  flex-shrink: 0;
  min-width: 44px;
}
.step h3 { font-family: var(--font-head); font-size: 19px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--text-dim); }

/* золотий пункт меню */
.nav__link--gold { color: var(--gold); }

/* банер «під замовлення» у каталозі */
.custom-banner {
  margin-top: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px;
  border: 1px solid rgba(201,160,106,.35);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 90% 50%, rgba(255,122,26,.08), transparent 55%),
    var(--panel);
}
.custom-banner h3 { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.custom-banner p { color: var(--text-dim); font-size: 14px; max-width: 560px; }

/* ---------- Про нас ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__text h2 { font-family: var(--font-head); font-size: clamp(28px, 3.5vw, 42px); line-height: 1.15; margin: 12px 0 18px; text-transform: uppercase; letter-spacing: 1px; }
.about__text p { color: var(--text-dim); margin-bottom: 22px; }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about__list li { position: relative; padding-left: 28px; color: var(--text); font-size: 14px; }
.about__list li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); }
.about__figure {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    url("https://images.unsplash.com/photo-1522156373667-4c7234bbd804?w=800&h=1000&fit=crop&q=80") center / cover no-repeat,
    linear-gradient(160deg, #241a14, #0d0b0a);
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.about__figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,11,10,.45), transparent 40%);
  border-radius: inherit;
}

/* ---------- CTA-смуга ---------- */
.cta-band { background: linear-gradient(135deg, #1c1410, #0d0b0a); border-top: 1px solid var(--line); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band__text h2 { font-family: var(--font-head); font-size: clamp(26px, 3.5vw, 40px); line-height: 1.15; text-transform: uppercase; letter-spacing: 1px; }
.cta-band__text p { color: var(--text-dim); margin-top: 8px; }

/* ---------- Футер ---------- */
.footer { position: relative; background: #0a0807; border-top: 1px solid var(--line); padding: 60px 0 0; }
.footer::before {
  content: '';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(520px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.logo--footer { margin-bottom: 16px; }
.footer__desc { color: var(--text-mute); font-size: 13px; max-width: 260px; }
.footer__col h4 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer__col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 12px; transition: color .2s; }
.footer__col a:hover { color: var(--gold-2); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 24px; font-size: 12px; color: var(--text-mute); text-align: center; }

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); animation: fade .3s; }
.modal__dialog {
  position: relative;
  max-width: 460px;
  margin: 6vh auto;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 38px 34px;
  animation: pop .35s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  max-height: 88vh;
  overflow-y: auto;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--text-mute); font-size: 30px; line-height: 1; cursor: pointer; transition: color .2s; }
.modal__close:hover { color: var(--gold-2); }
.modal__title { font-family: var(--font-head); font-size: 28px; text-transform: uppercase; letter-spacing: 1px; }
.modal__subtitle { color: var(--text-dim); font-size: 14px; margin: 8px 0 24px; }

/* ---------- Форма ---------- */
.form__row { margin-bottom: 16px; }
.form__row label { display: block; font-size: 12px; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 7px; text-transform: uppercase; }
.form__row label span { color: var(--fire); }
.form input, .form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form input[readonly] { color: var(--gold-2); background: var(--bg-2); }
.form textarea { resize: vertical; }
.form__submit { width: 100%; margin-top: 6px; }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__note { font-size: 11px; color: var(--text-mute); text-align: center; margin-top: 14px; }
.form__error { color: #ff6b5e; font-size: 12px; margin-top: -8px; margin-bottom: 12px; display: none; }
.form__error.is-visible { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Успіх ---------- */
.form-success { text-align: center; padding: 20px 0; }
.form-success__icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #17110c; font-size: 34px; display: flex; align-items: center; justify-content: center; }
.form-success h3 { font-family: var(--font-head); font-size: 26px; margin-bottom: 10px; }
.form-success p { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }

/* ---------- Плаваюча кнопка ---------- */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.fab__label {
  background: rgba(13,11,10,.92);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  white-space: nowrap;
  transition: background .25s, color .25s;
  animation: fabLabelIn .6s ease .8s backwards;
}
.fab:hover .fab__label { background: var(--gold); color: #17110c; }
@keyframes fabLabelIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fab__icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #17110c;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(201,160,106,.4);
  transition: transform .25s;
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}
.fab__icon svg { width: 26px; height: 26px; stroke-linecap: round; stroke-linejoin: round; }
.fab:hover .fab__icon { transform: scale(1.08); }
@keyframes pulse { 0%,100% { box-shadow: 0 10px 30px rgba(201,160,106,.4); } 50% { box-shadow: 0 10px 40px rgba(201,160,106,.7); } }

/* ============================================================
   СТОРІНКА КАТАЛОГУ
   ============================================================ */
.page-hero {
  padding: 150px 0 40px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,122,26,.10), transparent 55%),
    var(--bg);
  text-align: center;
}
.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 12px 0 14px;
}
.page-hero__text { color: var(--text-dim); font-size: 15px; max-width: 560px; margin: 0 auto; }

.catalog--page { padding-top: 30px; }

.toolbar { display: flex; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.toolbar__search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  transition: border-color .2s;
}
.toolbar__search:focus-within { border-color: var(--gold); }
.toolbar__search svg { width: 18px; height: 18px; color: var(--text-mute); flex-shrink: 0; }
.toolbar__search input {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 0;
}
.toolbar__search input:focus { outline: none; }
.toolbar__select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s;
}
.toolbar__select:hover, .toolbar__select:focus { border-color: var(--gold); outline: none; }
.toolbar__select option { background: var(--bg-3); }

.catalog__count { font-size: 12px; letter-spacing: 1px; color: var(--text-mute); text-transform: uppercase; margin-bottom: 20px; }
.catalog__empty { text-align: center; color: var(--text-dim); padding: 40px 0; }
.catalog__more { text-align: center; margin-top: 44px; }

/* ============================================================
   СТОРІНКА ТОВАРУ
   ============================================================ */
.product { padding: 140px 0 90px; }

.breadcrumbs { display: flex; gap: 10px; font-size: 13px; color: var(--text-mute); margin-bottom: 34px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-dim); transition: color .2s; }
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs span:last-child { color: var(--gold-2); }

.product__layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }

.product__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  /* світлий фон + contain: будь-яка пропорція фото вписується без обрізання */
  background: linear-gradient(160deg, #f3eee7, #dcd4c8);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.product__photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product__photo--placeholder { background: linear-gradient(160deg, #241a14, #0f0b09); }
.product__photo--placeholder::after {
  content: '🔥';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; opacity: .5;
  background: radial-gradient(circle at 50% 70%, var(--fire-glow), transparent 60%);
}
.product__photo .card__badge { top: 16px; left: 16px; }

.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumb {
  width: 76px; height: 76px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #e9e3da;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
  opacity: .65;
}
.product__thumb:hover { opacity: 1; }
.product__thumb.is-active { border-color: var(--gold); opacity: 1; }

/* мініатюра відеоогляду: прев'ю з YouTube + значок ▶ */
.product__thumb--video { position: relative; background-size: cover; }
.product__thumb--video::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(13,11,10,.35);
  border-radius: inherit;
}
.product__thumb--video::before {
  content: '▶';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #17110c;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  padding-left: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}

.product__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 8px 0 4px;
}
.product__id { font-size: 12px; color: var(--text-mute); margin-bottom: 18px; }
.product__desc { color: var(--text-dim); font-size: 15px; margin-bottom: 26px; }

.product__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 18px;
}
.product__price .card__price { font-size: 32px; }

.product__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.product__note svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

.product__specs h2, .product__full h2, .related__title {
  font-family: var(--font-head);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.specs-table { display: grid; grid-template-columns: 1fr 1fr; }
.specs-table dt, .specs-table dd {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs-table dt { color: var(--text-mute); }
.specs-table dd { color: var(--text); text-align: right; }

.product__full { max-width: 800px; margin-top: 50px; }
.product__full p { color: var(--text-dim); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.product__full h3 {
  font-family: var(--font-head);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-2);
  margin: 26px 0 12px;
}
.product__full ul { list-style: none; margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.product__full li { position: relative; padding-left: 24px; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.product__full li::before { content: '◆'; position: absolute; left: 0; top: 4px; color: var(--gold); font-size: 10px; }

/* ---------- Лайтбокс (перегляд фото на весь екран) ---------- */
.product__photo--zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10,8,7,.94); backdrop-filter: blur(6px); }
.lightbox__img {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  animation: pop .3s ease;
  background: linear-gradient(160deg, #f3eee7, #dcd4c8);
}
/* глобальне img{display:block} перебиває атрибут hidden — повертаємо йому силу */
.lightbox__img[hidden] { display: none; }
.lightbox__video {
  position: relative;
  width: min(92vw, 1100px);
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  background: #000;
  animation: pop .3s ease;
}
.lightbox__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__close {
  position: absolute; top: 18px; right: 24px; z-index: 2;
  background: none; border: none; color: var(--text-dim);
  font-size: 42px; line-height: 1; cursor: pointer; transition: color .2s;
}
.lightbox__close:hover { color: var(--gold-2); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(25,20,17,.85);
  border: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 30px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.lightbox__nav:hover { background: var(--gold); color: #17110c; border-color: var(--gold); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 13px; letter-spacing: 2px; color: var(--text-dim);
  background: rgba(25,20,17,.8); border: 1px solid var(--line);
  padding: 6px 16px; border-radius: 20px;
}
@media (max-width: 560px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__img { max-width: 96vw; }
}

.product__notfound { text-align: center; padding: 60px 0; }
.product__notfound h1 { font-family: var(--font-head); font-size: 36px; text-transform: uppercase; margin-bottom: 12px; }
.product__notfound p { color: var(--text-dim); margin-bottom: 28px; }

.related { margin-top: 70px; padding: 0; }

/* ---------- Поява при скролі ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .advantages__inner, .about__inner, .custom__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .product__layout { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 860px) {
  .nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh; background: var(--bg-2); flex-direction: column; padding: 100px 32px; gap: 20px; transition: right .35s ease; box-shadow: -20px 0 60px rgba(0,0,0,.5); }
  .nav.is-open { right: 0; }
  .nav__link { font-size: 16px; }
  .burger { display: flex; z-index: 101; }
  .header__cta { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .strip__item:nth-child(2) { border-right: none; }
  .strip__item:nth-child(1), .strip__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: 1fr; }
  .adv { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .adv:last-child { border-bottom: none !important; }
  .adv h3 { min-height: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .modal__dialog { margin: 4vh 16px; padding: 32px 24px; }
  .toolbar { flex-direction: column; }
  .specs-table { grid-template-columns: auto 1fr; gap: 0 16px; }
  .product__price-row { flex-direction: column; align-items: stretch; text-align: center; }
  /* довгі кнопки на мобільному переносяться, а не розпирають екран */
  .btn { white-space: normal; text-align: center; line-height: 1.35; }
  .custom__inner, .custom__text, .custom__title, .custom__lead, .custom__list { min-width: 0; max-width: 100%; }
  /* плаваюча кнопка: компактніша, щоб не перекривати контент */
  .fab { bottom: 16px; right: 16px; gap: 8px; }
  .fab__label { font-size: 9px; padding: 9px 11px; letter-spacing: 1px; }
  .fab__icon { width: 50px; height: 50px; }
  .fab__icon svg { width: 22px; height: 22px; }
}
