.card-item {
    margin-top: 50px;
    margin-bottom: 60px;
}

/* HEADER */


.card-item-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: clamp(20px, 3vw, 40px);
}

/*.card-item-header {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fit, minmax(clamp(320px, 50vw, 380px), 1fr));*/
/*    gap: clamp(26px, 3vw, 48px);*/
/*}*/

/* GALLERY */
.card-item-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.card-item-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-item-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}


.card-item-gallery-thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    background: #e5e5e5;
}



/* INFO */
.card-item-title {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-item-params {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.card-item-params-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 15px;
}

/* PRICE */
.card-item-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-card-color);
    margin-top: 20px;
    margin-bottom: 20px;
}

.card-item-price-unit,
.card-item-price-note {
    font-size: 16px;
    font-weight: 400;
}

/* DESCRIPTION */
.card-item-description {
    font-size: 13px;
    color: #666;
}



/* ORDER */
.card-item-order {
    background-color: var(--menu-drop);
    padding: clamp(10px, 3vw, 20px);
    border-radius: 6px;
    margin-top: 20px;
    border: 1px dashed #969696;
}

/* Верхняя сетка */
/*.card-item-order-grid {*/
/*    display: grid;*/
/*    grid-template-columns: 1fr 1fr;*/
/*    gap: 20px;*/
/*    margin-bottom: 16px;*/
/*}*/

.card-item-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* Поле */
.order-field {
    display: flex;
    flex-direction: column;
}

/* Label */
.order-label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
}

.order-label .required {
    color: red;
    margin-right: 2px;
}

/* Input wrapper */
.order-input-wrap {
    position: relative;
}

.order-input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

/* Иконка справа */
.order-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.7;
    pointer-events: none;
}

/* Счётчик */
.order-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.counter-btn {
    width: 46px;
    height: 44px;
    border: none;
    background-color: #d5d5d5;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
}

.counter-input {
    width: 48px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

/* Нижний блок */
.card-item-order-bottom {
    display: grid;
    grid-template-columns: 1fr;
}

/* Кнопка */
.card-item-order-submit {
    background-color: var(--secondary-card-text-color);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    height: 48px;
}

.card-item-order-submit:hover {
    background-color: var(--secondary-card-color);
}

/* SPECS */
.card-item-specs {
    margin-top: 60px;
    margin-bottom: 60px;
}

.card-item-specs-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.card-item-specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.card-item-specs-table thead {
    background-color: var(--menu-bg-color);
}

.card-item-specs-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #111;
    border-bottom: 2px solid #888888;
    border-right: 2px solid #888888;
}

/* Первая колонка уже */
.card-item-specs-table th:first-child,
.card-item-specs-table td:first-child {
    width: 30%;
    font-weight: 500;
}

.card-item-specs-table th:last-child,
.card-item-specs-table td:last-child {
    width: 70%;
}

.card-item-specs-table thead th:last-child {
    border-right: none;
}

.card-item-specs-table tbody tr {
    border-bottom: 1px dashed #c4c4c4;
    transition: background 0.2s ease;
    font-size: 14px;
}

.card-item-specs-table tbody tr:hover {
    background-color: var(--menu-bg-color);
}

.card-item-specs-table td,
.card-item-specs-table th {
    padding: 10px;
    line-height: 1.3;
    text-align: left;
    vertical-align: top;
}

.card-item-specs-table td {
    font-weight: 500;
    color: #111;
    border-right: 1px solid #dddddd;
}

.card-item-specs-table td:last-child {
    border-right: none;
}

/* VIDEO SECTION */
/* ===== Секция ===== */
.video-section {
    max-width: 1200px;
}

/* ===== Заголовок ===== */
.video-header {
    margin-bottom: 16px;
}


.video-title {
    margin-bottom: 10px;
}

/* ===== Видео карточка ===== */
.video-card {
    position: relative;
    width: 100%;
    max-width: 1200px;

    /* сохраняет размер даже без img */
    aspect-ratio: 16 / 9;

    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

/* ===== Ссылка растянута на всю карточку ===== */
.video-link {
    position: absolute;
    inset: 0;

    display: block;
    color: inherit;
    text-decoration: none;
}

/* ===== Превью (можно удалить img полностью) ===== */
.video-preview {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
}

/* ===== Кнопка Play — ЦЕНТР ===== */
.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 130, 130, 0.9);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}


/* ===== Синий бейдж ===== */
.video-badge {
    position: absolute;
    top: 24px;
    left: 24px;

    background: rgba(37, 99, 235, 0.85);
    color: #fff;

    padding: 12px 16px;
    border-radius: 4px;

    font-size: 14px;
    line-height: 1.4;
    max-width: 320px;

    z-index: 2;
}

.video-badge strong {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 16px;
}


/* ==== ДЛЯ УВЕЛИЧЕНИЯ ИЗОБРАЖЕНИЯ В МОДАЛЬНОМ ОКНЕ ==== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 110;
    inset: 0;
    background-color: #e9e9e9;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 60px;
    font-size: 80px;
    color: #181818;
    cursor: pointer;
}

.card-item-gallery-main img {
    cursor: zoom-in;
}
