/* ==========================================================================
   Fade House by Barber Taisiia — общие стили
   Палитра, типографика, компоненты, хедер/футер, анимации
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #16241C;
  --bg-section: #1E3328;
  --cream: #EFE8D6;
  --cta: #8E2A25;
  --cta-hover: #a8332c;
  --brass: #C9A227;
  --text: #F4F0E4;
  --text-secondary: #9AA69C;
  --graphite: #3A3A3C;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-h: 72px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 64px 0;
  position: relative;
}
.section--alt { background: var(--bg-section); }
.section-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 12px;
}
.section-kicker {
  color: var(--brass);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: inline-block;
}
.section-lead {
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn-cta {
  background: var(--cta);
  color: var(--text);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(142,42,37,.35);
}
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-2px); }
.btn-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
}
.btn-cta.is-shining::after { animation: shine 1.1s ease; }
@keyframes shine {
  0% { left: -60%; }
  100% { left: 130%; }
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover { background: var(--cream); color: var(--bg); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 200;
  background: rgba(22,36,28,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(239,232,214,.08);
  transition: background .3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-transform: uppercase;
}
.logo img { height: 38px; width: 38px; border-radius: 50%; object-fit: cover; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 28px; }
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brass);
  transition: width .25s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-book { display: none; }

.burger {
  width: 44px; height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: none; border: none;
}
.burger span {
  width: 24px; height: 2px; background: var(--cream);
  transition: transform .3s ease, opacity .3s ease;
}
.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); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform .35s ease;
  padding-top: var(--header-h);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--cream);
}
.mobile-menu a.is-active { color: var(--brass); }

/* ---------- Floating book button (mobile) ---------- */
.float-book {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  display: flex;
}
.float-book .btn { width: 100%; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--brass);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding: 0 24px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--bg-section);
  padding: 18px 0;
  border-top: 1px solid rgba(239,232,214,.08);
  border-bottom: 1px solid rgba(239,232,214,.08);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
}
.trust-item .num { color: var(--brass); font-family: var(--font-display); }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.card {
  background: var(--bg-section);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(239,232,214,.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  border-color: rgba(201,162,39,.4);
}
.card__media { aspect-ratio: 1/1; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 22px; }
.card__title { font-family: var(--font-display); font-size: 1.15rem; color: var(--cream); margin-bottom: 8px; }
.card__desc { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 16px; }
.card__price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.price {
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 1.4rem;
}
.price small { color: var(--text-secondary); font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; }
.price-old { color: var(--text-secondary); text-decoration: line-through; font-size: 0.9rem; margin-right: 8px; }

/* ---------- Divider (гравюрный орнамент) ---------- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
  color: var(--brass);
  opacity: .6;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.ornament-divider span { font-size: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #121E17;
  padding: 56px 0 24px;
  border-top: 1px solid rgba(239,232,214,.08);
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
.footer-col h4 { color: var(--cream); font-size: 1rem; margin-bottom: 14px; }
.footer-col p, .footer-col a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}
.footer-col a:hover { color: var(--brass); }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(239,232,214,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--brass); color: var(--brass); }
.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding-top: 20px;
  border-top: 1px solid rgba(239,232,214,.06);
}
.footer-credit {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.72rem;
  opacity: .7;
  padding-top: 10px;
}
.footer-credit a { color: var(--text-secondary); text-decoration: none; }
.footer-credit a:hover { color: var(--brass); }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(239,232,214,.25);
  color: var(--text-secondary);
  text-decoration: none; margin-right: 10px; flex-shrink: 0;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--brass); color: var(--brass); }
.lang-switch__icon { display: block; }

/* ---------- Page hero (внутренние страницы) ---------- */
.page-hero {
  padding: 140px 0 56px;
  text-align: left;
  background: linear-gradient(180deg, var(--bg-section), var(--bg));
}
.page-hero__title { font-size: clamp(2.4rem, 8vw, 4.2rem); color: var(--cream); }
.page-hero__breadcrumbs { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 14px; }
.page-hero__breadcrumbs a:hover { color: var(--brass); }
.page-hero--dark { background: linear-gradient(180deg, #24120f, var(--bg)); }

/* ---------- Price list ---------- */
.price-category { margin-bottom: 48px; }
.price-category__title {
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,162,39,.25);
}
.price-list { display: flex; flex-direction: column; gap: 12px; }
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  background: var(--bg-section);
  border: 1px solid rgba(239,232,214,.07);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color .25s ease, transform .25s ease;
}
.price-row:hover { border-color: rgba(201,162,39,.4); transform: translateX(4px); }
.price-row__info { flex: 1 1 220px; }
.price-row__name { color: var(--cream); font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.price-row__meta { color: var(--text-secondary); font-size: 0.85rem; }
.price-row__right { display: flex; align-items: center; gap: 16px; }
.price-row__price { text-align: right; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 0; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-book { display: inline-flex; }
  .burger { display: none; }
  .float-book { display: none; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
