/* ==========================================================
   PRIVOZ — IMPORT
   BLOCK 05: WHY PRIVOZ

   Desktop: блок на высоту экрана без шапки
   Mobile: видео сверху, текст снизу
   ========================================================== */

/* ==========================================================
   1. ОСНОВНАЯ СЕКЦИЯ
   ========================================================== */

.import-page .import-why {
  --why-bg: #f3ddd1;
  --why-dark: #873d28;
  --why-text: #8a3f2b;
  --why-text-soft: #7e6b62;
  --why-accent: #cf704b;
  --why-accent-dark: #a2553a;
  --why-border: rgba(162, 85, 58, 0.16);
  --why-header-height: 80px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  align-items: stretch;

  width: 100%;

  height: calc(100vh - var(--why-header-height));
  height: calc(100dvh - var(--why-header-height));

  min-height: 0;

  margin: 0;
  padding: 0;

  background: var(--why-bg);
}

.import-page .import-why,
.import-page .import-why *,
.import-page .import-why *::before,
.import-page .import-why *::after {
  box-sizing: border-box;
}

/* ==========================================================
   2. ЛЕВАЯ ЧАСТЬ — ВИДЕО
   ========================================================== */

.import-page .import-why-media {
  position: relative;

  width: 100%;
  height: 100%;
  min-height: 0;

  overflow: hidden;

  background: var(--why-accent-dark);
}

.import-page .import-why-video {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  background: var(--why-accent-dark);
}

/* Поддержка изображения вместо видео */

.import-page .import-why-media img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* ==========================================================
   3. ПРАВАЯ ЧАСТЬ
   ========================================================== */

.import-page .import-why-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 100%;
  min-width: 0;
  min-height: 0;

  padding: clamp(24px, 3vh, 55px) clamp(32px, 4vw, 85px);

  background: var(--why-bg);
}

.import-page .import-why-content-inner {
  width: 100%;
  max-width: 650px;

  margin: 0;
}

/* ==========================================================
   4. ПЛАШКА «ПОЧЕМУ PRIVOZ»
   ========================================================== */

.import-page .import-why-content .import-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: 100%;

  margin: 0 0 clamp(14px, 2vh, 25px);
  padding: 10px 19px;

  background: #f7e5dc;
  color: var(--why-accent-dark);

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;

  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}

/* ==========================================================
   5. ЗАГОЛОВОК
   ========================================================== */

.import-page .import-why-content h2 {
  margin: 0 0 clamp(16px, 2.5vh, 32px);

  color: var(--why-text);

  font-family: inherit;
  font-size: clamp(34px, 3.5vw, 58px);
  font-weight: 500;

  line-height: 1.02;
  letter-spacing: -0.055em;
}

.import-page .import-why-content h2 span {
  display: block;

  color: var(--why-accent-dark);
}

/* ==========================================================
   6. ОСНОВНОЙ ТЕКСТ
   ========================================================== */

.import-page .import-why-text {
  color: var(--why-text-soft);

  font-family: inherit;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 400;

  line-height: 1.55;
}

.import-page .import-why-text p {
  margin: 0 0 clamp(9px, 1.3vh, 15px);
}

.import-page .import-why-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   7. ВЫДЕЛЕННЫЙ ТЕКСТ
   ========================================================== */

.import-page .import-why-accent {
  margin-top: clamp(14px, 2vh, 25px);
  padding-top: clamp(12px, 1.7vh, 20px);

  border-top: 1px solid var(--why-border);

  color: var(--why-dark);

  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 500;

  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* ==========================================================
   8. НЕБОЛЬШИЕ НОУТБУКИ
   ========================================================== */

@media (min-width: 1121px) and (max-height: 850px) {
  .import-page .import-why-content {
    padding: 20px clamp(30px, 3.5vw, 65px);
  }

  .import-page .import-why-content .import-section-label {
    margin-bottom: 14px;
  }

  .import-page .import-why-content h2 {
    font-size: clamp(32px, 3vw, 48px);
    margin-bottom: 17px;
  }

  .import-page .import-why-text {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .import-page .import-why-text p {
    margin-bottom: 9px;
  }

  .import-page .import-why-accent {
    margin-top: 15px;
    padding-top: 13px;
    font-size: 14px;
  }
}

/* ==========================================================
   9. ПЛАНШЕТЫ
   ========================================================== */

@media (max-width: 1120px) {
  .import-page .import-why {
    grid-template-columns: minmax(0, 1fr);

    height: auto;
    min-height: 0;
  }

  .import-page .import-why-media {
    height: 440px;
    min-height: 440px;
  }

  .import-page .import-why-content {
    padding: 65px 50px;
  }

  .import-page .import-why-content-inner {
    max-width: 800px;
  }

  .import-page .import-why-content h2 {
    font-size: clamp(40px, 5vw, 58px);
  }

  .import-page .import-why-text {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* ==========================================================
   10. МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================== */

@media (max-width: 768px) {
  .import-page .import-why {
    display: flex;
    flex-direction: column;

    height: auto;
    min-height: 0;
  }

  .import-page .import-why-media {
    width: 100%;

    height: 340px;
    min-height: 340px;

    flex-shrink: 0;
  }

  .import-page .import-why-video {
    object-position: center;
  }

  .import-page .import-why-content {
    display: block;

    padding: 55px 24px 65px;
  }

  .import-page .import-why-content .import-section-label {
    margin-bottom: 22px;
    padding: 9px 15px;

    font-size: 10px;
  }

  .import-page .import-why-content h2 {
    margin-bottom: 25px;

    font-size: clamp(34px, 8vw, 48px);
    line-height: 1.05;
  }

  .import-page .import-why-text {
    font-size: 14px;
    line-height: 1.65;
  }

  .import-page .import-why-text p {
    margin-bottom: 15px;
  }

  .import-page .import-why-accent {
    margin-top: 25px;
    padding-top: 21px;

    font-size: 16px;
    line-height: 1.55;
  }
}

/* ==========================================================
   11. МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ========================================================== */

@media (max-width: 480px) {
  .import-page .import-why-media {
    height: 270px;
    min-height: 270px;
  }

  .import-page .import-why-content {
    padding: 45px 20px 55px;
  }

  .import-page .import-why-content h2 {
    font-size: clamp(32px, 9vw, 42px);
  }
}

/* ==========================================================
   12. НИЗКИЕ ЭКРАНЫ — НЕ ОБРЕЗАЕМ ТЕКСТ
   ========================================================== */

@media (min-width: 1121px) and (max-height: 650px) {
  .import-page .import-why {
    height: auto;
    min-height: calc(100dvh - var(--why-header-height));
  }

  .import-page .import-why-media {
    min-height: 650px;
  }

  .import-page .import-why-content {
    padding-top: 35px;
    padding-bottom: 35px;
  }
}
