*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --bg-color: #eaf6ef;
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-gradient: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  --border-color: rgba(255, 255, 255, 0.35);
  --text-color: #1a3b2d;
  --accent: #7fd4a8;
  --accent-dark: #5bb27b;
  --shadow-color: rgba(127,212,168,0.5);
}

/* BODY */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  background: linear-gradient(90deg, #d7f3e3, #c6e6d0, #f4fff4);
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

/* HERO */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero-bg { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(0.75); transform: scale(1.1); transition: transform 10s ease; }
.hero-overlay { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; padding: 2rem; z-index: 2; }
.hero-content { text-align: center; max-width: 700px; color: var(--text-color); text-shadow: 0 4px 14px rgba(0,0,0,0.18); background: var(--glass-gradient); border-radius: 28px; padding: 2rem 2.5rem; backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 80px rgba(127,212,168,0.15); animation: float 12s ease-in-out infinite alternate; }
h1 { font-size: 3rem; font-weight: 800; letter-spacing: 0.5px; } h1 span { color: var(--accent); text-shadow: 0 5px 18px rgba(127,212,168,0.8); }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent-dark); }
p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 1rem; }

/* BUTTON */
/* ОТМЕНИТЬ центровку у контейнеров, если ты её добавлял ранее */
.glass-card, .hero-content {
  /* Убедись, что здесь нет text-align: center; */
  text-align: left; /* или просто убери это свойство, чтобы вернуть исходное поведение */
}

/* Центрируем только кнопки */
.cta-button {
  display: block;          /* чтобы margin: auto работал */
  width: max-content;      /* кнопка будет по ширине по содержимому */
  margin: 1.5rem auto 0;   /* авто-отступы слева/справа — центрирование */
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(127,212,168,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;      /* текст внутри кнопки остаётся центрированным */
}

/* Ховер и анимация оставляем как было */
.cta-button:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 14px 40px rgba(127,212,168,0.65), 0 0 50px rgba(127,212,168,0.25);
}
.glow {
  animation: pulse 2.5s infinite;
}
/* Центруем только заголовки */
h1, h2 {
  text-align: center;
}

/* SECTIONS */
.section { padding: 6rem 2rem; display: flex; justify-content: center; align-items: center; position: relative; z-index: 1; }
.glass-card { background: var(--glass-gradient); border: 1px solid var(--border-color); border-radius: 28px; padding: 3rem; max-width: 1100px; width: 100%; backdrop-filter: blur(20px); box-shadow: 0 18px 50px rgba(0,0,0,0.12), 0 0 80px rgba(127,212,168,0.25); transition: transform 0.4s ease, box-shadow 0.4s ease; animation: float 12s ease-in-out infinite alternate; }
.glass-card:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 24px 60px rgba(127,212,168,0.35), 0 0 90px rgba(127,212,168,0.3); }

/* GRID CARDS */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.topics-grid li { background: rgba(255,255,255,0.25); border-radius: 20px; padding: 1.5rem 2rem; text-align: center; font-weight: 600; font-size: 1rem; color: #114d36; box-shadow: 0 10px 30px rgba(127,212,168,0.25); transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; backdrop-filter: blur(14px); }
.topics-grid li:hover { background: rgba(255,255,255,0.45); transform: translateY(-8px) scale(1.03); box-shadow: 0 14px 40px rgba(127,212,168,0.5); }

/* TRAINER */
.trainer-info { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.trainer-photo { width: 250px; border-radius: 28px; box-shadow: 0 0 50px rgba(127,212,168,0.45); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.trainer-photo:hover { transform: scale(1.08) rotate(1deg); box-shadow: 0 0 65px rgba(127,212,168,0.6); }

/* FOOTER */
footer { text-align: center; padding: 4rem 1rem; color: #446653; font-size: 0.9rem; background: rgba(255,255,255,0.15); backdrop-filter: blur(16px); box-shadow: inset 0 0 50px rgba(127,212,168,0.1); }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; animation: fadeIn 1s forwards; }
.fade-in-delay { opacity: 0; animation: fadeIn 1.3s forwards; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 20px var(--shadow-color); } 50% { box-shadow: 0 0 45px var(--shadow-color); } }
@keyframes float { 0% { transform: translateY(0px); } 100% { transform: translateY(15px); } }

/* MOBILE */
@media (max-width: 768px) { h1 { font-size: 2.6rem; } h2 { font-size: 1.8rem; } .trainer-info { flex-direction: column; text-align: center; } .glass-card { padding: 2rem; margin: 1rem; } .topics-grid { grid-template-columns: 1fr; } }



/* =========================
   Trainer block — visual upgrades
   (Добавить в конец style.css)
   ========================= */

/* Корректный отступ и позиционирование для trainer-info */
.section.trainer { padding: 6rem 2rem; } /* сохраняем общую отступность секции */

/* Обёртка — немного больше контроля над макетом */
.trainer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  position: relative; /* для псевдоэлементов */
  justify-content: space-between;
}

/* Блок фото — используем "рамка в рамке" через multiple box-shadow + outline */
.trainer-photo {
  width: 280px;
  min-width: 220px;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(.2,.9,.3,1), box-shadow 0.6s ease, filter 0.6s ease;
  box-shadow:
    0 30px 60px rgba(14,40,30,0.12),         /* крупная тень под картинкой */
    0 12px 30px rgba(127,212,168,0.12),      /* цветная тень */
    inset 0 0 0 6px rgba(255,255,255,0.06);  /* внутренняя светлая "рамка" */
  border: 6px solid rgba(255,255,255,0.06);  /* внешний тонкий контур */
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  position: relative;
  z-index: 3;
  cursor: pointer;
}

/* Дополнительная декоративная "рамка" - псевдоэлемент, позиционируется позади фото */
.trainer-photo::after {
  content: "";
  position: absolute;
  inset: -18px -22px -18px -22px; /* расширяет область за картинкой */
  border-radius: 28px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(127,212,168,0.06), rgba(91,178,123,0.02));
  filter: blur(8px);
  transition: transform 0.7s cubic-bezier(.2,.9,.3,1), opacity 0.6s ease;
  opacity: 0.9;
  box-shadow: 0 30px 60px rgba(91,178,123,0.08);
  pointer-events: none;
}

/* Ещё один "рамочный" слой — псевдоэлемент на контейнере, с лёгким сдвигом */
.trainer-info::before {
  content: "";
  position: absolute;
  left: calc(50% - 540px); /* начальное смещение — будет видна слева у desktop */
  top: 10%;
  width: 520px;
  height: 80%;
  border-radius: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.03);
  transform: rotate(-2.5deg) translateY(6px);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2,.9,.3,1);
  opacity: 0.55;
}

/* Текстовая часть — оставляем читабельной, добавляем отступы */
.trainer-text {
  flex: 1 1 520px;
  min-width: 260px;
  color: var(--text-color);
  line-height: 1.7;
}

/* Акценты внутри .trainer-text */
.trainer-text p { margin-bottom: 0.9rem; }
.trainer-text ul { padding-left: 1.15rem; margin-top: 0.5rem; }
.trainer-text ul li { margin-bottom: 0.45rem; }

/* Визуальный акцент при hover на изображении */
.trainer-photo:hover {
  transform: translateY(-10px) rotate(-0.6deg) scale(1.03);
  box-shadow:
    0 42px 90px rgba(14,40,30,0.14),
    0 20px 50px rgba(127,212,168,0.18);
  filter: saturate(1.03);
}
.trainer-photo:hover::after {
  transform: translateY(-6px) rotate(-0.6deg) scale(1.02);
  opacity: 1;
}

/* Анимация появления — добавим класс .in-view через скрипт */
.trainer-info, .trainer-photo, .trainer-text {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.9,.3,1);
}
.trainer-info.in-view, .trainer-info.in-view .trainer-photo, .trainer-info.in-view .trainer-text {
  opacity: 1;
  transform: translateY(0);
}

/* Дополнительный subtle hover для ссылок внутри блока тренера */
.trainer-text a {
  color: var(--accent-dark);
  text-decoration: underline;
  transition: color 0.25s ease, transform 0.25s ease;
}
.trainer-text a:hover { color: var(--accent); transform: translateX(3px); }

/* Responsive tweaks */
@media (max-width: 980px) {
  .trainer-info::before { display: none; } /* прячем декоративную рамку на планшете */
  .trainer-photo { width: 220px; margin: 0 auto; }
  .trainer-info { gap: 1.25rem; align-items: flex-start; }
  .trainer-text { text-align: left; }
}

@media (max-width: 640px) {
  .trainer-info { flex-direction: column; text-align: center; align-items: center; }
  .trainer-text { min-width: 100%; }
  .trainer-photo { width: 260px; }
  .trainer-info::before { display: none; }
  /* Если h2 у тебя уже центрирован, оставляем — в мобильной версии это обычно хорошо */
}
/* =====================================
   Trainer photo — advanced positioning
   ===================================== */

/* Общий контейнер тренера */
.trainer-info {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Фото тренера: больше, приподнятое, рамка в рамке, с фоном */
/* Фото тренера: больше, выразительнее */
.trainer-photo {
  width: 400px;            /* было 340px → теперь крупнее */
  height: auto;
  border-radius: 32px;
  object-fit: cover;
  position: absolute;
  top: -90px;              /* немного выше */
  right: -80px;            /* немного дальше вправо */
  z-index: 3;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.18),
    0 0 35px rgba(127, 212, 168, 0.3),
    inset 0 0 0 6px rgba(255,255,255,0.1);
  border: 5px solid rgba(255,255,255,0.12);
  background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
  backdrop-filter: blur(10px);
  transition: transform 0.6s cubic-bezier(.2,.9,.3,1), box-shadow 0.6s ease, filter 0.6s ease;
}

/* Усиливаем рамку-свечение */
.trainer-photo::after {
  content: "";
  position: absolute;
  inset: -26px -32px -26px -32px;  /* шире рамка */
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(127,212,168,0.18), rgba(91,178,123,0.08));
  box-shadow: 0 50px 100px rgba(127,212,168,0.35);
  filter: blur(10px);
  z-index: -1;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Подвинем текст, чтобы не пересекался */
.trainer-text {
  flex: 1 1 520px;
  min-width: 300px;
  position: relative;
  z-index: 2;
  padding-right: 440px; /* под большее фото */
}


/* Эффект при наведении */
.trainer-photo:hover {
  transform: translateY(-10px) scale(1.05) rotate(-1deg);
  box-shadow:
    0 40px 80px rgba(14,40,30,0.18),
    0 0 60px rgba(127,212,168,0.3);
  filter: saturate(1.1);
}
.trainer-photo:hover::after {
  transform: translateY(-5px) scale(1.03);
  opacity: 1;
}
/* При мобильной адаптации фото становится над текстом */
@media (max-width: 1024px) {
  .trainer-photo {
    position: relative;
    top: 0;
    right: 0;
    margin: 0 auto 2rem auto;
    display: block;
    width: 260px;
  }
  .trainer-text {
    padding-right: 0;
  }
}


.program-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.program-item {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(127, 212, 168, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(14px);
}

.program-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 40px rgba(127, 212, 168, 0.35);
}

.program-item h3 {
  color: var(--accent-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(127, 212, 168, 0.3);
}

.program-item p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-color);
}


/* ====== MOBILE VIEW — компактно, удобно читать, без пустых краёв ====== */
/* ====== MOBILE VIEW — читабельно, удобно, без лишних краёв ====== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.55;
    padding: 0;
  }

  .section {
    padding: 1.5rem 0.6rem !important;
  }

  h1, h2, h3 {
    line-height: 1.25;
    word-break: break-word;
  }

  p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .glass-card, .program-item, .trainer-text {
    padding: 1rem !important;
    margin: 0.5rem 0 !important;
    border-radius: 12px;
  }

  /* Контейнеры шире, почти до краёв */
  .glass-card, .trainer-info, .program-list, .contact, footer {
    width: 100%;
    max-width: none;
  }

  .program-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  img, .trainer-photo {
    max-width: 100%;
    height: auto;
  }

  .hero {
    padding: 2rem 0.8rem !important;
    text-align: center;
  }

}
@media (max-width: 768px) {
  .cta-button,
  button {
    display: block;
    width: 90%;
    margin: 1rem auto;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
    text-align: center;
  }
}




/* ====== GLASS NAV поверх hero (всегда прозрачная, липкая) ====== */
.glass-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color); /* или #1a3b2d */
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 1.4rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color); /* или #1a3b2d */
  font-weight: 500;
  transition: opacity 0.2s ease;
}


.nav-menu a:hover {
  opacity: 0.7;
  color: var(--accent-dark); /* небольшой цветовой акцент при наведении */
}
/* Кнопка-сэндвич */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

/* ======= Мобильная версия ======= */
/* ======== УЗКОЕ МЕНЮ ТОЛЬКО ДЛЯ МОБИЛЬНОЙ ВЕРСИИ ======== */
/* === Narrow mobile side menu (замена старого блока) === */
@media (max-width: 768px) {

.menu-toggle {
  position: absolute;
  right: 1rem;
  top: 1rem;
  transform: none;
  display: block !important; /* только одно — оставляем это */
  z-index: 1800;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-color); /* было #fff, теперь читаемо на стеклянном фоне */
  cursor: pointer;
}


  /* фиксированная панель справа, спрятана (translateX) */
  .glass-nav .nav-menu,
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    width: 20vw !important;         /* узкая — 1/3 экрана */
    min-width: 220px !important;
    max-width: 360px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: -6px 0 24px rgba(0,0,0,0.12) !important;
    transform: translateX(100%) !important; /* спрятана за правым краем */
    transition: transform 320ms cubic-bezier(.2,.9,.2,1) !important;
    z-index: 1600 !important;
    pointer-events: none !important;
  }

  /* открытое меню — выезжает на место */
  .glass-nav .nav-menu.open,
  .nav-menu.open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  /* гарантируем, что контейнер навигации выше панели (логотип/бургер) */
  .glass-nav .nav-container { position: relative; z-index: 1700; }

  /* ссылки в панели */
  .glass-nav .nav-menu a,
  .nav-menu a {
    width: 100% !important;
    text-align: center !important;
    padding: 0.8rem 1rem !important;
    color: #000 !important;
    font-size: 1.05rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    text-decoration: none !important;
  }
.logo {
    height: 30px; /* Был 45px. Уменьшаем, чтобы влез в новую, короткую шапку. */
    width: auto;
} 
 .sticky-nav {
    /* Сейчас: padding: 1rem 0; */
    padding: 0.0rem !important; /* Или даже 0.4rem 0. (8px сверху/снизу) */
}
  /* при открытом меню — блокируем прокрутку страницы */
  body.menu-open {
    overflow: hidden !important;
    touch-action: none !important;
  }
}



/* Липкое состояние при скролле (всё ещё стеклянное) */
.sticky-nav.fixed {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(160%);
}

/* Без смещения контента вниз */
body { padding-top: 0 !important; }


/* ====== HERO: mobile — use background-image (рекомендуется) ====== */
@media (max-width: 768px) {
  .hero {
    /* используем то же изображение, что в <img src="..."> */
    background-image: url("images/hero-therapy.jpg");
    background-size: cover;        /* масштабируем, чтобы заполнить блок */
    background-position: center;   /* центрируем по горизонтали/вертикали */
    background-repeat: no-repeat;
    /* задаём высоту блока, чтобы видно было изображение (подгони по вкусу) */
    min-height: 60vh;
    height: auto;
    position: relative;
    overflow: hidden;
  }

  /* прячем сам <img> на мобильных, чтобы не мешал */
  .hero .hero-bg {
    display: none !important;
    width: 0;
    height: 0;
    opacity: 0;
  }

  /* оставляем overlay и контент над background */
  .hero-overlay { position: relative; z-index: 2; }
}

@media (max-width: 768px) {
  .hero-content {
    width: 98% !important; /* было около 80–85%, теперь шире */
    max-width: none !important;
  }
}




/* === CERTIFICATION SECTION === */
.certification-card {
  padding: 3rem 2.5rem;
  background: var(--glass-gradient);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  backdrop-filter: blur(20px);
}

.certification-card h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  /* color: var(--text-color); */
  background: linear-gradient(120deg, var(--accent-dark), var(--accent-light));
  /* -webkit-background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
}

.cert-item {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1.5rem;
  padding: 1.8rem 1.5rem 1.8rem 3.8rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--text-color);
  box-shadow: 0 6px 20px rgba(127,212,168,0.15);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.cert-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(127,212,168,0.35);
}

.cert-num {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
  color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(127,212,168,0.4);
  font-size: 1rem;
}

.cert-link {
  text-align: center;
  margin-top: 3rem;
}


/* === MOBILE ADAPTATION === */
@media (max-width: 1024px) {
  .certification-card {
    padding: 2rem 1.5rem;
  }
  .certification-card h2 {
    font-size: 1.8rem;
  }
  .certification-grid {
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .certification-grid {
    grid-template-columns: 1fr;
  }
  .cert-item {
    padding: 1.5rem 1rem 1.5rem 3.2rem;
    font-size: 1rem;
  }
  .cert-num {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.9rem;
  }
}
/* ---------- LANG SWITCH: fixed-right, neat and responsive ---------- */

/* Позиционируем флаг правее и выше — над шапкой (не зависит от порядка в DOM) */
.lang-switch-container {
  position: fixed;      /* фиксируем относительно окна */
  top: 14px;            /* подстраивай по высоте шапки */
  right: 18px;          /* отступ от правого края */
  z-index: 2200;        /* выше навигации */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Слегка уменьшенный/аккуратный вид флага */
.lang-flag {
  display: block;
  width: 56px;          /* компактный размер */
  height: auto;
  border-radius: 8px;   /* мягкие углы */
  border: 2px solid rgba(255,255,255,0.9); /* контрастная лёгкая рамка */
  box-shadow: 0 10px 28px rgba(0,0,0,0.18), 0 0 20px rgba(127,212,168,0.12);
  background-clip: padding-box;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(.2,.9,.3,1), box-shadow 0.25s ease, opacity 0.2s ease;
}

/* Hover — тонко, без сильного "пинка" */
.lang-switch:hover .lang-flag,
.lang-switch:focus .lang-flag {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22), 0 0 36px rgba(127,212,168,0.18);
  opacity: 0.98;
}

/* Если нужно — добавляем label (например "UA") рядом с флагом */
.lang-switch .lang-label {
  display: none; /* по умолчанию скрыт; включай если нужно */
  margin-left: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}
/* -------- Альтернатива: текст вместо флага -------- */
.lang-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 36px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2b7a4b, #3aa36b);
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18), 0 0 20px rgba(127,212,168,0.12);
  transition: transform 0.25s cubic-bezier(.2,.9,.3,1), box-shadow 0.25s ease, opacity 0.2s ease;
  cursor: pointer;
}

/* Hover — идентичен поведению флага */
.lang-switch:hover .lang-text,
.lang-switch:focus .lang-text {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22), 0 0 36px rgba(127,212,168,0.18);
  opacity: 0.98;
}

/* Адаптивность под мобильные (чтобы совпадало с флагом) */
@media (max-width: 768px) {
  .lang-text {
    width: 48px;
    height: 30px;
    font-size: 0.9rem;
    border-radius: 6px;
  }
}

@media (max-width: 420px) {
  .lang-text {
    width: 44px;
    height: 28px;
    font-size: 0.85rem;
  }
}

/* --- Учитываем мобильный бургер: если меню-toggle в правом верхнем углу,
   смещаем флаг левее, чтобы не наложиться, и прячем при открытом меню --- */
@media (max-width: 768px) {
  /* если бургер размещён в right:1rem; top:1rem */
  .lang-switch-container {
    right: 64px;   /* резервируем место для бургера (подбирай под свой размер) */
    top: 12px;
  }

  /* ещё компактнее сам флаг на мобильных */
  .lang-flag { width: 48px; border-radius: 6px; }

  /* если меню открыто через добавление класса на body (body.menu-open) — скрываем флаг,
     чтобы не мешал: */
  body.menu-open .lang-switch-container {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
  }
}

/* Для очень маленьких экранов можно прятать флаг или перемещать в нав-меню */
@media (max-width: 420px) {
  .lang-switch-container { right: 54px; top: 10px; }
  .lang-flag { width: 44px; }
}

/* ===============================
   Animations (isolated)
   =============================== */
@keyframes central-flag-float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(15px); }
}

@keyframes central-flag-fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .central-flag-wrapper img {
    width: 220px;
    animation: central-flag-float 8s ease-in-out infinite alternate, central-flag-fadeIn 1.2s forwards;
  }
  .central-flag-wrapper::after {
    inset: -12px;
    filter: blur(8px);
  }
}
section p,
section li,
section span,
section div {
  text-align: justify;
  text-justify: inter-word;
}
