/* ========================================================
   О, мой дом! — Design System
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Marck+Script&family=Caveat:wght@500;700&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap&subset=cyrillic,cyrillic-ext,latin');

:root {
  /* Dark base */
  --bg-deep:        #0a0708;
  --bg-night:       #14100f;
  --bg-elevated:    #1c1715;
  --bg-card:        #221c1a;

  /* Light surfaces (for form, content) */
  --cream:          #f5efe8;
  --cream-dim:      #ebe3da;
  --cream-line:     #d9cfc3;
  --ink:            #2a221d;
  --ink-soft:       #5a4d44;
  --ink-faint:      #8a7d72;

  /* Neon palette */
  --neon-pink:      #ff2e8d;
  --neon-pink-soft: #ff6fb3;
  --neon-pink-glow: rgba(255, 46, 141, 0.55);
  --amber:          #f4a93b;
  --amber-warm:     #ffb84d;
  --amber-glow:     rgba(244, 169, 59, 0.6);
  --plant-green:    #a8d97a;

  /* UI */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.6), 0 4px 14px -4px rgba(0,0,0,0.4);

  /* Type */
  --font-script: 'Marck Script', 'Caveat', cursive;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --header-h: 76px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { display: block; max-width: 100%; }

/* ---------- Reusable: neon text ---------- */
.neon-pink {
  color: var(--neon-pink-soft);
  text-shadow:
    0 0 4px var(--neon-pink),
    0 0 12px var(--neon-pink-glow),
    0 0 28px var(--neon-pink-glow);
}
.neon-amber {
  color: #ffd58a;
  text-shadow:
    0 0 4px var(--amber-warm),
    0 0 14px var(--amber-glow),
    0 0 32px var(--amber-glow);
}

/* ========================================================
   Site header (used on inner pages)
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 7, 8, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 46, 141, 0.18);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand__mark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #000;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 14px rgba(255, 46, 141, 0.35));
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}
.brand__text .ru {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.01em;
  color: var(--neon-pink-soft);
  text-shadow: 0 0 8px var(--neon-pink-glow);
}
.brand__text .url {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin-top: 4px;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  font-size: 14px;
  color: rgba(245, 239, 232, 0.7);
  letter-spacing: 0.02em;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--neon-pink-soft);
  text-shadow: 0 0 10px var(--neon-pink-glow);
}
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 46, 141, 0.35);
  border-radius: 10px;
  background: rgba(255, 46, 141, 0.05);
  color: var(--neon-pink-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ========================================================
   Footer
   ======================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 46, 141, 0.18);
  padding: 50px 32px 36px;
  color: rgba(245, 239, 232, 0.55);
  font-size: 13px;
}
.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.site-footer__contacts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer__contacts a:hover {
  color: var(--neon-pink-soft);
  text-shadow: 0 0 8px var(--neon-pink-glow);
}
.site-footer__center {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--neon-pink-soft);
  text-shadow: 0 0 8px var(--neon-pink-glow);
  white-space: nowrap;
}
.site-footer__copy { text-align: right; font-size: 12px; }

/* ========================================================
   Page chrome (titles for inner pages)
   ======================================================== */
.page-hero {
  padding: 80px 32px 40px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 46, 141, 0.10), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(244, 169, 59, 0.07), transparent 50%);
  pointer-events: none;
}
.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--neon-pink-soft);
  margin-bottom: 18px;
  position: relative;
}
.page-hero__title {
  font-family: var(--font-script);
  font-size: clamp(48px, 7vw, 90px);
  line-height: 1;
  color: var(--neon-pink-soft);
  text-shadow:
    0 0 10px var(--neon-pink-glow),
    0 0 32px var(--neon-pink-glow);
  margin: 0;
  font-weight: 400;
  position: relative;
}
.page-hero__sub {
  margin-top: 22px;
  font-size: 17px;
  color: rgba(245, 239, 232, 0.7);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ========================================================
   Buttons
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 0 1px var(--neon-pink), 0 0 24px var(--neon-pink-glow), 0 8px 24px -8px rgba(255,46,141,0.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--neon-pink), 0 0 36px var(--neon-pink), 0 12px 28px -8px rgba(255,46,141,0.8);
}
.btn-ghost {
  background: transparent;
  color: var(--neon-pink-soft);
  border-color: rgba(255, 46, 141, 0.45);
}
.btn-ghost:hover {
  background: rgba(255, 46, 141, 0.08);
  border-color: var(--neon-pink);
  box-shadow: 0 0 18px rgba(255, 46, 141, 0.3);
}
.btn-amber {
  background: linear-gradient(180deg, #ffc56a, var(--amber));
  color: #2a1a05;
  box-shadow: 0 0 24px var(--amber-glow), 0 8px 24px -8px rgba(244,169,59,0.6);
}
.btn-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px var(--amber-warm), 0 12px 28px -8px rgba(244,169,59,0.8);
}

/* ========================================================
   Mobile
   ======================================================== */
@media (max-width: 820px) {
  .site-header { padding: 0 20px; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 7, 8, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 46, 141, 0.18);
    padding: 12px 20px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 16px;
  }
  .nav-toggle { display: inline-flex; }
  .brand__text .ru { font-size: 18px; }
  .brand__mark { width: 44px; height: 44px; }

  .site-footer { padding: 36px 20px 28px; }
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }
  .site-footer__contacts { justify-content: center; }
  .site-footer__copy { text-align: center; }
}
