/* Витрина школы: то, что видит человек с улицы. Стоит поверх cabinet.css —
   оттуда берутся общая палитра, карточки, плашки и кнопки. */

.wrap { max-width: 1000px; }

/* --- шапка --------------------------------------------------------------- */

.site-top-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.site-logo { font-size: 20px; font-weight: 700; color: var(--blue-dark); text-decoration: none; }

.site-nav { display: flex; gap: 16px; margin-left: 16px; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color .15s ease;
}

.site-nav a:hover { color: var(--blue-dark); }
.site-enter { margin-left: auto; }

/* --- баннер во всю ширину ------------------------------------------------
   Верх страницы: наши обещания, новость или акция и форма записи.
   Заливка на всю ширину — пустого поля сверху быть не должно. */

.banner {
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 45%, #F472B6 100%);
  padding: 32px 0 36px;
  color: #fff;
  /* баннер лежит внутри колонки страницы, а должен идти во всю ширину окна */
  margin: 0 calc(50% - 50vw) 8px;
  width: 100vw;
}

.banner-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
  gap: 32px;
  align-items: start;
  text-align: left;
}

.banner h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 12px 0;
  color: #fff;
}

.banner-lead { font-size: 18px; margin: 0 0 16px; color: rgba(255, 255, 255, .92); }

.banner-news {
  display: inline-block;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
}

.btn-big { height: 46px; font-size: 17px; padding: 0 22px; display: inline-flex; align-items: center; }
/* у всех кнопок одинаковая рамка, иначе соседние кнопки в карточках
   встают на разной высоте — это заметно */
.btn { border: 1px solid transparent; }
.btn-quiet { background: #fff; color: var(--blue-dark); border-color: var(--line); }

/* --- разделы страницы ---------------------------------------------------- */

.block { padding: 32px 0 8px; }
.block h2 { font-size: 26px; margin: 0 0 12px; }
.block-lead { color: var(--muted); max-width: 640px; margin: 0 0 16px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .13s ease, box-shadow .13s ease;
}

.step:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: #9D174D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step span:last-child { color: var(--muted); font-size: 14px; }

.levels { display: flex; flex-wrap: wrap; gap: 8px; }
.levels .tag { font-size: 15px; padding: 6px 14px; }

/* --- темы ---------------------------------------------------------------- */

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.topic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .13s ease, box-shadow .13s ease;
}

.topic:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }

.topic-pic {
  height: 120px;
  background: linear-gradient(140deg, var(--blue-soft), var(--pink-soft));
}

.topic-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.topic-text {
  padding: 10px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* --- цены ---------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .13s ease, box-shadow .13s ease;
}

.plan:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.plan-main { border-color: var(--pink); }
.plan-num { font-size: 32px; font-weight: 700; color: var(--blue-dark); }
.plan-note { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

.plan ul { margin: 0 0 16px; padding-left: 18px; color: #334155; }
.plan li { margin-bottom: 4px; }
.plan .btn { margin-top: auto; justify-content: center; }

/* --- вопросы ------------------------------------------------------------- */

.faq { display: flex; flex-direction: column; gap: 8px; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}

.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: #334155; }

/* --- вход ---------------------------------------------------------------- */

.door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.door {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease;
}

.door:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--card-shadow); }
/* описание тянется, чтобы «Войти →» у обеих дверей стояло на одной линии */
.door span:not(.door-pic):not(.door-go) { color: var(--muted); font-size: 14px; flex: 1; }
.door-go { color: var(--blue-dark); font-size: 14px; margin-top: 8px; }

.door-pic {
  display: block;
  height: 120px;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--blue-soft), var(--pink-soft));
}

.door-pic svg { width: 100%; height: 100%; display: block; }

.door-student { background: linear-gradient(140deg, #E0F2FE, #BAE6FD); }
.door-teacher { background: linear-gradient(140deg, #FCE7F3, #FBCFE8); }
.door-team    { background: linear-gradient(140deg, #EDE9FE, #DDD6FE); }

/* --- узкий экран --------------------------------------------------------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .site-nav { display: none; }
}

/* --- запись на пробное занятие ------------------------------------------
   Вертикальная карточка на первом экране: скруглённые углы, мягкая тень,
   поля друг под другом. Это главное действие страницы. */

.signup-card {
  background: #fff;
  color: var(--ink);   /* баннер вокруг белый по цвету текста, карточка — нет */
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(2, 132, 199, .12);
  padding: 20px;
}

/* заголовок карточки по центру, а поля и подписи — по левому краю:
   старый css витрины центрирует весь первый экран */
.signup-head { margin-bottom: 16px; text-align: center; }
.signup-title { font-size: 20px; font-weight: 700; }

.signup-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

.signup { display: flex; flex-direction: column; gap: 12px; text-align: left; }

.signup label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.signup input[type=text],
.signup input[type=tel],
.signup input[type=email],
.signup select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  width: 100%;
}

.signup input:focus, .signup select:focus { outline: 2px solid #BAE6FD; outline-offset: 1px; }

.signup .agree {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.signup .agree input { margin-top: 3px; accent-color: var(--pink); }
.signup .btn { justify-content: center; }
.signup .note { color: var(--muted); font-size: 12px; margin: 0; }

/* ловушка для роботов: человек её не видит и не заполняет */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }

.done {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #15803D;
  border-radius: 12px;
  padding: 14px;
  margin: 0;
}

/* --- чем у нас ярче: карточки с приколами клуба --------------------------- */

.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.perk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease;
}

.perk:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--card-shadow);
}

.perk-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.perk b { font-size: 17px; }
.perk span:last-child { color: var(--muted); font-size: 14px; }

/* товар, которого ещё нет: гасим, чтобы не выглядел готовым к покупке */
.plan-soon { opacity: .72; }
.plan-soon .plan-num { color: var(--muted); }

@media (max-width: 860px) {
  .banner-inner { grid-template-columns: 1fr; }
  .banner h1 { font-size: 32px; }
}
