/* --- Variables & Reset --- */
:root {
  /* Palette */
  --bg-body: #fdfdfe; /* Очень светлый, почти белый */
  --bg-surface: #ffffff;
  --bg-soft: #f3f6ff; /* Светло-лавандовый фон для блоков */

  --color-primary: #6366f1; /* Soft Indigo */
  --color-primary-hover: #4f46e5;
  --color-secondary: #10b981; /* Soft Emerald */

  --text-main: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #f8fafc;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  /* Shapes */
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(99, 102, 241, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);

  /* Layout */
  --container-width: 1240px;
  --header-height: 90px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Helper Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease, background-color 0.3s ease;
  border: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: top 0.3s ease;
}

.header__container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.header__link:hover {
  color: var(--color-primary);
}

.header__link:hover::after {
  width: 100%;
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

/* --- Footer --- */
.footer {
  background-color: var(--text-main);
  color: var(--text-light);
  padding: 80px 0 30px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.footer__logo-img {
  height: 32px;
  filter: brightness(0) invert(1); /* Белый логотип */
}

.footer__desc {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: white;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__link {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
  color: var(--color-primary); /* Используем brand color для акцента */
  padding-left: 5px;
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* --- Mobile Adaptive --- */
@media (max-width: 1024px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-surface);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 90;
  }

  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
  }

  .header__burger {
    display: block;
    z-index: 101;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header__container {
    padding: 10px 20px;
  }

  .footer {
    border-radius: 40px 40px 0 0;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 100%);
  overflow: hidden;
  min-height: 90vh; /* Почти на весь экран */
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

/* Typography */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5.5rem); /* Адаптивный гигантский шрифт */
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title-highlight {
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  white-space: nowrap;
}

/* Подчеркивание для акцента */
.hero__title-highlight::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 14px;
  background-color: rgba(16, 185, 129, 0.2); /* Soft green highlight */
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-2deg);
}

.hero__desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.hero__btn {
  padding: 18px 42px;
  font-size: 1.1rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__trust-avatars {
  display: flex;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -12px;
}

.avatar-circle:first-child {
  margin-left: 0;
}

.hero__trust-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Visual & Blob */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-blob {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%; /* Органическая форма */
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: border-radius 5s ease-in-out infinite; /* Анимация дыхания формы */
  animation: blob-pulse 8s infinite alternate;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative Elements */
.hero__deco {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  z-index: 3;
}

.hero__deco--1 {
  top: 10%;
  right: 10%;
  width: 60px;
  height: 60px;
  color: var(--color-primary);
}

.hero__deco--2 {
  bottom: 15%;
  left: 5%;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
}

.hero__deco--3 {
  top: 40%;
  left: -20px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

/* Animations */
@keyframes blob-pulse {
  0% {
    border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
  }
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

/* Entrance Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adaptive for Hero */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__title-highlight::after {
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 60%;
  }

  .hero__desc {
    margin: 0 auto 30px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1; /* Картинка сверху на мобильном */
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.8rem;
  }
  .hero__btn {
    width: 100%;
  }
}

/* --- Methodology (Bento Grid) --- */
.methodology {
  padding: 100px 0;
  background-color: var(--bg-body);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.highlight-text {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: 8px;
}

/* Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
}

/* Cards Base Style */
.bento-card {
  background: var(--bg-surface);
  border-radius: 32px; /* Hyper-rounded */
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

/* Card Sizes */
.bento-card--large {
  grid-column: span 2;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
}

.bento-card--tall {
  grid-row: span 2;
  background-color: #ecfdf5; /* Mint background */
}

.bento-card--wide {
  grid-column: span 2;
}

/* Themes */
.theme-dark {
  background-color: var(--text-main);
  color: var(--text-light);
}

.theme-mint {
  background-color: #d1fae5;
}

.text-light {
  color: white !important;
}

.text-muted-light {
  color: #94a3b8;
}

/* Content Styling */
.bento-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 2;
  position: relative;
}

.row-layout {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bento-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.theme-indigo {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.theme-white {
  background: white;
  color: var(--color-secondary);
}
.theme-yellow {
  background: #fef3c7;
  color: #d97706;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.bento-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive Elements inside Cards */
.bento-btn-arrow {
  margin-top: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bento-btn-arrow:hover {
  transform: translateX(5px);
  color: var(--color-primary);
}

/* Deco Elements */
.bento-deco-circle {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 1;
}

/* Stat Visual for Dark Card */
.visual-stat {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
}

.stat-bar {
  width: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.stat-bar.active {
  background: var(--color-secondary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Scroll Animation Class */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Adaptive Bento */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card--large {
    grid-column: span 2;
  }
  .bento-card--wide {
    grid-column: span 2;
  }
  .bento-card--tall {
    grid-row: auto;
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--large,
  .bento-card--wide,
  .bento-card--tall {
    grid-column: span 1;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .row-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Programs Section (Tabs) --- */
.programs {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-soft) 100%);
}

/* Tabs Navigation Pill */
.tabs-nav {
  display: flex;
  justify-content: center;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: fit-content;
  margin: 0 auto 50px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.tab-btn {
  position: relative;
  padding: 12px 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  z-index: 2;
  transition: color 0.3s ease;
  border-radius: var(--radius-pill);
}

.tab-btn.active {
  color: var(--color-primary);
}

/* Tabs Content Area */
.tabs-content {
  position: relative;
  min-height: 400px; /* Чтобы блок не прыгал по высоте */
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  display: block;
  animation: fadeInTab 0.5s forwards;
}

@keyframes fadeInTab {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Program Card Styling */
.program-card {
  background: #ffffff;
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Visual Side */
.program-visual {
  height: 300px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.program-visual--start {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: var(--color-primary);
}

.program-visual--pro {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: var(--color-secondary);
}

.program-visual--leader {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
}

.program-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Info Side */
.program-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.program-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.program-list {
  margin-bottom: 40px;
}

.program-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--text-main);
}

.program-list li svg {
  color: var(--color-secondary);
  width: 20px;
  height: 20px;
}

.program-action {
  display: flex;
  align-items: center;
  gap: 30px;
}

.program-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Mobile Adaptive for Programs */
@media (max-width: 992px) {
  .program-card {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 30px;
  }

  .program-visual {
    height: 200px;
    width: 100%;
  }

  .program-list li {
    justify-content: center;
  }

  .program-action {
    justify-content: center;
    flex-direction: column;
    gap: 20px;
  }
}

/* --- Mentors Section (Glassmorphism) --- */
.mentors {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-body);
  overflow: hidden; /* Чтобы пятна не вылезали */
}

/* Background Blobs for Glass Effect */
.mentors__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
}

.mentors__blob--1 {
  top: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #e0e7ff 0%, rgba(255, 255, 255, 0) 70%);
}

.mentors__blob--2 {
  bottom: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #d1fae5 0%, rgba(255, 255, 255, 0) 70%);
}

/* Grid Layout */
.mentors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* Glass Card Style */
.glass-card {
  background: rgba(255, 255, 255, 0.6); /* Полупрозрачный белый */
  backdrop-filter: blur(16px); /* Эффект размытия фона */
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

/* Avatars */
.glass-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.gradient-1 {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}
.gradient-2 {
  background: linear-gradient(135deg, #10b981, #34d399);
}
.gradient-3 {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
}

.glass-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.glass-card__role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.glass-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.5;
}

.glass-card__footer {
  margin-top: auto;
}

/* Link Style */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.link-arrow:hover {
  color: var(--color-primary);
  gap: 10px;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* Mobile Adaptive (Scroll Snap) */
@media (max-width: 992px) {
  .mentors-grid {
    display: flex; /* Горизонтальный скролл */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 30px; /* Место для тени */
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px; /* Компенсация паддингов контейнера */
    padding-left: 20px;
    padding-right: 20px;
  }

  .glass-card {
    min-width: 280px;
    scroll-snap-align: center;
  }
}

/* --- FAQ Section --- */
.faq {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, #f1f5f9 100%);
}

.faq__wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: #ffffff;
  border-radius: 30px; /* Hyper-rounded */
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq__item.active {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
  background: #ffffff;
}

/* Question Button */
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--color-primary);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* State: Active */
.faq__item.active .faq__icon {
  transform: rotate(45deg); /* Превращаем плюс в крестик */
  background: var(--color-primary);
  color: white;
}

/* Answer Area (Animation) */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__answer-inner {
  padding: 0 32px 32px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background: #ffffff;
  overflow: hidden;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Left Side Info */
.contact__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.contact__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__feature {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Right Side Form Card */
.contact__form-wrapper {
  position: relative;
}

.form {
  background: #ffffff;
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); /* Deep shadow */
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.form-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/* Inputs */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-left: 12px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-pill); /* Pill shape inputs */
  border: 2px solid var(--bg-soft);
  background: var(--bg-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Validation Styles */
.form-input.invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
  margin-left: 12px;
}

.form-input.invalid + .error-msg {
  display: block;
}

/* Checkboxes */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.check-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.check-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Fake Captcha */
.captcha-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px; /* Captcha usually boxy */
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-width: 240px;
  margin-bottom: 24px;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  cursor: pointer;
}

.captcha-label {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  color: #000;
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #555;
}

/* Submit Button */
.form-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

/* Success Message Overlay */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.form-success.visible {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.success-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Mobile Adaptive */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact__info {
    text-align: center;
  }

  .contact__subtitle {
    margin: 0 auto 40px;
  }

  .contact__features {
    justify-content: center;
    display: inline-block;
    text-align: left;
  }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px); /* Скрыт внизу */
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill); /* Hyper-rounded */
  padding: 12px 12px 12px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.5s ease;
  visibility: hidden;
}

.cookie-popup.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-icon {
  color: var(--color-secondary);
  display: flex;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
}

.cookie-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-popup {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 24px;
    bottom: 20px;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* --- Policy Pages Styles (Generic) --- */
/* Эти стили будут работать на privacy.html, terms.html и т.д. */
.pages {
  padding: 140px 0 80px; /* Отступ сверху под хедер */
  background-color: var(--bg-body);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Узкая колонка для чтения */
  background: #ffffff;
  padding: 60px;
  border-radius: 40px;
  box-shadow: var(--shadow-card);
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--text-main);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-soft);
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.pages p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.pages li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.pages strong {
  color: var(--text-main);
}

.pages a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.pages a:hover {
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .pages .container {
    padding: 30px;
  }
  .pages h1 {
    font-size: 2rem;
  }
}
