/* =========================================
   HighSchool от FiatLab — Styles
   ========================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: 'Myriad Pro', 'Myriad', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
  -webkit-text-size-adjust: 100%; /* Prevent iOS font scaling in landscape */
  text-size-adjust: 100%;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
/* Cross-browser touch tap highlight */
a, button { -webkit-tap-highlight-color: rgba(0,0,0,0.05); }

/* ---------- Variables ---------- */
:root {
  --teal:        #0d5c55;
  --teal-dark:   #073d38;
  --teal-pill:   #1b6b63;
  --yellow:      #f5c000;
  --yellow-h:    #dba900;
  --dark:        #111111;
  --white:       #ffffff;
  --muted:       #666;
  --w:           1100px;
}

/* ---------- Container ---------- */
.container { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 17px 36px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  transition: background .2s;
  line-height: 1.3;
  text-align: center;
}
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover, .btn-yellow:focus-visible { background: var(--yellow-h); }
.btn-teal { background: var(--teal-dark); color: var(--white); }
.btn-teal:hover, .btn-teal:focus-visible { background: var(--teal); }


/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,1);
  padding: 14px 0;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.header--scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.header__logo {
  display: flex; align-items: center; gap: 10px; color: var(--teal-dark);
}
.header__logo img { height: 56px; width: auto; }
.header__logo svg { width: 36px; height: 36px; }
.header__logo-text {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.3; color: var(--teal-dark);
}
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__actions .btn { height: 44px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; }
.header__burger {
  background: var(--teal-dark); border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 10px 9px;
  border-radius: 6px;
}
.header__burger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Nav dropdown ---------- */
.header__nav {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,.08);
}
.header__nav-inner {
  display: flex; gap: 60px; padding: 28px 24px;
}
.header__nav-col {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.header__nav-col a {
  color: var(--dark); font-size: 15px; font-weight: 500;
  transition: color .15s;
}
.header__nav-col a:hover, .header__nav-col a:focus-visible { color: var(--teal); }

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 48px 0 64px;
  position: relative; overflow: hidden;
  background-color: var(--teal);
  background-image: url("assets/images/background_main.webp");
  background-size: cover;
  background-position: center;
}
.hero__wrap {
  display: flex; flex-direction: column; align-items: center;
}
.hero__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
  width: 100%;
}
.hero__content { max-width: 520px; }
.hero__title {
  font-size: 40px; font-weight: 700;
  font-family: 'Noto Serif', Georgia, serif;
  color: var(--white); line-height: 1.15;
  margin-bottom: 36px;
}
.hero__subtitle {
  display: block;
  font-family: 'Myriad Pro', Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 8px;
}
.hero__cta { display: flex; justify-content: center; margin-top: 36px; padding-bottom: 8px; }
.hero__cta .btn-yellow { color: var(--teal-dark); font-weight: 800; box-shadow: 0 4px 16px rgba(0,0,0,0.35); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.hero__cta .btn-yellow:hover, .hero__cta .btn-yellow:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.hero__infographic-img { width: 280px; max-width: 100%; display: block; }

/* --- Hero trefoil badges (clubs ♣ shape) --- */
.hero__badges-wrap { flex-shrink: 0; }
.hero__badges {
  position: relative;
  width: 280px; height: 310px;
}
.hero__infographic {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.badge {
  position: absolute;
  width: 118px; height: 118px;
  border-radius: 50%;
  border: 2.5px solid var(--yellow);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 14px;
  background: rgba(7, 61, 56, .75);
  backdrop-filter: blur(4px);
}
.badge--top   { top: 0;    left: 50%; transform: translateX(-50%); }
.badge--left  { top: 105px; left: 0; }
.badge--right { top: 105px; right: 0; }
.badge__number {
  font-size: 32px; font-weight: 800;
  color: var(--yellow); line-height: 1;
}
.badge--top .badge__number { font-size: 26px; }
.badge__label { font-size: 11px; line-height: 1.3; margin-top: 5px; }
.hero__clubs {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 64px; color: var(--yellow); line-height: 1;
  text-shadow: 0 0 20px rgba(245,192,0,.4);
}

/* ========================================
   UNIVERSITY / TIMELINE
   ======================================== */
.university { padding: 40px 0 72px; background: #fff; content-visibility: auto; contain-intrinsic-size: auto 500px; }
.university .section-title { font-size: 36px; font-weight: 700; margin-bottom: 16px; font-family: 'Noto Serif', Georgia, serif; }
.university__lead { font-size: 22px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.highlight {
  display: inline;
  background: var(--yellow); color: var(--dark);
  padding: 2px 10px; border-radius: 20px; font-weight: 700;
  white-space: nowrap;
}

/* Timeline */
.timeline {
  position: relative;
  display: flex; align-items: flex-start;
  margin: 48px 0 36px;
  overflow-x: auto; padding-bottom: 4px;
}
.timeline__track {
  position: absolute;
  top: 16px; left: 0; right: 0;
  height: 2px; background: var(--yellow);
  pointer-events: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.timeline__point {
  flex: 1; min-width: 90px;
  display: flex; flex-direction: column;
  align-items: center; padding-top: 36px;
  position: relative;
}
.timeline__dot {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--yellow); background: #fff;
}
.timeline__point--active .timeline__dot {
  width: 34px; height: 34px; top: -1px;
  background: var(--teal); border-color: var(--teal);
}
.timeline__amount {
  font-size: 12px; font-weight: 700;
  color: var(--dark); text-align: center; line-height: 1.2;
}
.timeline__point--active .timeline__amount {
  background: var(--teal); color: #fff;
  padding: 4px 8px; border-radius: 4px; font-size: 13px;
}
.timeline__date {
  font-size: 11px; color: var(--muted); margin-top: 4px;
}
.university__tagline {
  background: var(--yellow);
  padding: 20px 32px; border-radius: 6px;
  font-size: 18px; font-weight: 800;
  text-align: center; color: var(--dark);
}

/* ========================================
   UNIVERSITY timeline image
   ======================================== */
.university__timeline-img { margin: 48px 0 36px; overflow-x: auto; }
.university__timeline-img img { width: 100%; min-width: 700px; }

/* ========================================
   RECTOR
   ======================================== */
.rector {
  padding: 40px 0 0;
  background-image: url("assets/images/background_FIAT.webp");
  background-size: cover; background-position: center;
  content-visibility: auto; contain-intrinsic-size: auto 600px;
}
.rector__inner {
  display: flex; align-items: center; gap: 64px;
}
.rector__content { flex: 1; }
.rector__title {
  font-size: 40px; font-weight: 700; font-family: 'Noto Serif', Georgia, serif;
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.rector__name { color: var(--yellow); }
.rector__desc {
  font-size: 19px; line-height: 1.75;
  color: rgba(255,255,255,.85);
  max-width: 400px;
}
.rector__desc strong { font-weight: 800; color: var(--white); font-size: 22px; }
.rector__socials { display: flex; gap: 20px; margin-top: 24px; }
.rector__social {
  font-size: 22px; color: rgba(255,255,255,.7);
  transition: color .2s; cursor: pointer;
}
.rector__social:hover, .rector__social:focus-visible { color: var(--yellow); }
.rector__photo { flex-shrink: 0; width: 380px; }
.rector__photo img { border-radius: 6px; width: 100%; }
.rector__photo-placeholder {
  width: 340px; height: 420px; border-radius: 6px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2); font-size: 14px;
}

/* ========================================
   FOR WHOM
   ======================================== */
.for-whom { padding: 40px 0 72px; background: #fff; content-visibility: auto; contain-intrinsic-size: auto 700px; }
.for-whom .section-title { font-size: 32px; font-weight: 700; margin-bottom: 32px; font-family: 'Noto Serif', Georgia, serif; }

/* Pain list — pill style */
.pain-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.pain-list__item { display: flex; align-items: center; width: 100%; }
.pain-list__pill {
  display: flex; align-items: center;
  background: var(--teal-pill); border-radius: 28px;
  overflow: hidden; min-height: 46px;
  width: 100%;
}
.pain-list__item:nth-child(1) .pain-list__pill { background: #0a4d47; }
.pain-list__item:nth-child(2) .pain-list__pill { background: #0d5c55; }
.pain-list__item:nth-child(3) .pain-list__pill { background: #1b6b63; }
.pain-list__item:nth-child(4) .pain-list__pill { background: #2d8a7a; }
.pain-list__item:nth-child(5) .pain-list__pill { background: #3aa090; }
.pain-list__num {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: var(--teal-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  color: var(--white);
  margin: 0 -2px 0 0;
  position: relative; z-index: 1;
}
.pain-list__text {
  padding: 10px 22px 10px 14px;
  font-size: 20px; font-weight: 600; color: var(--white);
}

/* Hook block — флекс в одну колонку по центру */
.for-whom__hook {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border: 1px solid #e8e8e8; border-radius: 8px; padding: 32px;
  margin-top: 32px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.for-whom__hook-right {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  box-sizing: border-box;
}
.for-whom__hook-right h3 { font-size: 26px; font-weight: 700; }
.for-whom__hook-right p { font-size: 17px; color: var(--dark); line-height: 1.5; font-weight: 700; }

.for-whom__hook-left { width: 100%; }
.for-whom__hook-left .for-whom__hook-text {
  background: #fff; border-radius: 12px; padding: 24px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  font-size: 17px; color: var(--dark); font-weight: 700; line-height: 1.75;
  text-align: center; width: 100%; box-sizing: border-box;
}
.for-whom__hook-bottom {
  display: flex; flex-direction: column; align-items: center;
}

/*
 * Стрелка вниз между блоками.
 * Линия занимает всю высоту, наконечник — часть линии снизу через clip.
 * Используем padding-bottom вместо margin-bottom, чтобы наконечник
 * был ВНУТРИ элемента и не залезал на следующий прямоугольник.
 */
.hook-arrow-down {
  width: 3px;
  position: relative;
  flex-shrink: 0;
  /* 8px сверху от прямоугольника, 8px снизу до следующего */
  margin-top: 8px;
  margin-bottom: 8px;
  /* высота линии + место для наконечника внутри */
  height: 44px;
  overflow: visible;
}
/* линия */
.hook-arrow-down::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  /* линия заканчивается на 12px выше низа — место для наконечника */
  height: calc(100% - 12px);
  background: var(--dark);
}
/* наконечник — начинается ровно там, где кончается линия */
.hook-arrow-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--dark);
}

/* hook-arrow-l / hook-arrow-r — удалены, заменены на .hook-arrow-down */

/* ========================================
   WHY — image layout
   ======================================== */
.why__layout { position: relative; margin-bottom: 40px; }
.why__image { width: 100%; }
.why__texts { display: none; } /* текст уже вшит в изображение */

/* ========================================
   SLIDERS (teachers, cases)
   ======================================== */
.slider-section { padding: 40px 0 72px; overflow: hidden; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.slider-section--teachers {
  background-image: url("assets/images/background_U.webp");
  background-size: cover; background-position: center;
}
.slider-section--community {
  background-image: url("assets/images/background_prepodavateli.webp");
  background-size: cover; background-position: center;
}
.slider-section--cases {
  background-image: url("assets/images/background_case.webp");
  background-size: cover; background-position: center;
}
.slider-section .container { text-align: center; }
.slider-section .slider { text-align: left; }
.slider-section .section-title {
  font-size: 34px; font-weight: 700;
  font-family: 'Noto Serif', Georgia, serif;
  color: var(--white); margin-bottom: 36px;
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 12px 40px;
  border-radius: 60px;
}

.slider__slide { display: none; }
.slider__slide.active { display: block; animation: slideFadeIn .3s ease; }
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reviews__pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.slider__card {
  display: flex; gap: 32px; align-items: flex-start;
  background: var(--white); border-radius: 8px; padding: 28px;
  max-width: 700px; margin: 0 auto;
}
.slider__photo {
  width: 160px; height: 160px;
  object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.slider__photo-placeholder {
  width: 160px; height: 160px; border-radius: 6px;
  background: #e0e0e0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 12px;
}
.slider__info { flex: 1; text-align: center; }
.slider__name-dark {
  display: inline-block;
  background: var(--dark); color: var(--white);
  padding: 8px 24px; border-radius: 40px;
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  text-align: center;
}
.slider__name-yellow {
  display: inline-block;
  background: var(--yellow); color: var(--dark);
  padding: 8px 24px; border-radius: 40px;
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  text-align: center;
}
.slider__desc {
  font-size: 16px; font-weight: 700; line-height: 1.75; color: #333; text-align: left;
}
.slider__controls {
  display: flex; justify-content: space-between; align-items: center;
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.slider__controls .slider__btn { pointer-events: all; }
.slider { position: relative; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: transparent;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.slider__btn img { width: 48px; height: 48px; object-fit: contain; }
.slider__btn:hover, .slider__btn:focus-visible { opacity: .8; }

/* ========================================
   WHY HIGHSCHOOL
   ======================================== */
.why { padding: 40px 0 72px; background: #fff; content-visibility: auto; contain-intrinsic-size: auto 700px; }
.why .section-title { font-size: 32px; font-weight: 700; margin-bottom: 36px; font-family: 'Noto Serif', Georgia, serif; }

/* Why — image as background with overlaid text */
.why__layout {
  position: relative;
  padding-top: 49%;
  margin-bottom: 40px;
  background-image: url('assets/images/pochemu_Fiatlab.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.why__text-item {
  position: absolute;
  font-size: 22px; line-height: 1.4; color: #222; font-weight: 700;
}
.why__text-item strong { display: block; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; color: var(--teal-dark); }
/* Box 1 — top-left, опущен вниз */
.why__text-item--1 { top: 41%; left: 6%; width: 18%; }
/* Box 2 — поднят вверх */
.why__text-item--2 { top: 13%; left: 28%; width: 20%; font-size: 22px; }
/* Box 3 — опущен вниз */
.why__text-item--3 { top: 41%; left: 53%; width: 20%; }
/* Box 4 — поднят вверх */
.why__text-item--4 { top: 13%; left: 77%; width: 23%; }
.why__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
.why__card {
  border: 2px solid var(--teal); border-radius: 8px;
  padding: 40px 24px 28px; position: relative;
}
.why__card-num {
  position: absolute; top: -18px; left: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.why__card-icon { font-size: 32px; margin-bottom: 14px; }
.why__card-title {
  font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 8px;
}
.why__card-text { font-size: 15px; line-height: 1.65; color: #222; }
.why__tagline {
  background: var(--dark); color: var(--white);
  padding: 22px 32px; border-radius: 6px;
  font-size: 20px; text-align: center; margin-bottom: 0;
}
.why__arrow {
  margin: 8px auto;
}
.why__cta { text-align: center; }
.why__cta .btn { padding: 18px 48px; }

/* ========================================
   REVIEWS
   ======================================== */
.reviews {
  padding: 40px 0 72px;
  background-image: url("assets/images/background_otzivi.webp");
  background-size: cover; background-position: center;
  content-visibility: auto; contain-intrinsic-size: auto 700px;
}
.reviews .section-title {
  font-size: 34px; font-weight: 700;
  font-family: 'Noto Serif', Georgia, serif;
  color: var(--white); text-align: center; margin-bottom: 40px;
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 12px 40px;
  border-radius: 60px;
}
.reviews .container { text-align: center; }
.reviews .reviews__grid { text-align: left; }
.reviews__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px;
}
.review-card {
  background: var(--white); border-radius: 8px; padding: 28px;
}
.review-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-card__avatar {
  width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.review-card__avatar-placeholder {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.15); flex-shrink: 0;
}
.review-card__name {
  background: var(--teal-pill); color: var(--white);
  padding: 5px 14px; border-radius: 20px;
  font-size: 14px; font-weight: 700;
}
.review-card__text {
  font-size: 14px; line-height: 1.75;
  color: #333; font-style: italic;
}
.reviews__nav { display: flex; justify-content: center; gap: 12px; }

/* ========================================
   RESULTS (after graduation)
   ======================================== */
.results { padding: 40px 0 72px; background: #fff; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.results .section-title { font-size: 32px; font-weight: 700; margin-bottom: 32px; font-family: 'Noto Serif', Georgia, serif; }
.results__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }
.results__item { display: flex; align-items: center; }
.results__pill {
  display: flex; align-items: center;
  background: var(--teal-pill); border-radius: 28px;
  overflow: hidden; min-height: 46px; width: 100%;
}
.results__item:nth-child(1) .results__pill { background: #073d38; }
.results__item:nth-child(2) .results__pill { background: #0a4d47; }
.results__item:nth-child(3) .results__pill { background: #0d5c55; }
.results__item:nth-child(4) .results__pill { background: #1b6b63; }
.results__item:nth-child(5) .results__pill { background: #2d8a7a; }
.results__item:nth-child(6) .results__pill { background: #3aa090; }
.results__num {
  flex-shrink: 0; width: 46px; height: 46px;
  background: var(--teal-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--white);
  margin: 0 -2px 0 0; position: relative; z-index: 1;
}
.results__text {
  padding: 10px 22px 10px 14px;
  font-size: 20px; font-weight: 600; color: var(--white);
}
.results__cta { text-align: center; }
.results__cta .btn { padding: 18px 48px; }

/* ========================================
   APPLICATION FORM
   ======================================== */
.application { padding: 40px 0 72px; background: #fff; content-visibility: auto; contain-intrinsic-size: auto 500px; }
.application .section-title { font-size: 32px; font-weight: 700; margin-bottom: 6px; font-family: 'Noto Serif', Georgia, serif; }
#application-form { max-width: 560px; }
.form__badge {
  display: inline-block;
  background: var(--yellow); color: var(--dark);
  font-size: 15px; font-weight: 700;
  padding: 6px 18px; border-radius: 40px; margin-bottom: 36px;
}
.form__group { margin-bottom: 22px; }
.form__label {
  display: block; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 8px;
}
.form__input,
.form__textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--yellow); border-radius: 4px;
  font-size: 15px; font-family: inherit; color: var(--dark);
  background: #fff; outline: none; transition: border-color .2s;
  -webkit-appearance: none; /* Safari iOS fix */
  appearance: none;
}
.form__input::placeholder, .form__textarea::placeholder { color: #bbb; }
.form__input:focus, .form__textarea:focus { border-color: var(--teal); }
.form__input--error, .form__textarea--error { border-color: #dc3545; }
.form__textarea { resize: vertical; min-height: 90px; }
.form__submit { width: 100%; margin-top: 8px; padding: 20px; font-size: 15px; }
.form__success {
  display: none; margin-top: 20px; padding: 20px;
  background: #d4edda; border-radius: 6px;
  color: #155724; font-weight: 700; text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--dark); padding: 40px 0; }
.footer__inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px; text-align: center;
}
.footer__logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--white); font-weight: 800; font-size: 16px;
  font-family: 'Noto Serif', Georgia, serif;
  transition: opacity .2s;
}
.footer__logo:hover, .footer__logo:focus-visible { opacity: .75; }
.footer__logo img { height: 32px; width: auto; }
.footer__socials {
  display: flex; align-items: center;
  gap: 28px; flex-wrap: wrap; justify-content: center;
}
.footer__social {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.6); font-size: 15px;
  transition: color .2s, opacity .2s;
}
.footer__social img { width: 20px; height: 20px; object-fit: contain; opacity: .7; }
.footer__social:hover, .footer__social:focus-visible { color: var(--yellow); }
.footer__social:hover img, .footer__social:focus-visible img { opacity: 1; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,.4); }

/* ========================================
   RESPONSIVE  ≤ 1024px  (tablet / small desktop)
   ======================================== */
@media (max-width: 1024px) {
  .hero__title { font-size: 30px; }
  .rector__title { font-size: 32px; }
  .why__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .rector__inner { flex-direction: column; gap: 40px; }
  /* Rector photo — full width, no max-width cap that leaves side whitespace */
  .rector__photo { width: 100%; max-width: 100%; }
  .rector__photo-placeholder { width: 100%; }
  .rector__photo img { max-height: 320px; object-fit: cover; object-position: top; }

  /* Slider section title — already fits at this range */
  .slider-section .section-title { font-size: 26px; }

  /* Slider controls — выносим под слайд начиная с планшета,
     иначе кнопки 48px перекрывают карточку (700px max-width в контейнере ~976px) */
  .slider__controls {
    position: static;
    transform: none;
    justify-content: center;
    gap: 24px;
    padding: 16px 0 0;
    pointer-events: auto;
  }
  .slider__controls .slider__btn { pointer-events: auto; }
}

/* ========================================
   RESPONSIVE  ≤ 1024px  (планшет)
   Переключаем Why на card-layout — на планшете фоновая картинка
   слишком мелкая для чтения текста оверлеев
   ======================================== */
@media (max-width: 1024px) {
  .why__layout {
    padding-top: 0;
    background-image: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  .why__text-item {
    position: static;
    width: 100% !important;
    font-size: 15px;
    padding: 16px 18px;
    background: #f0f7f6;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
  }
  .why__text-item strong { font-size: 15px; }
}

/* ========================================
   RESPONSIVE  ≤ 768px  (mobile)
   ======================================== */
@media (max-width: 768px) {

  /* Header */
  .header__logo img { height: 48px; }
  .header__actions .btn { padding: 10px 14px; font-size: 13px; letter-spacing: .04em; }

  /* Hero */
  .hero { padding: 36px 0 48px; }
  .hero__inner { flex-direction: column; text-align: center; gap: 20px; }
  .hero__title { font-size: 32px; margin-bottom: 16px; }
  .hero__subtitle { font-size: 20px; }
  .hero__infographic-img { width: 180px; }
  .hero__cta { margin-top: 20px; }
  .hero__badges { width: 260px; height: 290px; }
  .badge { width: 100px; height: 100px; }
  .badge--top   { top: 0; }
  .badge--left  { top: 95px; }
  .badge--right { top: 95px; }
  .hero__clubs  { font-size: 52px; }

  /* University — timeline image: убираем min-width, контейнер сам горизонтально скролится */
  .university__timeline-img img { min-width: 480px; }
  .university__tagline { font-size: 16px; padding: 16px 20px; }
  .university__lead { font-size: 17px; }

  /* Rector */
  .rector__desc { font-size: 16px; }
  .rector__desc strong { font-size: 18px; }

  /* For-whom hook — уже флекс-колонка, только корректируем паддинг */
  .for-whom__hook { padding: 20px 16px; }

  /* Reviews */
  .reviews__pair { grid-template-columns: 1fr; }

  /* Why section — мобильные доп-правки поверх 900px-брейкпоинта */
  .why__tagline { font-size: 17px; padding: 16px 20px; }

  /* Pain list / Results */
  .pain-list__text { font-size: 16px; }
  .results__text   { font-size: 16px; }

  /* Slider card */
  .slider__card { flex-direction: column; }
  .slider__photo, .slider__photo-placeholder {
    width: 220px; height: 220px;
    margin: 0 auto;
    object-position: top center;
  }

  /* Slider section title */
  .slider-section .section-title { font-size: 24px; padding: 10px 28px; }

  /* Footer */
  .footer__socials { gap: 16px; }

  .timeline__amount { font-size: 10px; }
}

/* ========================================
   RESPONSIVE  ≤ 480px  (small phones)
   ======================================== */
@media (max-width: 480px) {

  /* Header */
  .header__logo img { height: 40px; }
  .header__actions .btn { padding: 9px 12px; font-size: 12px; }

  /* Hero */
  .hero { padding: 28px 0 40px; }
  .hero__title { font-size: 26px; margin-bottom: 12px; }
  .hero__subtitle { font-size: 16px; }
  .hero__infographic-img { width: 140px; }
  .hero__cta { margin-top: 16px; }

  /* University */
  .university__timeline-img img { min-width: 360px; }
  .university__tagline { font-size: 14px; padding: 14px 16px; }
  .university .section-title { font-size: 26px; }

  /* Rector */
  .rector__title { font-size: 26px; }
  .rector__desc { font-size: 15px; }
  .rector__desc strong { font-size: 17px; }

  /* Pain list / Results */
  .pain-list__num, .results__num { width: 38px; height: 38px; font-size: 16px; }
  .pain-list__text, .results__text { font-size: 14px; }

  /* For-whom hook */
  .for-whom__hook { padding: 20px 16px; }
  .for-whom__hook-right h3 { font-size: 20px; }
  .for-whom__hook-right p,
  .for-whom__hook-left .for-whom__hook-text { font-size: 15px; }
  .for-whom .section-title { font-size: 22px; }

  /* Why */
  .why .section-title { font-size: 22px; }
  .why__tagline { font-size: 14px; padding: 14px 16px; }

  /* Slider section */
  .slider-section .section-title { font-size: 20px; padding: 10px 20px; }
  .slider__photo, .slider__photo-placeholder { width: 180px; height: 180px; }
  .slider__name-dark, .slider__name-yellow { font-size: 14px; padding: 6px 16px; }
  .slider__desc { font-size: 14px; }

  /* Results */
  .results .section-title { font-size: 22px; }

  /* Application */
  .application .section-title { font-size: 22px; }
  .form__submit { font-size: 14px; padding: 16px; }

  /* Footer */
  .footer__socials { gap: 12px; }
  .footer__social { font-size: 13px; }
}

/* ========================================
   RESPONSIVE  ≤ 360px  (очень маленькие телефоны, 320–360px)
   ======================================== */
@media (max-width: 360px) {
  /* Hero badges — уменьшаем чтобы не вылезали за экран 320px */
  .hero__badges { width: 220px; height: 240px; }
  .badge { width: 84px; height: 84px; }
  .badge--top   { top: 0; }
  .badge--left  { top: 80px; }
  .badge--right { top: 80px; }
  .hero__clubs  { font-size: 42px; }
  .hero__title  { font-size: 18px; }

  /* Slider */
  .slider__photo, .slider__photo-placeholder { width: 160px; height: 160px; }

  /* Hook */
  .for-whom__hook { padding: 16px 12px; }
}
