/* =========================================================
   Школа рисования Анны Калимуллиной — стили (v2, editorial)
   ========================================================= */

:root {
  --ink: #201712;
  --ink-2: #33261c;
  --cream: #f7f0e5;
  --cream-2: #f0e6d4;
  --paper: #fffdf8;
  --line: #e6d9c4;
  --terracotta: #f2542d;
  --terracotta-dark: #d8431c;
  --forest: #24493c;
  --forest-deep: #172f27;
  --sage: #7d9b74;
  --gold: #e9a13b;
  --rose: #e8b4a0;
  --sky: #7ea3b8;
  --plum: #7c5a78;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 30px 60px -30px rgba(80, 55, 35, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--terracotta); color: #fff; }

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

section[id] { scroll-margin-top: 92px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Зерно / текстура ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(242, 84, 45, 0.75);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-3px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(32, 23, 18, 0.25);
}
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.btn-outline {
  background: transparent;
  color: var(--terracotta-dark);
  border-color: var(--terracotta);
}
.btn-outline:hover { background: var(--terracotta); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 229, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 14px 40px -30px rgba(80, 55, 35, 0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo-mark { color: var(--terracotta); display: grid; place-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.08; }
.logo-name { font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; letter-spacing: 0.2px; }
.logo-sub { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 3px; color: #8a7a68; }

.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.94rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: width 0.28s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px 4px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 130px);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  will-change: transform;
}
.hero-blob--1 { width: 480px; height: 480px; background: #f4c9ae; top: -160px; right: -120px; opacity: 0.8; }
.hero-blob--2 { width: 420px; height: 420px; background: #dce3c4; bottom: -180px; left: -120px; opacity: 0.75; }
.hero-blob--3 { width: 300px; height: 300px; background: #f4d9a6; top: 30%; left: 42%; opacity: 0.5; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--terracotta-dark);
  background: #fbe4d8;
  border: 1px solid #f3c5b1;
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0 0 26px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -1.5px;
  margin: 0 0 26px;
}
.h1-line { display: block; }
.hero-title em {
  font-style: italic;
  font-weight: 380;
  color: var(--terracotta);
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: -4px; right: -6px; bottom: 0.04em;
  height: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q 50 0 100 7 T 200 6' fill='none' stroke='%23f2542d' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
  opacity: 0.55;
}
.h1-outline {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
  font-weight: 650;
}

.hero-text {
  font-size: 1.14rem;
  color: #5a4b3e;
  max-width: 33rem;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #7a6a58;
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-points li { position: relative; padding-left: 16px; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(320px, 42vw, 520px);
}
.color-wheel {
  width: clamp(260px, 34vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--terracotta), var(--gold), var(--forest), var(--sky),
    var(--plum), var(--rose), var(--terracotta)
  );
  position: relative;
  box-shadow: 0 40px 80px -40px rgba(80, 55, 35, 0.6);
}
.color-wheel::before {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(32, 23, 18, 0.08);
}
.wheel-hole {
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream-2);
  top: 8%;
  left: 44%;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.15);
}

.spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.spinner svg {
  width: 74%;
  height: 74%;
  animation: spin 26s linear infinite;
}
.spinner text {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  fill: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  animation: float 6s ease-in-out infinite;
}
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.dot--sage { background: var(--sage); }
.dot--gold { background: var(--gold); }
.dot--terracotta { background: var(--terracotta); }
.chip-1 { top: 12%; left: -2%; animation-delay: 0s; }
.chip-2 { bottom: 16%; right: -4%; animation-delay: 1.4s; }
.chip-3 { bottom: 2%; left: 12%; animation-delay: 2.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding-right: 12px;
}
.marquee-track i {
  font-style: normal;
  color: var(--terracotta);
  padding: 0 8px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.testimonials, .pricing { background: var(--paper); }

.section-head { max-width: 640px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin: 0 0 16px;
}
.eyebrow--light { color: var(--rose); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.section-title em { font-style: italic; color: var(--terracotta); }
.section-title--light { color: var(--cream); }
.section-sub { color: #6a5a4a; font-size: 1.06rem; margin: 0; }
.section-sub--light { color: rgba(247, 240, 229, 0.68); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-copy > p { color: #5a4b3e; margin: 0 0 16px; font-size: 1.04rem; }

.about-visual { position: relative; padding: 12px; }
.frame-frame {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(140deg, var(--rose), #f0c9b4);
  transform: rotate(4deg);
}
.photo-card {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #f6e6d4, #e9cbb0);
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease);
}
.about-visual:hover .photo-card { transform: rotate(0deg); }
.photo-fill { position: absolute; inset: 0; }
.photo-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 22%, #f0c9b4 0%, transparent 55%),
    radial-gradient(60% 55% at 75% 70%, #d8a284 0%, transparent 60%),
    linear-gradient(160deg, #f6e6d4, #e0b18d);
}
.photo-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 10px 30px rgba(140, 80, 50, 0.35);
}

.sticker {
  position: absolute;
  top: -8px;
  right: -14px;
  width: clamp(90px, 12vw, 128px);
  aspect-ratio: 1;
  filter: drop-shadow(0 14px 22px rgba(80, 55, 35, 0.35));
}
.sticker svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.sticker text {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  fill: var(--terracotta-dark);
}
.sticker-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.6rem;
  color: var(--terracotta-dark);
}

.signature {
  position: absolute;
  bottom: 8px;
  left: 30px;
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--terracotta-dark);
  transform: rotate(-4deg);
  opacity: 0.9;
}

.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 600; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 0.74rem;
  display: grid;
  place-items: center;
}

/* ---------- Courses ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.course-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-soft); border-color: transparent; }
.course-num {
  position: absolute;
  top: 6px; right: 18px;
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line);
  pointer-events: none;
}
.course-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--terracotta-dark);
  background: #fbe6dc;
  margin-bottom: 20px;
}
.course-icon svg { width: 30px; height: 30px; }
.course-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 620; margin: 0 0 10px; }
.course-card p { color: #6a5a4a; margin: 0 0 18px; font-size: 0.95rem; }
.course-meta {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--forest);
}

.course-card--tint { background: #f3ead9; border-color: #e8d9be; }
.course-card--tint .course-icon { background: #e5efdc; color: var(--forest); }
.course-card--tint .course-meta { color: var(--terracotta-dark); }

.course-card--dark { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.course-card--dark h3 { color: #fff; }
.course-card--dark p { color: rgba(247, 240, 229, 0.72); }
.course-card--dark .course-icon { background: rgba(255,255,255,0.12); color: var(--gold); }
.course-card--dark .course-num { -webkit-text-stroke: 1.2px rgba(255,255,255,0.22); }
.course-card--dark .course-meta { color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery {
  background: var(--forest-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(125, 155, 116, 0.16), transparent 60%),
    radial-gradient(50% 40% at 100% 100%, rgba(242, 84, 45, 0.12), transparent 60%);
}
.gallery .container { position: relative; z-index: 1; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 30px;
}
.gallery-item { margin: 0; cursor: pointer; }
.frame {
  padding: 11px;
  background: linear-gradient(145deg, #c9a15e, #8a6134);
  border-radius: 6px;
  box-shadow: 0 30px 50px -26px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.35s var(--ease);
}
.gallery-item:hover .frame { transform: translateY(-8px) rotate(-1deg); }
.frame .art {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25), inset 0 0 24px rgba(0,0,0,0.18);
}
.gallery-item figcaption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  text-align: center;
  color: var(--cream);
}
.gallery-item figcaption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: rgba(247, 240, 229, 0.55);
  margin-top: 2px;
}

/* Абстрактные «картины» */
.art-1 { background: linear-gradient(160deg, #bcd7de 0%, #7fa8b8 45%, #e8d3a8 100%); }
.art-1::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 90px at 60% 62%, #fff 0%, transparent 70%); opacity: 0.85; }
.art-1::after { content: ""; position: absolute; bottom: -30px; left: -20px; width: 70%; height: 55%; background: #3f5a5e; border-radius: 50% 50% 0 0; opacity: 0.55; }

.art-2 { background: linear-gradient(180deg, #f6d9a8 0%, #eeb27a 55%, #c96b4a 100%); }
.art-2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 45%; background: radial-gradient(160px 90px at 70% 100%, #fff2d8 0%, transparent 70%); }
.art-2::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 55%; background: linear-gradient(160deg, #9a5f3e, #6f3f2a); clip-path: polygon(0 60%, 30% 30%, 55% 70%, 100% 20%, 100% 100%, 0 100%); }

.art-3 { background: linear-gradient(160deg, #f2ead2 0%, #dfe8cf 100%); }
.art-3::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(30px 30px at 20% 30%, #d98a7a 0%, transparent 60%),
    radial-gradient(26px 26px at 45% 55%, #e9b44c 0%, transparent 60%),
    radial-gradient(28px 28px at 70% 35%, #b87ba6 0%, transparent 60%),
    radial-gradient(24px 24px at 35% 72%, #7a8b6f 0%, transparent 60%),
    radial-gradient(22px 22px at 75% 70%, #d98a7a 0%, transparent 60%); }
.art-3::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 45%; background: #8aa36b; clip-path: polygon(0 50%, 20% 30%, 45% 55%, 70% 25%, 100% 45%, 100% 100%, 0 100%); }

.art-4 { background: linear-gradient(150deg, #e8e2d5 0%, #d5ccb9 100%); }
.art-4::before { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, transparent 49.5%, rgba(90,75,60,.35) 50%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, rgba(90,75,60,.2) 50%, transparent 50.5%);
    background-size: 100% 40%, 100% 40%; background-position: 0 30%, 0 70%; background-repeat: no-repeat; }
.art-4::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, transparent 40%, rgba(120,100,80,.25) 40%, rgba(120,100,80,.25) 41%, transparent 41%); }

.art-5 { background: linear-gradient(150deg, #5a3a2e 0%, #3d2720 70%, #8a3a2e 100%); }
.art-5::before { content: ""; position: absolute; left: 15%; top: 20%; width: 42%; height: 55%; background: #b84a3a; border-radius: 50% 50% 48% 52% / 55% 48% 52% 45%; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.art-5::after { content: ""; position: absolute; right: 12%; bottom: 14%; width: 34%; height: 42%; background: #b84a3a; border-radius: 50%; opacity: 0.85; }

.art-6 { background: linear-gradient(180deg, #dfe7ea 0%, #b8c8d2 100%); }
.art-6::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 40%; background: #8a9ba8; clip-path: polygon(0 100%, 25% 40%, 45% 100%, 65% 30%, 100% 100%); }
.art-6::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90px 60px at 50% 45%, #fff 0%, transparent 70%); opacity: 0.9; }

/* ---------- Testimonials ---------- */
.testimonials-slider { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.5;
  color: var(--rose);
  display: block;
  margin-bottom: 6px;
}
.testimonials-track { display: flex; overflow: hidden; }
.testimonial { flex: 0 0 100%; padding: 4px 20px; margin: 0; opacity: 0; transition: opacity 0.5s ease; }
.testimonial.is-active { opacity: 1; }
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.38;
  font-weight: 480;
  margin: 0 0 26px;
  color: var(--ink);
}
.testimonial footer strong { display: block; font-size: 1rem; font-weight: 800; }
.testimonial footer span { color: #8a7a68; font-size: 0.9rem; font-weight: 600; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.slider-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.slider-btn:hover { border-color: var(--terracotta); color: var(--terracotta-dark); transform: scale(1.06); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.slider-dots button.is-active { background: var(--terracotta); transform: scale(1.35); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.price-card h3 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 620; margin: 0 0 8px; }
.price-card > p { color: #6a5a4a; margin: 0 0 22px; }
.price { margin-bottom: 22px; }
.price-value { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; letter-spacing: -1px; }
.price-period { display: block; color: #8a7a68; font-size: 0.85rem; font-weight: 600; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; }
.price-card ul li { position: relative; padding-left: 28px; font-size: 0.95rem; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--forest); font-weight: 800; }
.price-card .btn { margin-top: auto; }

.price-card--featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: scale(1.03);
  box-shadow: 0 40px 70px -40px rgba(32, 23, 18, 0.7);
}
.price-card--featured:hover { transform: scale(1.03) translateY(-6px); }
.price-card--featured h3 { color: #fff; }
.price-card--featured > p { color: rgba(255,255,255,0.68); }
.price-card--featured .price-value { color: #fff; }
.price-card--featured .price-period { color: rgba(255,255,255,0.5); }
.price-card--featured ul li::before { color: var(--terracotta); }
.price-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq-inner { max-width: 780px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 24px; transition: background 0.2s ease; }
.faq-item[open] { background: var(--paper); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 38px;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--terracotta);
  transition: transform 0.25s var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0 0 20px; color: #5a4b3e; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 55% at 85% 15%, rgba(242, 84, 45, 0.18), transparent 60%);
}
.contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact-copy > p { color: rgba(247, 240, 229, 0.7); margin: 0 0 30px; font-size: 1.06rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 15px; }
.contact-icon {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--terracotta);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,0.12);
}
.contact-list a, .contact-list span { color: var(--cream); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--terracotta); }

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow: 0 50px 90px -50px rgba(0,0,0,0.7);
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form label > span { font-size: 0.84rem; font-weight: 700; color: #6a5a4a; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(242, 84, 45, 0.14);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn-block { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 0.75rem; color: #8a7a68; text-align: center; margin: -6px 0 0; }
.form-success { grid-column: 1 / -1; background: #e7efe0; color: #3d5a33; border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; font-weight: 700; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 240, 229, 0.7); padding: 50px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo--footer { color: var(--cream); }
.logo--footer .logo-sub { color: rgba(247, 240, 229, 0.45); }
.footer-note { margin: 0; font-size: 0.88rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 12, 8, 0.92);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-body { max-width: min(760px, 100%); max-height: 86vh; }
.lightbox-body .art { aspect-ratio: 4 / 5; max-height: 72vh; width: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.lightbox-caption { color: #fff; text-align: center; font-family: var(--font-display); font-size: 1.4rem; margin-top: 18px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { color: var(--terracotta); transform: rotate(90deg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.courses-grid .reveal:nth-child(2), .gallery-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.courses-grid .reveal:nth-child(3), .gallery-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.courses-grid .reveal:nth-child(4) { transition-delay: 0.06s; }
.courses-grid .reveal:nth-child(5) { transition-delay: 0.12s; }
.courses-grid .reveal:nth-child(6) { transition-delay: 0.18s; }

/* ---------- Адаптивность ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: -1; height: clamp(280px, 60vw, 380px); }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-visual { max-width: 440px; margin-inline: auto; }
  .courses-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-6px); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 32px); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .main-nav.is-open { max-height: 360px; box-shadow: 0 30px 50px -30px rgba(80, 55, 35, 0.5); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .courses-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .chip-1 { left: -2%; } .chip-2 { right: -2%; } .chip-3 { left: 6%; }
  .float-chip { padding: 8px 14px; font-size: 0.82rem; }
  .contact-form { grid-template-columns: 1fr; padding: 26px; }
  .sticker { right: -6px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .marquee-track span { font-size: 1.5rem; }
}
