/* Мобильная версия (24.09.2026): подключается после main.css и переопределяет его на узких экранах */

@media (max-width: 720px) {
  /* Шапка: одна компактная строка - имя слева, «Book a call» справа */
  .site-header { top: 10px; padding: 0 12px; }
  .site-header__inner { grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
  .site-header__right { justify-self: end; }
  .site-header__badge { height: 40px; padding: 0 12px 0 8px; max-width: 100%; min-width: 0; }
  .site-header__badge-text { font-size: 10.5px; letter-spacing: 0.04em; white-space: nowrap; }
  .site-header__badge-dot { width: 18px; height: 18px; }
  .site-header__cta { height: 40px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
  .site-header__inner > * { min-width: 0; }

  /* Первый экран: фото сверху, затем имя и текст */
  .valentyna-hero { padding: 64px 16px 28px; }
  .valentyna-hero__inner { gap: 18px; }
  .valentyna-hero__media { order: 1; min-height: 420px; }
  .valentyna-hero__content { order: 2; padding: 0; }
  .valentyna-hero__portrait { width: min(460px, 100%); transform: translateY(0); }
  .valentyna-hero__title { font-size: clamp(36px, 11vw, 46px); line-height: 1.02; }
  .valentyna-hero__role { margin-top: 10px; }
  .valentyna-hero__lead { font-size: 16px; line-height: 1.5; }
  .valentyna-hero__insight-card { min-height: 0; padding: 16px; }
  .valentyna-hero__actions { gap: 10px; }
  .valentyna-hero__cta { min-height: 50px; height: auto; padding: 14px 18px; font-size: 15px; }

  /* Карточка «20 лет / ABRA / Off-plan / Visa» - компактно, 4 в ряд под фото */
  .valentyna-hero__track-card { padding: 12px; margin-bottom: 8px; border-radius: 20px; }
  .valentyna-hero__track-top { display: none; }
  .valentyna-hero__stats { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .valentyna-hero__stat { padding: 10px 4px; min-height: 0; }
  .valentyna-hero__stat strong { font-size: 17px; }
  .valentyna-hero__stat span { font-size: 9.5px; line-height: 1.2; }

  /* Сделки: карточки листаются вбок, а не идут длинной лентой */
  .cases-section__title { font-size: clamp(30px, 9vw, 40px); }
  .cases-section__subtitle { font-size: 16px; }
  .cases-section__cards {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; margin-right: -16px; padding-right: 16px;
  }
  .cases-section__cards::-webkit-scrollbar { display: none; }
  .cases-section__case { flex: 0 0 78%; scroll-snap-align: start; }

  /* Подбор проектов: заголовок меньше, слайды без наложения текста */
  .home-search__title { font-size: clamp(28px, 8.5vw, 36px); line-height: 1.1; }
  .home-search__slide:not(.is-active) .home-search__featured-info,
  .home-search__slide:not(.is-active) .home-search__featured-top { visibility: hidden; }
  .home-search__featured-title { font-size: 26px; }

  /* Плавающие кнопки не закрывают конец страницы */
  body { padding-bottom: 72px; }
  .fx-lang { left: 12px; bottom: 12px; }
  .fx-lang__item { padding: 8px 8px; font-size: 11px; }
  .fx-wa { right: 12px; bottom: 12px; }
}

@media (max-width: 720px) {
  /* Шапка страницы проекта - тоже в одну строку */
  .pd-header { top: 10px; padding: 0 12px; }
  .pd-header__inner { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
  .pd-header__inner > * { min-width: 0; }
  .pd-header__nav { display: none; }
  .pd-header__right { justify-self: end; }
  .pd-header__badge { height: 40px; padding: 0 12px 0 8px; }
  .pd-header__badge-text { font-size: 10.5px; letter-spacing: 0.04em; white-space: nowrap; }
  .pd-header__cta { height: 40px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
}

.tp-carousel-nav { display: none; }

@media (max-width: 720px) {
  /* «Эксклюзивные проекты»: поля как у остальных блоков, заголовок и текст друг под другом */
  .home-top-projects { padding-left: 16px; padding-right: 16px; }
  .home-top-projects__head { display: block; }
  .home-top-projects__title { font-size: clamp(32px, 10vw, 42px); }
  .home-top-projects__text { margin-top: 12px; max-width: none; font-size: 15px; }

  /* Карусель: один проект на экран, листается пальцем или стрелками */
  .home-top-projects__grid {
    display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    grid-template-columns: none; padding-bottom: 4px; scrollbar-width: none;
  }
  .home-top-projects__grid::-webkit-scrollbar { display: none; }
  .home-top-projects__grid .top-project-card { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
  .home-top-projects__grid .top-project-card__media { height: 440px; min-height: 0; border-radius: 28px; }
  .home-top-projects__grid .top-project-card__title { font-size: 28px; line-height: 1.1; }
  .home-top-projects__grid .top-project-card__meta { font-size: 14px; }

  .tp-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 6px; }
  .tp-carousel-nav__btn {
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: linear-gradient(135deg, #5a6d88, #2d3a50); color: #fff; font-size: 20px;
    box-shadow: 0 8px 22px rgba(45, 58, 80, .28);
  }
  .tp-carousel-nav__count { font: 600 14px/1 Montserrat, system-ui, sans-serif; color: #2d3a50; min-width: 44px; text-align: center; }

  /* Панель AI Assistant в блоке подбора - компактнее, чтобы не закрывала фото проекта */
  .home-search__search { padding: 12px; gap: 8px; border-radius: 22px; }
  .home-search__ai-badge { transform: scale(.9); transform-origin: left center; }
  .home-search__input { font-size: 14px; min-height: 40px; }
  .home-search__voice { display: none; }
  .home-search__photo-search { margin-top: -40px; }
  .home-search__get { height: 44px; min-height: 44px; font-size: 15px; }
  .home-search__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .home-search__chips::-webkit-scrollbar { display: none; }
  .home-search__chip { flex: 0 0 auto; font-size: 12px; padding: 8px 12px; }
}

/* Переключатель языков в шапке - только на компьютере */
.site-header__right, .pd-header__right { display: flex; align-items: center; gap: 10px; }
.hdr-lang {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(18, 20, 26, .72); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: Montserrat, system-ui, sans-serif;
}
.hdr-lang__item {
  color: rgba(255, 255, 255, .78) !important; text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; padding: 10px 13px; border-radius: 999px; line-height: 1; transition: background .2s, color .2s;
}
.hdr-lang__item:hover { color: #fff !important; background: rgba(255, 255, 255, .08); }
.hdr-lang__item.is-active { background: #fff; color: #111 !important; }
@media (min-width: 721px) { .fx-lang { display: none !important; } }
@media (max-width: 720px) { .hdr-lang { display: none !important; } }
