/* ==================== МЕДИАЗАПРОСЫ ==================== */
/* Все @media — здесь. Секции по блокам добавляются по мере портирования. */

/* ==================== ПРЕЛОАДЕР / HERO ==================== */
@media (prefers-reduced-motion: reduce) { .preloader__mark { animation: none; } }
@media (max-width: 768px) {
  .hero { height: 185vh; }
  .hero__card { background-image: url(../poster-m.jpg); }
  .hero__lead { font-size: 16px; }
  .hero__cta { margin-top: 24px; }
  .hero__veil { background: linear-gradient(180deg, rgba(14,12,11,0.62) 0%, rgba(14,12,11,0.36) 40%, rgba(14,12,11,0.52) 70%, rgba(14,12,11,0.9) 100%); }
}

/* ==================== ШАПКА / МЕНЮ ==================== */
@media (max-width: 1024px) { .header__nav { display: none; } }
@media (max-width: 768px) {
  .header { gap: 12px; padding: 18px var(--pad-x); }
  .header__logo-img { height: 30px; }
  .header__cta { display: none; }
  .header__burger { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .header__logo-img { height: 26px; } }
@media (max-width: 560px) { .menu__panel { width: 100%; padding-left: 20px; padding-right: 20px; } }

/* ==================== FACTS ==================== */
@media (prefers-reduced-motion: reduce) { .facts__group[data-active="true"] .facts__dot { animation: none; } .facts__lines { transition: none; } }
@media (max-width: 900px) {
  .facts__left { display: none; }
  .facts__item { left: 0; right: 0; top: 11vh; bottom: 34vh; display: flex; align-items: center; justify-content: center; }
  .facts__element { height: 38vh; width: auto; max-width: none; transform-origin: center center; }
  .facts__group { left: 0; right: 0; top: auto; bottom: 0; padding: 0 var(--pad-x) 7vh; display: flex; flex-direction: column; gap: 16px; }
  .facts__lines, .facts__dot { display: none; }
  .facts__card { position: relative; left: auto !important; top: auto !important; width: auto; max-width: none; padding-left: 20px; }
  .facts__card::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #d8c39c; }
  .facts__card-title { font-size: 19px; }
  .facts__card-desc { font-size: 13px; margin-top: 10px; max-width: none; }
}

/* ==================== О КОМПАНИИ ==================== */
@media (min-width: 901px) and (max-width: 1280px) {
  .about__center { max-width: 460px; }
  .about__photo { width: clamp(180px, 16vw, 240px); }
  .about__photo._p1 { top: 12%; right: 3%; }
  .about__photo._p2 { top: 42%; right: 7%; }
  
}
@media (max-width: 900px) {
  .about { height: auto; margin-top: 0; }
  .about__stage { position: relative; height: auto; overflow: hidden; flex-direction: column; align-items: stretch; padding: 0 var(--pad-x) 12vh; gap: clamp(28px, 5vh, 48px); }
  .about__column { position: absolute; top: 7vh; left: -15vw; width: 84vw; max-width: none; transform: none; opacity: 1; z-index: 0; }
  .about__center { order: 1; margin-top: 50vh; text-align: center; z-index: 2; }
  .about__title { text-align: center; }
  .about__body p{
    max-width: none !important;
  }
  .about__gallery { order: 2; position: relative; inset: auto; width: 100%; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; pointer-events: auto; touch-action: pan-x; }
  .about__photo { position: static; flex: 0 0 auto; width: 68vw; aspect-ratio: 3 / 2; transform: none !important; scroll-snap-align: start; box-shadow: none; }
}

/* ==================== УСЛУГИ ==================== */
@media (min-width: 861px) { .services__sub { display: none; } }
@media (max-width: 860px) {
  .services { height: 360vh; }
  .services__big-head { display: none; }
  .services__inner { padding-top: 14vh; }
  .services__body { flex-direction: column; align-items: flex-start; gap: 24px; }
  .services__copy { min-height: 46vh; width: 100%; }
  .services__item { max-width: none; }
  .services__title { font-size: clamp(32px, 9vw, 52px); }
  .services__rail { flex-direction: row; align-self: flex-start; gap: 18px; }
  .services__dot { padding-right: 0; }
  .services__dot::after { display: none; }
}

/* ==================== ПРОЕКТЫ ==================== */
@media (max-width: 900px) {
  .cases { margin-top: 0; }
  .cases__stage { height: auto; overflow: visible; }
  .cases__head { position: static; opacity: 1 !important; visibility: visible !important; transform: none !important; align-items: flex-start; text-align: left; padding: 16vh var(--pad-x) 2vh; }
  .cases__title { font-size: clamp(48px, 16vw, 88px); }
  .cases__field { position: static; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; column-gap: 3vw; row-gap: 3vw; padding: 4vh var(--pad-x) 12vh; transform: none !important; }
  .cases__card { position: static !important; grid-row: auto !important; aspect-ratio: var(--ar, 3 / 4) !important; }
  .cases__card-overlay { opacity: 1; }
}

/* ==================== ПРОИЗВОДСТВО ==================== */
@media (max-width: 900px) {
  .production { overflow-x: hidden; }
  .production__stage { height: auto; overflow: visible; }
  .production__head { position: static; max-width: none; padding: 12vh var(--pad-x) 4vh; }
  .production__title { font-size: clamp(30px, 9vw, 60px); line-height: 0.95; letter-spacing: -0.01em; overflow-wrap: anywhere; }
  .production__track { position: static; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad-x); padding: 0 var(--pad-x) 12vh; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .production__track::-webkit-scrollbar { display: none; }
  .production__card { scroll-snap-align: start; width: 78vw !important; height: 64vh !important; margin-top: 0 !important; }
}

/* ==================== ДЛЯ КОГО ==================== */
@media (max-width: 768px) { .audience__deco-layer { display: none; } .audience__deco-layer-mob { display: block; } }
@media (max-width: 600px) { .audience__cta { width: 100%; justify-content: center; } }

/* ==================== FOOTER ==================== */
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; row-gap: clamp(32px, 5vh, 48px); } .footer__col._brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } .footer__bottom-inner { flex-direction: column; align-items: flex-start; } }

/* ==================== ПОПАП ЗАЯВКИ ==================== */
@media (max-width: 760px) {
  .estimate__panel { overflow-y: auto; }
  .estimate__column { display: none; }
  .estimate__grid { grid-template-columns: 1fr; gap: 28px; }
  .estimate__panel { padding: clamp(22px, 6vw, 32px); }
  .estimate__title { font-size: clamp(24px, 7vw, 34px); padding-right: 48px; }
  .estimate__form-zone { gap: 26px; }
  .estimate__input { padding: 13px 2px; font-size: 14px; }
  .estimate__contacts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
  .estimate__contacts-title { font-size: clamp(20px, 6vw, 26px); }
}
