/* ============================================================
   EQUIPMENT — «Оборудование» (используется для любых блоков
   с табами-категориями и слайдерами: оборудование, видеокамеры и т.д.)
   Тёмная тема — через body.dark.
   JS: js/equipment.js
   ============================================================ */

.equipment {
    --eq-card-bg: var(--color-white);
    --eq-card-text: var(--color-dark);
    --eq-muted: var(--color-gray);
    --eq-price-bg: #edf1f6;
    --eq-badge-bg: var(--color-white);
    --eq-tab-bg: var(--color-white);
    --eq-arrow-bg: var(--color-white);
    --eq-arrow-color: var(--color-dark);
    --eq-dot-line: #c9cfd6;
    --eq-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);

    margin-top: 120px;
}

body.dark .equipment {
    --eq-card-bg: #272b33;
    --eq-card-text: var(--color-white);
    --eq-muted: #b4bac2;
    --eq-price-bg: rgba(255, 255, 255, 0.06);
    --eq-badge-bg: #272b33;
    --eq-tab-bg: #272b33;
    --eq-arrow-bg: #272b33;
    --eq-arrow-color: var(--color-white);
    --eq-dot-line: #3a4048;
    --eq-shadow: none;
}

/* ---- Шапка ---- */
.equipment__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.equipment__catalog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 16px;
    background-color: var(--eq-tab-bg);
    color: var(--eq-card-text);
    font-weight: 600;
    transition: transform 0.2s;
    font-size: 18px;
}
body.dark .equipment__catalog{
    background-color: var(--color-accent);
    color: var(--color-white);
}
body.dark  .equipment__catalog svg{
    color: var(--color-white);
}
.equipment__catalog:hover { transform: translateY(-2px); }
.equipment__catalog svg { width: 20px; height: 20px; color: var(--color-accent); }

.equipment__catalog-text-short { display: none; }

/* ---- Табы + стрелки ---- */
.equipment__tabs-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.equipment__tabs {
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.equipment__tabs::-webkit-scrollbar { display: none; }

.eq-tab {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 20px 24px;
    height: 100px;
    border: 1.5px solid transparent;
    border-radius: 30px;
    background-color: var(--eq-tab-bg);
    color: var(--eq-card-text);
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s;
}
.eq-tab:hover { border-color: var(--color-line); }
.eq-tab.is-active { border-color: var(--color-accent); }
.eq-tab img { width: 80px; height: 80px; object-fit: contain; }

.equipment__arrows {
    display: flex;
    flex-shrink: 0;
    gap: 20px;
}

.equipment__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--eq-arrow-bg);
    color: var(--eq-arrow-color);
    transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
.equipment__arrow svg { width: 22px; height: 22px; }
.equipment__arrow.is-disabled,
.equipment__arrow.swiper-button-lock {
    opacity: 0.35;
    pointer-events: none;
}

/* ---- Панели / слайдер ---- */
.equipment__panel[hidden] { display: none; }

.equipment__slider .swiper-wrapper { align-items: stretch; }
.equipment__slider .swiper-slide { height: auto; }

/* ширина слайда: ~2/3 контейнера */
.equipment__slider .eq-card {
    width: calc(66.666% - 16px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    position: relative;
    border-radius: 24px;
    background-color: var(--eq-card-bg);
    color: var(--eq-card-text);
    box-shadow: var(--eq-shadow);
}

/* ---- Карточка ---- */
.eq-card__badge {
    position: absolute;
    top: 44px;
    right: 40px;
    z-index: 1;
    padding: 14px 28px;
    border: 1.5px solid var(--color-accent);
    border-radius: 999px;
    background-color: var(--eq-badge-bg);
    color: var(--color-dark);
    font-size: 15px;
    font-weight: 500;
}

.eq-card__info { padding: 48px; padding-right: 26px;}

.eq-card__name {
    font-size: 32px;
    font-weight: 600;
    padding-right: 160px;
}

.eq-card__desc {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.eq-card__fit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 18px;
    font-weight: 600;
}
.eq-card__fit svg { width: 22px; height: 22px; flex-shrink: 0; }

.eq-card__specs {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.eq-spec {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    font-size: 16px;
}

.eq-spec__name {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
    color: var(--eq-muted);
}

.eq-spec__name::after {
    content: "";
    flex: 1 1 auto;
    margin-bottom: 4px;
    border-bottom: 1px dotted var(--eq-dot-line);
}

.eq-spec__value {
    margin: 0;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 18px;
}

/* ---- Ценовые плашки ---- */
.eq-card__prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.eq-price {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    border: 1.5px solid transparent;
    border-radius: 16px;
    background-color: var(--eq-price-bg);
    color: var(--eq-card-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s;
}

.eq-price.is-active,
.eq-price:focus-visible { border-color: var(--color-accent); }

.eq-price__value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.eq-price__unit {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--eq-card-text);
}

.eq-price__note {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--eq-muted);
}

/* ---- Действия ---- */
.eq-card__actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 28px;
}

.eq-card__more {
    font-size: 18px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.eq-card__more:hover { color: var(--color-accent); }

/* ---- Фото товара ---- */
.eq-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.eq-card__media img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: cover;
}


.equipment__head__additional{
  display: flex;
  gap: 2em;
}
  
  .model-card .eq-card__name{
    padding: 7px 14px;
    border: 1px solid var(--color-accent);
    border-radius: 30px;
    background-color: transparent;
    color: var(--eq-card-text);
    font-size: 14px;
    font-weight: 500;
    width: max-content;
  }

  .model-card .eq-card__desc{
    font-size: 24px;
    margin-bottom: 3em;
  }

  .model-card{
    background-image: url("../../img/videocameras/bg.svg");
    background-repeat: no-repeat;
    background-position: top right;
  }

  .model-card .eq-card__prices{
    display: flex;
  }
  .model-card .eq-card__prices .eq-price{
    flex-grow: 1;
  }
  .model-card .eq-spec__value {
    font-weight: 400;
  }

/* точки — только мобилка */
@media (min-width: 1025px) {
    .equipment__dots { display: none; }
}

/* ---- Промежуточный адаптив ---- */
@media (max-width: 1440px) and (min-width: 1025px) {
    .equipment__slider .eq-card { width: calc(75% - 18px); }
    .eq-card__info { padding: 32px; }
    .eq-card__name { font-size: 26px; padding-right: 130px; }
    .eq-price__value { font-size: 26px; }
    .eq-card__media img { max-height: 400px; }
}

/* ---- Мобильный шаблон ---- */
@media (max-width: 1024px) {
    .equipment { margin-top: 60px; }

    .eq-tab { height: auto; }
    .equipment__title { font-size: 28px; }

    .equipment__catalog { padding: 11px 16px; font-size: 15px; }
    .equipment__catalog-text-full { display: none; }
    .equipment__catalog-text-short { display: inline; }

    .equipment__tabs-row { margin-top: 20px; }
    .equipment__arrows { display: none; }

    .eq-tab { padding: 8px 16px 8px 12px; font-size: 14px; }
    .eq-tab img { width: 36px; height: 26px; }

    .equipment__slider .eq-card {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .eq-card__media { order: -1; padding: 48px 16px 0; }
    .eq-card__media img { max-height: 200px; }

    .eq-card__badge { top: 16px; right: 16px; padding: 8px 14px; font-size: 13px; }

    .eq-card__info { padding: 20px; }
    .eq-card__name { padding-right: 0; font-size: 22px; }
    .eq-card__desc { font-size: 14px; }
    .eq-card__fit { font-size: 14px; }
    .eq-spec { font-size: 14px; }

    .eq-card__prices { gap: 12px; margin-top: 20px; }
    .eq-price { padding: 14px 16px; }

    .eq-price__note { order: -1; margin: 0 0 6px; }
    .eq-price__value { font-size: 24px; }

    .eq-card__prices .eq-price:nth-child(1) { order: 2; }
    .eq-card__prices .eq-price:nth-child(2) { order: 1; }

    .eq-card__actions { margin-top: 20px; }
    .eq-card__actions .btn { flex: 1 1 auto; }
    .eq-card__more { display: none; }

     .model-card .eq-card__desc{
      font-size: 18px;
    }
}
