/* ==========================================================================
   RoboRabbit — стили лендинга
   Все стили вынесены сюда; в разметке остаются только классы.
   ========================================================================== */

/* --- Токены темы -------------------------------------------------------- */
:root {
  /* Фоны */
  --bg: #0B0D10;         /* основной фон страницы */
  --surface: #14181D;    /* карточки, поля ввода */
  --band: #0E1116;       /* бегущая строка и подвал */

  /* Акцент и текст */
  --ink: #EDF1F5;        /* основной текст */
  --lime: #C4F24B;       /* фирменный лайм */
  --lime-bright: #DBFF7A;/* лайм при наведении */

  /* Оттенки серого (от светлого к тёмному) */
  --gray-1: #B7C0CA;
  --gray-2: #A8B2BE;
  --gray-3: #C3CBD4;
  --gray-4: #98A2AE;
  --gray-5: #8E99A6;
  --gray-6: #6F7B89;

  /* Границы (белый с разной прозрачностью) */
  --line:   rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .1);
  --line-3: rgba(255, 255, 255, .12);
  --line-4: rgba(255, 255, 255, .16);
  --line-5: rgba(255, 255, 255, .18);

  /* Шрифты */
  --font-head: Unbounded, sans-serif;         /* заголовки */
  --font-body: Manrope, system-ui, sans-serif;/* текст */
}

/* --- База --------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-bright); }
input, select, textarea, button { font-family: inherit; }
[hidden] { display: none !important; }

/* --- Анимации ----------------------------------------------------------- */
@keyframes rrfloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
@keyframes rrmarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Общие блоки -------------------------------------------------------- */
.page { width: 100%; overflow-x: hidden; background: var(--bg); }

/* Контейнер-секция */
.section { max-width: 1200px; margin: 0 auto; padding: 84px 20px 20px; }
.section--narrow { max-width: 900px; }

/* Заголовок секции */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.section-title--gap { margin-bottom: 30px; }

/* Тёмная карточка — переиспользуется в нескольких секциях */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}
.card--accent { border-color: rgba(196, 242, 75, .3); }

.card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}
.card-text {
  margin: 0;
  color: var(--gray-4);
  font-size: 15px;
  line-height: 1.55;
}

/* Мелкая надпись-рубрика над заголовком */
.kicker {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gray-6);
  margin-bottom: 8px;
}

/* Картинка, заполняющая контейнер (фото в hero и галерее) */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Кнопки-ссылки */
.btn-primary {
  background: var(--lime);
  color: var(--bg);
  border-radius: 999px;
}
.btn-primary:hover { background: var(--lime-bright); color: var(--bg); }

.btn-ghost {
  border: 1px solid var(--line-5);
  color: var(--ink);
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); color: var(--ink); }

/* SVG-логотип: в шапке и подвале */
.logo__icon { display: block; flex: 0 0 auto; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 16, .82);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: 0 0 auto; }
.logo:hover { color: var(--ink); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo__sub { font-size: 10px; letter-spacing: .14em; color: var(--gray-5); font-weight: 700; margin-top: 6px; }

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.nav__link { color: var(--gray-3); }
.nav__link:hover { color: var(--gray-3); }

.header__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.header__phone { font-family: var(--font-head); font-size: 14px; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--ink); }

/* Кнопка «Бесплатное занятие» в шапке */
.btn--header { padding: 11px 18px; font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ==========================================================================
   Первый экран
   ========================================================================== */
.hero { max-width: 1200px; margin: 0 auto; padding: 64px 20px 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 44px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(196, 242, 75, .35);
  color: var(--lime);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--gray-2);
  margin: 0 0 28px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
/* Кнопки первого экрана крупнее шапочной */
.btn--hero { padding: 16px 26px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  max-width: 560px;
}
.stat__num { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--lime); }
.stat__label { font-size: 13px; color: var(--gray-5); line-height: 1.4; }

.hero__media { position: relative; }
.hero__photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
/* Всплывающая плашка поверх фото */
.hero__floater {
  position: absolute;
  left: -8px;
  bottom: -26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 300px;
  animation: rrfloat 6s ease-in-out infinite;
}
.hero__floater-icon {
  width: 48px;
  height: 42px;
  border-radius: 12px;
  background: rgba(196, 242, 75, .12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.hero__floater-icon svg { display: block; }
.hero__floater-text { font-size: 13px; line-height: 1.45; color: var(--gray-3); }

/* ==========================================================================
   Бегущая строка технологий
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 46px;
  overflow: hidden;
  background: var(--band);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: rrmarquee 28s linear infinite;
  padding: 14px 0;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--gray-6);
}
.marquee__item { padding: 0 22px; }
.marquee__sep { padding: 0 22px; color: var(--lime); }

/* ==========================================================================
   Как проходят занятия
   ========================================================================== */
.how__lead {
  color: var(--gray-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 40px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.step__num { font-family: var(--font-head); color: var(--lime); font-size: 13px; margin-bottom: 14px; }
.step__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
}

/* ==========================================================================
   Направления
   ========================================================================== */
.directions__head {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.directions__head-inner { flex: 1 1 320px; }
.directions__lead {
  color: var(--gray-2);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

/* Фильтр по возрасту */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.age-chip {
  background: none;
  color: var(--gray-3);
  border: 1px solid var(--line-4);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.age-chip.is-active { background: var(--lime); color: var(--bg); border-color: var(--lime); }

/* Карточки курсов */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.course-card:hover { border-color: rgba(196, 242, 75, .4); }
.course-card__head { display: flex; gap: 16px; align-items: center; }
.course-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 16px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
}
.course-icon img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.course-card__meta { min-width: 0; }
.course-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.course-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-desc {
  margin: 0;
  color: var(--gray-4);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.tag {
  border: 1px solid var(--line-3);
  color: var(--gray-3);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12px;
}
.card-link { margin-top: 6px; font-weight: 700; font-size: 14px; }

/* ==========================================================================
   Почему мы
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.why-hero {
  background: linear-gradient(160deg, #1B2027, #14181D);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  grid-column: 1 / -1;
}
.why-hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  max-width: 760px;
}
.why-hero__text {
  margin: 0;
  color: var(--gray-1);
  font-size: 17px;
  line-height: 1.6;
  max-width: 760px;
  text-wrap: pretty;
}

/* ==========================================================================
   Фотогалерея
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.figure {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(transparent, rgba(11, 13, 16, .9));
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   Стоимость занятий
   ========================================================================== */
.prices__lead {
  color: var(--gray-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 40px;
}
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-card:hover { border-color: rgba(196, 242, 75, .4); }
/* Выделенный тариф — акцентная рамка и лёгкая подсветка */
.price-card--featured {
  border-color: rgba(196, 242, 75, .5);
  background: linear-gradient(160deg, #1B2027, #14181D);
}
.price-card__badge {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--lime);
  border-radius: 999px;
  padding: 6px 12px;
}
.price-card__head { display: flex; flex-direction: column; gap: 6px; }
.price-card__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.price-card__duration { margin: 0; color: var(--gray-4); font-size: 15px; line-height: 1.5; }
/* margin-top:auto прижимает цену и кнопку к низу — так суммы выровнены по всем карточкам */
.price-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-card__amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lime);
}
.price-card__unit { font-size: 14px; font-weight: 700; color: var(--gray-5); }
.price-card__btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}
.prices__note {
  margin: 22px 0 0;
  color: var(--gray-6);
  font-size: 13px;
  line-height: 1.55;
  max-width: 640px;
}

/* ==========================================================================
   Вопросы родителей (аккордеон)
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  text-align: left;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
}
.faq-icon {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--lime);
  flex: 0 0 auto;
  transition: transform .25s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; }
.faq-item.is-open .faq-a { display: block; }
.faq-answer {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--gray-4);
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
}

/* ==========================================================================
   Запись на пробное занятие
   ========================================================================== */
.trial {
  background: var(--lime);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: center;
}
.trial__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.trial__text {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.55;
  max-width: 460px;
  color: rgba(11, 13, 16, .78);
}
.trial__badges { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.trial__badge { background: rgba(11, 13, 16, .1); border-radius: 999px; padding: 8px 14px; }

/* Тёмная колонка с формой */
.trial__form-wrap { background: var(--bg); border-radius: 20px; padding: 24px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { font-size: 13px; color: var(--gray-5); font-weight: 700; }
.input {
  margin-top: 6px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.btn-submit {
  margin-top: 6px;
  border: 0;
  padding: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.form-note { margin: 0; font-size: 12px; color: var(--gray-6); line-height: 1.5; }

/* Скрытая ловушка для спам-ботов (honeypot) */
.hp { display: none; }

/* Сообщение об ошибке отправки */
.form-error { margin: 0; font-size: 13px; color: #FF8A8A; line-height: 1.5; }

/* Сообщение после отправки */
.trial-success { padding: 26px 6px; text-align: center; }
.trial-success__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 10px;
}
.trial-success__text { margin: 0; color: var(--gray-4); font-size: 15px; line-height: 1.55; }

/* ==========================================================================
   Контакты
   ========================================================================== */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.contact__label {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gray-6);
  margin-bottom: 12px;
}
.contact__label--accent { color: var(--lime); }
.contact__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
.contact__phone { font-size: 15px; font-weight: 700; }

/* ==========================================================================
   ИТ-кластер
   ========================================================================== */
.partner { max-width: 1200px; margin: 0 auto; padding: 64px 20px 0; }
.partner__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}
.partner__logo {
  height: 54px;
  width: auto;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 8px 12px;
  display: block;
}
.partner__body { flex: 1 1 260px; }
.partner__text { margin: 0; color: var(--gray-3); font-size: 15px; line-height: 1.55; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { border-top: 1px solid var(--line); margin-top: 84px; background: var(--band); }
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.footer__tagline { color: var(--gray-6); font-size: 14px; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer__link { color: var(--gray-3); }
.footer__link:hover { color: var(--gray-3); }

/* ==========================================================================
   Юридическая страница (политика обработки персональных данных)
   ========================================================================== */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 40px; }
.legal__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.legal__updated { margin: 0 0 32px; color: var(--gray-5); font-size: 14px; }
.legal h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 34px 0 12px;
}
.legal p,
.legal li { color: var(--gray-2); font-size: 16px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a { text-decoration: underline; }
