/* ==========================================================================
 *   Geosvip-Tegeler — редизайн карточки товара (catalog.element)
 *   Все стили изолированы внутри .gtp, хедер/футер не затрагиваются.
 *   ========================================================================== */

.gtp {
    --gtp-accent: #f04e33; /* фирменный цвет сайта (кнопки, ссылки) */
    --gtp-accent-hover: #d63d23;
    --gtp-accent-soft: #fdeeeb;
    --gtp-ink: #1d2126;
    --gtp-ink-2: #4a525c;
    --gtp-muted: #7b848f;
    --gtp-line: #e6e9ed;
    --gtp-surface: #f6f7f9;
    --gtp-bg: #ffffff;
    --gtp-ok: #1f8a4c;
    --gtp-ok-soft: #e8f5ed;
    --gtp-radius: 6px;
    --gtp-radius-sm: 4px;

    color: var(--gtp-ink);
    /* Шрифты сайта (@font-face объявлены в /bitrix/templates/shopredesign/styles.css) */
    --gtp-font: "MontserratCustom", "Montserrat", Arial, sans-serif;
    --gtp-font-bold: "MontserratBolder", "MontserratCustom", "Montserrat", Arial, sans-serif;

    font-family: var(--gtp-font);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 auto;
    box-sizing: border-box;
}

.gtp *, .gtp *::before, .gtp *::after {
    box-sizing: border-box;
}

.gtp svg {
    display: block;
    flex-shrink: 0;
}

/* ---------- Основная карточка ---------- */
.gtp-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
    "gallery title"
    "gallery info";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
    margin-top: 32px;
}

.gtp-title {
    grid-area: title;
}

.gtp-gallery {
    grid-area: gallery;
}

.gtp-info {
    grid-area: info;
}

.gtp-title h1 {
    margin: 0 0 16px;
    padding: 0;
    text-transform: none;
    font-size: 30px;
    line-height: 1.22;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    letter-spacing: -0.01em;
    color: var(--gtp-ink);
    text-wrap: balance;
}

/* ---------- Галерея ---------- */
.gtp-gallery {
    position: sticky;
    top: 16px;
}

.gtp-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 32px;
    background: var(--gtp-bg);
    border: 1px solid var(--gtp-line);
    border-radius: var(--gtp-radius);
    cursor: zoom-in;
    overflow: hidden;
    appearance: none;
    font: inherit;
}

.gtp-photo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
}

.gtp-photo:hover img {
    transform: scale(1.03);
}

.gtp-photo:focus-visible {
    outline: 2px solid var(--gtp-accent);
    outline-offset: 2px;
}

.gtp-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--gtp-ink-2);
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--gtp-line);
    border-radius: 4px;
    pointer-events: none;
}

/* Стандартный блок миниатюр Bitrix при одной фотографии не нужен */
.gtp .bx_slider_conteiner {
    display: none;
}

/* ---------- Наличие ---------- */
.gtp-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-ok);
    background: var(--gtp-ok-soft);
    border-radius: 4px;
}

.gtp-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(31, 138, 76, .18);
}

.gtp-stock--out {
    color: var(--gtp-muted);
    background: var(--gtp-surface);
}

.gtp-stock--out::before {
    box-shadow: none;
}

/* ---------- Краткие характеристики ---------- */
.gtp-specs {
    margin: 20px 0 0;
    padding: 0;
    border-top: 1px solid var(--gtp-line);
}

.gtp-specs > div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gtp-line);
}

.gtp-specs dt {
    margin: 0;
    color: var(--gtp-muted);
    font-size: 14px;
}

.gtp-specs dd {
    margin: 0;
    font-weight: 600;
    font-family: var(--gtp-font-bold);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    white-space: pre-line; /* артикулы разделены переводом строки */
    word-break: break-word;
}

.gtp-specs .gtp-mono {
    letter-spacing: .02em;
}

/* ---------- Блок покупки ---------- */
.gtp-buy {
    margin-top: 24px;
    padding: 24px;
    background: var(--gtp-surface);
    border: 1px solid var(--gtp-line);
    border-radius: var(--gtp-radius);
}

.gtp-price-label {
    font-size: 13px;
    color: var(--gtp-muted);
    margin-bottom: 2px;
}

.gtp-price {
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    font-family: var(--gtp-font-bold);
    letter-spacing: -0.02em;
    color: var(--gtp-ink);
    font-variant-numeric: tabular-nums;
}

.gtp-price-unit {
    font-size: 15px;
    font-weight: 400;
    font-family: var(--gtp-font);
    color: var(--gtp-muted);
    letter-spacing: 0;
}

.gtp-buy-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: stretch;
}

/* Счётчик количества — оборачивает оригинальные элементы Bitrix */
.gtp .quantity-block {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 4px;
    background: var(--gtp-bg);
    border: 1px solid var(--gtp-line);
    border-radius: var(--gtp-radius-sm);
    flex-shrink: 0;
    float: none;
    margin: 0;
}

.gtp .quantity-block .amount-field-btn {
    display: contents;
}

.gtp .quantity-block .button--counter {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--gtp-ink-2);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.gtp .quantity-block .button--counter:hover {
    background: var(--gtp-surface);
    color: var(--gtp-accent) !important;
}

.gtp .quantity-block .button--counter svg {
    width: 12px;
    height: 12px;
}

.gtp .quantity-block .amount-field {
    width: 52px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-ink);
    -moz-appearance: textfield;
    box-shadow: none;
}

.gtp .quantity-block .amount-field::-webkit-outer-spin-button,
.gtp .quantity-block .amount-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gtp .quantity-block .amount-field:focus {
    outline: none;
}

.gtp .quantity-block:focus-within {
    border-color: var(--gtp-accent);
}

/* CTA «В корзину» — поверх оригинальной ссылки Bitrix (id ..._add_basket_link) */
.gtp-cart {
    flex: 1 1 auto;
    min-width: 0;
}

.gtp-cart .product-item-detail-info-container {
    height: 100% !important;
}

.gtp .product-item-detail-buy-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 24px;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    line-height: 1;
    color: #fff !important;
    text-decoration: none !important;
    background: var(--gtp-accent) !important;
    border: 0;
    border-radius: var(--gtp-radius-sm);
    box-shadow: 0 6px 16px -6px rgba(240, 78, 51, .55);
    transition: background .15s, transform .1s, box-shadow .15s;
}

.gtp .product-item-detail-buy-button:hover {
    background: var(--gtp-accent-hover) !important;
    box-shadow: 0 8px 20px -6px rgba(240, 78, 51, .6);
}

.gtp .product-item-detail-buy-button:active {
    transform: translateY(1px);
}

.gtp .product-item-detail-buy-button:focus-visible {
    outline: 2px solid var(--gtp-ink);
    outline-offset: 2px;
}

/* Вторичные действия */
.gtp-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.gtp .like-listener {
    margin: 0;
}

.gtp-btn-ghost,
.gtp .product-like.srbaa_favorites {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-ink);
    background: var(--gtp-bg);
    border: 1px solid var(--gtp-line);
    border-radius: var(--gtp-radius-sm);
    cursor: pointer;
    user-select: none;
    transition: border-color .15s, color .15s, background .15s;
    float: none;
    background-image: none;
}

.gtp-btn-ghost:hover,
.gtp .product-like.srbaa_favorites:hover {
    border-color: var(--gtp-ink-2);
}

.gtp-btn-ghost:focus-visible,
.gtp .product-like.srbaa_favorites:focus-visible {
    outline: 2px solid var(--gtp-accent);
    outline-offset: 2px;
}

.gtp .product-like.srbaa_favorites::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Состояние «в избранном» — класс .active ставит существующий addFavorite() */
.gtp .product-like.srbaa_favorites.active {
    color: var(--gtp-accent);
    border-color: var(--gtp-accent);
    background: var(--gtp-accent-soft);
}

.gtp .product-like.srbaa_favorites.active::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
}

.gtp-btn-ghost svg {
    width: 18px;
    height: 18px;
}

.gtp-delivery-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px dashed #d6dade;
    font-size: 14px;
    color: var(--gtp-ink-2);
}

.gtp-delivery-note svg {
    width: 20px;
    height: 20px;
    color: var(--gtp-accent);
}

/* ---------- Поделиться: всплывающее меню ---------- */
.gtp-share {
    position: relative;
}

.gtp-share-menu {
    position: absolute;
    z-index: 50;
    right: 0;
    bottom: calc(100% + 8px);
    width: 240px;
    padding: 6px;
    background: var(--gtp-bg);
    border: 1px solid var(--gtp-line);
    border-radius: var(--gtp-radius);
    box-shadow: 0 14px 40px -12px rgba(20, 24, 30, .28);
}

.gtp-share-menu[hidden] {
    display: none;
}

.gtp-share-menu a,
.gtp-share-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--gtp-ink);
    text-align: left;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.gtp-share-menu a:hover,
.gtp-share-menu button:hover,
.gtp-share-menu a:focus-visible,
.gtp-share-menu button:focus-visible {
    background: var(--gtp-surface);
    outline: none;
}

.gtp-share-menu svg {
    width: 20px;
    height: 20px;
}

.gtp-share-url {
    display: block;
    width: 100%;
    margin: 4px 0 2px;
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
    color: var(--gtp-ink);
    background: var(--gtp-surface);
    border: 1px solid var(--gtp-line);
    border-radius: var(--gtp-radius-sm);
}

.gtp-toast {
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--gtp-font-bold);
    color: #fff;
    background: var(--gtp-ink);
    border-radius: var(--gtp-radius-sm);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

.gtp-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Инфо-карточки: доставка / оплата / гарантия ---------- */
.gtp-terms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.gtp-term {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--gtp-bg);
    border: 1px solid var(--gtp-line);
    border-radius: var(--gtp-radius);
}

.gtp-term-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    color: var(--gtp-accent);
    background: var(--gtp-accent-soft);
    border-radius: var(--gtp-radius-sm);
}

.gtp-term-icon svg {
    width: 22px;
    height: 22px;
}

.gtp-term h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-ink);
}

.gtp-term ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gtp-ink-2);
}

.gtp-term li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
}

.gtp-term li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c3c9cf;
}

.gtp-term-sub {
    margin: 8px 0 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-ink);
}

.gtp-term-sub:first-of-type {
    margin-top: 0;
}

.gtp-term-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-accent) !important;
    text-decoration: none !important;
}

.gtp-term-link:hover {
    text-decoration: underline !important;
}

/* ---------- Табы: описание / характеристики / отзывы ---------- */
.gtp-tabs {
    margin-top: 48px;
}

.gtp-tablist {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--gtp-line);
    overflow-x: auto;
    scrollbar-width: none;
}

.gtp-tablist::-webkit-scrollbar {
    display: none;
}

.gtp-tab {
    position: relative;
    padding: 14px 18px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-muted);
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.gtp-tab:hover {
    color: var(--gtp-ink);
}

.gtp-tab[aria-selected="true"] {
    color: var(--gtp-ink);
}

.gtp-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--gtp-accent);
}

.gtp-tab:focus-visible {
    outline: 2px solid var(--gtp-accent);
    outline-offset: -2px;
    border-radius: var(--gtp-radius-sm);
}

.gtp-panel {
    padding: 28px 0 0;
}

.gtp-panel[hidden] {
    display: none;
}

.gtp-panel-title {
    display: none;
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
}

.gtp-desc {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gtp-ink-2);
}

.gtp .product-item-detail-properties {
    width: 100%;
    max-width: 760px;
    border-collapse: collapse;
    font-size: 15px;
}

.gtp .product-item-detail-properties th,
.gtp .product-item-detail-properties td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid var(--gtp-line);
}

.gtp .product-item-detail-properties tr:nth-child(odd) {
    background: var(--gtp-surface);
}

.gtp .product-item-detail-properties th {
    width: 40%;
    font-weight: 400;
    color: var(--gtp-muted);
}

.gtp .product-item-detail-properties td {
    font-weight: 600;
    font-family: var(--gtp-font-bold);
    white-space: pre-line;
}

/* Отзывы: существующий компонент catalog.comments переносится в панель как есть.
 *   Его собственный заголовок-таб «Отзывы» дублирует наш — прячем только его. */
.gtp .bx_soc_comments_div .top-links-wrapper {
    display: none;
}

.gtp .bx_soc_comments_div .tab-off {
    display: block !important;
}

/* ---------- Лайтбокс ---------- */
.gtp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 19, 23, .86);
    cursor: zoom-out;
}

.gtp-lightbox[hidden] {
    display: none;
}

.gtp-lightbox img {
    max-width: min(100%, 1024px);
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: var(--gtp-radius-sm);
}

.gtp-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.gtp-lightbox-close:hover {
    background: rgba(255, 255, 255, .22);
}

.gtp-karta {
    width: 560px;
}

/* ==========================================================================
 *   Адаптив
 *   ========================================================================== */
@media (max-width: 1100px) {
    .gtp-terms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gtp-term:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .gtp-main {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
        "title"
        "gallery"
        "info";
        grid-template-rows: auto;
    }

    .gtp-gallery {
        position: static;
        max-width: 560px;
        width: 100%;
        margin: 0 auto 20px;
    }

    .gtp-title h1 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .gtp-karta {
        width: auto;
    }

    .gtp {
        font-size: 14px;
        padding-bottom: 32px;
    }

    .gtp-title h1 {
        font-size: 21px;
        margin-bottom: 14px;
    }

    .gtp-photo {
        padding: 16px;
    }

    .gtp-specs > div {
        grid-template-columns: 110px 1fr;
        gap: 12px;
    }

    .gtp-buy {
        padding: 18px;
        margin-top: 20px;
    }

    .gtp-price {
        font-size: 32px;
    }

    .gtp-buy-row {
        flex-direction: column;
    }

    .gtp .quantity-block {
        width: 100%;
        justify-content: space-between;
    }

    .gtp .quantity-block .button--counter {
        width: 48px;
        height: 44px;
    }

    .gtp-secondary {
        grid-template-columns: 1fr;
    }

    .gtp-btn-ghost, .gtp .product-like.srbaa_favorites {
        height: 48px;
    }

    .gtp-share-menu {
        left: 0;
        right: 0;
        width: auto;
    }

    .gtp-terms {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 28px;
    }

    .gtp-term {
        padding: 18px;
    }

    .gtp-tabs {
        margin-top: 32px;
    }

    /* На мобильном вместо табов — последовательные секции:
     *     описание → характеристики → отзывы */
    .gtp-tablist {
        display: none;
    }

    .gtp-panel, .gtp-panel[hidden] {
        display: block;
        padding-top: 24px;
    }

    .gtp-panel + .gtp-panel {
        border-top: 1px solid var(--gtp-line);
        margin-top: 24px;
    }

    .gtp-panel-title {
        display: block;
    }

    .gtp .product-item-detail-properties th,
    .gtp .product-item-detail-properties td {
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gtp *, .gtp-toast {
        transition: none !important;
    }
}

/* ---------- Плашка консультации ---------- */
.gtp-help {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--gtp-bg);
    border: 1px solid var(--gtp-line);
    border-left: 3px solid var(--gtp-accent);
    border-radius: var(--gtp-radius);
}

.gtp-help-photo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gtp-surface);
}

.gtp-help-body {
    min-width: 0;
}

.gtp-help-title {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    line-height: 1.3;
    color: var(--gtp-ink);
}

.gtp-help-text {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--gtp-ink-2);
}

.gtp-help-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-accent) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.gtp-help-phone:hover {
    color: var(--gtp-accent-hover) !important;
}

@media (max-width: 600px) {
    .gtp-help {
        padding: 14px;
        gap: 12px;
    }

    .gtp-help-photo {
        width: 56px;
        height: 56px;
    }
}

/* ---------- Купить в 1 клик ---------- */
.gtp-btn-oneclick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin-top: 12px;
    padding: 0 16px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    color: var(--gtp-ok);
    background: var(--gtp-ok-soft);
    border: 2px solid var(--gtp-ok);
    border-radius: var(--gtp-radius-sm);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.gtp-btn-oneclick:hover {
    color: #fff;
    background: var(--gtp-ok);
}

.gtp-btn-oneclick:focus-visible {
    outline: 2px solid var(--gtp-ink);
    outline-offset: 2px;
}

/* ---------- Модальное окно быстрого заказа ---------- */
.gtp-modal {
    width: min(480px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    margin: auto;
    padding: 0;
    color: var(--gtp-ink);
    background: var(--gtp-bg);
    border: 0;
    border-radius: var(--gtp-radius);
    box-shadow: 0 24px 60px -16px rgba(16, 19, 23, .45);
    font-family: var(--gtp-font);
    font-size: 15px;
    line-height: 1.5;
}

.gtp-modal::backdrop {
    background: rgba(16, 19, 23, .6);
}

.gtp-modal *, .gtp-modal *::before, .gtp-modal *::after {
    box-sizing: border-box;
}

.gtp-quick-form {
    position: relative;
    margin: 0;
    padding: 28px;
}

.gtp-quick-body h2 {
    margin: 0 0 6px;
    padding: 0;
    font-size: 22px;
    line-height: 1.25;
    text-transform: none;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
}

.gtp-quick-lead {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--gtp-ink-2);
}

.gtp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gtp-ink-2);
    background: none;
    border: 0;
    border-radius: var(--gtp-radius-sm);
    cursor: pointer;
}

.gtp-modal-close:hover {
    background: var(--gtp-surface);
    color: var(--gtp-ink);
}

.gtp-quick-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 14px;
    background: var(--gtp-surface);
    border-radius: var(--gtp-radius-sm);
}

.gtp-quick-item-qty {
    flex-shrink: 0;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    white-space: nowrap;
}

.gtp-field {
    margin-bottom: 12px;
}

.gtp-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--gtp-ink-2);
}

.gtp-field input, .gtp-field textarea {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--gtp-ink);
    background: var(--gtp-bg);
    border: 1px solid #d3d8dd;
    border-radius: var(--gtp-radius-sm);
    resize: vertical;
}

.gtp-field input:focus, .gtp-field textarea:focus {
    outline: none;
    border-color: var(--gtp-accent);
    box-shadow: 0 0 0 3px var(--gtp-accent-soft);
}

.gtp-field input[aria-invalid="true"] {
    border-color: #c62828;
}

.gtp-consent {
    display: flex;
    gap: 8px;
    margin: 4px 0 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gtp-ink-2);
    cursor: pointer;
}

.gtp-consent input {
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--gtp-accent);
}

.gtp-consent a {
    color: var(--gtp-accent);
}

.gtp-form-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #b3261e;
    background: #fdecea;
    border-radius: var(--gtp-radius-sm);
}

.gtp-form-error[hidden] {
    display: none;
}

.gtp-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
    color: #fff;
    background: var(--gtp-accent);
    border: 0;
    border-radius: var(--gtp-radius-sm);
    cursor: pointer;
}

.gtp-btn-primary:hover {
    background: var(--gtp-accent-hover);
}

.gtp-btn-primary[disabled] {
    opacity: .6;
    cursor: default;
}

.gtp-quick-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--gtp-muted);
    text-align: center;
}

.gtp-quick-done {
    padding: 24px 0 4px;
    text-align: center;
}

.gtp-quick-done[hidden], .gtp-quick-body[hidden] {
    display: none;
}

.gtp-quick-done svg {
    margin: 0 auto 12px;
    color: var(--gtp-ok);
}

.gtp-quick-done p {
    margin: 0 0 20px;
    font-size: 16px;
}

.gtp-quick-done .gtp-btn-ghost {
    max-width: 200px;
    margin: 0 auto;
}

/* ---------- Товары раздела ---------- */
.gtp-related {
    margin-top: 48px;
}

.gtp-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.gtp-related-head h2 {
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1.3;
    text-transform: none;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
}

.gtp-related-head .gtp-term-link {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.gtp-rel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gtp-rel-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    color: var(--gtp-ink) !important;
    text-decoration: none !important;
    background: var(--gtp-bg);
    border: 1px solid var(--gtp-line);
    border-radius: var(--gtp-radius);
    transition: border-color .15s, box-shadow .15s;
}

.gtp-rel-card:hover {
    border-color: #cfd4da;
    box-shadow: 0 10px 24px -14px rgba(20, 24, 30, .35);
}

.gtp-rel-card:focus-visible {
    outline: 2px solid var(--gtp-accent);
    outline-offset: 2px;
}

.gtp-rel-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
    overflow: hidden;
}

.gtp-rel-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gtp-rel-name {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    font-family: var(--gtp-font-bold);
}

.gtp-rel-card:hover .gtp-rel-name {
    color: var(--gtp-accent);
}

.gtp-rel-meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--gtp-muted);
}

.gtp-rel-price {
    margin-top: auto;
    padding-top: 10px;
    font-size: 18px;
    font-weight: 800;
    font-family: var(--gtp-font-bold);
}

@media (max-width: 1100px) {
    .gtp-rel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gtp-quick-form {
        padding: 22px 18px;
    }

    .gtp-related {
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid var(--gtp-line);
    }

    .gtp-related-head {
        flex-direction: column;
        gap: 4px;
    }

    .gtp-related-head h2 {
        font-size: 19px;
    }

    .gtp-rel-grid {
        gap: 10px;
    }

    .gtp-rel-card {
        padding: 10px;
    }

    .gtp-rel-name {
        font-size: 14px;
    }

    .gtp-rel-price {
        font-size: 16px;
    }
}
