
:root {
  /* Кольорова гама зі стилю "Serene Balance" */
  --bg: #fcf9f6;                      /* background / surface */
  --bg2: #f0edea;                     /* surface-container */
  --bg3: #eae8e5;                     /* surface-container-high */
  --text: #1c1c1a;                    /* on-surface / on-background */
  --text-dim: #414844;                /* on-surface-variant */
  --white: #ffffff;                   /* surface-container-lowest / чисто білий для карток */
  
  --primary-dark: #012d1d;            /* primary (Forest Green) */
  --primary-container: #1b4332;       /* primary-container */
  --secondary-teal: #326852;          /* secondary (Muted Teal) */
  --tertiary-sand: #b3a48f;           /* on-tertiary-container / Warm Sand */
  --outline-variant: #c1c8c2;         /* тоніровані легкі межі */

  /* Скруглення з DESIGN.md */
  --radius-sm: 0.25rem;
  --radius-default: 0.5rem;
  --radius-full: 9999px;
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif; /* Згідно з DESIGN.md для body copy */
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
html, body {
  max-width: 100%;
  overflow-x: hidden; /* Скрывает всё, что пытается вылезти за правый край */
}

/* LANG SWITCHER & LOGO */
.logo {
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
  font-style: italic;
}
.logo-wrap{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
}

.logo-icon{
    width:36px;
}

/* LANG SWITCHER & LOGO */
.lang-bar {
  position: fixed; 
  top: 0; left: 0; right: 0; 
  z-index: 100;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 20px 40px;
  
  /* Идеально прозрачное меню с эффектом размытия заднего плана */
  background: rgba(252, 249, 246, 0.4); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  /* Едва заметная благородная линия снизу */
  border-bottom: 1px solid rgba(65, 72, 68, 0.05);
}

/* Щоб кнопки мови були з правого боку, оскільки ми додали логотип у флекс */
.lang-bar div:last-child, 
.lang-bar button:first-of-type {
  margin-left: auto;
}

.lang-btn {
  background: none; 
  border: 1px solid var(--outline-variant);
  color: var(--text-dim); 
  font-family: 'Manrope', sans-serif;
  font-size: 12px; 
  font-weight: 600;
  letter-spacing: 0.1em; 
  padding: 6px 16px;
  cursor: pointer; 
  transition: all .3s ease; 
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.lang-btn.active { 
  border-color: var(--primary-dark); 
  color: var(--primary-dark); 
  background-color: rgba(1, 45, 29, 0.05);
}

.lang-btn:hover { 
  color: var(--secondary-teal); 
  border-color: var(--secondary-teal); 
}

/* Обёртка lang-bar — флекс с тремя зонами */
.lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Кнопки языков сгруппированы справа */
.lang-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Центральная зона с дропдауном */
.nav-dropdown-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

/* Кнопка навигации — тот же стиль что lang-btn */
.nav-toggle-btn {
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* Выпадающее меню */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  border-radius: 14px;
  padding: 10px 0;
  background: linear-gradient(160deg, #1a3a5c 0%, #0d2340 50%, #1a4a3a 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  overflow: hidden;
}

.nav-dropdown.open {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 10px 22px;
  color: #e8f4e8;
  text-decoration: none;
  font-size: 0.95em;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg); /* Основной подкладочный благородный цвет */
}

/* Мощный контрастный фоновый слой */
.hero-bg {
  position: absolute;
  inset: -100px; /* Запас для параллакса */
  z-index: 1;
  pointer-events: none;
  
  /* Динамический точечный фон (Dotted Grid), адаптированный под Serene Balance */
  background-image: radial-gradient(rgba(65, 72, 68, 0.08) 1.5px, transparent 1.5px);
  background-size: 20px 20px; /* Расстояние между точками */
  background-position: center;
  
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}

/* Левый песочный градиент (яркий и сочный) */
.hero-bg::before {
  content: '';
  position: absolute; 
  inset: 0;
  background: radial-gradient(circle 45vw at 25% 75%, rgba(179, 164, 143, 0.45) 0%, transparent 75%);
  animation: pulseGlowA 6s ease-in-out infinite alternate;
  z-index: -1; /* Чтобы точки ложились поверх цвета */
}

/* Правый лесной зеленый градиент */
.hero-bg::after {
  content: '';
  position: absolute; 
  inset: 0;
  background: radial-gradient(circle 50vw at 72% 28%, rgba(50, 104, 82, 0.35) 0%, transparent 75%);
  animation: pulseGlowB 5s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes pulseGlowA {
  0% { opacity: 0.5; transform: scale(0.93) translate(-10px, 10px); }
  100% { opacity: 1; transform: scale(1.07) translate(10px, -10px); }
}

@keyframes pulseGlowB {
  0% { opacity: 0.6; transform: scale(1.08) translate(10px, -5px); }
  100% { opacity: 1; transform: scale(0.92) translate(-10px, 5px); }
}

/* СЕТКА КОНТЕНТА HERO */
.hero-container {
  display: grid;
  /* Даем текстовой колонке больше места, чтобы ФИО помещалось */
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
}

.hero-ornament {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; 
  font-weight: 600;
  letter-spacing: 0.1em; 
  color: var(--secondary-teal);
  text-transform: uppercase; 
  margin-bottom: 20px;
  display: inline-block;
}
.hero-subtitle { 
  padding-top: 30px; 
  display:block; 
  font-size: 16px; 
  font-family: 'Manrope', 
  sans-serif; text-transform: 
  uppercase; letter-spacing: 2px; 
  color: var(--tertiary-sand); 
}

/* Оживление звёздочки: радужный перелив, вращение и сияние */
.hero-ornament::after {
  content: '✦'; 
  margin-left: 12px; 
  opacity: 1; /* Делаем цвета сочными, убирая прошлую полупрозрачность */
  display: inline-block; /* Позволяет трансформировать (вращать и масштабировать) символ */
  vertical-align: middle;
  font-size: 14px; /* Слегка увеличиваем акцент на магии */
  
  /* Запускаем одновременно две анимации: плавную смену цветов и мерцание с поворотом */
  animation: 
    rainbow-shift 8s linear infinite, 
    star-sparkle 3s ease-in-out infinite alternate;
}

/* Анимация №1: Плавное переливание по всему спектру радуги + цветное свечение */
@keyframes rainbow-shift {
  0%   { color: #ff595e; filter: drop-shadow(0 0 2px rgba(255,89,94,0.6)); }
  17%  { color: #ffca3a; filter: drop-shadow(0 0 4px rgba(255,202,58,0.8)); }
  34%  { color: #8ac926; filter: drop-shadow(0 0 2px rgba(138,201,38,0.6)); }
  51%  { color: #1982c4; filter: drop-shadow(0 0 4px rgba(25,130,196,0.8)); }
  68%  { color: #6a4c93; filter: drop-shadow(0 0 2px rgba(106,76,147,0.6)); }
  85%  { color: #ff60a8; filter: drop-shadow(0 0 4px rgba(255,96,168,0.8)); }
  100% { color: #ff595e; filter: drop-shadow(0 0 2px rgba(255,89,94,0.6)); }
}

/* Анимация №2: Эффект «биения сердца» звезды (мягкое покачивание и пульсация размера) */
@keyframes star-sparkle {
  0% {
    transform: scale(0.9) rotate(-10deg);
  }
  100% {
    transform: scale(1.25) rotate(35deg);
  }
}

.hero h1 {
  font-family: 'EB Garamond', serif;
  /* Оптимизированный размер шрифта */
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  /* Запрещаем перенос ФИО на десктопах */
  white-space: nowrap; 
}

.hero h1 span { 
  color: var(--secondary-teal); 
  font-style: italic; 
}

.hero-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 18px; 
  color: var(--text-dim);
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 680px;
}

.hero-divider {
  width: 120px; height: 1px;
  background: linear-gradient(to right, var(--tertiary-sand), transparent);
  margin-bottom: 28px;
}


.hero-image-wrapper {
  position: relative;

  width: fit-content;

  margin: 0 auto;
}

.hero-photo-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 3 / 4;
  border-radius: 120px 40px 120px 40px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(1, 45, 29, 0.1);
  background: var(--bg2);
  transition: border-radius 0.5s ease, box-shadow 0.5s ease;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-photo-box:hover .hero-img {
  transform: scale(1.08);
}

.hero-photo-box:hover {
  box-shadow: 0 30px 60px rgba(1, 45, 29, 0.15);
  border-radius: 100px 60px 100px 60px;
}

/* ПЛАШКА */

.healing-glow {
  position: absolute;
  bottom: -30px;
  right: -30px;

  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.55),
    rgba(1, 45, 29, 0.45)
  );

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  padding: 20px 24px;
  border-radius: 16px;
  max-width: 180px;

  box-shadow: 0 12px 30px rgba(1, 45, 29, 0.15);
  border: 1px solid rgba(165, 208, 185, 0.2);

  z-index: 5;
}
 .healing-glow p {
    color: #ffffff !important;
  }

/* ===== ПЛАНШЕТ ===== */

@media (max-width: 768px) {

   .hero-photo-box {
    max-width: 520px;
    border-radius: 70px 30px 70px 30px;
  }

  .healing-glow {
    bottom: -35px;
    right: -35px;

    max-width: 145px;

    padding: 14px 16px;

    border-radius: 14px;

    background: linear-gradient(
      135deg,
      rgba(17, 43, 32, 0.72),
      rgba(1, 45, 29, 0.68)
    );
  }

  .healing-glow p {
    color: #ffffff !important;
  }
}

/* ===== СМАРТФОН ===== */

/* ===== MOBILE FIX ===== */

@media (max-width: 480px) {

  .hero-image-wrapper {

    position: relative;

    width: 320px;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

  }

  .hero-photo-box {

    width: 100%;
    max-width: 100%;

    border-radius: 50px 20px 50px 20px;

  }

  .hero-img {

    width: 100%;
    display: block;

  }

  .healing-glow {

    position: absolute;

    right: 10px;
    bottom: 15px;

    max-width: 115px;

    padding: 10px 12px;

    border-radius: 12px;

    z-index: 10;

  }

  .healing-glow .font-garamond {

    font-size: 22px !important;

  }

  .healing-glow p:last-child {

    font-size: 11px !important;
    line-height: 1.25;

  }

}
/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 992px) {
  .hero h1 {
    white-space: normal; /* Разрешаем перенос только на мобильных экранах */
  }
}

@media (max-width: 768px) {
  .hero { padding: 120px 20px 64px; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { text-align: center; order: 1; }
  .hero-image-wrapper { order: 2; justify-content: center; }
  .hero-divider { margin: 0 auto 32px; background: linear-gradient(to right, transparent, var(--tertiary-sand), transparent); }
  .hero-photo-box { max-width: 280px; border-radius: 80px 30px 80px 30px; }
}

/* ПРИКЛАД КНОПКИ: Головна зелена лісова кнопка-пігулка */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 16px 42px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; 
  font-weight: 600; 
  letter-spacing: 0.05em;
  text-transform: uppercase; 
  text-decoration: none;
  border: none; 
  cursor: pointer;
  border-radius: var(--radius-full); /* Форма пігулки згідно з shapes гайду */
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  /* "Healing Glow" Тінь з низькою непрозорістю та відтінком бренду */
  box-shadow: 0 10px 30px rgba(1, 45, 29, 0.12);
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--secondary-teal);
  box-shadow: 0 15px 35px rgba(50, 104, 82, 0.2);
}

.wa-icon { font-size: 16px; }

/* SECTIONS (Atmospheric Spacing 120px) */
section { padding: 120px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

.sec-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; 
  font-weight: 600;
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  color: var(--secondary-teal); 
  margin-bottom: 16px;
}

.sec-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.5rem); /* headline-md */
  font-weight: 500; 
  color: var(--primary-dark);
  line-height: 1.3; 
  margin-bottom: 24px;
}

.sec-title em { 
  font-style: italic; 
  color: var(--secondary-teal); 
  font-weight: 500;
}

.sec-body { 
  color: var(--text-dim); 
  font-size: 16px; /* body-md */
  max-width: 680px; 
  line-height: 1.6; 
}

.gold-line {
  width: 150px; height: 1px;
  background: linear-gradient(to right, var(--tertiary-sand), transparent); 
  margin: 32px 0;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   PREMIUM SYSTEM FOR PAIN SECTION (3D TILT & LIGHT SPOTLIGHT)
   ========================================================================== */

.pain-section {
  padding: 80px 0;
  background-color: var(--bg);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 50px;
  perspective: 1200px; /* Задаем глубину 3D пространства */
}

.pain-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(179, 164, 143, 0.22); /* Едва заметная рамка цвета Warm Sand */
  border-radius: 24px;
  padding: 40px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  
  /* Элегантная многослойная тень премиум-брендов */
  box-shadow: 0 10px 35px rgba(1, 45, 29, 0.02), 
              0 1px 3px rgba(179, 164, 143, 0.08);
              
  /* Плавный возврат в исходную точку при уходе курсора */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.5s ease, 
              border-color 0.5s ease;
              
  transform-style: preserve-3d; /* Позволяет тексту парить над картой */
  will-change: transform;
}

/* Изменение карты при наведении */
.pain-card:hover {
  border-color: rgba(1, 45, 29, 0.18);
  box-shadow: 0 30px 60px rgba(1, 45, 29, 0.06), 
              0 0 0 1px rgba(179, 164, 143, 0.35);
}

/* Контейнер-оболочка для контента карточки */
.card-content-wrapper {
  position: relative;
  z-index: 3;
  transform: translateZ(40px); /* Выталкиваем иконку и текст на 40px вперед */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Световой блик, следующий за курсором мыши */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle 220px at var(--mouse-x, 0) var(--mouse-y, 0), 
    rgba(165, 208, 185, 0.16), 
    transparent 80%
  );
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease;
  pointer-events: none; /* Не мешает выделению текста */
}

.pain-card:hover .card-glow {
  opacity: 1;
}

/* Оформление иконки */
.pain-icon {
  font-size: 38px;
  margin-bottom: 20px;
  display: inline-block;
  transform: translateZ(25px); /* Иконка парит чуть выше основного текста */
  filter: drop-shadow(0 6px 12px rgba(1, 45, 29, 0.08));
}

/* Оформление текста внутри карточки */
.pain-card p {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* Адаптивность для мобильных экранов */
@media (max-width: 768px) {
  .pain-grid {
    gap: 20px;
    margin-top: 35px;
  }
  .pain-card {
    padding: 30px 24px;
    transform: none !important; /* Полностью отключаем наклон на тач-скринах для плавной прокрутки */
  }
  .card-content-wrapper {
    transform: none !important;
  }
  .card-glow {
    display: none; /* Скрываем блик на смартфонах */
  }
}

/* METHODOLOGY (Трохи темніший контейнер surface-container-high) */
.method-section { background: var(--bg3); }

/* ==========================================================================\
   METHOD SECTION: PREMIUM IMAGE GRID SYSTEM
   ========================================================================== */
.method-section {
  padding: 100px 0;
  background-color: var(--bg);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.method-item {
  background-color: var(--white);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden; /* Обрезает всё, что выходит за рамки блока при анимациях */
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Эффект парения карточки */
.method-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(1, 45, 29, 0.05);
}

/* Контейнер для картинки с жесткими границами */
.method-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden; /* Гарантирует, что картинка не выйдет за рамки при масштабировании */
  position: relative;
  background-color: var(--bg2);
}

.method-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Идеальное заполнение пропорций */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Главная фишка: при наведении увеличиваем картинку без выхода из её рамок */
.method-item:hover .method-img-wrapper img {
  transform: scale(1.08);
}

/* Контентная часть внутри карточки */
.method-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.method-num {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--tertiary-sand);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.method-name {
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.method-content p {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* РЕСПОНСИВНОСТЬ: Адаптация под планшеты и мобильные устройства */
@media (max-width: 992px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .method-section {
    padding: 60px 0;
  }
  .method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .method-img-wrapper {
    height: 180px;
  }
  .method-content {
    padding: 24px;
  }
}

/* ABOUT */
.about-section { background: var(--bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px; 
  align-items: center;
}

/* Асиметрична органічна форма для портрету згідно з shapes гайдом (Portrait Treatment) */
.about-photo-box {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 340px;
  border-radius: 120px 40px 120px 40px; /* Органічна геометрія "а-ля камінь" */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(1, 45, 29, 0.08);
}

.about-photo-placeholder {
  width: 100%; 
  background: linear-gradient(160deg, rgba(50, 104, 82, 0.1), rgba(179, 164, 143, 0.2));
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  text-align: center;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-photo-placeholder:hover .hero-img {
  transform: scale(1.1);
}

.about-photo-placeholder span { 
  font-size: 3rem; 
  display: block; 
  margin-bottom: 12px; 
  opacity: .4; 
  color: var(--primary-dark);
}

/* Прибираємо стару рамку перед блоком, оскільки тепер працює складна геометрія самої картки */
.about-photo-box::before { display: none; }

.about-quote {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem; 
  font-style: italic;
  color: var(--secondary-teal); 
  margin: 32px 0;
  padding-left: 24px;
  border-left: 3px solid var(--secondary-teal);
  line-height: 1.5;
}

.about-section .btn-gold {
  margin-top: 12px;
}

/* ==========================================================================\
   RESULTS SECTION: PREMIUM 3D INTERACTION
   ========================================================================== */
.results-section {
  padding: 120px 0;
  background-color: var(--bg2); 
}

.results-section .sec-body {
  margin-bottom: 64px;
  max-width: 800px; /* Исправлено max-w-3xl на стандартный CSS */
}

/* Сетка с перспективой для 3D */
.results-light-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  perspective: 1200px; /* Глубина пространства */
}

/* Сама карточка */
.result-light-card {
  background-color: var(--white);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg, 16px);
  padding: 48px;
  position: relative;
  overflow: hidden;
  
  /* Подготовка к 3D-трансформациям от JS */
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateY(0);
  transition: transform 0.1s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

/* Spotlight (Фонарик), который ездит за курсором */
.result-light-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Градиент создается по координатам мыши из JS */
  background: radial-gradient(
    circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(212, 175, 55, 0.08), /* Мягкое песочно-золотое свечение */
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.result-light-card:hover {
  box-shadow: 0 30px 60px rgba(1, 45, 29, 0.06); /* Глубокая красивая тень при наведении */
  border-color: rgba(212, 175, 55, 0.3);
}

.result-light-card:hover::before {
  opacity: 1; /* Включаем фонарик при наведении */
}

/* Контент внутри карточки (поднимаем его над фоном в 3D) */
.card-content-3d {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  /* Текст "парит" на 30px выше фона карточки */
  transform: translateZ(30px); 
  transition: transform 0.3s ease-out;
}

/* Типографика */
.result-card-num {
  font-family: 'EB Garamond', serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 500;
  color: var(--tertiary-sand);
  line-height: 1;
  position: relative;
  top: -2px;
}

.result-card-content {
  display: flex;
  flex-direction: column;
}

.result-card-title {
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.result-card-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
}

/* Адаптив */
@media (max-width: 992px) {
  .results-light-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .result-light-card { padding: 32px 24px; }
  .card-content-3d { gap: 20px; }
  /* Отключаем 3D на мобильных, так как там нет мышки */
  .result-light-card { transform: none !important; } 
}

/* FAQ */
.faq-section { background: var(--bg3); }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid rgba(65, 72, 68, 0.06);
  background: var(--bg);
  border-radius: var(--radius-default);
  overflow: hidden;
  transition: all .3s ease;
}

.faq-q {
  width: 100%; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 32px; 
  cursor: pointer;
  font-family: 'Manrope', sans-serif; 
  font-size: 16px;
  font-weight: 600; 
  color: var(--primary-dark); 
  text-align: left;
  transition: background .3s;
}

.faq-q:hover { 
  background: rgba(50, 104, 82, 0.03); 
}

.faq-q.open { 
  color: var(--secondary-teal); 
  background: rgba(50, 104, 82, 0.03);
}

.faq-arrow { 
  font-size: 20px; 
  color: var(--secondary-teal); 
  transition: transform .3s; 
  flex-shrink: 0; 
  margin-left: 16px; 
}

.faq-q.open .faq-arrow { 
  transform: rotate(45deg); 
}

.faq-a {
  max-height: 0; 
  overflow: hidden; 
  transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 32px;
  background: var(--bg);
}

.faq-a.open { max-height: 300px; }

.faq-a p { 
  padding: 4px 0 24px; 
  font-size: 15px; 
  color: var(--text-dim); 
  line-height: 1.6; 
}

/* CTA (Кольори інвертуються на глибокий лісовий колір primary-container для фокусу уваги) */
.cta-section {
  background: var(--primary-container);
  color: #ffffff;
  text-align: center;
  position: relative; 
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(165, 208, 185, 0.12) 0%, transparent 70%);
}

.cta-section .container { position: relative; z-index: 2; }

.cta-section .sec-label { 
  color: #86af99; /* on-primary-container */
}

.cta-section .sec-title { 
  color: #ffffff; 
}

.cta-section .sec-title em { 
  color: #a5d0b9; /* inverse-primary */
}

.cta-section .sec-body { 
  color: #86af99; 
}

.cta-section .gold-line {
  background: #a5d0b9;
}

/* Кнопка всередині футера/CTA стає світлою/контрастною */
.cta-section .btn-gold {
  background: var(--bg);
  color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-gold:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.cta-note {
  margin-top: 24px; 
  font-size: 13px; 
  color: #86af99;
  letter-spacing: 0.05em;
}

/* FOOTER */
/* FOOTER */
footer {
  background: var(--primary-dark); /* Благородный темно-зеленый базовый цвет */
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Такой же точечный паттерн, как в Hero, но адаптированный под темный фон */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Мягкие белые точки с прозрачностью 0.04, чтобы они не рябили в глазах */
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

/* Мягкое внутреннее глубокое свечение с эффектом ПУЛЬСАЦИИ */
footer::after {
  content: '';
  position: absolute;
  inset: -50px; /* Небольшой запас для масштабирования градиента */
  background: radial-gradient(circle 40vw at 50% 60%, rgba(50, 104, 82, 0.45) 0%, transparent 80%);
  pointer-events: none;
  z-index: 1;
  
  /* Подключаем бесконечную анимацию пульсации (длительность 7 секунд для медитативного эффекта) */
  animation: footerPulse 7s ease-in-out infinite alternate;
}

/* КЛЮЧЕВЫЕ КАДРЫ ДЛЯ ПУЛЬСАЦИИ ГРАДИЕНТА В ФУТЕРЕ */
@keyframes footerPulse {
  0% {
    opacity: 0.5;
    transform: scale(0.92) translate(0, 10px);
  }
  100% {
    opacity: 1;
    transform: scale(1.08) translate(0, -10px);
  }
}

/* Поднимаем контент футера выше точек и пульсирующего градиента */
footer p, 
footer .footer-name {
  position: relative;
  z-index: 2;
}

.footer-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

footer p { 
  font-size: 13px; 
  letter-spacing: 0.02em; 
  margin-bottom: 8px;
  opacity: 0.8;
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 12px;
  opacity: 0.4;
  margin-top: 24px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-box { max-width: 100%; aspect-ratio: 4/3; border-radius: 40px 20px; }
  .method-grid { grid-template-columns: 1fr; }
  section { padding: 64px 20px; } /* section-padding-mobile */
  .lang-bar { padding: 12px 20px; }
  .hero h1 { font-size: clamp(2rem, 6vw, 2.4rem); } /* display-lg-mobile */
  .result-item { gap: 20px; padding: 24px; }
}

/* ANIMATIONS */
.fade-up {
  opacity: 0; 
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(0.4, 0, 0.2, 1), transform .7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* ==========================================================================
   PREMIUM KINEMATIC SCROLL & FOCUS SYSTEM
   ========================================================================== */

/* 1. Элегантное появление элементов (эффект проявления из глубокого фокуса) */
.fade-up {
  opacity: 0;
  transform: translateY(45px) scale(0.97);
  filter: blur(6px); /* Элемент плавно выходит из красивого расфокуса */
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

/* Состояние полностью проявленного элемента */
.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* 2. Подготовка всех основных секций к динамическому затуханию и заблюриванию */
section {
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, filter; /* Переносит просчет блюра и прозрачности на видеокарту */
}

/* Вся магия для мобильных экранов (до 768px) */
@media screen and (max-width: 768px) {
  
  /* Задаем безопасные отступы для всех основных секций */
  section, 
  header, 
  footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  /* Исправление для той самой зеленой кнопки/плашки, если у неё огромный padding */
  .cta-block, .wa-icon, [style*="padding:18px 52px"] { 
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100%;
    box-sizing: border-box;
  }
}