/* ============================================================
   Musical Cards — базовые стили (музыкальные открытки на заказ)
   Палитра бренда: черника #241B3A · коралл #F04F78 · лаванда #8A72F8
   ============================================================ */

:root {
  --ink: #241B3A;
  --ink-soft: #2E2450;
  --coral: #F04F78;
  --coral-dark: #D93A64;
  --lav: #8A72F8;
  --lav-dark: #7157E8;
  --paper: #FFF9F2;
  --lilac: #F2EEFF;
  --text: #26232B;
  --muted: #716B78;
  --mint: #35B98A;
  --grad: linear-gradient(135deg, #F04F78 0%, #8A72F8 100%);
  --grad-soft: linear-gradient(135deg, rgba(240,79,120,.12), rgba(138,114,248,.12));
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -18px rgba(36, 27, 58, .25);
  --shadow-soft: 0 10px 30px -12px rgba(36, 27, 58, .18);
  --font-head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--coral); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral-dark); }

ul { list-style: none; }

h1, h2, h3, .h-sub {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; }
h2 { font-size: clamp(24px, 3.2vw, 38px); margin-bottom: 14px; }
h3 { font-size: clamp(18px, 2vw, 22px); }

p + p { margin-top: 12px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 12px 26px -10px rgba(240, 79, 120, .55); }
.btn--primary:hover { background: var(--coral-dark); color: #fff; box-shadow: 0 14px 30px -10px rgba(240, 79, 120, .65); }
.btn--gradient { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(138, 114, 248, .6); }
.btn--gradient:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 16px 34px -10px rgba(138, 114, 248, .7); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--outline { border-color: rgba(36,27,58,.25); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: rgba(36,27,58,.05); color: var(--ink); }
.btn--link { background: none; border: none; color: var(--coral); padding: 8px 2px; font-weight: 600; }
.btn--link:hover { color: var(--coral-dark); }

/* ---------------- Шапка ---------------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 249, 242, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 27, 58, .07);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(36, 27, 58, .35); }
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-family: var(--font-head); font-weight: 600; font-size: 16.5px; letter-spacing: .01em; }
.logo__text small { font-size: 11px; color: var(--muted); font-weight: 600; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: right .25s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--coral); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; position: relative; z-index: 95; }
.burger span { display: block; width: 24px; height: 2.4px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------------- Хлебные крошки ---------------- */
.breadcrumbs { padding: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "→"; opacity: .5; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--coral); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------------- Секции ---------------- */
.section { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--white { background: #fff; }
.section--lilac { background: var(--lilac); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.82); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17.5px; }
.section--ink .section-head p { color: rgba(255,255,255,.75); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2.5px; border-radius: 2px; background: var(--grad); }
.section--ink .eyebrow { color: #FF8FAD; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- Первый экран ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: rgba(255,255,255,.85);
  padding: 64px 0 84px;
}
.hero::before {
  content: ""; position: absolute; right: -180px; top: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138,114,248,.35), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -160px; bottom: -220px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240,79,120,.28), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; z-index: 1; }
.hero .eyebrow { color: #FF8FAD; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .grad-text { color: transparent; }
.hero__sub { font-size: 18px; max-width: 540px; color: rgba(255,255,255,.8); margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 16px; }
.hero__link { color: rgba(255,255,255,.75); font-weight: 600; font-size: 15px; border-bottom: 1.5px dashed rgba(255,255,255,.35); }
.hero__link:hover { color: #fff; border-color: #fff; }

.hero__scheme {
  margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px;
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.72);
}
.hero__scheme b { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.hero__scheme i { font-style: normal; color: rgba(255,255,255,.4); }

.hero__visual { position: relative; }
.hero__card {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
}
.hero__card img { width: 100%; aspect-ratio: 7/4; object-fit: cover; }
.hero__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--coral); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(240, 79, 120, .45); animation: mc-pulse 2.4s infinite;
  transition: transform .2s, background .2s;
}
.hero__play:hover { transform: scale(1.07); background: #fff; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; }
@keyframes mc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(240,79,120,.45); }
  70% { box-shadow: 0 0 0 26px rgba(240,79,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,79,120,0); }
}

/* ---------------- Полоса доверия ---------------- */
.trust { background: #fff; border-bottom: 1px solid rgba(36,27,58,.06); padding: 26px 0; }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.trust li { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--ink); }
.trust li svg { color: var(--mint); flex-shrink: 0; }

/* ---------------- Подвал ---------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 60px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__col h4 { font-family: var(--font-head); font-weight: 500; color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 9px; font-size: 14.5px; }
.footer__col a { color: rgba(255,255,255,.72); }
.footer__col a:hover { color: #fff; }
.footer__col a svg { vertical-align: -3px; margin-right: 6px; color: var(--lav); }
.logo--footer { color: #fff; }
.logo--footer .logo__text small { color: rgba(255,255,255,.55); }
.footer__slogan { font-family: var(--font-head); color: #fff; font-size: 15px; margin: 16px 0 10px; }
.footer__note { font-size: 13.5px; color: rgba(255,255,255,.55); max-width: 300px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__bottom a { color: rgba(255,255,255,.7); text-decoration: underline; }
.footer__micro { max-width: 560px; }

/* ---------------- Появление при скролле ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.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) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0; top: var(--header-h); z-index: 85;
    background: var(--paper); padding: 30px 24px;
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; font-size: 19px; padding: 13px 6px; border-bottom: 1px solid rgba(36,27,58,.07); }
  .burger { display: block; }
  .header__actions .btn--sm { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 44px 0 60px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
