:root{
  /* Акценты из логотипа */
  --accent:#E10600;       /* Красный */
  --accent-dark:#B00000;  /* Красный ховер */
  --yellow:#FFCC00;       /* Жёлтый */

  /* Светлая база */
  --bg:#F9FAFB;           /* общий фон */
  --panel:#ffffff;        /* карточки/панели */
  --nav:#ffffff;          /* навбар и светлые панели */
  --muted:#6B7280;        /* вторичный текст */
  --text:#111111;         /* основной текст */
}

/* Базовые */
*{box-sizing:border-box}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--accent); }

.brand-text{font-family:Montserrat,Inter,sans-serif;letter-spacing:.5px}

.bg-base{background:var(--bg)}
.bg-nav{background:var(--nav)}
.bg-panel{background:var(--panel) !important; color:var(--text); }
.text-muted{color:var(--muted)!important}

/* Навбар (светлый) */
.navbar .nav-link{ color:#333; transition:color .15s ease; }
.navbar .nav-link:hover{ color:var(--accent); }

/* Кнопки */
.btn-accent{
  background:var(--accent);
  color:#fff;
  border:0;
  border-radius:10px;
  padding:.7rem 1.2rem;
  box-shadow:0 8px 20px rgba(225,6,0,.28);
}
.btn-accent:hover{ background:var(--accent-dark); color:#fff; }

.btn-yellow{
  background:var(--yellow);
  color:#111;
  border:0;
  border-radius:10px;
  padding:.7rem 1.2rem;
  box-shadow:0 6px 18px rgba(255,204,0,.25);
}
.btn-yellow:hover{ background:#e6b800; }

/* Поля форм (светлые) */
.form-control.bg-input{
  background:#fff;
  color:#111;
  border:1px solid #e5e7eb;
}
.form-control.bg-input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 .2rem rgba(225,6,0,.15);
}

/* HERO — светлый фон с прозрачными акцентами */
.hero-section{
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(225,6,0,.12), transparent),
    radial-gradient(900px 500px at 90% 10%, rgba(255,204,0,.10), transparent),
    var(--panel);
  min-height:70vh;
}

/* Утилиты */
.text-accent{ color:var(--accent)!important; }
.bg-accent{ background:var(--accent)!important; color:#fff!important; }
.bg-yellow{ background:var(--yellow)!important; color:#111!important; }
.border-accent{ border-color:var(--accent)!important; }

/* Светлая карточка формы */
.form-light.card{
  background:#ffffff;
  border-radius:20px;
  border:1px solid #e5e7eb;
}
.form-light .card-body{ color:#111; }
.form-light .form-control{
  background:#ffffff; color:#111;
  border:1px solid #e5e7eb; border-radius:14px; height:56px; box-shadow:none;
}
.form-light .form-control::placeholder{ color:#6b7280; }
.form-light .form-control:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 .2rem rgba(225,6,0,.12);
}
.form-light .btn.btn-accent{
  border-radius:14px; font-size:1.25rem; padding-top:1rem; padding-bottom:1rem;
}

/* Карточки общие (светлые) */
.card{
  background:var(--panel);
  border:1px solid #e5e7eb;
  border-radius:14px;
  color:var(--text);
}

/* Этапы участия */
.step-card{
  background:#fff;
  border-radius:20px;
  border:1px solid #e5e7eb;
  transition:transform .2s ease, box-shadow .2s ease;
}
.step-card:hover{ transform:translateY(-5px); box-shadow:0 10px 26px rgba(0,0,0,.08); }
.step-card p{ color:#111; font-weight:500; }

.step-img{ max-height:100px; object-fit:contain; }

.step-number{
  width:48px; height:48px; border-radius:50%;
  background:var(--accent); color:#fff; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto; font-size:1.2rem;
}

/* Проекты (светлая версия) */
.project-card{
  background:#fff;
  border-radius:18px;
  border:1px solid #e5e7eb;
  overflow:hidden;
  display:flex; flex-direction:column; height:100%;
  box-shadow:0 12px 22px rgba(0,0,0,.06);
  color:#111;
}
.project-card--accent{ background:var(--accent); border:0; color:#fff; }

.project-thumb{ position:relative; aspect-ratio:16/9; overflow:hidden; }
.project-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.project-badge{
  position:absolute; top:14px; left:14px;
  background:var(--accent); color:#fff; font-weight:700;
  padding:.35rem .6rem; border-radius:10px; font-size:.8rem;
  box-shadow:0 6px 12px rgba(225,6,0,.25);
}
.project-badge--best{ background:var(--accent); }
.project-badge--pop{ background:var(--yellow); color:#111; }

.project-body{ padding:1rem 1.25rem 1.25rem; }
.project-card--accent .project-body{ color:#fff; }

.project-title{ font-weight:800; margin:.25rem 0 1rem 0; }

.project-list{ list-style:none; padding:0; margin:0 0 1rem 0; }
.project-list li{ color:#374151; margin:.35rem 0; }
.project-card--accent .project-list li{ color:#fff; }

.project-btn{
  display:block; width:100%; text-align:center;
  padding:.75rem 1rem; border-radius:12px;
  border:1px solid #e5e7eb; color:#111; text-decoration:none; font-weight:600;
  background:#fff;
}
.project-btn.btn-outline{
  background:transparent; color:#111; border:1px solid #cbd5e1;
}
.project-card--accent .project-btn{ color:#111; background:#fff; border:0; }
.project-card--accent .project-btn.btn-outline{
  color:#fff; background:transparent; border:1px solid rgba(255,255,255,.6);
}

/* FAQ (светлый аккордеон) */
.faq-accordion { display:flex; flex-direction:column; gap:14px; }
.faq-item{
  background:#F3F7FF;
  border-radius:14px;
  border:1px solid #d7e8ff;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.faq-q{
  width:100%; text-align:left; padding:18px 20px;
  background:transparent; border:0;
  font-size:1.15rem; font-weight:600; color:#1f2937;
  display:flex; align-items:center; justify-content:space-between; cursor:pointer;
}
.faq-q:focus{ outline:none; }
.faq-caret{ width:20px; height:20px; flex:0 0 20px; position:relative; }
.faq-caret::before, .faq-caret::after{
  content:""; position:absolute; background:#1f2937; transition:.2s ease;
}
.faq-caret::before{ width:14px; height:2px; top:9px; left:3px; }
.faq-caret::after{ width:2px; height:14px; top:3px; left:9px; }

.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; padding:0 20px; }
.faq-a p{ color:#374151; padding:0 0 16px 0; }

/* стало — высоту задаёт JS */
.faq-item.is-open .faq-a{ /* max-height выставляется скриптом */ }
.faq-item.is-open .faq-caret::after{ transform:rotate(90deg); opacity:0; }

/* Блок «Об агентстве» */
.mission{
  display:grid; grid-template-columns:1fr 360px; gap:24px;
}
.mission .left{
  background:var(--panel);
  border:1px solid #e5e7eb;
  border-radius:18px; padding:22px;
}
.mission .left p{ color:var(--muted); }

.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

.cta-bubble{
  display:grid; place-items:center; aspect-ratio:1/1;
  background:var(--accent); border-radius:999px; color:#111;
  position:relative; box-shadow:0 12px 30px rgba(225,6,0,.26);
}
.cta-bubble .inner{ padding:26px; text-align:center; }
.cta-bubble h3{ margin:0 0 10px; font-weight:800; color:#111; }
.cta-bubble p{ margin:0 0 14px; color:#222; opacity:.9; }
.cta-bubble .btn{ background:#fff; color:#111; border:0; padding:10px 14px; border-radius:12px; font-weight:600; }

@media (max-width: 992px){
  .grid{ grid-template-columns: 1fr; }
  .mission{ grid-template-columns: 1fr; }
  .cta-bubble{ aspect-ratio:auto; border-radius:16px; padding:16px; }
}

/* --- Контраст в hero на светлой теме (перебивает старые text-light) --- */
.hero-section h1,
.hero-section .lead,
.hero-section p,
.hero-section .text-light{
  color: var(--text) !important;
  text-shadow: none !important;
}

/* ====== HERO «интереснее» ====== */
.hero--flag{
  position:relative;
  overflow:hidden;
  /* мягкий светлый фон + флаговая диагональ */
  background:
    linear-gradient(135deg, rgba(225,6,0,.10) 0 46%, rgba(255,204,0,.10) 46% 78%, transparent 78% 100%),
    var(--panel);
  border-bottom:1px solid #e5e7eb;
}
.hero--flag::before{
  /* тонкая красная полоса слева */
  content:""; position:absolute; inset:0 auto 0 0; width:6px; background:var(--accent); opacity:.9;
}
.hero--flag::after{
  /* лёгкий шум для «живости» */
  content:""; position:absolute; inset:-10% -10% -10% -10%;
  background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 10px 10px; pointer-events:none;
}

.hero-inner{ display:grid; grid-template-columns: 1.2fr .8fr; gap:28px; align-items:center; }
.hero-copy{ position:relative; z-index:1; }
.hero-media .media-card{
  border-radius:20px; overflow:hidden; background:#fff; border:1px solid #e5e7eb;
  box-shadow:0 18px 40px rgba(0,0,0,.08);
}
.hero-media img{ display:block; width:100%; height:auto; }

@media (max-width: 992px){
  .hero-inner{ grid-template-columns:1fr; }
}

/* Подчёркивание у заголовка – оживает на ховер */
.u-underline{
  background: linear-gradient( to right, var(--accent) 0%, var(--yellow) 100% );
  background-size: 100% .28em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  padding-bottom:.05em;
  transition: background-size .25s ease;
}
.hero-title:hover .u-underline{
  background-size: 100% .5em;
}

/* KPI бейджи */
.hero-kpis{ display:flex; gap:16px; flex-wrap:wrap; }
.kpi{
  display:flex; align-items:center; gap:8px;
  background:#fff; border:1px solid #e5e7eb; border-radius:999px;
  padding:.5rem .9rem; box-shadow:0 8px 18px rgba(0,0,0,.06);
}
.kpi-num{ font-weight:800; color:var(--accent); }
.kpi-label{ color:#374151; }

/* Волнистый разделитель */
.wave-divider{ position:relative; height:80px; margin-top:24px; }
.wave-divider svg{ position:absolute; inset:auto 0 0 0; width:100%; height:80px; }
.wave-divider path{ fill:#ffffff; }

/* Усиление контраста в hero */
.hero--flag h1,
.hero--flag .lead,
.hero--flag p{ color:var(--text)!important; text-shadow:none!important; }


/* ===== Mission upgraded ===== */
.mission{ display:grid; grid-template-columns: 1fr 360px; gap:24px; }

.mission-card{
  background: var(--panel);
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.section-kicker{
  display:inline-block;
  font-size:.8rem; font-weight:700; letter-spacing:.04em;
  color:#6b7280;
  background:linear-gradient(90deg, rgba(225,6,0,.12), rgba(255,204,0,.12));
  border:1px solid #e5e7eb; border-radius:999px;
  padding:.25rem .6rem; margin-bottom:.5rem;
}

.feature-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.feature-pill{
  display:inline-flex; align-items:center; gap:6px;
  background:#fff; color:#111; border:1px solid #e5e7eb;
  border-radius:999px; padding:.4rem .7rem; font-weight:600;
  box-shadow:0 6px 16px rgba(0,0,0,.05);
}
.feature-pill i{ color:var(--accent); }

/* чек-лист */
.list-check{ list-style:none; padding:0; display:grid; gap:.4rem; }
.list-check li{
  position:relative; padding-left:26px; color:#374151;
}
.list-check li::before{
  content:""; position:absolute; left:0; top:.25rem;
  width:16px; height:16px; border-radius:50%;
  background:var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 1.929a1 1 0 010 1.414l-7.07 7.071a1 1 0 01-1.415 0L2.515 8.93A1 1 0 013.93 7.515l1.061 1.06 6.364-6.364a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

/* CTA круг с «кольцом» и мягкой тенью */
.cta-bubble{
  display:grid; place-items:center; aspect-ratio:1/1;
  background: var(--accent);
  border-radius: 999px; color:#111; position:relative;
  box-shadow:0 20px 40px rgba(225,6,0,.28);
}
.cta-bubble--ring::before{
  content:""; position:absolute; inset:-10px; border-radius:999px;
  background: radial-gradient(closest-side, rgba(225,6,0,.0) 68%, rgba(225,6,0,.18) 100%);
  filter: blur(6px); z-index:0;
}
.cta-bubble .inner{ padding:26px; text-align:center; position:relative; z-index:1; }
.cta-bubble h3{ margin:0 0 10px; font-weight:800; color:#111; }
.cta-bubble p{ margin:0 0 14px; color:#1f2937; opacity:.85; }
.cta-bubble .btn{
  background:#fff; color:#111; border:0; padding:10px 14px;
  border-radius:12px; font-weight:700; box-shadow:0 8px 18px rgba(255,255,255,.3);
}
.cta-badge{
  display:inline-flex; align-items:center; gap:6px;
  background:#fff; color:#111; border-radius:999px; padding:.25rem .6rem;
  font-size:.78rem; font-weight:700; margin-bottom:.6rem;
  border:1px solid rgba(0,0,0,.06);
}
.cta-badge i{ color:var(--accent); }
.cta-note{ margin-top:.6rem; font-size:.85rem; color:#111; opacity:.75; }

@media (max-width: 992px){
  .mission{ grid-template-columns:1fr; }
  .cta-bubble{ aspect-ratio:auto; border-radius:18px; }
}


/* ===== Основатель ===== */
.founder-photo img{
  width:100%; border-radius:18px;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
  object-fit:cover;
}
.founder-sign{
  margin-top:1.5rem;
  font-size:1rem; line-height:1.4;
}
.founder{ background: #fff; border-top:1px solid #e5e7eb; }


/* ===== Почему выбирают нас ===== */
.why-us{ background: var(--bg); }
.why-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:28px 22px;
  height:100%;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 32px rgba(0,0,0,.08);
}
.why-icon{
  font-size:2rem;
  color:var(--accent);
  margin-bottom:14px;
}
.why-card h5{ font-weight:700; margin-bottom:12px; color:#111; }
.why-card p{ color:#374151; font-size:.95rem; margin:0; }


/* ===== Отзывы родителей ===== */
.testimonials{ background: var(--bg); }
.testimonial-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}
.testimonial-img{
  width:100%;
  border-radius:12px;
  display:block;
}


/* ===== Партнёры ===== */
.partners{ background: var(--bg); }
.partner-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:18px 12px;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
  height:100%;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration:none; color:#111;
}
.partner-card:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 28px rgba(0,0,0,.08);
}
.partner-card img{
  max-width:100px;
  max-height:80px;
  object-fit:contain;
  margin-bottom:10px;
}
.partner-card h6{ font-weight:700; margin:0 0 6px; }
.partner-card .badge{ font-size:.75rem; }

/* ===== Тренеры ===== */
.coach-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:18px;
  height:100%;
  box-shadow:0 8px 20px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.coach-card:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 28px rgba(0,0,0,.08);
}
.coach-card img{
  width:100%; height:280px; object-fit:cover;
  border-radius:12px;
}
.coach-card h5{ font-weight:700; margin-top:14px; color:#111; }
.coach-card p{ font-size:.95rem; color:#374151; margin-top:8px; }

/* ===== Публичный договор ===== */
.contract-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
}
.contract-card ul{ padding-left:0; }
.contract-card .list-check li{ color:#374151; }

/* ===== How section (главная) ===== */
.how-title{
  font-weight:800;
  margin-bottom:.6rem;
  line-height:1.25;
  color:var(--text);
}

.how-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:22px;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  transition:transform .2s ease, box-shadow .2s ease;
}
.how-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(0,0,0,.08);
}

/* Акцентная левая карточка — лёгкое флаговое сияние */
.how-card--accent{
  position:relative;
  overflow:hidden;
}
.how-card--accent::before{
  content:""; position:absolute; inset:-40% -40% auto -40%;
  height:70%;
  background:linear-gradient(135deg, rgba(225,6,0,.08), rgba(255,204,0,.08));
  filter: blur(10px);
  pointer-events:none;
}

/* Чек-лист */
.list-ticks{ list-style:none; padding:0; margin: .5rem 0 0; display:grid; gap:.35rem; }
.list-ticks li{
  position:relative; padding-left:26px; color:#374151;
}
.list-ticks li::before{
  content:""; position:absolute; left:0; top:.25rem;
  width:16px; height:16px; border-radius:50%;
  background:var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 1.929a1 1 0 010 1.414l-7.07 7.071a1 1 0 01-1.415 0L2.515 8.93A1 1 0 013.93 7.515l1.061 1.06 6.364-6.364a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

/* Видео-фрейм */
.how-video{
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  border:1px solid #e5e7eb;
}
.how-video video{ width:100%; height:100%; display:block; }

/* Убираем лишний зазор под навбар на маленьких экранах */
@media (max-width: 576px) {
  main { margin-top: 0 !important; }
}

/* Кнопки hero на мобилке */
@media (max-width: 576px) {
  .hero-section .btn {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.75rem;
  }
}

/* --- Жизнь: адаптивная фотосетка с подписью и динамикой --- */
.life-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:.75rem;
}
.life-tile{
  grid-column: span 6;               /* 2 в ряд на десктопе */
  aspect-ratio: 4/3;                 /* базовая пропорция */
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:#f3f4f6;
  box-shadow:0 8px 26px rgba(0,0,0,.08);
  transition: transform .35s cubic-bezier(.2,.65,.2,1), box-shadow .35s;
}
.life-tile--wide{ grid-column: span 12; aspect-ratio: 16/9; }
.life-tile--tall{ aspect-ratio: 3/4; }

.life-tile img{
  width:100%; height:100%;
  object-fit:cover; display:block;
  transform: scale(1.04);
  transition: transform .6s ease;
}

.life-tile:hover{ transform: translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,.12); }
.life-tile:hover img{ transform: scale(1.08); }

/* стеклянная подпись */
.life-tile figcaption{
  position:absolute; left:10px; bottom:10px; max-width:85%;
  color:#fff; font-weight:700; font-size:.98rem; line-height:1.25;
  padding:.45rem .65rem; border-radius:10px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  text-shadow:0 2px 8px rgba(0,0,0,.6);
}

/* адаптив: по одному на планшет/мобайл */
@media (max-width: 991.98px){
  .life-tile{ grid-column: span 12; }
}

/* эффект плавного появления (если ещё не подключён) */
.reveal-up{ opacity:0; transform: translateY(18px) scale(.98); transition: all .7s cubic-bezier(.2,.65,.2,1); }
.reveal-up.is-visible{ opacity:1; transform:none; }
