/* ═══════════════════════════════════════════════════════════════════
   GLOBAL COMPONENTS — завантажується на всіх сторінках після style.css
   Містить: модальні вікна, відео-секція, форма запиту, базові інпути
   ═══════════════════════════════════════════════════════════════════ */

/* ── ВІДЕО-СЕКЦІЯ — постер у <picture> ── */
.vt-video picture {
  display: block;
  width: 100%;
  height: 100%;
}
.vt-video picture img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── МОДАЛЬНІ ВІКНА — iOS фікс підстрибування ── */
body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
.modal {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── СЕКЦІЯ ЕКСПЕРТІВ — дата оновлення ── */
.expert .expert-updated,
.m-expert .expert-updated {
  padding-top: 64px;
  text-align: right;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: #000000;
}

/* ── БАЗОВІ ІНПУТИ ── */
.inp {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border-blue);
  border-radius: 8px;
  font-size: 14px;
}

/* ── ФОРМА ЗАПИТУ (.help-form) — використовується на Solutions та About ── */
.help-form {
  position: absolute;
  z-index: 2;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px clamp(16px, 3vw, 32px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.help-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
}
.help-form .inp {
  box-sizing: border-box;
  padding: 14px 16px;
  background: #f3f3f3;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  font-size: clamp(14px, 1.2vw, 16px);
}
.help-form .inp::placeholder {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 150%;
  color: rgba(0, 0, 0, 0.7);
}
.help-form .btn-orange {
  border: none;
  border-radius: 8px;
  background: var(--orange);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.help-form .btn-orange:hover {
  background: #de4a00;
}

/* ══ RESPONSIVE ══ */
@media (min-width: 576px) {
  .vt-video picture img {
    max-width: 872px;
    height: auto;
  }
}

@media (max-width: 1024px) {
  /* ── Слайдер обладнання — фікс зображення на планшеті ── */
  .eq-slider__image {
    position: relative;
    overflow: hidden;
  }
  .eq-slider__image::before {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 760px;
  }
}

@media (max-width: 991px) {
  .help-form-row {
    grid-template-columns: 1fr 1fr;
  }
  .help-form .btn-orange {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  /* modal */
  .modal {
    align-items: flex-start;
    overflow-y: auto;
  }
  .modal__card,
  .modal__card--form,
  .modal__card--success {
    margin-top: auto;
    margin-bottom: auto;
  }
  /* help-form */
  .help-form {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .help-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .help-form .inp {
    width: 100%;
    padding: 15px 14px;
    font-size: clamp(12px, 1.2vw, 14px);
    border-radius: 0;
  }
  .help-form .btn-orange {
    width: 100%;
    padding: 15px;
    background: var(--orange-dark);
    border-radius: 0;
    font-size: clamp(12px, 1.2vw, 14px);
    letter-spacing: 0;
  }
  .help-form .btn-orange:hover {
    background: #8e4e16;
  }
  .inp {
    border-radius: 0;
  }
}
