/* === Открытое сердце — дизайн-система ===
   Тёплая светлая тема: кремовый фон, терракотовый акцент.
   Классы совместимы с шаблонами генератора (header/nav/card/highlight/faq). */
:root {
  --bg: #faf5ee;
  --bg-2: #f4eadd;
  --bg-3: #efe0d0;
  --card: #ffffff;
  --card-border: rgba(176, 96, 60, 0.16);
  --terra: #c05f3c;
  --terra-2: #a94e2e;
  --gold: #c05f3c;        /* совместимость с шаблонами */
  --gold-2: #a94e2e;      /* совместимость с шаблонами */
  --violet: #8b5e83;
  --text: #37251e;
  --muted: #7e6a5e;
  --white: #ffffff;
  --radius: 18px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

/* Тёплый фон: мягкие пятна света */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(192, 95, 60, 0.10), transparent),
    radial-gradient(ellipse 55% 40% at 85% 110%, rgba(139, 94, 131, 0.08), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; }

a { color: var(--terra-2); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin-bottom: 14px; color: var(--muted); }
p.lead { font-size: 1.15rem; color: var(--text); }

.gold { color: var(--terra); }

/* === Кнопки === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-tg {
  background: linear-gradient(135deg, #2aabee, #1d8fd1);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(42, 171, 238, .30);
}
.btn-tg:hover { box-shadow: 0 12px 32px rgba(42, 171, 238, .45); }
.btn-market {
  background: linear-gradient(135deg, var(--terra), var(--terra-2));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(192, 95, 60, .30);
}
.btn-market:hover { box-shadow: 0 12px 32px rgba(192, 95, 60, .45); }
.btn-ghost {
  background: transparent;
  color: var(--terra-2);
  border: 1.5px solid var(--terra);
}
.btn svg { flex-shrink: 0; }

/* === Шапка === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(176, 96, 60, .14);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span em { color: var(--terra); font-style: normal; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--terra-2); text-decoration: none; }
.nav .btn { padding: 10px 22px; font-size: .92rem; }
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--terra);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* === Hero === */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}
.hero .moon {
  font-size: 3.4rem;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 22px rgba(192, 95, 60, .35));
}
.hero h1 { max-width: 840px; margin: 0 auto 20px; }
.hero .lead { max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--muted); }

/* === Секции === */
.section { padding: 70px 0; }
.section-alt { background: rgba(255, 255, 255, 0.45); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head p { font-size: 1.05rem; }

/* === Сетки и карточки === */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 10px rgba(90, 50, 30, .05);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(90, 50, 30, .12);
}
.card h3 { margin-bottom: 10px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--terra-2); text-decoration: none; }
.card p { font-size: .95rem; }
.card .icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.card .more {
  display: inline-block;
  margin-top: 12px;
  color: var(--terra-2);
  font-weight: 700;
  font-size: .92rem;
}

/* === FAQ === */
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--card);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "✦";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--terra);
  transition: transform .3s;
  font-size: 1.1rem;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p { padding: 0 24px 20px; margin: 0; font-size: .97rem; }

/* === Доверие === */
.trust { text-align: center; }
.trust .icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.trust h3 { font-size: 1.08rem; margin-bottom: 8px; }
.trust p { font-size: .9rem; }

/* === CTA-блок === */
.cta-final { text-align: center; padding: 80px 0; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final p { max-width: 560px; margin: 0 auto 32px; }

/* === Текстовые страницы === */
.page-hero { padding: 60px 0 40px; text-align: center; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 700px; margin: 0 auto; }
.article { max-width: 780px; margin: 0 auto; }
.article-cover {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(90, 50, 30, .12);
}
.article-cover img { display: block; width: 100%; height: auto; }
.article h2 { margin-top: 40px; }
.article ul { margin: 0 0 16px 22px; color: var(--muted); }
.article ul li { padding: 4px 0; }
.article .highlight {
  background: var(--card);
  border-left: 3px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: 0 2px 10px rgba(90, 50, 30, .06);
}
.article .highlight p { margin-bottom: 8px; }
.article .highlight p:last-child { margin-bottom: 0; }

/* === Футер === */
.footer {
  border-top: 1px solid rgba(176, 96, 60, .14);
  padding: 50px 0 30px;
  background: rgba(255, 255, 255, .5);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { font-size: .95rem; color: var(--terra); margin-bottom: 14px; font-family: var(--font-body); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--muted); font-size: .92rem; }
.footer ul a:hover { color: var(--terra-2); }
.footer-about p { font-size: .9rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(90, 50, 30, .08);
  padding-top: 22px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.disclaimer { font-size: .8rem; opacity: .8; max-width: 100%; margin-top: 10px; }

/* === Адаптив === */
@media (max-width: 1024px) {
  .header {
    background: rgba(250, 245, 238, .96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .burger { display: block; z-index: 110; }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(250, 245, 238, .98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: flex-start;
    gap: 26px;
    padding: 110px 24px 40px;
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .35s ease, visibility 0s linear .35s;
  }
  .nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .35s ease, visibility 0s;
  }
  .nav a { font-size: 1.25rem; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
