/* ==========================================================
   ОБЩИЙ ФОН НА ВЕСЬ САЙТ
   ========================================================== */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;

  background-image: url("fon PC 2.png");
  background-size: cover;
  /* держим «главную» область фона ближе к верху */
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* жёстко фиксируем цвет ссылок */
a {
  color: #fff;
  text-decoration: none;
}

/* ==========================================================
   БАЗА
   ========================================================== */

* {
  box-sizing: border-box;
}

.container {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

/* при открытом меню */
.no-scroll { overflow: hidden; }

/* ==========================================================
   ШАПКА
   ========================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);

  background: rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================================================
   БРЕНД
   ========================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.brand__text {
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ==========================================================
   НАВИГАЦИЯ
   ========================================================== */

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav__link {
  padding: 8px 10px;
  border-radius: 10px;
  opacity: 0.92;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 2px 8px rgba(0,0,0,0.6);
}

.nav__link:hover {
  background: rgba(255,255,255,0.08);
}

.nav__link.is-active {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  opacity: 1;
}

/* ==========================================================
   БУРГЕР
   ========================================================== */

.burger {
  width: 44px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  display: none;
  cursor: pointer;
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.burger--open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger--open span:nth-child(2) {
  opacity: 0;
}

.burger--open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================
   МОБИЛЬНОЕ МЕНЮ
   ========================================================== */

.mobile {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
}

.mobile--open {
  display: block;
}

.nav--mobile {
  display: grid;
  gap: 6px;
  padding: 12px 20px 16px;
}

/* ==========================================================
   СЕКЦИИ
   ========================================================== */

.section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

/* HERO: фиксируем главный блок (заголовок + кнопки) вверху экрана */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  /* отступ сверху: шапка + комфортный воздух */
  padding-top: calc(64px + 22px);
}

/* дополнительная «масса» секции */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.section--hero .content {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  transform: translateY(-80px); /* ← ВОТ ЭТО ГЛАВНОЕ */
  text-align: center;
}

@media (min-width: 769px) {
  .section--hero .content {
    transform: translateY(-100px);
  }
}
/* ==========================================================
   ВАЖНО: отключаем индивидуальные фоны секций
   ========================================================== */

.bg {
  background-image: none !important;
}

/* ==========================================================
   ОВЕРЛЕЙ
   ========================================================== */

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

/* ==========================================================
   КОНТЕНТ
   ========================================================== */

.content {
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(24px, 3.5vw, 42px);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
}

p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
}

/* ==========================================================
   КНОПКИ
   ========================================================== */

.actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 18px;
  border-radius: 12px;
  background: #ff9800;
  color: #111;
  font-weight: 900;
}

.btn--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}

/* ==========================================================
   КОНТАКТЫ (кнопки/ссылки по центру)
   ========================================================== */

.contacts {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contacts a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}

.contacts a:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.55);
}

@media (max-width: 520px) {
  .contacts a {
    min-width: 0;
    width: 100%;
  }
}

/* ==========================================================
   КАРТОЧКИ / СЕТКА
   ========================================================== */

.card {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(6px);
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tile {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 18px;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  padding: 18px 0;
  background: #0b0b0b;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

/* ==========================================================
   АДАПТИВ
   ========================================================== */

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

  .section {
    padding: 70px 0;
  }

  .nav--desktop {
    display: none;
  }

  .burger {
    display: inline-block;
  }
}
@media (max-width: 768px) {
  .section--hero .content {
    transform: none;
  }
}
/* МОБИЛА: фиксируем фон (центральную часть) */
@media (max-width: 768px) {
  /* 1) отключаем фон на body, чтобы не мешал */
  body {
    background: #111 !important; /* просто подложка */
  }

  /* 2) создаём "приклеенный" фон поверх body, но под контентом */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url("fon mob (1) 2.png");
    background-repeat: no-repeat;

    /* чтобы было видно целиком */
    background-size: contain;

    /* фиксируем главную область ближе к верху */
    background-position: center 30%;
  }
}


/* ===== МОБИЛКА: убираем текст и поднимаем кнопки ===== */
@media (max-width: 768px) {
  .section--hero h1 {
    display: none;
  }

  .section--hero {
    padding-top: 0;
  }

  .actions {
    position: absolute;
    top: 400px; /* регулируешь тут */
    left: 0;
    right: 0;
  }
}

/* ===== Текст в шапке: отдельный для ПК и мобилки ===== */
.brand__text--mobile {
  display: none;
}

@media (max-width: 768px) {
  .brand {
    gap: 8px;
  }

  .brand__text--desktop {
    display: none;
  }

  .brand__text--mobile {
    display: inline;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow:
      0 1px 2px rgba(0,0,0,0.9),
      0 2px 8px rgba(0,0,0,0.6);
  }

  .topbar__inner {
    height: 56px;
  }

  .brand__logo {
    width: 30px;
    height: 30px;
  }
}

/* ===== КАТАЛОГ ПРОГРАММ ===== */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.program-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  min-height: 0;
  padding: 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.program-tile h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.18;
  color: #fff;
}

.program-description {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  line-height: 1.5;

  display: -webkit-box;
  display: box;
  -webkit-box-orient: vertical;
  box-orient: vertical;

  line-clamp: 6;
  -webkit-line-clamp: 6;

  overflow: hidden;
}

.program-description p {
  margin: 0 0 10px;
}

.program-description br {
  display: none;
}

.program-tile p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
}

.program-tile strong {
  color: #fff;
}

.pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination .btn {
  min-width: 0;
  width: auto;
  padding: 10px 16px;
}

.pagination span.btn {
  cursor: default;
}

@media (max-width: 900px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-tile h3 {
    font-size: 22px;
  }

  .program-description {
    line-clamp: 5;
    -webkit-line-clamp: 5;
  }
}

@media (max-width: 768px) {
  .program-tile {
    padding: 16px;
    border-radius: 14px;
  }

  .program-tile h3 {
    font-size: 20px;
  }

  .program-tile p,
  .program-description {
    font-size: 14px;
  }

  .pagination {
    gap: 8px;
  }

  .pagination .btn {
    width: auto;
    min-width: 0;
  }
}

.program-filters {
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.program-filters__input,
.program-filters__select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  min-width: 220px;
}

.program-filters__input::placeholder {
  color: rgba(255,255,255,0.7);
}

.program-filters__select option {
  color: #111;
}

@media (max-width: 768px) {
  .program-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .program-filters__input,
  .program-filters__select {
    width: 100%;
    min-width: 0;
  }
}


.program-filters__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  color: #fff;
  backdrop-filter: blur(6px);
}

.program-actions {
  margin-top: 12px;
}

.program-modal[hidden] {
  display: none;
}

.program-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.program-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.program-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: 20px auto;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}

.program-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.program-modal__title {
  margin: 0 0 18px;
  padding-right: 28px;
  font-size: 28px;
  line-height: 1.2;
}

.program-modal__meta p {
  margin: 0 0 8px;
}

.program-modal__description {
  margin-top: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

.program-modal__description p {
  margin: 0 0 12px;
}

@media (max-width: 768px) {
  .program-filters__check {
    width: 100%;
    justify-content: flex-start;
  }

  .program-modal__dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 18px;
    border-radius: 14px;
  }

  .program-modal__title {
    font-size: 22px;
  }
}


.programs-title {
  display: inline-block;
  margin: 0 auto 24px;
  padding: 14px 24px;
  border-radius: 16px;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.16);
  text-align: center;
}

.container.content {
  text-align: center;
}

.container.content > .program-filters-wrap,
.container.content > p,
.container.content > .card,
.container.content > .grid {
  text-align: left;
}

.program-filters-wrap {
  margin-bottom: 24px;
}

.program-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.program-filters__actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.program-btn {
  min-width: 180px;
  text-align: center;
  justify-content: center;
}

.program-btn--accent {
  background: #ff9800;
  color: #111;
  border: none;
}

.program-btn--light {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.program-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.program-actions .btn {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
}

.program-apply-btn {
  background: #ff9800;
  color: #111;
  border: none;
  font-weight: 900;
}

.contacts-modal[hidden] {
  display: none;
}

.contacts-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
}

.contacts-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.contacts-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 32px));
  margin: 40px auto;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15,15,15,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}

.contacts-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.contacts-modal__title {
  margin: 0 0 10px;
  font-size: 28px;
}

.contacts-modal__subtitle {
  margin-bottom: 18px;
}

.contacts-modal__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.contacts-modal__links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
}

.contacts-modal__links a:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .programs-title {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
  }

  .program-filters__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .program-btn {
    width: 100%;
    min-width: 0;
  }

  .program-actions {
    flex-direction: column;
  }

  .contacts-modal__dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 18px;
    border-radius: 14px;
  }

  .contacts-modal__title {
    font-size: 22px;
  }
}


/* ===== МОДАЛЬНОЕ ОКНО ЗАЯВКИ ===== */

.application-modal[hidden] {
  display: none;
}

.application-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.application-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.76);
}

.application-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: 20px auto;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15,15,15,0.97);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  box-shadow: 0 20px 70px rgba(0,0,0,0.45);
}

.application-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.application-modal__title {
  margin: 0 0 12px;
  padding-right: 32px;
  font-size: 28px;
  line-height: 1.2;
}

.application-modal__program {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
}

.application-form {
  display: grid;
  gap: 12px;
}

.application-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
}

.application-form input,
.application-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
}

.application-form input::placeholder,
.application-form textarea::placeholder {
  color: rgba(255,255,255,0.55);
}

.application-form textarea {
  resize: vertical;
}

.application-form__actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.application-form__message {
  margin: 8px 0 0;
  text-align: center;
  font-size: 15px;
}

.application-form__message.is-success {
  color: #9cffb1;
}

.application-form__message.is-error {
  color: #ff9c9c;
}

@media (max-width: 768px) {
  .application-modal__dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 18px;
    border-radius: 14px;
  }

  .application-modal__title {
    font-size: 22px;
  }

  .application-form__actions .btn {
    width: 100%;
  }
}

/* ===== БЕЙДЖИ И УЛУЧШЕННЫЕ КАРТОЧКИ ПРОГРАММ ===== */

.program-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.program-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  color: #111;
  background: #ff9800;
}

.program-badge--type {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}

.program-meta {
  margin-top: 12px;
}

.program-meta p {
  margin: 0 0 8px;
}

/* ===== СКРЫТОЕ АНТИСПАМ-ПОЛЕ ===== */

.application-form__trap {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

/* ===== СОГЛАСИЕ НА ОБРАБОТКУ ПД ===== */

.application-form__consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 13px !important;
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
}

.application-form__consent input {
  width: auto;
  margin-top: 3px;
}

/* ===== УСИЛЕНИЕ CTA ===== */

.program-filters__actions .program-btn--accent {
  box-shadow: 0 8px 22px rgba(255, 152, 0, 0.22);
}

.program-apply-btn {
  background: #ff9800;
  color: #111;
  border: none;
  font-weight: 900;
}

@media (max-width: 768px) {
  .program-badges {
    gap: 6px;
  }

  .program-badge {
    font-size: 11px;
  }

  .application-form__consent {
    font-size: 12px !important;
  }
}

/* ===== ПОЛИТИКА ПЕРСОНАЛЬНЫХ ДАННЫХ ===== */

.privacy-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.privacy-card h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 22px;
}

.privacy-card p {
  margin-bottom: 14px;
}

.application-form__consent a {
  color: #ff9800;
  text-decoration: underline;
}


/* ==========================================================
   МОБИЛЬНЫЙ ФИКС ГЛАВНОЙ СТРАНИЦЫ
   ========================================================== */

@media (max-width: 768px) {

  /* 1. Возвращаем обычное поведение кнопок во всех секциях */
  .actions {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 22px;
  }

  /* 2. Настраиваем отдельно только первый экран */
  .section--hero {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .section--hero .content {
    width: 100%;
    max-width: none;
    padding: 0 18px 82px;
    transform: none !important;
    text-align: center;
  }

  .section--hero h1 {
    display: none;
  }

  /* 3. Кнопки на первом экране делаем нормальным блоком */
  .section--hero .actions {
    position: static !important;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(260px, 100%);
    justify-content: center;
  }

  .section--hero .actions .btn {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
  }

  /* 4. Чтобы верх главной не выглядел как куча кнопок */
  .section--hero .actions .btn[href="#services"] {
    display: none;
  }

  /* 5. Блоки ниже первого экрана не должны иметь абсолютных кнопок */
  #how-to-apply .actions,
  #advantages .actions,
  #services .actions,
  #contacts .actions {
    position: static !important;
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #how-to-apply .actions .btn,
  #advantages .actions .btn,
  #services .actions .btn,
  #contacts .actions .btn {
    width: auto;
    max-width: 260px;
  }

  /* 6. Делаем карточки на мобильной версии спокойнее */
  #how-to-apply .tile,
  #advantages .tile {
    min-height: auto;
    padding: 16px;
  }

  #how-to-apply .tile h3,
  #advantages .tile h3 {
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 8px;
  }

  #how-to-apply .tile p,
  #advantages .tile p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
  }
}

/* ==========================================================
   МОБИЛЬНЫЙ ФИКС: ГЛАВНЫЙ ЭКРАН
   ========================================================== */

@media (max-width: 768px) {
  .section--hero {
    min-height: 100svh;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .section--hero .content {
    width: 100%;
    max-width: none;
    padding: 0 18px clamp(150px, 28vh, 240px);
    transform: none !important;
    text-align: center;
  }

  .section--hero .actions {
    position: static !important;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(260px, 100%);
    justify-content: center;
  }

  .section--hero .actions .btn {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
  }
}

.tile-list {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.tile-list li {
  margin-bottom: 8px;
}

/* ===== ВЕРХНИЕ ДЕЙСТВИЯ НА СТРАНИЦЕ ПРОГРАММ ===== */

.programs-top-actions {
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.programs-top-actions .btn {
  min-width: 180px;
}

@media (max-width: 768px) {
  .programs-top-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .programs-top-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ===== ФИКС ШАПКИ НА ВНУТРЕННИХ СТРАНИЦАХ ===== */

body .topbar + .section {
  padding-top: 70px;
}

@media (max-width: 768px) {
  body .topbar + .section {
    padding-top: 50px;
  }
}

/* ==========================================================
   МОБИЛЬНЫЙ ФИКС: ПОДНЯТЬ КНОПКИ НА ГЛАВНОЙ
   ========================================================== */

@media (max-width: 768px) {
  .section--hero .content {
    padding: 0 18px 768px !important;
  }
}


/* ==========================================================
   МОБИЛЬНАЯ ШАПКА: АККУРАТНЫЙ ВИД
   ========================================================== */

@media (max-width: 768px) {
  .topbar {
    background: rgba(8, 8, 8, 0.92);
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .topbar__inner {
    height: 54px;
    padding: 0 10px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    flex: 1;
    gap: 8px;
  }

  .brand__logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 7px;
  }

  .brand__text--desktop {
    display: none !important;
  }

  .brand__text--mobile {
    display: block !important;
    max-width: 180px;
    font-size: 12px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0.1px;
    transform: translateY(1px);
    white-space: normal;
    overflow: hidden;
    text-shadow:
      0 1px 2px rgba(0,0,0,0.9),
      0 2px 8px rgba(0,0,0,0.6);
  }

  .burger {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border-radius: 9px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }

  .burger span {
    width: 16px;
    height: 2px;
    margin: 0;
    background: #fff;
    border-radius: 999px;
  }

  .burger--open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .burger--open span:nth-child(2) {
    opacity: 0;
  }

  .burger--open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ==========================================================
   МОБИЛЬНАЯ ШАПКА: УВЕЛИЧИТЬ ЛОГО И НАЗВАНИЕ
   ========================================================== */

@media (max-width: 768px) {
  .topbar__inner {
    height: 62px !important;
    padding: 0 12px !important;
  }

  .brand {
    gap: 10px !important;
  }

  .brand__logo {
    width: 45px !important;
    height: 45px !important;
    flex: 0 0 40px !important;
    border-radius: 8px;
  }

  .brand__text--mobile {
    font-size: 17px !important;
    line-height: 1.12 !important;
    max-width: 210px !important;
    font-weight: 900;
    transform: translateY(1px);
  }

  .burger {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 10px;
  }

  .burger span {
    width: 18px !important;
  }
}

/* ==========================================================
   МОБИЛЬНАЯ ШАПКА: РЕГУЛИРОВКА ВЫСОТЫ ЛОГОТИПА И НАДПИСИ
   ========================================================== */

@media (max-width: 768px) {
  .brand {
    transform: translateY(10px) !important;
  }

  .brand__logo {
    transform: translateY(0px) !important;
  }

  .brand__text--mobile {
    transform: translateY(0px) !important;
  }
}

/* ==========================================================
   МОБИЛЬНАЯ ШАПКА: УБРАТЬ ДУБЛЬ НАЗВАНИЯ
   ========================================================== */

@media (max-width: 768px) {
  .brand__text--desktop {
    display: none !important;
  }

  .brand__text--mobile {
    display: block !important;
  }

  .nav--desktop {
    display: none !important;
  }
}

/* ==========================================================
   ШАПКА: ДЕСКТОП / МОБИЛЬНАЯ ВЕРСИЯ БЕЗ ДУБЛЕЙ
   ========================================================== */

/* Десктоп */
@media (min-width: 769px) {
  .brand__text--desktop {
    display: inline-block !important;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
  }

  .brand__text--mobile {
    display: none !important;
  }

  .burger {
    display: none !important;
  }
}

/* Мобилка */
@media (max-width: 768px) {
  .brand__text--desktop {
    display: none !important;
  }

  .brand__text--mobile {
    display: block !important;
  }

  .nav--desktop {
    display: none !important;
  }
}

/* ===== ШИРОКАЯ ПЛАШКА В БЛОКЕ УСЛУГ ===== */

.tile-wide {
  grid-column: 1 / -1;
  min-height: 180px;
}

.tile-wide h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.tile-wide p {
  max-width: 100%;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .tile-wide {
    grid-column: auto;
  }
}