/* =============================================
   DESIGN SYSTEM:
   style:      corporate-clean
   borders:    rounded (8-14px карточки, 6px кнопки)
   shadows:    flat (border: 1px solid, no box-shadow)
   header:     centered-minimal
   cta:        solid (accent color, full width block)

   PALETTE:
   #2D5C7F  — steel blue (accent, headings, CTA)
   #F79C92  — soft coral (markers, stars)
   #1D2A3C  — dark navy (footer, body text headings)
   #ECF1F1  — page background
   ============================================= */

:root {
    --accent:  #2D5C7F;
    --coral:   #F79C92;
    --dark:    #1D2A3C;
    --bg:      #ECF1F1;
    --white:   #ffffff;
    --border:  #d0dce4;
    --text:    #3a4a58;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: clamp(14px, 4vw, 16px);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* ── HEADER centered-minimal ── */
.site-header {
    background: var(--white);
    padding: 20px 16px 0;
    text-align: center;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 16px;
}

.header-title {
    font-size: clamp(15px, 3.5vw, 20px);
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    letter-spacing: 0.01em;
}

.header-rule {
    height: 1px;
    background: var(--border);
    max-width: 100%;
}

/* ── MAIN ── */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

/* ── PRODUCT SECTION mobile-first ── */
.product-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .product-section {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── GALLERY ── */
.gallery-block {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .gallery-block {
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.gallery-img {
    display: none;
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.main-image-wrap {
    background: #f5f7f9;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 14px;
}

#img-1:checked ~ .main-image-wrap .img-1 { display: block; }
#img-2:checked ~ .main-image-wrap .img-2 { display: block; }
#img-3:checked ~ .main-image-wrap .img-3 { display: block; }
#img-4:checked ~ .main-image-wrap .img-4 { display: block; }

.thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.thumb-label {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    transition: border-color 0.2s;
}

.thumb-label:hover { border-color: var(--accent); }

.thumb-label img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    display: block;
}

#img-1:checked ~ .thumbnails label[for="img-1"],
#img-2:checked ~ .thumbnails label[for="img-2"],
#img-3:checked ~ .thumbnails label[for="img-3"],
#img-4:checked ~ .thumbnails label[for="img-4"] {
    border-color: var(--accent);
    border-width: 2px;
}

/* ── PRODUCT INFO ── */
.product-info {
    padding: 28px 24px;
}

.product-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-title {
    font-size: clamp(17px, 3.5vw, 24px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 12px;
}

.section-rule {
    height: 1px;
    background: var(--border);
    margin-bottom: 20px;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.feature-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    font-size: clamp(13px, 3.5vw, 14px);
    line-height: 1.6;
    color: var(--text);
}

.feature-marker {
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 6px;
}

.feature-content { flex: 1; }

.section-divider {
    height: 1px;
    background: #e8eff3;
}

.keywords-note {
    font-size: 13px;
    color: #6a7f8e;
    background: #f0f5f8;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
}

/* ── CTA solid ── */
.cta-wrap {
    text-align: center;
    margin-bottom: 48px;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(14px, 4vw, 16px);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 52px;
    min-height: 44px;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
    background: #1a4560;
    transform: translateY(-1px);
}

.cta-button:active { transform: translateY(0); }

/* ── REVIEWS ── */
.reviews-section {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.reviews-header-row {
    margin-bottom: 4px;
}

.reviews-title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.reviews-rule {
    height: 2px;
    background: var(--accent);
    width: 48px;
    margin: 10px 0 28px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-item {
    padding: 20px 0;
}

.review-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.review-meta { flex: 1; }

.review-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    margin: 0 0 3px;
}

.review-stars-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.stars {
    color: var(--coral);
    font-size: 14px;
    font-weight: 700;
}

.review-headline {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.review-date {
    font-size: 12px;
    color: #8a9daa;
    margin: 0 0 8px;
}

.review-badge {
    display: inline-block;
    background: #f0f5f8;
    border: 1px solid var(--border);
    color: #5a7080;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.review-text {
    font-size: clamp(13px, 3.5vw, 14px);
    color: var(--text);
    line-height: 1.65;
    margin: 0;
}

.review-text p { margin: 0 0 8px; }
.review-text p:last-child { margin: 0; }

.review-divider {
    height: 1px;
    background: var(--border);
}

/* ── FOOTER ── */
.site-footer {
    background: var(--dark);
}

.footer-top-rule {
    height: 3px;
    background: var(--accent);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px;
    text-align: center;
}

.footer-name {
    font-weight: 600;
    font-size: 13px;
    color: #b0c4d0;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .footer-nav {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}

.footer-link {
    color: #7a9aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--coral); }

.footer-sep {
    color: #2a3e50;
    display: none;
}

@media (min-width: 768px) {
    .footer-sep { display: inline; }
}