/* ============================================================
   Анна Даниловна Матвеева — персональный сайт мастера вязания
   Дизайн-система: тёплая мастерская (бренд-ДНК студии «СозидАй»)
   ============================================================ */

:root {
  --bg: #FAF4EC;
  --surface: #FFFDF8;
  --blush: #F5E5DC;
  --ink: #3B2A3A;
  --muted: #6E5B6A;
  --border: #EADCCF;
  --plum: #5D3A5A;
  --plum-deep: #4C2E4A;
  --plum-dark: #332241;
  --gold: #F4C430;
  --gold-soft: #F9E08E;
  --inverse-fg: #F7F0E9;
  --inverse-muted: #D2C1CE;
  --inverse-border: #493655;
  --font-b: "Nunito", system-ui, sans-serif;
  --font-a: "Caveat", cursive;
  --pad-x: clamp(20px, 5vw, 64px);
  --shadow-soft: 0 10px 30px -12px rgba(61, 42, 58, 0.18);
  --shadow-lift: 0 20px 44px -18px rgba(61, 42, 58, 0.28);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

::selection { background: var(--gold); color: var(--ink); }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 12px 24px;
  transition: background-color .2s, transform .2s, box-shadow .2s, border-color .2s;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 8px 20px -10px rgba(77, 46, 74, 0.55); }
.btn-primary:hover { background: var(--plum-deep); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(77, 46, 74, 0.6); }
.btn-primary:active { background: var(--plum-dark); transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(244, 196, 48, 0.7); }
.btn-gold:hover { background: #E8BA25; transform: translateY(-1px); }
.btn-gold:active { background: #D9AD1B; transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--inverse-fg);
  border: 1.5px solid var(--inverse-border);
  padding: 14px 26px;
}
.btn-outline:hover { border-color: var(--inverse-fg); }

.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-card { padding: 11px 22px; font-size: 14px; }
.btn-nav { padding: 11px 22px; font-size: 14px; }

.btn:focus-visible,
.link-accent:focus-visible,
.p-buy:focus-visible,
.brand:focus-visible,
.nav-links a:focus-visible,
.mobile-menu a:focus-visible,
.phone:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}
.contacts .btn:focus-visible,
.contacts .phone:focus-visible { outline-color: var(--gold); }

/* ---------- Общие элементы ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--plum);
}

.eyebrow-inverse { color: var(--gold); }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }

.section-head h2 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.head-row { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.head-note { max-width: 380px; font-size: 15px; line-height: 1.55; color: var(--muted); margin-left: auto; padding-bottom: 6px; }

/* ---------- Шапка ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad-x);
  background: rgba(250, 244, 236, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(61, 42, 58, 0.4); }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--plum); }
.brand-icon { width: 27px; height: 27px; color: var(--plum); flex: none; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s; }

.burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 74px;
  inset-inline: 14px;
  z-index: 60;
  flex-direction: column;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(51, 34, 65, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s, transform .22s, visibility .22s;
}

.mobile-menu.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mobile-menu a {
  padding: 13px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
}
.mobile-menu a:hover { background: var(--blush); }
.mobile-menu .btn { margin-top: 6px; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  padding-block: 52px 48px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 5.3vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.hl {
  background-image: linear-gradient(180deg, transparent 64%, var(--gold-soft) 64%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 2px;
}

.hero-text { display: flex; flex-direction: column; align-items: flex-start; }

.hero-sub {
  max-width: 540px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 22px;
}

.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }

.link-accent {
  color: var(--plum);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color .2s;
}
.link-accent:hover { color: var(--plum-deep); }

.hand-note {
  font-family: var(--font-a);
  font-size: 27px;
  color: var(--muted);
  margin-top: 18px;
  transform: rotate(-1.2deg);
}

.hero-photo {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  justify-self: end;
  margin-inline: auto;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 24px -20px -20px 24px;
  z-index: -1;
  background: var(--blush);
  border-radius: 26px;
}

.hero-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: clamp(420px, 62vh, 620px);
  border-radius: 26px;
  box-shadow: 0 30px 56px -24px rgba(51, 34, 65, 0.4);
}

/* ---------- Полоса направлений ---------- */

.strip-host { padding-block: 4px 8px; }

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 26px;
  background: var(--plum);
  border-radius: 24px;
  padding: 22px 30px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--inverse-fg);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

.strip-item svg { width: 21px; height: 21px; flex: none; color: var(--gold); }

/* ---------- Мастер-классы ---------- */

.mc { padding-block: 60px 28px; }

.mc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 28px;
}

.mc-meta { font-size: 13.5px; font-weight: 600; color: var(--muted); }

.mc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  transition: transform .25s, box-shadow .25s;
}

.mc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.cover { border-radius: 14px; overflow: hidden; }

.cover img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  transition: transform .5s ease;
}

.mc-card:hover .cover img { transform: scale(1.04); }

.mc-info { display: flex; flex-direction: column; gap: 10px; }

.mc-info h3 { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }

.mc-info .desc { font-size: 15px; line-height: 1.6; color: var(--muted); }

.result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--plum);
  line-height: 1.45;
}

.result svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.price { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Как проходит занятие ---------- */

.steps-host { padding-block: 36px 12px; }

.steps-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  background: var(--plum);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  color: var(--inverse-fg);
}

.steps-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.steps-text h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.steps-sub { max-width: 480px; font-size: 15.5px; line-height: 1.6; color: var(--inverse-muted); }

.steps-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; width: 100%; }

.steps-list li { display: flex; align-items: center; gap: 16px; padding: 7px 0; }

.steps-list .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.steps-list li > span:last-child { font-size: 16px; font-weight: 700; }

.steps-photos { display: flex; flex-direction: column; gap: 16px; }

.steps-photos img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  border-radius: 18px;
}

/* ---------- Обо мне ---------- */

.about {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  padding-block: 64px 32px;
}

.about-photos { display: flex; flex-direction: column; gap: 14px; }

.about-main {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.about-row img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  border-radius: 14px;
}

.about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.about-text h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.about-text p { max-width: 540px; font-size: 16px; line-height: 1.7; color: var(--muted); }

.facts { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }

.facts li { display: flex; align-items: center; gap: 13px; font-size: 15.5px; font-weight: 600; line-height: 1.45; }

.fact-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 999px;
  background: var(--blush);
}

.fact-check svg { width: 13px; height: 13px; color: var(--plum); }

/* ---------- Строчный шов-разделитель ---------- */

.stitch {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-block: 36px 12px;
  color: var(--border);
}

.stitch::before,
.stitch::after { content: ""; flex: 1; border-top: 2px dashed currentColor; }

.stitch svg { width: 21px; height: 21px; flex: none; color: var(--gold); }

/* ---------- Изделия ---------- */

.shop { padding-block: 48px 16px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
}

.product { display: flex; flex-direction: column; gap: 9px; }

.p-img { border-radius: 16px; overflow: hidden; }

.p-img img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  transition: transform .5s ease;
}

.product:hover .p-img img { transform: scale(1.04); }

.product h3 { font-size: 17.5px; font-weight: 800; line-height: 1.3; }

.p-desc { font-size: 13.5px; letter-spacing: 0.01em; color: var(--muted); }

.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.p-price { font-size: 19px; font-weight: 800; }

.p-buy {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--plum);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color .2s;
}
.p-buy:hover { color: var(--plum-deep); }

.shop-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--blush);
}

.shop-cta h3 { font-size: 21px; font-weight: 800; line-height: 1.25; }
.shop-cta p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.shop-cta .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Частые вопросы ---------- */

.faq { padding-block: 56px 80px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2px 20px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 15px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .chev { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s; }

.faq-item[open] .chev { transform: rotate(180deg); }

.faq-item p { padding: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 62ch; }

/* ---------- Контакты ---------- */

.contacts {
  background: var(--plum-dark);
  border-radius: 32px 32px 0 0;
  margin-top: 56px;
  padding: 80px var(--pad-x) 32px;
  color: var(--inverse-fg);
}

.slab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding-bottom: 60px;
}

.slab h2 {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 800px;
}

.phone {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  transition: color .2s;
}
.phone:hover { color: #FFD65C; }

.slab-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.slab-btns .btn-gold, .slab-btns .btn-outline { padding: 15px 28px; font-size: 15px; }

.place { font-size: 15.5px; color: var(--inverse-muted); }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--inverse-border);
  padding-top: 22px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--inverse-muted);
}

.footer-note { font-family: var(--font-a); font-size: 21px; color: var(--gold); }

/* ---------- Плавающая кнопка записи (мобильная) ---------- */

.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(51, 34, 65, 0.55);
  transform: translateY(90px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, background-color .2s;
}

.mobile-cta.show { transform: none; opacity: 1; pointer-events: auto; }
.mobile-cta:hover { background: var(--plum-deep); }
.mobile-cta svg { width: 19px; height: 19px; flex: none; }
.mobile-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Появление при скролле ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.js [data-reveal].in { opacity: 1; transform: none; }

.js .mc-cards [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .mc-cards [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .shop-grid [data-reveal]:nth-child(2) { transition-delay: .06s; }
.js .shop-grid [data-reveal]:nth-child(3) { transition-delay: .12s; }
.js .shop-grid [data-reveal]:nth-child(4) { transition-delay: .18s; }

/* ---------- Промежуточные ширины (901–1250px) ---------- */

@media (max-width: 1250px) {
  .hero { gap: 36px; }
  .about { gap: 40px; }
  .head-note { margin-left: 0; }
}

/* ---------- Мобильная версия (≤900px) ---------- */

@media (max-width: 900px) {

  body { padding-bottom: 84px; }

  .btn, .link-accent, .p-buy { min-height: 44px; }
  .link-accent, .p-buy { display: inline-flex; align-items: center; }
  .shop-cta .btn, .mobile-menu .btn { min-height: 48px; }

  .nav { height: 64px; padding: 0 16px; }
  html { scroll-padding-top: 76px; }
  .brand { font-size: 15.5px; gap: 9px; }
  .brand-icon { width: 23px; height: 23px; }
  .nav-links, .btn-nav { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-cta { display: flex; }

  /* Hero: один экран — обещание → единственный CTA → фото мастера.
     Портрет 9:16 кропируется в широкий формат «по плечи»: лицо крупно,
     блок невысокий, первый экран сохраняется. */
  .hero { display: flex; flex-direction: column; padding-top: 22px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(30px, 8.2vw, 40px); margin-top: 12px; }
  .hero-sub { font-size: 15px; margin-top: 14px; }
  .cta-row { margin-top: 26px; }
  .cta-row .btn-lg { width: 100%; }
  .cta-row .link-accent { flex-basis: 100%; justify-content: center; }
  .hand-note { display: none; }

  .hero-photo { display: block; width: 100%; margin-top: 24px; }
  .hero-photo::before { inset: 12px -10px -10px 12px; border-radius: 20px; }
  .hero-photo img {
    width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 57%;
    border-radius: 20px;
  }

  .strip-host { display: none; }

  .mc { padding-top: 44px; }
  .mc-cards { grid-template-columns: 1fr; gap: 22px; }
  .cover img { aspect-ratio: 1.35; }
  .price-row .btn-card { flex: 1; }

  .steps-host { padding-top: 28px; }
  .steps-panel { grid-template-columns: 1fr; padding: 24px; gap: 26px; }
  .steps-photos { flex-direction: row; }
  .steps-photos img { flex: 1 1 0; min-width: 0; width: auto; aspect-ratio: 1 / 0.75; }
  .steps-list .num { width: 40px; height: 40px; }

  .about { grid-template-columns: 1fr; padding-top: 52px; gap: 30px; }
  .about-row { gap: 10px; }

  .shop-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .p-img img { aspect-ratio: 1 / 0.9; }
  .product h3 { font-size: 15px; }
  .p-desc { font-size: 14px; }
  .p-price { font-size: 17px; }
  .p-buy { font-size: 14px; }
  .shop-cta { grid-column: 1 / -1; }
  .shop-cta .btn { align-self: stretch; text-align: center; }

  .faq { padding-bottom: 64px; }
  .faq-item summary { font-size: 15px; }

  .contacts { padding-top: 60px; border-radius: 26px 26px 0 0; }
  .slab { padding-bottom: 44px; gap: 18px; }
  .slab-btns { flex-direction: column; width: 100%; }
  .slab-btns .btn { width: 100%; }
  .footer { flex-direction: column; text-align: center; padding-top: 20px; }
}

/* ---------- Уважение к настройкам движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .mc-card, .cover img, .p-img img { transition: none; }
  .mobile-cta, .mobile-menu, .burger span, .faq-item .chev { transition: none; }
}

/* ---------- Юридические страницы ---------- */

.legal { padding-top: 44px; padding-bottom: 64px; max-width: 780px; }

.legal h1 {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  margin-top: 10px;
}

.legal-updated { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 10px; }

.legal h2 { font-weight: 800; font-size: 19px; margin-top: 34px; }

.legal p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.legal p a, .footer-page a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }

.legal-list { margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; line-height: 1.55; }

.legal-note { margin-top: 28px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; font-size: 14px; color: var(--muted); }

.footer-page { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 48px; font-size: 14px; font-weight: 600; }

/* ---------- Уведомление о cookie ---------- */

.cookie-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(51, 34, 65, .94);
  color: var(--inverse-fg);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 18px 44px -14px rgba(51, 34, 65, .5);
}

.cookie-note a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.cookie-note button {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}

@media (max-width: 600px) {
  .cookie-note button { width: 100%; min-height: 44px; }
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--inverse-border); }
.footer-links a:hover { color: var(--inverse-fg); border-bottom-color: var(--gold); }

@media (max-width: 600px) {
  .footer-links { flex-direction: column; gap: 8px; }
  .footer-links a { border-bottom: none; text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 900px) {
  .cookie-note { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
