/* ==========================================================================
   БОАМЛ — style.css (Mobile First, BEM, MODX-ready)
   Breakpoints: 320 / 480 / 768 / 1024 / 1280 / 1920
   ========================================================================== */

:root {
  /* Colors — тёмный navy с блока контактов/карты + красный акцент */
  --color-bg: #ffffff;
  --color-bg-soft: #f4f6f9;
  --color-bg-muted: #e8ecf2;
  --color-navy: #152445;
  --color-navy-deep: #152445;
  --color-navy-soft: #1e3560;
  --color-accent: #e30613;
  --color-accent-hover: #c10510;
  --color-accent-soft: #fff0f1;
  --color-orange: #ff6b1a;
  --color-coral: #f06b5c;
  --color-sky: #4ba3e8;
  --color-text: #1a2744;
  --color-text-muted: #5a6478;
  --color-border: #e2e8f0;
  --color-pink: #ffe4e0;
  --color-blue-soft: #e6ebf3;
  --color-white: #ffffff;
  --color-star: #e30613;

  /* Typography */
  --font-main: "Montserrat", system-ui, -apple-system, sans-serif;
  --fs-xs: clamp(12px, 11.2px + 0.25vw, 13px);
  --fs-sm: clamp(14px, 13.12px + 0.3vw, 15px);
  --fs-base: clamp(15px, 14.4px + 0.25vw, 16px);
  --fs-md: clamp(16px, 15.2px + 0.35vw, 18px);
  --fs-lg: clamp(20px, 17.6px + 0.7vw, 28px);
  --fs-xl: clamp(24px, 20px + 1.2vw, 36px);
  --fs-hero: clamp(28px, 20.8px + 2vw, 52px);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 12px + 1.5vw, 24px);
  --section-y: clamp(24px, 16px + 2vw, 44px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 28px rgba(21, 36, 69, 0.1);
  --shadow-btn: 0 8px 20px rgba(227, 6, 19, 0.28);
  --header-h: 68px;
  --transition: 0.28s ease;

  /* Breakpoint tokens (for JS / docs) */
  --bp-xs: 320px;
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-xxl: 1920px;

  /* Grid */
  --cols: 4;
  --gap: clamp(12px, 8px + 1vw, 24px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
}

.section {
  padding-block: var(--section-y);
}

.section__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin-bottom: clamp(14.4px, 10.4px + 1vw, 24px);
  letter-spacing: -0.02em;
}

.section__title--left {
  text-align: left;
  margin-bottom: 0;
}

.section__title--light {
  color: var(--color-white);
}

.section__title-accent {
  color: var(--color-accent);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(12px, 8px + 1vw, 20px);
}

.section__link {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
  transition: color var(--transition);
}

.section__link:hover {
  color: var(--color-accent-hover);
}

.section__link::after {
  content: " →";
}

/* --------------------------------------------------------------------------
   Container + Bootstrap-like grid (CSS Grid)
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 4; }
.col-6 { grid-column: span 4; }
.col-7 { grid-column: span 4; }
.col-8 { grid-column: span 4; }
.col-9 { grid-column: span 4; }
.col-10 { grid-column: span 4; }
.col-11 { grid-column: span 4; }
.col-12 { grid-column: span 4; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 21.6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--lg {
  min-height: 52px;
  padding-inline: 25.6px;
  font-size: var(--fs-base);
}

/* --------------------------------------------------------------------------
   Reveal (Intersection Observer)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header + Burger
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(26, 39, 68, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo__img {
  width: clamp(148px, 34vw, 210px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  background: transparent;
  display: block;
}

.logo__img--light {
  max-height: 46px;
  background: transparent;
  padding: 0;
}

.header__nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8.8px, 4.8px + 0.8vw, 18.4px);
}

.nav__link {
  font-size: clamp(12px, 11.2px + 0.25vw, 14px);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__link--active {
  color: var(--color-accent);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.nav__item--has-sub {
  position: relative;
}

.nav__item--has-sub > .nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5.6px;
}

.nav__caret {
  display: inline-block;
  width: 6.4px;
  height: 6.4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
  opacity: 0.7;
}

.nav__sub {
  position: absolute;
  top: calc(100% + 8.8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 208px;
  padding: 6.4px;
  margin: 0;
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(26, 39, 68, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

.nav__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -11.2px;
  height: 11.2px;
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub,
.nav__item--has-sub.is-sub-open .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__item--has-sub:hover .nav__caret,
.nav__item--has-sub:focus-within .nav__caret,
.nav__item--has-sub.is-sub-open .nav__caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav__sub-link {
  display: block;
  padding: 10.4px 13.6px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav__sub-link:hover,
.nav__sub-link.is-active {
  background: rgba(227, 6, 19, 0.08);
  color: var(--color-accent);
}

.header__mobile-item--group {
  border-bottom: 1px solid var(--color-border);
}

.header__mobile-item--group > .header__mobile-link {
  border-bottom: none;
}

.header__mobile-sub {
  list-style: none;
  margin: 0 0 5.6px;
  padding: 0 0 5.6px 13.6px;
}

.header__mobile-link--sub {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 8.8px 4px;
  border-bottom: none;
}

.header__mobile-link--sub[aria-current="page"],
.header__mobile-link--sub:hover {
  color: var(--color-accent);
}

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

.header__phones {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.header__phones-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: clamp(12px, 11px + 0.2vw, 14px);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.header__phones-toggle:hover,
.header__phones.is-open .header__phones-toggle {
  color: var(--color-accent);
}

.header__phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header__phones-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}

.header__phones.is-open .header__phones-caret {
  transform: rotate(225deg) translateY(-1px);
}

.header__phones-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 100%;
  padding: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(21, 36, 69, 0.12);
}

.header__phones-dropdown[hidden] {
  display: none;
}

.header__phones-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.header__phones-link:hover {
  background: rgba(227, 6, 19, 0.08);
  color: var(--color-accent);
}

.header__cta {
  display: none;
}

.burger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.is-active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__mobile {
  display: grid;
  grid-template-rows: 0fr;
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: grid-template-rows 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.header__mobile.is-open {
  grid-template-rows: 1fr;
  border-bottom-color: var(--color-border);
}

/* Keep grid for open/close animation; native [hidden] would be display:none */
.header__mobile[hidden] {
  display: grid;
}

.header__mobile-list {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 var(--gutter);
}

.header__mobile.is-open .header__mobile-list {
  padding-block: 8px 16px;
}

.header__mobile-link {
  display: block;
  padding: 13.6px 4px;
  font-weight: 700;
  font-size: var(--fs-md);
  border-bottom: 1px solid var(--color-border);
}

/*
  CTA is a sibling of the list. grid-template-rows: 0fr only collapses the
  first row — the button still took full height (opacity:0) and made the
  closed mobile header look twice as tall.
*/
.header__mobile-cta {
  margin: 0 var(--gutter) 20px;
  width: calc(100% - 2 * var(--gutter));
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.header__mobile:not(.is-open) .header__mobile-cta,
.header__mobile:not(.is-open) .header__mobile-phones {
  display: none;
}

.header__mobile-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px var(--gutter) 12px;
}

.header__mobile-phone {
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--color-text);
}

.header__mobile-phone:hover {
  color: var(--color-accent);
}

.header__mobile.is-open .header__mobile-cta {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(227, 6, 19, 0.06), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 16px;
  align-items: center;
  padding-block: clamp(16px, 12px + 1vw, 24px);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero__accent {
  color: var(--color-accent);
}

.hero__text {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  max-width: 544px;
  margin-bottom: 12px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.trust {
  margin-top: clamp(12px, 8px + 1vw, 18.4px);
  padding-block: 12px;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
}

.trust__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: stretch;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 10.4px;
  min-height: 44px;
}

.trust__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.trust__text {
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Benefits — панель как в макете
   -------------------------------------------------------------------------- */

.benefits {
  background: var(--color-bg);
}

.benefits__panel {
  padding: clamp(16px, 12px + 1vw, 24px) clamp(13.6px, 9.6px + 1vw, 21.6px);
  background: var(--color-bg-soft);
  border-radius: clamp(16px, 12px + 1.5vw, 28px);
}

.benefits__title {
  margin-bottom: clamp(12px, 8px + 0.8vw, 18.4px);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 13.6px;
  min-height: 152px;
  padding: 20px 13.6px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 39, 68, 0.08);
  border-color: transparent;
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  margin: 0;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.benefit-card__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0;
  max-width: 11em;
}

.benefit-card__text {
  display: none;
}

/* --------------------------------------------------------------------------
   Groups
   -------------------------------------------------------------------------- */

.groups {
  background: var(--color-bg-soft);
}

.groups__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.groups__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.groups__more-btn[hidden] {
  display: none !important;
}

.groups__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--color-muted, #6b7280);
}

/* Единая карточка набора (главная + график) */
.schedule-card {
  display: flex;
  flex-direction: column;
  gap: 8.8px;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: var(--color-white);
  min-height: 100%;
  box-shadow: var(--shadow-card);
}

.schedule-card[hidden] {
  display: none !important;
}

.schedule-card--navy {
  background: linear-gradient(155deg, #2a3f78 0%, #152445 48%, #0e1730 100%);
}

.schedule-card--blue {
  background: linear-gradient(155deg, #6b9bff 0%, #3d6ef0 42%, #2548c7 100%);
}

.schedule-card--red {
  background: linear-gradient(155deg, #ff8a7a 0%, #f04a3c 45%, #d91820 100%);
}

.schedule-card--mint {
  background: linear-gradient(155deg, #5a8fff 0%, #3560e0 50%, #1e3fa8 100%);
}

/* Цвет строго по типу группы (как на графике): утро / вечер / выходные */
.schedule-card[data-type="morning"] {
  background: linear-gradient(155deg, #ff8a7a 0%, #f04a3c 45%, #d91820 100%);
}

.schedule-card[data-type="evening"] {
  background: linear-gradient(155deg, #2a3f78 0%, #152445 48%, #0e1730 100%);
}

.schedule-card[data-type="weekend"] {
  background: linear-gradient(155deg, #6b9bff 0%, #3d6ef0 42%, #2548c7 100%);
}

.schedule-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-card__type {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4.8px 10.4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
}

.schedule-card__status {
  font-size: 11.2px;
  font-weight: 800;
  padding: 4.8px 10.4px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.schedule-card__status--ok {
  background: #d8f5e3;
  color: #0f7a3c;
}

.schedule-card__status--warn {
  background: #ffe2e2;
  color: #c10510;
}

.schedule-card__status--hot {
  background: #ffe8c8;
  color: #b35a00;
}

.schedule-card__date {
  font-size: clamp(24px, 20px + 1vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 5.6px;
}

.schedule-card__countdown {
  font-size: var(--fs-xs);
  opacity: 0.75;
  font-weight: 600;
  margin-bottom: 5.6px;
}

.schedule-card__list {
  display: grid;
  gap: 8.8px;
  margin: 5.6px 0 12px;
}

.schedule-card__item {
  display: flex;
  align-items: flex-start;
  gap: 8.8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}

.schedule-card__item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1.6px;
  color: currentColor;
  opacity: 0.92;
}

.schedule-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.schedule-card .price-tag__old {
  color: rgba(255, 255, 255, 0.65);
  opacity: 1;
}

.schedule-card .price-tag__current {
  color: var(--color-white);
  font-size: clamp(20px, 17.6px + 0.6vw, 25.6px);
}

.schedule-card .price-tag--promo {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

.schedule-card .price-tag--promo:hover {
  opacity: 0.85;
}

.schedule-card .price-tag__from {
  font-size: clamp(14px, 12.8px + 0.35vw, 16px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: lowercase;
}

.schedule-card .price-tag--promo .price-tag__current {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* Price tag — акция: зачёркнутая старая + крупная новая */
.price-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 13.6px;
}

.price-tag__old {
  font-size: clamp(16px, 14.4px + 0.5vw, 21.6px);
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0.55;
}

.price-tag__current {
  font-size: clamp(24px, 19.2px + 1.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: inherit;
}

.price-tag--lg .price-tag__old {
  font-size: clamp(18.4px, 16px + 0.7vw, 25.6px);
}

.price-tag--lg .price-tag__current {
  font-size: clamp(32px, 24px + 2vw, 48px);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Process — «Как проходит обучение»
   -------------------------------------------------------------------------- */

.process {
  background: var(--color-bg);
}

.process__panel {
  position: relative;
  padding: clamp(28px, 20px + 1.8vw, 48px) clamp(20px, 14px + 1.8vw, 44px);
  background: #f3f6fb;
  border-radius: 24px;
  overflow: hidden;
}

.process__heading {
  position: relative;
  z-index: 1;
  font-size: clamp(24px, 20px + 1.1vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-align: left;
  margin: 0 0 clamp(24px, 18px + 1.2vw, 36px);
}

.process__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-width: 0;
}

.process__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: var(--color-navy);
  flex-shrink: 0;
}

.process__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.process__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.process__title {
  margin: 0;
  font-size: clamp(17px, 15.5px + 0.45vw, 20px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.process__text {
  margin: 0;
  font-size: clamp(14px, 13px + 0.35vw, 15.5px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 280px;
}

/* --------------------------------------------------------------------------
   Price
   -------------------------------------------------------------------------- */

.price {
  background: var(--color-bg);
}

.price__banner {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 14px + 1.2vw, 32px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(227, 6, 19, 0.28), transparent 42%),
    linear-gradient(135deg, #152445 0%, #1e3560 100%);
  color: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  align-items: center;
}

.price__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  margin-bottom: 8px;
}

.price__course {
  font-size: var(--fs-sm);
  opacity: 0.8;
  margin-bottom: 5.6px;
}

.price__value {
  margin-bottom: 8px;
}

.price__note {
  font-size: var(--fs-sm);
  margin-bottom: 12px;
  opacity: 0.9;
}

.price__promo {
  font-size: var(--fs-sm);
  margin-bottom: 20px;
  opacity: 0.95;
}

.price__promo-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price__promo-link:hover {
  color: var(--color-accent);
}

.price__list {
  display: grid;
  gap: 10.4px;
  margin-bottom: 24px;
}

.price__list-item {
  position: relative;
  padding-left: 25.6px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.price__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5.6px;
  width: 14.4px;
  height: 14.4px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: inset 0 0 0 2px var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.price__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: center;
  background: transparent;
}

.price__img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Reviews slider
   -------------------------------------------------------------------------- */

.reviews {
  background: var(--color-bg-soft);
}

.reviews__slider {
  position: relative;
}

.reviews__viewport {
  overflow: hidden;
  margin-inline: 0;
}

.reviews__track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.4s ease;
  will-change: transform;
}

.review-card {
  flex: 0 0 100%;
  min-width: 0;
  padding: 21.6px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 13.6px;
  margin-bottom: 13.6px;
}

.review-card__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.review-card__name {
  font-size: var(--fs-md);
  font-weight: 800;
}

.review-card__stars {
  color: var(--color-star);
  letter-spacing: 0.08em;
  font-size: var(--fs-sm);
  line-height: 1;
}

.review-card__body {
  position: relative;
}

.review-card__text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card.is-expanded .review-card__text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.review-card__more {
  margin-top: 10.4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-accent);
  transition: color var(--transition);
}

.review-card__more:hover {
  color: var(--color-accent-hover);
}

.review-card__more[hidden] {
  display: none;
}

.reviews__nav {
  display: none;
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition);
}

.reviews__nav:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.reviews__nav--prev {
  left: -8px;
}

.reviews__nav--next {
  right: -8px;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.reviews__dot {
  width: 8.8px;
  height: 8.8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background-color var(--transition), transform var(--transition);
}

.reviews__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   FAQ — одно полотно (как на av-boaml.by)
   -------------------------------------------------------------------------- */

.faq {
  background: var(--color-bg);
}

.faq__list {
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17.6px 20px;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-sm);
}

.accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.accordion__icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion__icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.accordion__item.is-open .accordion__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__panel {
  padding: 0 20px 18.4px;
}

.accordion__panel[hidden] {
  display: none;
}

.accordion__text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Contacts — карта крупнее
   -------------------------------------------------------------------------- */

.contacts {
  background: var(--color-navy-deep);
  color: var(--color-white);
}

.contacts__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.contacts__title {
  margin-bottom: clamp(16px, 12px + 1vw, 24px);
}

.contacts__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 5.6px;
}

.contacts__value {
  display: block;
  font-size: var(--fs-md);
  font-weight: 700;
}

.contacts__link:hover {
  color: var(--color-accent);
}

.contacts__block + .contacts__block {
  margin-top: 17.6px;
}

.contacts__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-muted);
  min-height: 320px;
  height: clamp(320px, 45vw, 520px);
}

.contacts__map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: #0d1424;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 32px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: grid;
  gap: 24px;
  align-items: start;
}

.footer__legal {
  display: grid;
  gap: 6px;
  max-width: 460px;
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.footer__legal p {
  margin: 0;
}

.footer__org {
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer__contacts-title {
  margin: 0 0 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.footer__contact {
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: color var(--transition);
}

.footer__contact:hover {
  color: var(--color-accent);
}

.footer__hours {
  margin: 0;
  font-size: var(--fs-xs);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.2);
  opacity: 1;
  margin: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__dev {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 12px;
  font-weight: 400;
}

.footer__dev::after {
  content: "";
  display: block;
  background: url("../img/nbd.svg") center / contain no-repeat;
  width: 90px;
  height: 20px;
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.2;
  transition: filter 0.2s, opacity 0.2s;
}

.footer__dev:hover {
  color: rgba(255, 255, 255, 0.6);
}

.footer__dev:hover::after {
  filter: none;
  opacity: 1;
}

.footer__dev-text {
  white-space: nowrap;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13.6px 20px;
}

.footer__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* 320+ already base; tighten tiny screens if needed */
@media (min-width: 320px) {
  :root {
    --cols: 4;
  }
}

/* 480px — large phones / small tablets */
@media (min-width: 480px) {
  .trust__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 13.6px 20px;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card {
    flex-basis: calc(50% - var(--gap) / 2);
  }

  .col-6 {
    grid-column: span 2;
  }
}

/* 768px — tablets */
@media (min-width: 768px) {
  :root {
    --cols: 8;
    --header-h: 72px;
  }

  .header__cta {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
    align-items: center;
    padding-block: clamp(20px, 16px + 1vw, 28px);
  }

  .trust__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
  }

  .trust__item {
    justify-content: flex-start;
  }

  .trust__text {
    font-size: var(--fs-sm);
  }

  .groups__grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 36px;
  }

  .price__banner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
  }

  .price__img {
    max-height: 360px;
  }

  .contacts__grid {
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.6fr);
    align-items: start;
  }

  .contacts__map {
    grid-column: auto;
    min-height: 420px;
    height: 100%;
    align-self: stretch;
  }

  .footer__inner {
    grid-template-columns: minmax(240px, 1.5fr) minmax(180px, 0.9fr) minmax(160px, 0.8fr);
    grid-template-areas:
      "logo contacts nav"
      "legal contacts nav"
      "bottom bottom bottom";
    column-gap: 32px;
    row-gap: 16px;
  }

  .footer__logo {
    grid-area: logo;
  }

  .footer__legal {
    grid-area: legal;
  }

  .footer__contacts {
    grid-area: contacts;
  }

  .footer__nav {
    grid-area: nav;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__bottom {
    grid-area: bottom;
  }

  .footer__dev::after {
    width: 103px;
    height: 24px;
  }

  .col-3 { grid-column: span 2; }
  .col-4 { grid-column: span 3; }
  .col-6 { grid-column: span 4; }
  .col-8 { grid-column: span 5; }
  .col-12 { grid-column: span 8; }
}

/* 1024px — laptop */
@media (min-width: 1024px) {
  :root {
    --cols: 12;
  }

  .burger {
    display: none;
  }

  .header__mobile {
    display: none !important;
  }

  .header__nav {
    display: block;
  }

  .header__phones {
    display: inline-flex;
  }

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

  .process__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
    align-items: start;
  }

  .process__item {
    gap: 16px;
  }

  .process__icon {
    width: 80px;
    height: 80px;
  }

  .process__title {
    font-size: 18px;
  }

  .process__text {
    font-size: 15px;
    max-width: none;
  }

  .process__item:not(:last-child)::after {
    display: none;
  }

  .review-card {
    flex-basis: calc(33.333% - var(--gap) * 2 / 3);
  }

  .reviews__nav {
    display: inline-flex;
  }

  .reviews__nav--prev {
    left: -16px;
  }

  .reviews__nav--next {
    right: -16px;
  }

  .contacts__grid {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.8fr);
    gap: 32px;
  }

  .contacts__map {
    grid-column: auto;
    min-height: 480px;
  }

  .col-1 { grid-column: span 1; }
  .col-2 { grid-column: span 2; }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
  .col-10 { grid-column: span 10; }
  .col-11 { grid-column: span 11; }
  .col-12 { grid-column: span 12; }
}

/* 1280px — desktop */
@media (min-width: 1280px) {
  .hero__grid {
    gap: 24px;
    min-height: 0;
    align-items: center;
  }

  .process__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 20px;
    align-items: start;
  }

  .process__item {
    gap: 16px;
    padding-right: 0;
  }

  .process__item:not(:last-child) {
    margin-right: 40px;
  }

  .process__icon {
    width: 80px;
    height: 80px;
  }

  .process__title {
    font-size: 17px;
    line-height: 1.3;
  }

  .process__text {
    font-size: 14px;
    max-width: none;
  }

  .process__item:not(:last-child)::after {
    display: block;
    content: "";
    position: absolute;
    top: 40px;
    right: -38px;
    width: 36px;
    height: 28px;
    transform: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 28' fill='none'%3E%3Cpath d='M2 14h28M22 6l10 8-10 8' stroke='%23152445' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.85;
  }

  .benefits__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }

  .benefit-card {
    min-height: 168px;
    padding: 21.6px 10.4px;
  }

  .benefit-card__title {
    font-size: clamp(13px, 12px + 0.2vw, 15px);
  }

  .review-card {
    flex-basis: calc(25% - var(--gap) * 3 / 4);
  }

  .reviews__viewport {
    margin-inline: 24px;
  }
}

/* 1920px — large screens */
@media (min-width: 1920px) {
  :root {
    --section-y: 48px;
  }

  .container {
    max-width: 1320px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Modal + form (заявка)
   -------------------------------------------------------------------------- */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 27, 48, 0.72);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: clamp(21.6px, 16px + 2vw, 32px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.modal__close {
  position: absolute;
  top: 13.6px;
  right: 13.6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  transition: background-color var(--transition), transform var(--transition);
}

.modal__close:hover {
  background: #e4e8ef;
  transform: scale(1.05);
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__close span {
  display: none;
}

.modal__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  margin-bottom: 6.4px;
  padding-right: 24px;
}

.modal__subtitle {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 21.6px;
}

.modal__success {
  text-align: center;
  padding-block: 16px;
}

.modal__success .btn {
  margin-top: 8px;
}

.form__field {
  margin-bottom: 16px;
}

.form__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: 5.6px;
}

.form__req {
  color: var(--color-accent);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 14.4px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
  background: var(--color-white);
}

.form__input.is-invalid,
.form__textarea.is-invalid {
  border-color: var(--color-accent);
}

.form__error {
  display: block;
  margin-top: 4.8px;
  font-size: var(--fs-xs);
  color: var(--color-accent);
  font-weight: 600;
}

.form__error[hidden] {
  display: none;
}

.form__submit {
  width: 100%;
  margin-top: 8px;
}
