/* Навигация — общая для всех страниц сайта */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}
.nav-logo {
    font-weight: 800;
    font-size: 28px;
}

.nav-logo a {
    text-decoration: none;
    color: var(--ink);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 16px;
}

:root {
    --ink: #1D1B19;
    --ink-muted: #6E6A64;
    --accent: #57534C;
    --accent-light: #A8927A;
    --border: #DDD9D2;
    --card-dark-1: #2B2823;
    --card-dark-2: #171512;
}

* { box-sizing: border-box; }

.btn-primary {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    background: #EEF1F0;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
}

.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #EEF1F0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.pill input:checked + span { background: var(--accent); color: white; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 700px) {
    .nav { flex-wrap: wrap; gap: 12px 24px; padding: 16px 0; }
    .nav-links { flex-wrap: wrap; gap: 8px 20px; }
    .nav-logo { font-size: 20px; }
}

html, body { overflow-x: hidden; overflow-x: clip; }

.product-card, .product-tile { position: relative; }
.product-card h3 a, .product-tile h3 a { color: inherit; text-decoration: none; }
.product-card h3 a::after, .product-tile h3 a::after { content: ""; position: absolute; inset: 0; }

.ref-banner {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    margin: 0 0 48px; padding: 32px 40px;
    border: 1px solid var(--border); border-radius: 20px;
    background: white; color: var(--ink); text-decoration: none;
}
.ref-banner h3 { margin: 0 0 6px; font-size: 20px; }
.ref-banner p { margin: 0; max-width: 560px; color: var(--ink-muted); font-size: 14px; }
.ref-banner-btn {
    flex-shrink: 0; padding: 14px 24px; border-radius: 999px;
    background: var(--ink); color: white; font-weight: 600; font-size: 15px;
}
@media (max-width: 700px) {
    .ref-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
}
/* Подвал — общий для всех страниц сайта */

.site-footer {
    margin: 64px 0 32px;
    padding: 48px 40px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--card-dark-1), var(--card-dark-2));
    color: #E8E4DD;
}
.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 40px;
}
.site-footer-logo {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}
.site-footer-title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-light);
}
.site-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #E8E4DD; text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: white; text-decoration: underline; }
.site-footer-muted { color: #A9A196; font-size: 14px; line-height: 1.6; }
.site-footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
    margin-top: 36px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px; color: #A9A196;
}
.site-footer-bottom a { color: #A9A196; text-decoration: underline; }
.site-footer-bottom a:hover { color: white; }

@media (max-width: 700px) {
    .site-footer { margin-top: 40px; padding: 28px 24px 20px; border-radius: 20px; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}