/* ================================================================
   RESPONSIVE INDEX.CSS
   Адаптивная версия сайта "Стиль жизни"
   ================================================================ */

/* ========== ПЛАНШЕТЫ И МОБИЛЬНЫЕ (≤1280px) ========== */
@media (max-width: 1280px) {
  html {
    font-size: 22px;
  }
  .header-inner,
  .foreigner,
  .switcher-section,
  .partners-container,
  .footer {
    max-width: 100%;
    min-height: auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 40px;
  }
  .hero-info {
    left: 24px;
    max-width: 380px;
  }
  .hero-indicator {
    right: 24px;
  }
  .accordion {
    max-width: 100%;
    margin-left: 16px;
    margin-right: 16px;
  }
  #tv-program-table {
    min-width: 100%;
  }
  .footer-columns {
    gap: 40px;
  }
}

/* ========== ПЛАНШЕТ LANDSCAPE / МАЛЫЙ ДЕСКТОП (≤1024px) ========== */
@media (max-width: 1024px) {
  html {
    font-size: 20px;
  }
  .header-right {
    gap: 40px;
  }
  .live-btn {
    padding: 0 18px;
    font-size: 13px;
  }
  .hero-info-line1 {
    font-size: 20px;
    padding-bottom: 24px;
  }
  .hero-info-line2 {
    font-size: 48px;
  }
  .hero-info-line3 {
    font-size: 14px;
    padding-bottom: 24px;
  }
  .counter-current {
    font-size: 44px;
  }
  .counter-separator,
  .counter-next {
    font-size: 18px;
  }
  .foreigner-item {
    width: 100%;
  }
  .foreigner-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .foreigner-caption {
    height: auto;
    min-height: 100px;
  }
  .about-channel {
    flex-direction: column;
    gap: 32px;
  }
  .channel-left {
    width: 100%;
    max-width: 384px;
  }
  .satellite-table td:first-child,
  .satellite-table td:nth-child(2),
  .satellite-table td:nth-child(3) {
    width: auto;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
  }
  .footer {
    min-height: auto;
    padding: 60px 24px 40px;
  }
}

/* ========== ПЛАНШЕТ ПОРТРЕТ (≤992px) ========== */
@media (max-width: 992px) {
  html {
    font-size: 18px;
  }
  .hero-info {
    max-width: 340px;
    bottom: 60px;
  }
  .hero-info-line2 {
    font-size: 40px;
  }
  .hero-indicator {
    bottom: 60px;
  }
  .foreigner-title {
    font-size: 22px;
    margin-bottom: 48px;
  }
  .foreigner-sections {
    gap: 60px;
  }
  .switcher-tabs {
    margin-bottom: 48px;
  }
  .switcher-tab {
    font-size: 20px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer {
    min-height: auto;
  }
}

/* ========== БОЛЬШОЙ МОБИЛЬНЫЙ LANDSCAPE (≤932px) ========== */
@media (max-width: 932px) {
  .hero-info {
    max-width: 320px;
  }
  .hero-info-line1 {
    font-size: 18px;
    padding-bottom: 16px;
  }
  .hero-info-line2 {
    font-size: 36px;
  }
  .hero-info-line3 {
    font-size: 13px;
    padding-bottom: 16px;
  }
  .hero-btn {
    height: 36px;
    font-size: 12px;
    padding: 0 20px;
  }
  .foreigner-caption {
    min-height: 80px;
  }
  .caption-line-1 {
    font-size: 14px;
  }
  .caption-line-2,
  .caption-line-3 {
    font-size: 11px;
  }
  .days-container {
    max-width: 100%;
  }
  .day-item {
    min-width: 100px;
    padding: 12px 8px;
  }
}

/* ========== ПЛАНШЕТ ПОРТРЕТ / МАЛЫЙ ПЛАНШЕТ (≤768px) ========== */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  /* HERO CAROUSEL: ИСПРАВЛЕННАЯ ВЕРСИЯ */
  .hero-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    height: 100svh;
    height: 100vh;
    overflow: hidden;
    /* УБРАЛИ display: flex — это главная причина чёрных полос */
  }
  
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    /* УБРАЛИ display: flex */
  }
  
  /* ВСЕ изображения заполняют экран без чёрных полос */
  .hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* cover — заполняет весь экран, обрезая лишнее */
    object-fit: cover;
    /* Убираем чёрный фон */
    background-color: transparent;
  }
  
  /* Показываем мобильную версию изображения */
  .hero-media-mobile {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Скрываем десктопную версию на мобильных */
  .hero-slide .hero-media:not(.hero-media-mobile) {
    display: none;
  }
  
  /* Для вертикальных изображений — тоже cover (без чёрных полос) */
  .hero-slide[data-orientation="vertical"] .hero-media,
  .hero-slide[data-orientation="vertical"] .hero-media-mobile {
    object-fit: cover;
    background-color: transparent;
  }
  
  /* ========== HERO-INFO ========== */
  .hero-info {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 100px;
    max-width: 300px;
    z-index: 15;
  }
  
  .hero-info-line1 {
    font-size: 14px;
    padding-bottom: 12px;
    letter-spacing: 0.05em;
  }
  
  .hero-info-line2 {
    font-size: 32px;
    line-height: 1.15;
  }
  
  .hero-info-line3 {
    font-size: 12px;
    padding-bottom: 16px;
  }
  
  .hero-btn {
    max-width: 180px;
    height: 36px;
    font-size: 12px;
  }
  
  /* ========== HERO-INDICATOR ========== */
  .hero-indicator {
    position: absolute;
    right: 32px;
    bottom: 100px;
    gap: 12px;
    z-index: 15;
  }
  
  .counter-current {
    font-size: 36px;
  }
  
  .counter-separator,
  .counter-next {
    font-size: 16px;
  }
  
  .hero-arrow {
    width: 32px;
    height: 32px;
  }
  
  /* MAIN WRAPPER */
  #main-wrapper {
    margin-top: 100dvh;
    margin-top: 100svh;
    margin-top: 100vh;
    padding-top: 80px;
  }
  
  /* HEADER */
  .main-header {
    top: 60px;
    height: 80px;
  }
  
  .logo-image {
    height: 48px;
  }
  
  .header-right {
    gap: 16px;
  }
  
  .main-header .header-social {
    display: none;
  }
  
  .live-btn {
    padding: 0 16px;
    height: 36px;
    font-size: 12px;
    border-width: 1.5px;
    border-radius: 20px;
  }
  
  /* RUNNING LINE */
  .runhead-container {
    height: 32px;
  }
  
  /* ACCORDION */
  .accordion {
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 80px;
    width: calc(100% - 24px);
  }
  
  .accordion-header {
    margin: 1.5rem 1.25rem;
    font-size: 14px;
  }
  
  .arrow-circle {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    padding-bottom: 2px;
  }
  
  .table-container {
    padding: 16px 12px 60px;
  }
  
  #tv-program-table {
    min-width: 600px;
  }
  
  #tv-program-table th,
  #tv-program-table td {
    padding: 12px 8px 12px 16px;
    font-size: 12px;
  }
  
  /* FOREIGNER SECTIONS */
  .foreigner-sections {
    gap: 48px;
  }
  
  .foreigner {
    padding: 24px 0;
  }
  
  .foreigner-title {
    font-size: 20px;
    margin-bottom: 32px;
  }
  
  .foreigner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .foreigner-item {
    width: 100%;
  }
  
  .foreigner-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  
  .foreigner-caption {
    height: auto;
    min-height: auto;
    margin-top: 16px;
  }
  
  .caption-line-1 {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 8px;
  }
  
  .caption-line-2,
  .caption-line-3 {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .row-expanded-text {
    font-size: 14px;
    line-height: 18px;
  }
  
  .foreigner-grid.active .row-expanded-text {
    max-height: 1200px;
    padding: 20px 0 32px;
  }
  
  /* CAROUSEL SECTION */
  .carousel-section {
    padding: 40px 16px;
    height: auto;
    margin-bottom: 40px;
  }
  
  /* SWITCHER */
  .switcher-section {
    margin: 80px auto;
    padding: 0 16px;
  }
  
  .switcher-tabs {
    margin-bottom: 40px;
  }
  
  .switcher-tab {
    font-size: 18px;
    padding: 0 24px 16px 0;
  }
  
  /* ABOUT CHANNEL */
  .about-channel {
    flex-direction: column;
    gap: 24px;
  }
  
  .channel-left {
    width: 100%;
    max-width: 100%;
  }
  
  .channel-image {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
  }
  
  .channel-right {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* SATELLITE TABLE */
  .satellite-table {
    margin-bottom: 60px;
  }
  
  .satellite-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  /* PARTNERS */
  .partners-section {
    padding: 48px 16px;
    margin-top: 48px;
  }
  
  .partners-title {
    font-size: 20px;
    margin-bottom: 32px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .partner-item {
    min-height: 160px;
    padding: 16px;
  }
  
  .partner-logo {
    max-height: 80px;
  }
  
  /* FOOTER */
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  /* BACK TO TOP */
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}

/* ========== ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) and (orientation: landscape) {
   .hero-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
  
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: transparent;
  }
  
  .hero-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
  }
  
  .hero-info-line1 {
    font-size: 12px;
    padding-bottom: 8px;
  }
  
  .hero-info-line2 {
    font-size: 24px;
  }
  
  .hero-info-line3 {
    font-size: 11px;
    padding-bottom: 8px;
  }
  
  .hero-btn {
    height: 32px;
    font-size: 11px;
    padding: 0 16px;
  }
  
  .hero-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
  }
  
  .counter-current {
    font-size: 28px;
  }
  
  .counter-separator,
  .counter-next {
    font-size: 14px;
  }
  
  .hero-arrow {
    width: 40px;
    height: 40px;
  }
  .main-header {
    top: 40px;
    height: 60px;
  }
  .logo-image {
    height: 40px;
  }
  .live-btn {
    height: 32px;
    font-size: 11px;
    padding: 0 12px;
  }
  .runhead-container {
    height: 24px;
  }
  #main-wrapper {
    margin-top: 100vh;
    padding-top: 40px;
  }
  .foreigner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .foreigner-item {
    max-width: 100%;
  }
  .foreigner-image-container {
    aspect-ratio: 16 / 9;
  }
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .partner-item {
    min-height: 100px;
    padding: 12px;
  }
  .partner-logo {
    max-height: 60px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ========== ПЛАНШЕТЫ В ГОРИЗОНТАЛЬНОЙ ОРИЕНТАЦИИ ========== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-carousel {
    height: calc(100vh - 60px);
  }
  .hero-info {
    bottom: 60px;
    left: 40px;
    max-width: 420px;
  }
  .hero-info-line2 {
    font-size: 44px;
  }
  .hero-indicator {
    bottom: 60px;
    right: 40px;
  }
  .main-header {
    height: 80px;
  }
  #main-wrapper {
    margin-top: calc(100vh - 60px);
    padding-top: 100px;
  }
  .foreigner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

/* ========== БОЛЬШОЙ МОБИЛЬНЫЙ (≤540px) ========== */
@media (max-width: 540px) {
  html {
    font-size: 15px;
  }
  .hero-info-line2 {
    font-size: 28px;
  }
  .hero-info-line1 {
    font-size: 13px;
  }
  .foreigner-sections {
    gap: 48px;
  }
  .foreigner {
    padding: 24px 0;
  }
  .foreigner-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }
  .foreigner-title {
    font-size: 18px;
    padding: 36px;
    margin-bottom: 24px;
  }
  .foreigner-grid.active .row-expanded-text {
    max-width: 100%;
    margin-left: 90px;
    margin-right: 90px;
    padding: 20px 0 32px;
    border-top-width: 0px;
  }
  .switcher-tab {
    font-size: 16px;
    padding: 0 16px 12px 0;
  }
  .accordion-header {
    font-size: 13px;
    margin: 1.25rem 1rem;
  }
  .partners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .partner-item {
    min-height: 140px;
  }
  .footer {
    padding: 32px 16px 0;
  }
}

/* ========== СРЕДНИЙ МОБИЛЬНЫЙ (≤430px) ========== */
@media (max-width: 430px) {
  html {
    font-size: 14px;
  }
  /* ========== HERO: ИСПРАВЛЕННАЯ ВЕРСИЯ ========== */
  .hero-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    height: 100svh;
    height: 100vh;
    overflow: hidden;
    /* НЕТ display: flex */
  }
  
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
  }
  
  /* Изображение заполняет ВЕСЬ экран */
  .hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: transparent;
  }
  
  /* ========== HERO-INFO ========== */
  .hero-info {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 80px;
    max-width: 200px;
    /* Убираем padding-bottom, который мог создавать проблемы */
    padding-bottom: 0;
  }
  
  .hero-info-line1 {
    font-size: 12px;
    padding-bottom: 8px;
  }
  
  .hero-info-line2 {
    font-size: 24px;
    line-height: 1.2;
  }
  
  .hero-info-line3 {
    font-size: 11px;
    padding-bottom: 12px;
  }
  
  .hero-btn {
    max-width: 160px;
    height: 32px;
    font-size: 11px;
    padding: 0 14px;
  }
  
  /* ========== HERO-INDICATOR ========== */
  .hero-indicator {
    position: absolute;
    right: 32px;
    bottom: 80px;
    gap: 20px;
  }
  
  .counter-current {
    font-size: 28px;
  }
  
  .counter-separator,
  .counter-next {
    font-size: 14px;
  }
  
  .hero-arrow {
    width: 32px;
    height: 32px;
  }
 
  .header-inner {
    padding: 0 16px;
  }
  .logo-image {
    height: 40px;
  }
  .live-btn {
    padding: 0 12px;
    height: 32px;
    font-size: 11px;
    letter-spacing: 0.03em;
  }
  .accordion {
    margin-left: 8px;
    margin-right: 8px;
    width: calc(100% - 16px);
  }
  .accordion-header {
    margin: 1rem 1rem;
    font-size: 12px;
  }
  .arrow-circle {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  .days-container {
    padding: 0 8px;
  }
  .day-item {
    min-width: 80px;
    padding: 10px 6px;
  }
  .day-name {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .day-date {
    font-size: 10px;
  }
  .nav-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  #tv-program-table th,
  #tv-program-table td {
    padding: 10px 6px 10px 12px;
    font-size: 11px;
  }
  .foreigner {
    padding: 16px 0;
  }
  .foreigner-grid {
    margin-bottom: 36px;
  }
  .foreigner-caption {
    margin-top: 24px;
  }
  .caption-line-1 {
    font-size: 14px;
  }
  .caption-line-2,
  .caption-line-3 {
    font-size: 11px;
  }
  .foreigner-grid.active .row-expanded-text {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 20px 32px 32px;
    border-top-width: 0;
  }
  .partners-section {
    padding: 32px 12px 0;
  }
  .partners-title {
    font-size: 18px;
    margin-bottom: 24px;
  }
  .partners-grid {
    gap: 8px;
  }
  .partner-item {
    min-height: 120px;
    padding: 12px;
  }
  .partner-logo {
    max-height: 60px;
  }
  .footer {
    padding: 24px 16px 40px;
  }
  .footer-columns {
    gap: 24px;
  }
  .footer-column h3 {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .footer-links a {
    font-size: 13px;
  }
  .footer-links li {
    margin-bottom: 12px;
  }
  .logo-image-footer {
    width: 120px;
    height: 120px;
  }
  .contact-info {
    font-size: 12px;
    margin-bottom: 24px;
  }
  .footer-bottom {
    padding: 12px 0;
  }
  .footer-bottom a,
  .copyright {
    font-size: 11px;
  }
}

/* ========== iPhone 12/13/14 (≤390px) ========== */
@media (max-width: 390px) {
  html {
    font-size: 14px;
  }
  .hero-info-line2 {
    font-size: 22px;
  }
  .hero-info-line1 {
    font-size: 11px;
  }
  .hero-info-line3 {
    font-size: 10px;
  }
  .counter-current {
    font-size: 24px;
  }
  .foreigner-title {
    font-size: 17px;
  }
  .switcher-tab {
    font-size: 15px;
  }
  .partner-item {
    min-height: 100px;
    padding: 10px;
  }
  .partner-logo {
    max-height: 50px;
  }
}

/* ========== iPhone SE / Mini (≤375px) ========== */
@media (max-width: 375px) {
  html {
    font-size: 13px;
  }
  /* ========== HERO: ИСПРАВЛЕННАЯ ВЕРСИЯ ========== */
  .hero-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    height: 100svh;
    height: 100vh;
    overflow: hidden;
  }
  
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
  }
  
  .hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: transparent;
  }
  
  .hero-info {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 70px;
    padding-bottom: 0;
  }
  
  .hero-info-line1 {
    font-size: 10px;
    padding-bottom: 6px;
  }
  
  .hero-info-line2 {
    font-size: 20px;
    line-height: 1.2;
  }
  
  .hero-info-line3 {
    font-size: 10px;
    padding-bottom: 10px;
  }
  
  .hero-btn {
    max-width: 140px;
    height: 30px;
    font-size: 10px;
    padding: 0 12px;
    border-radius: 18px;
  }
  
  .hero-indicator {
    position: absolute;
    right: 12px;
    bottom: 24px;
    gap: 16px;
  }
  
  .counter-current {
    font-size: 22px;
  }
  
  .counter-separator,
  .counter-next {
    font-size: 12px;
  }
  
  .hero-arrow {
    width: 24px;
    height: 24px;
  }
 
  .header-inner {
    padding: 0 12px;
  }
  .logo-image {
    height: 36px;
  }
  .live-btn {
    padding: 0 10px;
    height: 30px;
    font-size: 10px;
    border-radius: 18px;
  }
  .runhead-container {
    height: 28px;
  }
  .accordion {
    margin-left: 6px;
    margin-right: 6px;
    width: calc(100% - 12px);
    border-radius: 0.75rem;
  }
  .accordion-header {
    margin: 0.875rem 0.875rem;
    font-size: 11px;
  }
  .arrow-circle {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }
  .day-item {
    min-width: 70px;
    padding: 8px 4px;
  }
  .day-name {
    font-size: 10px;
    margin-bottom: 6px;
  }
  .day-date {
    font-size: 9px;
  }
  #tv-program-table th,
  #tv-program-table td {
    padding: 8px 4px 8px 10px;
    font-size: 10px;
  }
  .foreigner-title {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .foreigner-grid {
    gap: 24px;
  }
  .caption-line-1 {
    font-size: 13px;
  }
  .caption-line-2,
  .caption-line-3 {
    font-size: 10px;
  }
  .row-expanded-text {
    font-size: 13px;
    line-height: 16px;
  }
  .switcher-section {
    margin: 48px auto;
    padding: 0 12px;
  }
  .switcher-tabs {
    margin-bottom: 24px;
  }
  .switcher-tab {
    font-size: 14px;
    padding: 0 12px 10px 0;
  }
  .channel-image {
    width: 110px;
    height: 110px;
  }
  .channel-right {
    font-size: 13px;
  }
  .partners-section {
    padding: 24px 10px 0;
  }
  .partners-title {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .partners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .partner-item {
    min-height: 90px;
    padding: 8px;
  }
  .partner-logo {
    max-height: 45px;
  }
  .footer {
    padding: 20px 12px 30px;
  }
  .footer-columns {
    gap: 20px;
  }
  .footer-column h3 {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .footer-links a {
    font-size: 12px;
  }
  .footer-links li {
    margin-bottom: 10px;
  }
  .sub-links a {
    font-size: 11px;
  }
  .logo-image-footer {
    width: 100px;
    height: 100px;
  }
  .contact-info {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .contact-block {
    margin-bottom: 16px;
  }
  .footer-bottom {
    padding: 10px 0;
  }
  .footer-bottom a,
  .copyright {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 16px;
    right: 16px;
  }
}

/* ========== УТИЛИТЫ И ФИНАЛЬНЫЕ ФИКСЫ ========== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  transition: font-size 0.2s ease;
}

@supports (padding: max(0px)) {
  .footer-bottom,
  .hero-info,
  .hero-indicator {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    bottom: max(200px, calc(200px + env(safe-area-inset-bottom)));
  }
  .hero-carousel {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .back-to-top {
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
  }
}

@media (hover: none) {
  .foreigner-item:hover .foreigner-image {
    transform: none;
  }
  .partner-item:hover {
    transform: none;
  }
  .partner-item:hover .partner-logo {
    filter: grayscale(100%);
    opacity: 0.5;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-media,
  .foreigner-image,
  .partner-logo {
    image-rendering: -webkit-optimize-contrast;
  }
}

@media print {
  .hero-carousel,
  .main-header,
  .runhead-container,
  .back-to-top {
    display: none !important;
  }
  #main-wrapper {
    margin-top: 0 !important;
  }
  body {
    color: #000 !important;
    background: #fff !important;
  }
}

/* ========== iPhone SE / Mini (≤375px) ========== */
@media (max-width: 375px) {
  .main-header {
    top: 28px; /* сразу после бегущей строки высотой 28px */
  }
}