/* ═══════════════════════════════════════════════════════════
   VICTORIA TISHCHENKO — Premium Editorial Redesign
   Palette: warm ivory · graphite · muted wine · taupe
═══════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  /* Backgrounds */
  --bg:        #F8F5F0;   /* warm ivory */
  --bg-2:      #F0EBE3;   /* warm cream */
  --bg-3:      #E8E1D5;   /* warm beige */
  --bg-dark:   #1E1A16;   /* warm near-black for CTA section */

  /* Accent — muted wine / dusty burgundy */
  --accent:       #6B4A4A;
  --accent-mid:   #9E7070;
  --accent-light: #C9A8A8;
  --accent-xlight:#EEE3E3;

  /* Text */
  --text:     #1E1A16;   /* warm graphite */
  --text-2:   #524845;   /* warm gray */
  --text-3:   #8A837C;   /* muted warm gray */
  --text-inv: #F8F5F0;   /* inverse (on dark bg) */

  /* Utility */
  --white:    #FFFFFF;
  --border:   #DDD6CB;
  --border-2: #EBE5DC;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(30, 20, 10, 0.06);
  --shadow-sm: 0 2px 12px rgba(30, 20, 10, 0.07);
  --shadow-md: 0 8px 32px rgba(30, 20, 10, 0.09);
  --shadow-lg: 0 20px 56px rgba(30, 20, 10, 0.12);

  /* Radii */
  --r-sm:  8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 40px;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-h: 72px;
  --t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }

/* ─── TYPOGRAPHY ─── */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-3);
  max-width: 560px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--text-inv);
  border: 1.5px solid var(--text);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn-large {
  padding: 15px 32px;
  font-size: 0.95rem;
}

.btn-inv {
  background: var(--text-inv);
  color: var(--text);
  border: 1.5px solid var(--text-inv);
}

.btn-inv:hover {
  background: transparent;
  color: var(--text-inv);
  border-color: rgba(248,245,240,0.5);
}

.btn-inv-outline {
  background: transparent;
  color: var(--text-inv);
  border: 1.5px solid rgba(248,245,240,0.35);
}

.btn-inv-outline:hover {
  border-color: var(--text-inv);
  background: rgba(248,245,240,0.08);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(248, 245, 240, 0);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(248, 245, 240, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-2);
  box-shadow: var(--shadow-xs);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
  transition: opacity var(--t);
  letter-spacing: 0.01em;
}

.nav-logo:hover { opacity: 0.7; }

.logo-name { font-weight: 600; }

.logo-dot {
  color: var(--accent-light);
  font-size: 0.65rem;
  margin: 0 2px;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.nav-link {
  padding: 7px 13px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all var(--t);
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(248, 245, 240, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 16px 24px 28px;
  border-bottom: 1px solid var(--border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  opacity: 0;
  transition: all var(--t);
  pointer-events: none;
}

.mobile-nav.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-link {
  display: block;
  padding: 13px 14px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: all var(--t);
}

.mobile-link:hover { background: var(--bg-2); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 72px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

/* Subtle warm texture — no coloured blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse, var(--bg-2) 0%, transparent 70%);
  pointer-events: none;
}

/* keep the blob elements in markup but hide completely */
.hero-bg-blobs { display: none; }

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 28px;
  background: var(--white);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-3);
  line-height: 1.78;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-2);
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Hero photo */
.hero-image { display: flex; justify-content: center; }

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Premium glassmorphism photo badges */
.photo-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  box-shadow:
    0 2px 8px  rgba(30, 20, 10, 0.08),
    0 0   0 1px rgba(255, 255, 255, 0.3) inset;
}

.photo-badge-1 { top: 24px;   right: -16px; }
.photo-badge-2 { bottom: 90px; left: -18px; }
.photo-badge-3 { bottom: 26px; right: -14px; }

/* Remove float animations — clean and still */

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator {
  width: 26px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.scroll-dot {
  width: 4px;
  height: 4px;
  background: var(--accent-mid);
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0);   opacity: 1; }
  80%  { transform: translateY(17px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ─── ABOUT ─── */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Decorative offset block */
.about-img-decor {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 55%;
  height: 55%;
  background: var(--bg-2);
  border-radius: var(--r-md);
  z-index: -1;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 36px;
}

.about-text strong { color: var(--text); font-weight: 600; }

.credentials { display: flex; flex-direction: column; gap: 12px; }

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  transition: all var(--t);
  background: var(--bg);
}

.cred-item:hover {
  border-color: var(--border);
  transform: translateX(3px);
}

.cred-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.7;
}

.cred-text { display: flex; flex-direction: column; gap: 1px; }

.cred-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.cred-text span {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ─── PHRASE WIDGET ─── */
.phrase-section { background: var(--bg); }

.phrase-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.phrase-header { padding-top: 8px; }

.phrase-card-wrap { display: flex; flex-direction: column; gap: 24px; }

.phrase-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 4px 32px rgba(30, 26, 22, 0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.phrase-card.is-fading {
  opacity: 0;
  transform: translateY(10px);
}

.phrase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-xlight);
  border: 1px solid var(--accent-light);
  border-radius: 100px;
  padding: 5px 14px;
  width: fit-content;
}

.phrase-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.phrase-body { display: flex; flex-direction: column; gap: 8px; }

.phrase-en {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}

.phrase-transcription {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: 0;
}

.phrase-meaning {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-2);
  margin: 0;
}

.phrase-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1.5px solid var(--border);
}

.phrase-detail-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.phrase-example p,
.phrase-use p {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.phrase-example p { font-style: italic; }
.phrase-use p { color: var(--accent); font-weight: 500; }

.phrase-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.phrase-next-btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--text-inv);
  transform: translateX(3px);
}

.phrase-cta {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.phrase-cta p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-2);
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.phrase-cta .btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 900px) {
  .phrase-layout { grid-template-columns: 1fr; gap: 36px; }
  .phrase-card { padding: 28px 28px; }
  .phrase-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 480px) {
  .phrase-card { padding: 24px 20px; }
  .phrase-cta { padding: 20px 20px; }
}

/* ─── DIRECTIONS ─── */
.directions { background: var(--bg-2); }

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--border);
}

.dir-card {
  background: var(--white);
  padding: 36px 30px;
  transition: background var(--t);
}

.dir-card:hover { background: var(--bg); }

.dir-icon {
  font-size: 1.4rem;
  margin-bottom: 14px;
  display: block;
  opacity: 0.85;
}

.dir-card h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.dir-card p {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.65;
}

/* ─── LESSONS ─── */
.lessons { background: var(--white); }

.lessons-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
}

.lesson-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-2);
  transition: all var(--t);
}

.lesson-feature:last-child { border-bottom: none; }
.lesson-feature:hover { padding-left: 6px; }

.lf-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.lf-text { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }

.lf-text strong { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.lf-text span   { font-size: 0.8rem;  color: var(--text-3); }

.lessons-images {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

/* ─── Outer wrappers: positioning + transform only, NO background ─── */
.lic-primary,
.lic-secondary {
  background: transparent;   /* no white fill — nothing to bleed at corners */
  transition:
    transform  0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Image frame: all visual rendering lives here ─── */
.lic-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;          /* clips image + caption; does NOT clip box-shadow */
  border: 1px solid rgba(30, 20, 10, 0.08);
  /* shadows on the same element as overflow:hidden render outside — no clipping */
  transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lic-frame img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Aspect ratios */
.lic-primary  .lic-frame img { aspect-ratio: 4 / 3; }
.lic-secondary .lic-frame img { aspect-ratio: 16 / 9; }

/* Warm color grading */
.lic-primary .lic-frame img {
  filter: saturate(0.83) sepia(0.07) brightness(0.98);
}
.lic-secondary .lic-frame img {
  filter: saturate(0.70) sepia(0.13) brightness(0.97) contrast(0.96);
}

/* ─── Caption: gradient overlay inside frame, never exposed ─── */
.lic-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 14px 11px;
  background: linear-gradient(to top,
    rgba(18, 13, 8, 0.52) 0%,
    rgba(18, 13, 8, 0.10) 65%,
    transparent 100%);
  font-size: 0.62rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.65);
  line-height: 1;
  pointer-events: none;
}

/* ─── PRIMARY ─── */
.lic-primary {
  position: relative;
  z-index: 2;
  transform: rotate(-1deg);
}

.lic-primary .lic-frame {
  box-shadow:
    0 2px  6px  rgba(30, 20, 10, 0.07),
    0 8px  22px rgba(30, 20, 10, 0.10),
    0 20px 44px rgba(30, 20, 10, 0.08);
}

.lic-primary:hover { transform: rotate(-1deg) translateY(-6px); }

.lic-primary:hover .lic-frame {
  box-shadow:
    0 4px  10px rgba(30, 20, 10, 0.09),
    0 14px 32px rgba(30, 20, 10, 0.12),
    0 28px 56px rgba(30, 20, 10, 0.10);
}

.lic-primary:hover .lic-frame img { transform: scale(1.04); }

/* ─── SECONDARY — 20px real overlap, offset right ─── */
.lic-secondary {
  width: 82%;
  margin-left: 10%;
  margin-top: -20px;
  position: relative;
  z-index: 1;
  transform: rotate(1deg);
}

.lic-secondary .lic-frame {
  box-shadow:
    0 2px  8px  rgba(30, 20, 10, 0.08),
    0 10px 26px rgba(30, 20, 10, 0.11),
    0 24px 50px rgba(30, 20, 10, 0.09);
}

.lic-secondary:hover {
  transform: rotate(1deg) translateY(-5px) translateX(3px);
  z-index: 3;
}

.lic-secondary:hover .lic-frame {
  box-shadow:
    0 4px  12px rgba(30, 20, 10, 0.09),
    0 16px 36px rgba(30, 20, 10, 0.13),
    0 32px 60px rgba(30, 20, 10, 0.10);
}

.lic-secondary:hover .lic-frame img { transform: scale(1.04); }

/* ── legacy selectors neutralised ── */
.lesson-img-card { display: contents; }
.img-caption { display: none; }

/* ─── MATERIALS ─── */
.materials-section { background: var(--bg-alt); }

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.mat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 28px 24px 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
}

.mat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(30, 26, 22, 0.1);
  border-color: var(--border);
}

.mat-card:hover .mat-arrow {
  transform: translateX(4px);
}

.mat-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mat-hue, var(--accent));
  border-radius: 14px 14px 0 0;
  opacity: 0.7;
  transition: opacity 0.28s ease;
}

.mat-card:hover .mat-card-accent {
  opacity: 1;
}

.mat-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.mat-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 12px;
  flex-grow: 1;
}

.mat-excerpt {
  font-family: var(--font-sans);
  font-size: 0.855rem;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 20px;
  flex-grow: 2;
}

.mat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-2);
  padding-top: 14px;
  margin-top: auto;
}

.mat-time {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-3);
}

.mat-cta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mat-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.materials-more {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .materials-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
    /* horizontal scroll on mobile */
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    gap: 14px;
  }
  .mat-card {
    min-width: 78vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ─── ADVANTAGES ─── */
.advantages {
  background: var(--bg-3);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.adv-card {
  background: var(--bg-2);
  padding: 36px 30px;
  transition: background var(--t);
}

.adv-card:hover { background: var(--white); }

.adv-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.adv-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.adv-card p { font-size: 0.86rem; color: var(--text-3); line-height: 1.65; }

/* ─── TEST SECTION ─── */
.test-section { background: var(--bg-2); }

.test-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

.test-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.test-hidden { display: none !important; }

.test-start-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  opacity: 0.8;
}

.test-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.test-card > p {
  font-size: 0.92rem;
  color: var(--text-3);
  margin-bottom: 28px;
}

.test-levels-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.level-tag {
  background: var(--bg-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.level-arrow { color: var(--text-3); font-size: 0.9rem; }

/* Test question */
.test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  text-align: left;
}

.test-level-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.test-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-progress-bar {
  width: 110px;
  height: 3px;
  background: var(--bg-3);
  border-radius: 100px;
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.test-progress-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

.question-num {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-align: left;
}

.question-text {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 24px;
  text-align: left;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  text-align: left;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
  width: 100%;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  flex-shrink: 0;
  transition: all var(--t);
  letter-spacing: 0.03em;
}

.option-btn:hover:not(:disabled):not(.selected):not(.correct):not(.incorrect) {
  border-color: var(--text-2);
  background: var(--bg);
}

.option-btn:hover:not(:disabled):not(.selected):not(.correct):not(.incorrect) .option-letter {
  background: var(--bg-2);
  border-color: var(--text-2);
  color: var(--text);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-xlight);
}

.option-btn.selected .option-letter {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.option-btn.correct {
  border-color: #4A7C59;
  background: #F0F7F2;
  color: #2E5C3C;
}

.option-btn.correct .option-letter {
  background: #4A7C59;
  border-color: #4A7C59;
  color: var(--white);
}

.option-btn.incorrect {
  border-color: #8B3A3A;
  background: #FBF0F0;
  color: #7A2E2E;
}

.option-btn.incorrect .option-letter {
  background: #8B3A3A;
  border-color: #8B3A3A;
  color: var(--white);
}

.option-btn:disabled { cursor: default; }

#nextBtn {
  width: 100%;
  justify-content: center;
}

#nextBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Test transition */
.transition-emoji {
  font-size: 3.2rem;
  margin-bottom: 16px;
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}

.transition-level-badge {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid var(--accent-light);
  padding: 8px 24px;
  border-radius: var(--r-sm);
  display: inline-block;
  margin-top: 14px;
  letter-spacing: 0.08em;
}

/* Test result */
.result-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.result-level-badge {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1;
  letter-spacing: -0.02em;
}

#testResult h3 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-3);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.result-description {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
}

.result-tips {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: left;
}

.result-tips p { font-size: 0.85rem; color: var(--text-3); line-height: 1.65; }

#sendResultBtn  { width: 100%; justify-content: center; }

.test-lead-form {
  margin-top: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  text-align: left;
}

.test-lead-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.test-lead-copy {
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 17px;
}

.test-field {
  display: block;
  margin-bottom: 13px;
}

.test-field > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.test-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.test-field input:focus {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-xlight);
}

.test-field input.is-invalid { border-color: #8B3A3A; }

.test-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 16px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-3);
  cursor: pointer;
}

.test-consent input { margin-top: 3px; accent-color: var(--accent); }
.test-consent a { color: var(--accent); text-decoration: underline; }
.test-lead-form .btn { width: 100%; justify-content: center; }

.test-submit-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #7A2E2E;
  text-align: center;
}

.test-lead-success {
  padding: 22px;
  border: 1px solid #BBD5C2;
  border-radius: var(--r-sm);
  background: #F0F7F2;
  margin: 8px 0 18px;
}

.test-lead-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #4A7C59;
  color: white;
  font-weight: 700;
  margin-bottom: 9px;
}

.test-lead-success h4 { font-size: 1rem; margin-bottom: 5px; }
.test-lead-success p { color: var(--text-2); font-size: 0.84rem; line-height: 1.55; }
.test-telegram-fallback { margin-top: 12px; }

/* Test animation */
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.test-card-enter {
  animation: cardSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ─── PRICING ─── */
.pricing { background: var(--white); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 30px 26px;
  position: relative;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.price-badge-top {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  align-self: flex-start;
}

.price-featured {
  background: var(--white);
  border: 1.5px solid var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.price-free {
  background: var(--bg-2);
}

.price-pair {
  background: var(--bg-2);
}

.price-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  opacity: 0.75;
}

.price-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.price-amount {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.price-per { font-size: 0.8rem; color: var(--text-3); }

.price-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-2);
}

.price-list li::before {
  content: '—';
  color: var(--accent-mid);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.price-card .btn { width: 100%; justify-content: center; }

/* ─── REVIEWS ─── */
.reviews { background: var(--bg-2); }

.reviews-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 22px 32px;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  margin-bottom: 52px;
}

.rv-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.rv-stars {
  display: flex;
  gap: 2px;
  font-size: 1rem;
  color: #B8860B;
  line-height: 1;
}

.rv-stat-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.rv-stat-text {
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
}

.rv-stat-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 1px;
}

.rv-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-2);
}

.rv-stat-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.rv-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
}

/* Masonry grid */
.reviews-grid {
  columns: 3;
  column-gap: 20px;
  margin-bottom: 48px;
}

.rv-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-xs);
  position: relative;
  margin-bottom: 20px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.rv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  /* stop any float animation on hover */
  animation: none !important;
}

/* Subtle float on desktop */
.rv-card:nth-child(odd)  { animation: floatCard1 9s ease-in-out infinite; }
.rv-card:nth-child(even) { animation: floatCard2 11s ease-in-out infinite; }

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-5px); }
}
@keyframes floatCard2 {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-3px); }
}

.rv-card--featured {
  border-color: var(--accent-light);
}

.rv-card-quote {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 0.6;
  color: var(--accent-xlight);
  margin-bottom: 8px;
  display: block;
  height: 24px;
  overflow: visible;
}

.rv-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.76;
  margin-bottom: 18px;
}

.rv-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
  flex-shrink: 0;
}

/* Muted, sophisticated avatar colors */
.rv-avatar--blue   { background: #5A7A9A; }
.rv-avatar--rose   { background: #9A6070; }
.rv-avatar--green  { background: #5A7A65; }
.rv-avatar--purple { background: #7A6A9A; }
.rv-avatar--orange { background: #9A7A50; }
.rv-avatar--teal   { background: #4A7A7A; }

.rv-author { flex: 1; display: flex; flex-direction: column; gap: 1px; }

.rv-author strong { font-size: 0.84rem; font-weight: 600; color: var(--text); }
.rv-author span   { font-size: 0.73rem; color: var(--text-3); }

.rv-rating { font-size: 0.75rem; color: #B8860B; letter-spacing: 1px; flex-shrink: 0; }

.rv-result-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

.reviews-dots { display: none; justify-content: center; gap: 6px; margin-top: -20px; margin-bottom: 36px; }

.rv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--t);
}

.rv-dot.active {
  width: 18px;
  border-radius: 100px;
  background: var(--accent);
}

.reviews-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 44px;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.reviews-cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.reviews-cta-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.reviews-cta-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
}

@media (max-width: 768px) {
  .reviews-cta-left { flex-direction: column; text-align: center; }
}

/* ─── FAQ ─── */
.faq { background: var(--white); }

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border-2); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color var(--t);
  text-align: left;
  gap: 16px;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent-mid);
  flex-shrink: 0;
  transition: transform var(--t);
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.open { max-height: 300px; }

.faq-answer p {
  padding: 0 0 22px;
  font-size: 0.93rem;
  color: var(--text-3);
  line-height: 1.75;
}

/* ─── CONTACTS ─── */
.contacts { background: var(--bg); padding: 80px 0; }

.contacts-card {
  background: var(--bg-dark);
  border-radius: var(--r-xl);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 500px;
}

/* Remove old blob element */
.contacts-bg-blob { display: none; }

.contacts-photo-col {
  position: relative;
  overflow: hidden;
}

.contacts-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.contacts-content {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacts-content .section-label {
  color: var(--accent-light);
}

.contacts-title {
  color: var(--text-inv) !important;
  max-width: 420px;
}

.contacts-title em {
  color: var(--accent-mid) !important;
}

.contacts-text {
  font-size: 1rem;
  color: rgba(248,245,240,0.6);
  max-width: 400px;
  margin-bottom: 36px;
  line-height: 1.78;
}

.contacts-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.contacts-meta {
  font-size: 0.82rem;
  color: rgba(248,245,240,0.35);
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-dot { opacity: 0.4; }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(248,245,240,0.07);
  padding: 36px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer .logo-name { color: rgba(248,245,240,0.9); }
.footer .logo-sub  { color: rgba(248,245,240,0.35); }
.footer .logo-dot  { color: var(--accent-mid); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.83rem;
  color: rgba(248,245,240,0.38);
  transition: color var(--t);
}

.footer-links a:hover { color: rgba(248,245,240,0.7); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(248,245,240,0.25);
}

.footer-copy a {
  color: rgba(248,245,240,0.38);
  transition: color var(--t);
}

.footer-copy a:hover { color: rgba(248,245,240,0.65); }

/* ─── FLOATING TG BUTTON ─── */
.tg-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 52px;
  height: 52px;
  background: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--t);
}

.tg-float:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.fade-up.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .directions-grid,
  .adv-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  .reviews-grid { columns: 2; }

  .contacts-card { grid-template-columns: 1fr 1.2fr; }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-image { order: -1; }
  .hero-photo-wrap { max-width: 340px; margin: 0 auto; }
  .photo-badge-1 { right: -6px; }
  .photo-badge-2 { left: -6px; }
  .photo-badge-3 { right: -6px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .lessons-layout { grid-template-columns: 1fr; gap: 48px; }
  .lessons-images { position: static; margin-top: 8px; }
  /* Reset composition on mobile — clean stack, no tilt, no overlap */
  .lic-primary  { transform: none; }
  .lic-secondary {
    width: 100%;
    margin-left: 0;
    margin-top: 16px;
    transform: none;
  }
  .lic-primary:hover  { transform: translateY(-4px) !important; }
  .lic-secondary:hover { transform: translateY(-3px) !important; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .contacts-card {
    grid-template-columns: 1fr;
    border-radius: var(--r-lg);
  }

  .contacts-photo-col {
    height: 340px;
  }

  .contacts-content { padding: 48px 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-h) + 28px); }

  .directions-grid,
  .adv-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }

  .reviews-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links { justify-content: center; }

  .test-card { padding: 32px 24px; }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons .btn { width: 100%; justify-content: center; }

  .hero-stats { gap: 18px; }
  .stat-num   { font-size: 1.4rem; }

  .contacts-content { padding: 40px 28px; }

  .contacts-buttons { flex-direction: column; }
  .contacts-buttons .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .reviews-grid {
    columns: unset;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 4px 14px;
    margin-left: -28px;
    margin-right: -28px;
    padding-left: 28px;
    padding-right: 28px;
    scrollbar-width: none;
  }

  .reviews-grid::-webkit-scrollbar { display: none; }

  .rv-card {
    min-width: 80vw;
    max-width: 80vw;
    flex-shrink: 0;
    scroll-snap-align: start;
    margin-bottom: 0;
    animation: none !important;
  }

  .reviews-dots { display: flex; }

  .reviews-stats { gap: 16px; padding: 16px 20px; }
  .rv-stat-divider { height: 26px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .tg-float { bottom: 20px; right: 20px; }
  .hero-stats { flex-wrap: wrap; }
  .contacts-photo-col { height: 260px; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM ENHANCEMENTS — Live, Emotional, Editorial
═══════════════════════════════════════════════════════════ */

/* ─── HERO ANIMATED GRADIENT ─── */
.hero {
  background: linear-gradient(
    130deg,
    var(--bg)    0%,
    var(--bg-2)  35%,
    #EDE6DA      70%,
    var(--bg)    100%
  );
  background-size: 240% 240%;
  animation: heroGradientDrift 18s ease-in-out infinite;
}

@keyframes heroGradientDrift {
  0%   { background-position: 0%   0%;   }
  33%  { background-position: 60%  40%;  }
  66%  { background-position: 100% 100%; }
  100% { background-position: 0%   0%;   }
}

/* ─── FLOATING ENGLISH WORDS ─── */
.hero-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hw {
  position: absolute;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  opacity: 0;
  white-space: nowrap;
  user-select: none;
  animation: hwFloat linear infinite;
}

.hw-1 { font-size: 0.8rem;  top: 18%;  left: 5%;   animation-duration: 22s; animation-delay: 0s;   }
.hw-2 { font-size: 0.75rem; top: 72%;  left: 8%;   animation-duration: 26s; animation-delay: -8s;  }
.hw-3 { font-size: 0.7rem;  top: 30%;  right: 4%;  animation-duration: 20s; animation-delay: -5s;  }
.hw-4 { font-size: 0.9rem;  top: 55%;  right: 7%;  animation-duration: 24s; animation-delay: -14s; }
.hw-5 { font-size: 0.68rem; top: 85%;  left: 30%;  animation-duration: 28s; animation-delay: -3s;  }
.hw-6 { font-size: 0.72rem; top: 12%;  right: 18%; animation-duration: 19s; animation-delay: -11s; }
.hw-7 { font-size: 0.65rem; top: 62%;  left: 52%;  animation-duration: 23s; animation-delay: -7s;  }

@keyframes hwFloat {
  0%   { opacity: 0;    transform: translateY(12px);  }
  10%  { opacity: 0.055; }
  50%  { opacity: 0.085; transform: translateY(-10px); }
  90%  { opacity: 0.055; }
  100% { opacity: 0;    transform: translateY(12px);  }
}

/* ─── HERO SOCIAL PROOF ─── */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-top: 28px;
}

.hp-stars {
  color: #B8860B;
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.hp-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}

.hp-sep { color: var(--border); font-size: 0.75rem; }

.hp-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  padding: 3px 9px;
  border-radius: 4px;
  transition: all var(--t);
}

.hp-tag:hover {
  border-color: var(--accent-light);
  color: var(--accent);
}

/* ─── HERO HINT TEXT ─── */
.hero-hint {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-hint em {
  font-style: italic;
  color: var(--accent-mid);
  font-family: var(--font-serif);
}

/* ─── HERO STATS spacing fix ─── */
.hero-stats { padding-top: 24px; margin-top: 4px; }

/* ─── HERO PHOTO PARALLAX wrapper ─── */
.hero-photo-wrap {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ─── CARD HOVER LIFT (global upgrade) ─── */
.dir-card,
.adv-card,
.price-card,
.lic-wrap,
.cred-item,
.rv-card {
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
}

/* Direction cards grid hover glow */
.dir-card:hover {
  box-shadow: 0 6px 28px rgba(30,20,10,0.08);
  background: var(--bg-2) !important;
  z-index: 1;
}

.adv-card:hover {
  box-shadow: 0 6px 28px rgba(30,20,10,0.08);
  z-index: 1;
}

/* ─── EMOTIONAL SECTION ─── */
.emotional {
  background: var(--bg-dark);
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}

/* Warm ambient light gradients */
.em-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 40%, rgba(107, 74, 74, 0.18), transparent),
    radial-gradient(ellipse 35% 50% at 10% 75%, rgba(80, 50, 40, 0.12), transparent);
  pointer-events: none;
}

/* ── Background decorative words (full section, absolute) ── */
.em-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.em-dw {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 1);
  white-space: nowrap;
  will-change: transform;
}

.em-dw-1 {
  font-size: clamp(10rem, 22vw, 20rem);
  opacity: 0.025;
  top: -5%;
  left: -3%;
  filter: blur(2px);
  animation: emDwDrift1 20s ease-in-out infinite;
}

.em-dw-2 {
  font-size: clamp(7rem, 15vw, 14rem);
  opacity: 0.018;
  bottom: 0;
  right: -4%;
  filter: blur(3px);
  animation: emDwDrift2 26s ease-in-out infinite;
}

.em-dw-3 {
  font-size: clamp(5rem, 10vw, 9rem);
  opacity: 0.022;
  bottom: 20%;
  left: 30%;
  filter: blur(1.5px);
  animation: emDwDrift1 18s ease-in-out infinite reverse;
}

@keyframes emDwDrift1 {
  0%, 100% { transform: translate(0, 0);    }
  50%       { transform: translate(12px, -8px); }
}
@keyframes emDwDrift2 {
  0%, 100% { transform: translate(0, 0);    }
  50%       { transform: translate(-10px, 6px); }
}

/* ── Two-column layout ── */
.emotional-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: 420px;
}

/* ── LEFT column ── */
.em-left {
  display: flex;
  flex-direction: column;
}

.em-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 20px;
}

.em-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-inv);
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.em-title em {
  font-style: italic;
  color: var(--accent-mid);
}

.em-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0 20px;
}

.em-lines p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(248, 245, 240, 0.52);
  line-height: 1.45;
  transition: color 0.5s ease;
}

.em-lines p:hover { color: rgba(248, 245, 240, 0.88); }

.em-sub {
  font-size: 0.92rem;
  color: rgba(248, 245, 240, 0.38);
  line-height: 1.82;
  margin-bottom: 28px;
  max-width: 440px;
}

.em-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.em-tags span {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.22);
  border: 1px solid rgba(248, 245, 240, 0.09);
  padding: 5px 11px;
  border-radius: 4px;
  transition: all 0.4s ease;
}

.em-tags span:hover {
  color: rgba(248, 245, 240, 0.55);
  border-color: rgba(248, 245, 240, 0.2);
}

/* ── RIGHT column — decorative typographic composition ── */
.em-right {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.em-vis {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Shared word style */
.ev {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: rgba(248, 245, 240, 1);
  line-height: 0.88;
  will-change: transform;
  user-select: none;
}

/* "NO" — top-left of right column, large, moderately visible */
.ev-no {
  font-size: clamp(6rem, 12vw, 11rem);
  top: 2%;
  left: 0;
  opacity: 0.1;
  animation: evDrift1 10s ease-in-out infinite;
}

/* "FEAR" — below, offset right, main editorial word */
.ev-fear {
  font-size: clamp(6rem, 12vw, 11rem);
  top: 36%;
  left: 14%;
  opacity: 0.07;
  filter: blur(0.5px);
  animation: evDrift2 13s ease-in-out infinite;
}

/* "CONFIDENCE" — bottom, faded, blurred */
.ev-conf {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  bottom: 8%;
  left: 2%;
  opacity: 0.045;
  filter: blur(1.5px);
  letter-spacing: 0.04em;
  font-weight: 400;
  animation: evDrift1 16s ease-in-out infinite reverse;
}

/* Thin vertical divider line */
.ev-line {
  position: absolute;
  top: 22%;
  right: 8%;
  width: 1px;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(248, 245, 240, 0.15) 30%,
    rgba(248, 245, 240, 0.15) 70%,
    transparent
  );
}

/* Rotated phrase beside the line */
.ev-phrase {
  position: absolute;
  top: 30%;
  right: -32px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.18);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

@keyframes evDrift1 {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-9px); }
}
@keyframes evDrift2 {
  0%, 100% { transform: translateY(0) translateX(0);  }
  50%       { transform: translateY(7px) translateX(5px); }
}

/* ─── REVIEWS CARD HOVER ENHANCEMENT ─── */
.rv-card {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s cubic-bezier(0.4,0,0.2,1),
              border-color 0.4s ease;
}

/* Highlight key phrase on hover */
.rv-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* Achievement tags already in .rv-result-badge, add pulse on hover */
.rv-result-badge {
  transition: all var(--t);
}

.rv-card:hover .rv-result-badge {
  background: var(--accent-xlight);
  border-color: var(--accent-mid);
  color: var(--accent);
}

/* ─── STATS COUNTER ANIMATION ─── */
.stat-num {
  transition: all var(--t);
  display: inline-block;
}

/* ─── FOOTER REDESIGN ─── */
.footer {
  padding: 64px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248,245,240,0.08);
  margin-bottom: 28px;
}

.footer-logo { margin-bottom: 14px; display: inline-flex; }

.footer-bio {
  font-size: 0.84rem;
  color: rgba(248,245,240,0.4);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 280px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(248,245,240,0.45);
  transition: color var(--t);
}

.footer-contact-link:hover { color: rgba(248,245,240,0.85); }
.footer-contact-link svg { flex-shrink: 0; opacity: 0.6; }

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.3);
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.84rem;
  color: rgba(248,245,240,0.4);
  transition: color var(--t);
}

.footer-nav a:hover { color: rgba(248,245,240,0.8); }

.footer-cta-quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(248,245,240,0.55);
  line-height: 1.55;
  margin-bottom: 22px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(248,245,240,0.22);
}

.footer-copy a {
  color: rgba(248,245,240,0.35);
  transition: color var(--t);
}

.footer-copy a:hover { color: rgba(248,245,240,0.65); }

.footer-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(248,245,240,0.18);
  letter-spacing: 0.02em;
}

/* ─── SMOOTH REVEAL enhancement ─── */
.fade-up, .fade-left, .fade-right {
  transition-duration: 0.75s;
}

/* Stagger children inside cards grid */
.directions-grid .dir-card:nth-child(1),
.adv-grid .adv-card:nth-child(1),
.pricing-grid .price-card:nth-child(1) { transition-delay: 0.05s; }
.directions-grid .dir-card:nth-child(2),
.adv-grid .adv-card:nth-child(2),
.pricing-grid .price-card:nth-child(2) { transition-delay: 0.12s; }
.directions-grid .dir-card:nth-child(3),
.adv-grid .adv-card:nth-child(3),
.pricing-grid .price-card:nth-child(3) { transition-delay: 0.19s; }
.directions-grid .dir-card:nth-child(4),
.adv-grid .adv-card:nth-child(4),
.pricing-grid .price-card:nth-child(4) { transition-delay: 0.26s; }
.directions-grid .dir-card:nth-child(5),
.pricing-grid .price-card:nth-child(5) { transition-delay: 0.32s; }
.directions-grid .dir-card:nth-child(6) { transition-delay: 0.38s; }

/* ─── RESPONSIVE additions ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-cta-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .emotional { padding: 88px 0; }
  .emotional-inner { grid-template-columns: 1fr; gap: 0; min-height: auto; }
  .em-right { display: none; }
  .em-title { font-size: 3rem; }
  .em-lines p { font-size: 1.2rem; }
  .em-deco { opacity: 0.6; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-cta-col { grid-column: auto; }

  .hero-proof { margin-top: 20px; }
}

@media (max-width: 480px) {
  .emotional { padding: 72px 0; }
  .em-title { font-size: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-words { display: none; }
}
