:root {
  --bg: #0b0808;
  --bg-alt: #140d0d;
  --card-bg: #1a1111;
  --red: #8b1f2f;
  --red-dark: #5c1420;
  --gold: #d4af37;
  --gold-soft: #c99a36;
  --text: #f2e9e6;
  --text-muted: #c2aeae;
  --border: rgba(212, 175, 55, 0.3);
  --radius: 14px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 16px;
}

a { color: inherit; text-decoration: none; }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 31, 47, 0.5);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--small { padding: 10px 20px; font-size: 14px; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 11, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--gold); }
.nav__cta { white-space: nowrap; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
}

/* Hero (исправлено на dvh для мобилок) */
.hero {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at top, #2a0f14 0%, var(--bg) 65%);
  overflow: hidden;
}
.hero__stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 60%, #fff, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(2px 2px at 85% 20%, #fff, transparent),
    radial-gradient(1px 1px at 55% 15%, #fff, transparent);
  opacity: 0.4;
}
.hero__leopard {
  position: absolute;
  inset: 0;
  background-image: url('../assets/leopard-pattern.svg');
  background-size: 220px 220px;
  opacity: 0.35;
}
.hero__leopard--tl {
  mask-image: radial-gradient(circle 420px at 0% 0%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 420px at 0% 0%, #000 0%, transparent 100%);
}
.hero__leopard--br {
  mask-image: radial-gradient(circle 420px at 100% 100%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 420px at 100% 100%, #000 0%, transparent 100%);
}
.hero__spark {
  position: absolute;
  top: 14%;
  right: 8%;
  width: 160px;
  height: 160px;
  background: linear-gradient(225deg, transparent calc(50% - 1px), rgba(196, 42, 58, 0.8) 50%, transparent calc(50% + 1px));
}
.hero__spark::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e63950;
  box-shadow: 0 0 12px 4px rgba(230, 57, 80, 0.8);
}
.hero__inner { position: relative; padding-top: 72px; }
.hero__eyebrow {
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}
.hero__title {
  font-size: clamp(32px, 6vw, 56px);
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero__title span { color: var(--gold); }
.hero__subtitle {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 17px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--gold);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Section helpers (динамический padding) */
section { padding: clamp(60px, 8vw, 100px) 0; position: relative; }
.section-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); }
.section-eyebrow--center, .section-title--center { text-align: center; }
.section-title--center { max-width: 640px; margin-left: auto; margin-right: auto; }

/* About */
.about {
  background: var(--bg-alt);
  box-shadow: 0 -40px 60px rgba(0, 0, 0, 0.45);
}
.about__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}
.about__photo-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about__text { color: var(--text-muted); }
.about__list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
}
.about__list li { color: var(--text); }
.about__socials { display: flex; gap: 12px; margin-top: 16px; }
.about__socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  transition: background 0.2s ease;
}
.about__socials a:hover { background: var(--red-dark); }

/* Cards */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before, .card::after {
  content: '✦';
  position: absolute;
  color: var(--gold-soft);
  font-size: 12px;
  opacity: 0.7;
}
.card::before { top: 10px; left: 12px; }
.card::after { bottom: 10px; right: 12px; }
.card:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 0 24px rgba(139, 31, 47, 0.35);
}
.card--placeholder { opacity: 0.7; border-style: dashed; }
.card__price { color: var(--gold); font-weight: 600; margin: 8px 0 16px; }
.card__text { color: var(--text-muted); font-size: 14px; }

/* Services */
.services__note {
  text-align: center;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 40px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Reviews carousel */
.reviews__carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reviews__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track .card--review {
  flex: 0 0 280px;
  scroll-snap-align: start;
  padding: 10px;
}
.card__screenshot {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: var(--bg);
  border-radius: calc(var(--radius) - 4px);
}
.carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.carousel__btn:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.reviews__dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}
.reviews__dots .dot.is-active { background: var(--gold); }

/* FAQ */
.accordion__item {
  border-bottom: 1px solid var(--border);
}
.accordion__header {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.accordion__icon { color: var(--gold); font-size: 22px; transition: transform 0.2s ease; }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
}
.accordion__body p { padding-bottom: 20px; margin: 0; }

/* Contacts */
.contacts { background: var(--bg-alt); }
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacts__list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.contacts__list span { color: var(--text-muted); margin-right: 8px; }
.contacts__list a:hover { color: var(--gold); }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer__socials { display: flex; gap: 16px; }
.footer__socials a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 900px) {
  .about__inner, .contacts__inner { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav, .nav__cta { display: none; }
  .burger { display: flex; }
  .header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100dvh - 72px); /* Меню на весь экран */
    flex-direction: column;
    background: var(--bg);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    overflow-y: auto;
  }
  .header.nav-open .nav__cta {
    display: inline-block;
    position: static; /* Вернули в поток, чтобы кнопка не улетала */
    margin-top: 24px;
    text-align: center;
  }
  .services__grid { grid-template-columns: 1fr; }
  .reviews__track .card--review { flex-basis: 78vw; }
  .carousel__btn { width: 38px; height: 38px; font-size: 18px; }
}