body { margin: 0; font-family: "Manrope", sans-serif; color: var(--ink); }
.page { padding: 0 7% 80px; }

.back-link {
    display: inline-block;
    margin: 24px 0 16px;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 14px;
}
.back-link:hover { color: var(--ink); }

/* Галерея и описание: две колонки, на телефоне одна */
.product-page {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    margin: 8px 0 48px;
}

.gallery-main {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: white;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }

.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.thumb {
    flex: 0 0 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: var(--accent); }

.product-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.product-category { font-size: 13px; color: var(--ink-muted); }
.product-summary h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere; }
.product-price { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.product-description { color: var(--ink-muted); line-height: 1.6; }
.product-description p { margin: 0 0 12px; }

/* Заявка на покупку */
.request-section {
    max-width: 560px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    margin-bottom: 56px;
    scroll-margin-top: 24px;
}
.request-section h2 { margin: 0 0 8px; font-size: 24px; }
.request-lead { color: var(--ink-muted); margin: 0 0 20px; }
.request-form { display: flex; flex-direction: column; gap: 16px; }
.request-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.request-form input[type="text"],
.request-form input[type="tel"] {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
}
.request-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.request-form .btn-primary { border: 0; cursor: pointer; font-family: inherit; }
.form-error { color: #8C4A42; font-size: 14px; margin: 0; }
.form-success { color: #2F6B3F; font-weight: 600; margin: 0 0 16px; }
.honeypot-field { position: absolute; left: -9999px; }

/* «С этим товаром часто берут» */
.related h2 { font-size: 24px; margin: 0 0 16px; }
.related-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}
.related-track .product-tile { flex: 0 0 220px; scroll-snap-align: start; }

.product-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}
.product-photo { aspect-ratio: 4 / 3; background: #EEF1F0; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.product-info h3 { margin: 0; font-size: 16px; }
.product-info .product-category { font-size: 12px; }
.product-tile-price { margin-top: 4px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 800px) {
    .product-page { grid-template-columns: 1fr; gap: 24px; }
    .product-summary h1 { font-size: 26px; }
    .request-section { padding: 20px; }
}