.product__card {
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
    border-bottom: 1px solid #F1F0F0;
}

.product__card-main-info {
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
    border-bottom: 1px solid #F1F0F0;
}

.product__img-holder {
    width: 33%;
}

.product__info {
    width: 58%;
    min-width: 0;
}

.product__img {
    width: 100%;
}

.product__img--icon {
    max-width: 200px;
}

.product__name {
    font-weight: bold;
    font-size: 24px;
    color: #181818;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product__card--tcepro .product__property--basic {
    display: none;
}

.product__card--tcepro .product__property-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.product__card--tcepro .product__property-row > .product__property {
    flex: 1 1 0;
    min-width: 0;
}

.product__card .product__free-base {
    display: none;
}
.product__card.product__card--tcepro .product__free-base {
    display: flex;
    padding: 15px;
    border-radius: 5px;
    background: #edf6f1;
}
.product__free-base-icon {
    display: block;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background-image: url(./images/check.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.product__free-base-text {
    margin-left: 20px;
    min-width: 0;
}
.product__free-base-text p {
    margin: 0;
}

.product__card .product__go-to-modules {
    display: none;
}
.product__card.product__card--tcepro .product__go-to-modules {
    display: block;
    width: 100%;
    padding: 10px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    background: #E20932;
    padding: 10px 20px;
    border: 2px solid #E20932;
    border-radius: 5px;
    margin: 10px 0px;
    transition: 200ms ease all;
}

.product__card.product__card--tcepro .product__go-to-modules:hover {
    background: #fff;
    color: #E20932;
}

.product__card.product__card--tcepro .product__buy-controls {
    display: none;
}

.product__card--tcepro .product__property--basic {
    display: none;
}

.product__card--tcepro .product__property-row {
    display: flex;
    justify-content: space-between;
}

.product__card .product__free-base {
    display: none;
}
.product__card.product__card--tcepro .product__free-base {
    display: flex;
    padding: 15px;
    border-radius: 5px;
    background: #edf6f1;
}
.product__free-base-icon {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url(./images/check.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.product__free-base-text { 
    margin-left: 20px;
}

.product__card .product__go-to-modules {
    display: none;
}
.product__card.product__card--tcepro .product__go-to-modules {
    display: block;
    width: 100%;
    padding: 10px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    background: #E20932;
    padding: 10px 20px;
    border: 2px solid #E20932;
    border-radius: 5px;
    margin: 10px 0px;
    transition: 200ms ease all;
}

.product__card.product__card--tcepro .product__go-to-modules:hover {
    background: #fff;
    color: #E20932;
}

.product__card.product__card--tcepro .product__buy-controls {
    display: none;
}

.product__property {
    margin-bottom: 50px;
    padding-left: 65px;
    min-height: 47px;
    position: relative;
    color: #181818;
}

.product__property-icon {
    width: 47px;
    position: absolute;
    left: 0;
    top: 0;
}

.product__property-title {
    font-size: 15px;
    font-weight: bold;
    padding-bottom: 5px;
}

.product__manufacturer {
    font-size: 18px;
    color: #E20932;
    font-weight: bold;
}

.product__includes, .product__downloads {
    padding-left: 20px;
}

.product__includes-item, .product__downloads-item {
    list-style: circle;
    list-style-type: disc;
    color: #000;
}

.product__includes-item, .product__downloads-item-link {
    overflow-wrap: break-word;
    word-break: break-word;
}

.product__downloads-item-link {
    color: #E20932;
}

.product__downloads-item-link:hover {
    text-decoration: underline;
}

.product__basic-set-price {
    font-size: 18px;
    font-weight: bold;
}

.product__buy-controls {
    padding-left: 65px;
}

.product__buy-btn {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    text-align: center;
    background: #E20932;
    padding: 10px 20px;
    border: 2px solid #E20932;
    transition: 200ms ease all;
}

.product__buy-btn:hover {
    background: #fff;
    color: #E20932;
}

.product__buy-btn--inactive {
    background: #999999;
    border: 2px solid #999999;
    cursor: default;
}

.product__buy-btn--inactive:hover {
    color: #fff;
    background: #999999;
}

.product__availability {
    margin-top: 25px;
    font-size: 13px;
    font-weight: bold;
}

@media screen and (max-width: 991px) {
    .product__card,
    .product__card-main-info {
        flex-direction: column;
    }
    .product__img-holder {
        width: 100%;
        max-width: 620px;
        margin: 0 auto 30px;
    }
    .product__info {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .product__basic-set-price {
        display: block;
    }
    /* значок «нет фото» (img без width и height): пока файл не пришёл, высота 0, и карточка под ним съезжает на 200 px
       (Lighthouse на стенде, товар без фото, EU: CLS 0,206). Оба значка квадратные — квадрат заранее, итоговый вид тот же */
    .product__img--icon {
        aspect-ratio: 1 / 1;
    }
    .product__card--tcepro .product__property-row {
        flex-direction: column;
        gap: 0;
    }
}

/* First screen of the product card on phones (version B, product-card-mobile.css): the server always renders these
   nodes, they are visible only under html.pm-on, which the head script of the product page sets on narrow screens. */
html:not(.pm-on) .pm-facts, html:not(.pm-on) .pm-key, html:not(.pm-on) .pm-rule, html:not(.pm-on) .pm-notice,
html:not(.pm-on) .pm-mt {
    display: none;
}

/* ======================= Карточка «1 А» (29.11.2026): первый экран ======================= */
/* Цвета и шрифты темы. Шаг отступов — 8. Правила ПК — под html:not(.pm-on): телефон (версия B) не меняется. */
:root {
    --pc-red: #E20932; --pc-line: #E0E0E0; --pc-gray: #F7F6F6; --pc-ink: #181818; --pc-muted: #666666;
    --pc-frame: #F7F6F6; /* поля рамки картинок 4:3 — тот же цвет, что у превью с сервера (dizain/README, «Превью») */
    --pc-head: "Gotham Pro", "Gotham Pro Fallback", "Gotham Pro Fallback Roboto", sans-serif;
    --pc-body: "ClearSans", "ClearSans Fallback", "ClearSans Fallback Roboto", sans-serif;
}
/* название → строка артикула и производителя 8 → бокс цены 24 (отступ зоны K3 — trustpilot-card.css) */
html:not(.pm-on) .product__card .product__name { margin: 0 0 8px; line-height: 1.2; }
.product__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; font: 400 13px/1.4 var(--pc-body); color: var(--pc-muted); }
.product__meta .vendor-code { margin: 0; }
.product__meta .vendor-code, .product__meta .vendor-code * { font: inherit; color: inherit; letter-spacing: 0; }
.product__meta-item { white-space: nowrap; }
.product__card .product__meta-brand { color: var(--pc-red); font-weight: 700; text-decoration: none; }
.product__card .product__meta-brand:hover { text-decoration: underline; text-underline-offset: 3px; }
.product__meta-brand:focus-visible { outline: 2px solid var(--pc-red); outline-offset: 2px; }
.pm-on .product__card .product__meta { gap: 2px 16px; font-size: 12px; }

/* бокс цены: наличие — под ценой («✓» только у «In stock»); старая строка «Status:» на ПК не видна — только когда шаблон
   уже выводит .product__stock: со старым buy.php наличие остаётся строкой «Status:» (trustpilot-card-desktop.html) */
html:not(.pm-on) .product__card .k3-buy:has(.product__stock) .product__buy-controls { gap: 0; }
html:not(.pm-on) .product__card .k3-buy:has(.product__stock) .product__availability { display: none; }
.product__stock { display: none; }
html:not(.pm-on) .product__card .product__stock { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 700 13px/1.3 var(--pc-body); color: var(--pc-ink); }
html:not(.pm-on) .product__card .product__stock--ok::before { content: ""; width: 12px; height: 7px; margin-top: -4px; border: solid var(--pc-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* строка модулей под ценой: «Modules N · from N $ · Choose modules ↓» */
.product__mods { display: none; }
html:not(.pm-on) .product__card .product__mods {
    display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
    padding-top: 16px; border-top: 1px solid var(--pc-line); font: 400 14px/1.3 var(--pc-body); color: var(--pc-muted);
}
.product__mods-count { margin-left: 4px; }
html:not(.pm-on) .product__card .product__mods-price { font: 700 16px/1.2 var(--pc-head); color: var(--pc-ink); }
html:not(.pm-on) .product__card .product__mods-link { margin-left: auto; font: 700 14px/1.3 var(--pc-body); color: var(--pc-red); text-decoration: none; }
.product__mods-link::after { content: "↓"; margin-left: 4px; }
.product__mods-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.product__mods-link:focus-visible { outline: 2px solid var(--pc-red); outline-offset: 2px; }
/* основа не продаётся (цена 0 $): главной ценой — «from N $» модулей, главной кнопкой — «Choose modules» */
html:not(.pm-on) .product__card--mods .k3-buy > :not(.product__mods) { display: none !important; }
html:not(.pm-on) .product__card--mods .product__mods {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding-top: 0; border-top: 0;
}
html:not(.pm-on) .product__card--mods .product__mods-label { grid-column: 1; }
html:not(.pm-on) .product__card--mods .product__mods-price { grid-column: 1; font-size: 26px; }
html:not(.pm-on) .product__card--mods .product__mods-link {
    grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; height: 48px; padding: 0 24px; background: var(--pc-red); color: #fff;
}
html:not(.pm-on) .product__card--mods .product__mods-link:hover { background: #B8072A; text-decoration: none; }
@media (max-width: 767px) { html:not(.pm-on) .product__card .product__mods-link { display: inline-flex; align-items: center; min-height: 40px; } }

/* «Contents of delivery» и «Downloads»: под K3 двумя колонками; один блок — список в две колонки */
html:not(.pm-on) .product__info > .product__property-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; color: var(--pc-ink); }
html:not(.pm-on) .product__property-row--single .product__list { columns: 2; column-gap: 32px; }
html:not(.pm-on) .product__property-row--single .product__list > li { break-inside: avoid; }
.product__prop { min-width: 0; }
.product__prop-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font: 700 16px/1.25 var(--pc-head); color: var(--pc-ink); }
.product__prop-count { font: 400 13px/1 var(--pc-body); color: var(--pc-muted); }
.product__list { margin: 0; padding: 0 0 0 18px; list-style: disc; font: 400 14px/1.45 var(--pc-body); }
.product__list > li { margin: 0 0 6px; padding: 0; list-style: inherit; color: var(--pc-ink); overflow-wrap: anywhere; }
.product__list > li:last-child { margin-bottom: 0; }
.product__list--cut > li:nth-child(n+9) { display: none; }
.product__list.product__downloads { padding: 0; list-style: none; }
.product__downloads-item-link, .product__downloads-item-link:hover { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--pc-red); text-decoration: none; }
.product__downloads-item-link:hover .product__downloads-text { text-decoration: underline; text-underline-offset: 3px; }
.product__downloads-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.product__list-more { margin: 10px 0 0; padding: 4px 0; border: 0; background: none; font: 700 14px/1.3 var(--pc-body); color: var(--pc-red); cursor: pointer; }
.product__list-more::after { content: " ↓"; }
.product__list-more[aria-expanded="true"]::after { content: " ↑"; }
.product__list-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.product__list-more:focus-visible, .product__downloads-item-link:focus-visible { outline: 2px solid var(--pc-red); outline-offset: 2px; }
@media (max-width: 767px) {
    .product__downloads > li { margin: 0; }
    .product__downloads-item-link { align-items: center; min-height: 40px; }
    .product__downloads-icon { margin-top: 0; }
}

/* галерея — миниатюрами 4 в ряд под главным фото (до 8, дальше «+N»); на телефоне — галерея версии B */
.product__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.product__thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border: 1px solid var(--pc-line); background: var(--pc-frame); overflow: hidden; text-decoration: none; }
.product__thumb-img { width: 100%; height: 100%; object-fit: contain; }
.product__thumb:hover { border-color: var(--pc-red); }
.product__thumb:focus-visible { outline: 2px solid var(--pc-red); outline-offset: 2px; }
.product__card .product__thumb--more { font: 700 18px/1 var(--pc-head); color: var(--pc-red); }
.pm-on .product__thumbs { display: none; }
/* Картинки одного размера — вариант А (макет 29.11): рамка 4:3, картинка целиком, поля --pc-frame. Превью нужного размера
   с полями готовит сервер (dizain/README, «Превью»), рамку CSS держит и без него. Главное фото — ПК и телефон без версии B;
   фото 96×96 в шапке версии B остаётся квадратом (product-card-mobile.css) */
html:not(.pm-on) .product__img-holder .product__img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: contain; background: var(--pc-frame); }
