/* ============================================================
   PRO MAKIYAZ — премиальный лендинг
   Палитра: айвори / пудра / терракота / шоколад
   Типографика: Playfair Display (serif) + Manrope (sans)
   ============================================================ */

:root {
  --ivory: #FBF5EE;
  --cream: #FFFDF9;
  --blush: #F7E9E3;
  --blush-2: #F1DCD3;
  --rose: #E8C7C4;
  --rose-deep: #D9A7A0;
  --terra: #C0764F;
  --terra-deep: #A9613F;
  --gold: #C99A4B;
  --cocoa: #4A342E;
  --graphite: #2E2622;
  --ink: #3A2E28;
  --muted: #75655B;
  --line: #ECDDD0;
  --danger: #B3402F;

  --grad-brand: linear-gradient(135deg, #D3948B 0%, #C0764F 55%, #B0623F 100%);
  --grad-soft: linear-gradient(135deg, #F7E9E3 0%, #F1DCD3 100%);

  --shadow-sm: 0 6px 18px rgba(74, 52, 46, 0.07);
  --shadow-md: 0 16px 40px rgba(74, 52, 46, 0.10);
  --shadow-lg: 0 28px 70px rgba(74, 52, 46, 0.16);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--graphite); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--terra-deep); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--terra); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--rose); color: var(--graphite); }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--graphite);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  transition: top 0.3s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

/* ---------- Типографика секций ---------- */
.section { padding: 104px 0; position: relative; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--rose); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); }
.section-sub { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(192, 118, 79, 0.35);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(192, 118, 79, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(74, 52, 46, 0.35);
  color: var(--graphite);
}
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: rgba(74, 52, 46, 0.25);
  color: var(--graphite);
  width: 100%;
}
.btn-outline:hover { border-color: var(--terra); color: var(--terra-deep); background: rgba(232, 199, 196, 0.18); }

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 17px 36px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 245, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(74, 52, 46, 0.08);
  height: 64px;
}

.nav-wrap { display: flex; align-items: center; gap: 28px; width: 100%; }

.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--graphite); }
.logo-spark { color: var(--terra); flex: none; }
.logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.logo-text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--terra-deep);
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  position: relative;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--terra-deep); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-weight: 700; font-size: 15px; color: var(--graphite); white-space: nowrap; }
.nav-phone:hover { color: var(--terra-deep); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { margin-bottom: 36px; }
.mobile-menu li { opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu.open li:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open li:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open li:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open li:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.open li:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu a {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--graphite);
  padding: 10px 0;
}
.mobile-menu a:hover { color: var(--terra-deep); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 0 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(232, 199, 196, 0.55), transparent 65%),
    radial-gradient(700px 500px at -10% 30%, rgba(241, 220, 211, 0.8), transparent 60%),
    var(--ivory);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 34px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.trust-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
}
.trust-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--terra-deep);
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-photo-wrap {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1.5px solid rgba(192, 118, 79, 0.35);
  border-radius: inherit;
  z-index: -1;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12); /* запас высоты для параллакса */
  will-change: transform;
}

.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(236, 221, 208, 0.9);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--graphite);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.hero-badge svg { color: var(--terra); flex: none; }
.badge-1 { top: 12%; left: -8%; animation-delay: 0.6s; }
.badge-2 { bottom: 10%; right: -6%; }

/* Декор */
.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-1 { width: 460px; height: 460px; background: #F3D5CE; top: -140px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: #EBD3C7; bottom: -160px; left: -140px; }

.hero-spark { position: absolute; color: var(--terra); opacity: 0.5; animation: twinkle 4s ease-in-out infinite; }
.spark-1 { top: 20%; left: 6%; }
.spark-2 { top: 58%; left: 44%; animation-delay: 1.2s; }
.spark-3 { top: 14%; right: 8%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 167, 160, 0.6);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--grad-soft);
  color: var(--terra-deep);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.service-card:hover .service-icon { background: var(--grad-brand); color: #fff; }

.service-card h3 { font-size: 21px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14.5px; flex: 1; }

.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.price-chip {
  background: var(--blush);
  color: var(--terra-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.link-more {
  background: none;
  border: none;
  padding: 0;
  color: var(--terra-deep);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-more::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-more:hover::after { transform: translateX(4px); }

/* ============================================================
   ПОЧЕМУ ВЫБИРАЮТ
   ============================================================ */
.features {
  background:
    radial-gradient(700px 400px at 110% 10%, rgba(232, 199, 196, 0.35), transparent 60%),
    linear-gradient(180deg, var(--blush) 0%, var(--ivory) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(236, 221, 208, 0.8);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--terra-deep);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ============================================================
   ПОРТФОЛИО
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--rose-deep); color: var(--terra-deep); }
.filter-btn.is-active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(192, 118, 79, 0.3);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-tile:hover img,
.work-tile:focus-visible img { transform: scale(1.06); }

.work-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(46, 38, 34, 0.72));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(8px);
  opacity: 0.95;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.work-tile:hover figcaption,
.work-tile:focus-visible figcaption { transform: none; opacity: 1; }

.work-tag {
  align-self: flex-start;
  background: rgba(255, 253, 249, 0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 253, 249, 0.4);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.work-name { font-family: var(--font-serif); font-size: 19px; }

.work-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.9);
  color: var(--graphite);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.work-tile:hover .work-zoom,
.work-tile:focus-visible .work-zoom { opacity: 1; transform: none; }

.work-tile.hide { display: none; }
.work-tile.show { animation: fadeUp 0.5s var(--ease) both; }

/* ============================================================
   КАК ПРОХОДИТ ЗАПИСЬ
   ============================================================ */
.steps {
  background:
    radial-gradient(600px 380px at -10% 110%, rgba(232, 199, 196, 0.4), transparent 60%),
    var(--ivory);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 28px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  font-weight: 500;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

.step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-deep), transparent);
}
.step:last-child::after { display: none; }

/* ============================================================
   ЦЕНЫ
   ============================================================ */
.pricing { background: linear-gradient(180deg, var(--ivory), var(--blush) 140%); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.price-card.is-featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--cream), var(--cream)) padding-box,
    var(--grad-brand) border-box;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}
.price-card.is-featured:hover { transform: translateY(-14px); }

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-top { margin-bottom: 18px; }
.price-top h3 { font-size: 20px; margin-bottom: 12px; }

.price-list { flex: 1; margin-bottom: 18px; }
.price-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  color: var(--ink);
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9613F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.price-meta { margin-bottom: 18px; }
.dur {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--ivory);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.price-note {
  margin: 40px auto 0;
  max-width: 620px;
  text-align: center;
  background: rgba(255, 253, 249, 0.9);
  border: 1px dashed rgba(192, 118, 79, 0.4);
  border-radius: var(--r-md);
  padding: 16px 24px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ============================================================
   ОБУЧЕНИЕ
   ============================================================ */
.learning-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.learning-copy h2 { font-size: clamp(28px, 3.8vw, 40px); }
.learning-lead { color: var(--muted); font-size: 16.5px; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 26px; }
.format {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.format:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.format h3 { font-size: 16.5px; margin-bottom: 6px; }
.format p { font-size: 13.5px; color: var(--muted); margin: 0; }

.learning-list { margin-bottom: 34px; }
.learning-list li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-size: 15.5px;
}
.learning-list li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--terra);
  font-size: 15px;
}

.learning-visual { position: relative; }
.learning-visual img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
}
.learning-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--graphite);
  box-shadow: var(--shadow-md);
  max-width: 260px;
  animation: float 7s ease-in-out infinite;
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews {
  background:
    radial-gradient(800px 460px at 110% 0%, rgba(232, 199, 196, 0.4), transparent 60%),
    linear-gradient(180deg, var(--blush), var(--ivory) 120%);
}

.carousel { position: relative; max-width: 780px; margin: 0 auto; overflow: hidden; border-radius: var(--r-lg); }
.carousel-track { display: flex; transition: transform 0.55s var(--ease); }

.review {
  flex: 0 0 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px 48px;
  margin-right: 24px;
}
.review blockquote {
  margin: 14px 0 26px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--graphite);
}

.stars { display: flex; gap: 4px; color: var(--gold); }

.review-foot { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex: none;
}
.review-name { display: block; font-size: 15.5px; }
.review-type { display: block; font-size: 13px; color: var(--muted); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}
.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--graphite);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.carousel-btn:hover { border-color: var(--terra); color: var(--terra-deep); transform: translateY(-2px); }

.carousel-dots { display: flex; gap: 10px; }
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(74, 52, 46, 0.18);
  transition: all 0.3s var(--ease);
}
.carousel-dot.is-active { background: var(--terra); width: 26px; }

.reviews-cta { text-align: center; margin-top: 34px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.faq-item:has(.faq-q[aria-expanded="true"]) { box-shadow: var(--shadow-sm); border-color: rgba(217, 167, 160, 0.55); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 26px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--graphite);
}
.faq-q:hover { color: var(--terra-deep); }

.faq-icon { flex: none; color: var(--terra); transition: transform 0.4s var(--ease); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 26px 24px; margin: 0; color: var(--muted); font-size: 15px; }
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-a { grid-template-rows: 1fr; }

/* ============================================================
   ФИНАЛЬНЫЙ CTA + ФОРМА
   ============================================================ */
.contact { padding-bottom: 120px; }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 120% -20%, rgba(217, 167, 160, 0.35), transparent 60%),
    radial-gradient(500px 400px at -20% 120%, rgba(192, 118, 79, 0.25), transparent 60%),
    var(--graphite);
  box-shadow: var(--shadow-lg);
  color: #F5EDE6;
}

.contact-info { padding: 60px 56px; }
.contact-info h2 { color: #FBF5EE; font-size: clamp(28px, 3.6vw, 40px); }
.contact-lead { color: rgba(245, 237, 230, 0.75); font-size: 16px; }

.contact-list { margin: 30px 0 26px; display: flex; flex-direction: column; gap: 16px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #FBF5EE;
}
.contact-row b { display: block; font-size: 16.5px; }
.contact-row small { color: rgba(245, 237, 230, 0.6); font-size: 13.5px; }
.contact-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(232, 199, 196, 0.14);
  border: 1px solid rgba(232, 199, 196, 0.3);
  color: var(--rose);
  display: grid;
  place-items: center;
  flex: none;
}
a.contact-row:hover .contact-ico { background: rgba(232, 199, 196, 0.28); }

.messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.msgr {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 237, 230, 0.25);
  color: #F5EDE6;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.msgr:hover {
  color: #fff;
  border-color: rgba(245, 237, 230, 0.55);
  background: rgba(245, 237, 230, 0.1);
  transform: translateY(-2px);
}

/* Форма */
.contact-form-wrap {
  background: var(--cream);
  margin: 22px;
  border-radius: var(--r-lg);
  padding: 44px 42px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 { font-size: 26px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 7px;
}
.field label em { color: var(--terra-deep); font-style: normal; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder,
.field textarea::placeholder { color: #C4B4A8; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 4px rgba(192, 118, 79, 0.14);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field-err { display: none; color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.field.error input, .field.error select { border-color: var(--danger); }
.field.error .field-err { display: block; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--terra);
  flex: none;
}
.field-consent.error .consent { color: var(--danger); }

.form-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }

.form-server-error {
  background: #FBEAE6;
  border: 1px solid rgba(179, 64, 47, 0.35);
  color: var(--danger);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.form-success { text-align: center; padding: 30px 10px; }
.success-ico {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--terra-deep);
  display: grid;
  place-items: center;
}
.form-success h3 { font-size: 26px; }
.form-success p { color: var(--muted); max-width: 340px; margin: 0 auto 24px; }

#form-submit.is-loading { pointer-events: none; opacity: 0.75; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer {
  background: var(--graphite);
  color: rgba(245, 237, 230, 0.75);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 237, 230, 0.12);
}

.logo-light { color: #FBF5EE; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; max-width: 300px; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(245, 237, 230, 0.22);
  color: #F5EDE6;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.footer-social a:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-3px);
  background: rgba(232, 199, 196, 0.08);
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a { color: rgba(245, 237, 230, 0.75); }
.footer-col a:hover { color: var(--rose); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(245, 237, 230, 0.6); }
.footer-bottom a:hover { color: var(--rose); }

.footer-disclaimer { padding-top: 14px; }
.footer-disclaimer p { margin: 0; font-size: 11.5px; color: rgba(245, 237, 230, 0.4); }

/* ============================================================
   МОБИЛЬНАЯ ПАНЕЛЬ
   ============================================================ */
.mobile-bar {
  position: fixed;
    inset: auto 0 0 0;
  z-index: 80;
  display: none;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 -8px 30px rgba(74, 52, 46, 0.12);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 10px;
  font-size: 15px;
  font-weight: 700;
}
.mobile-bar-call { background: var(--ivory); color: var(--graphite); }
.mobile-bar-book { background: var(--grad-brand); color: #fff; }
.mobile-bar-book svg { color: #fff; }

/* ============================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 38, 34, 0.6);
  backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 44px 42px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease);
  text-align: left;
}
.modal-box h3 { font-size: 26px; padding-right: 40px; }
.modal-box p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--graphite);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
  z-index: 2;
}
.modal-close:hover { border-color: var(--terra); color: var(--terra-deep); transform: rotate(90deg); }

/* Лайтбокс */
.lightbox-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 0;
  background: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 960px;
  width: 100%;
  max-height: calc(100vh - 48px);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease);
}
.lightbox-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lightbox-fig img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: calc(100vh - 48px);
  object-fit: cover;
}
.lightbox-fig figcaption {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
}
.lightbox-fig h3 { font-size: 24px; }
.lightbox-fig p { color: var(--muted); font-size: 14.5px; }
.lightbox-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.lightbox .work-tag { background: var(--blush); border: none; color: var(--terra-deep); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 253, 249, 0.92);
  color: var(--graphite);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  z-index: 2;
}
.lightbox-nav:hover { background: var(--cream); transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid, .features-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card.is-featured { transform: none; grid-column: 1 / -1; }
  .price-card.is-featured:hover { transform: translateY(-5px); }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 960px) {
  .hero-spark { display: none; } /* декоративные искры не должны мешать тексту в одну колонку */
  .section { padding: 84px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: calc(var(--header-h) + 40px); text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .trust-row { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .badge-1 { left: 0; }
  .badge-2 { right: 0; }
  .learning-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-info { padding: 48px 40px 8px; text-align: center; }
  .contact-list { align-items: center; }
  .messengers { justify-content: center; }
  .main-nav, .nav-phone { display: none; }
  .burger { display: flex; }
  .nav-wrap { gap: 12px; }
  .nav-actions { margin-left: auto; gap: 10px; }
  .nav-actions .btn-sm { padding: 9px 16px; font-size: 13.5px; }
}

@media (max-width: 768px) {
  body { padding-bottom: 58px; }
  .mobile-bar { display: flex; }
  .section { padding: 68px 0; }
  .container { padding: 0 18px; }
  .section-head { margin-bottom: 40px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .price-card { padding: 26px 20px 22px; }
  .price-note { margin-top: 28px; }
  .formats { grid-template-columns: 1fr; }
  .review { padding: 34px 26px; margin-right: 16px; }
  .review blockquote { font-size: 17.5px; }
  .contact-form-wrap { padding: 34px 24px; margin: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .lightbox-box { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox-fig img { max-height: 46vh; min-height: 240px; }
  .lightbox-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .services-grid, .features-grid, .works-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.is-featured { grid-column: auto; }
  .steps-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); }
  .hero-lead { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .trust-row { gap: 10px 20px; }
  .hero-badge { font-size: 12px; padding: 8px 14px; }
  .btn { width: 100%; }
  .hero .btn, .learning-copy .btn { width: 100%; }
  .filters { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-info { padding: 40px 24px 4px; }
  .mobile-menu a { font-size: 26px; }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
