.source-section {
    position: relative;
    padding: clamp(72px, 8vw, 120px) 0;
    border-top: 1px solid rgba(196, 174, 159, 0.24);
}

.source-section--white {
    background: #fff;
}

.source-section--cream {
    background: #f9f7f2;
}

.source-section--intro {
    background: #efe8df;
}

.source-section--factory {
    background: #24241f;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.source-section--process {
    background: #f7f3ed;
}

.source-section--contacts {
    background: #dde3dc;
}

.source-section--about {
    background: #e7dbcf;
}

.source-section__inner {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(48px, 7vw, 104px);
    align-items: start;
}

.source-section__header {
    position: sticky;
    top: 112px;
}

.source-section__number {
    display: block;
    margin-bottom: 18px;
    color: #835419;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.source-section__title {
    max-width: 450px;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(34px, 2.8vw, 46px);
    font-weight: 600;
    line-height: 0.96;
    overflow-wrap: normal;
    word-break: normal;
    text-transform: uppercase;
}

.source-section__content {
    max-width: 720px;
    min-width: 0;
}

.source-section__paragraph {
    margin: 0 0 24px;
    color: #5f534c;
    font-size: 16px;
    line-height: 1.75;
}

/* Ссылки в тексте секций */
.source-section__paragraph a,
.terms-list__text a {
    color: #835419;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.source-section__paragraph a:hover,
.terms-list__text a:hover { color: #26170c; }

.source-section__subheading {
    margin: 48px 0 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(196, 174, 159, 0.42);
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.08;
}

.source-section__label {
    margin: 30px 0 12px;
    color: #835419;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.source-section__media {
    margin: 0 0 38px;
}

.source-section__media img,
.factory-showcase img,
.factory-showcase video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.source-section__media--single {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 18px 46px rgba(38, 23, 12, 0.12);
}

.source-section__media--pair {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 12px;
}

.source-section__media--pair img {
    min-height: 260px;
    border-radius: 4px;
}

.source-section__media--warehouse img {
    object-position: center 58%;
}

.factory-showcase {
    margin-bottom: 44px;
}

.factory-showcase__video {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: #111;
}

.factory-showcase__video video {
    aspect-ratio: 16 / 9;
}

.factory-showcase__video figcaption {
    padding: 16px 18px;
    background: #171713;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.factory-showcase__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.factory-showcase__gallery img {
    aspect-ratio: 4 / 3;
    min-width: 0;
    border-radius: 3px;
}

.source-section--factory .source-section__number,
.source-section--factory .source-section__label {
    color: #d4a373;
}

.source-section--factory .source-section__title,
.source-section--factory .source-section__subheading {
    color: #fff;
}

.source-section--factory .source-section__paragraph {
    color: rgba(255, 255, 255, 0.72);
}

.source-section--factory .source-section__subheading {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.keyword-band {
    padding: 64px 0;
    background: #fff;
    border-bottom: 1px solid rgba(196, 174, 159, 0.24);
}

.keyword-band__inner {
    width: min(calc(100% - 48px), 920px);
    margin: 0 auto;
}

.keyword-band__title {
    margin-bottom: 20px;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.keyword-band__text {
    max-width: 760px;
    color: #5f534c;
    font-size: 15px;
    line-height: 1.7;
}

.feedback-section {
    padding: clamp(72px, 8vw, 112px) 0;
    background: #26170c;
    color: #fff;
}

.feedback-section__inner {
    width: min(calc(100% - 48px), 920px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(42px, 7vw, 88px);
    align-items: center;
}

.feedback-section__eyebrow {
    margin-bottom: 12px;
    color: #d4a373;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.feedback-section__title {
    color: #fff;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.feedback-form {
    display: grid;
    gap: 20px;
}

.feedback-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.feedback-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: #fff;
    color: #26170c;
    font-size: 14px;
}

.feedback-form button {
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 4px;
    background: #835419;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.feedback-form button:hover {
    background: #d4a373;
    color: #26170c;
}

@media (max-width: 767px) {
    .source-section {
        padding: 64px 0;
    }

    .source-section__inner,
    .feedback-section__inner {
        width: min(calc(100% - 40px), 1120px);
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .source-section__header {
        position: static;
    }

    .source-section__title {
        font-size: 34px;
    }

    .source-section__paragraph {
        font-size: 15px;
        line-height: 1.7;
    }

    .source-section__subheading {
        margin-top: 38px;
        font-size: 30px;
    }

    .source-section__media--pair {
        grid-template-columns: 1fr;
    }

    .source-section__media--pair img {
        min-height: 220px;
    }

    .factory-showcase__gallery {
        grid-template-columns: 1fr 1fr;
    }

    .factory-showcase__gallery img:last-child {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 8;
    }

    .keyword-band__inner {
        width: min(calc(100% - 40px), 920px);
    }
}

/* Шапка сайта: фон (нужен всем страницам, раньше был только инлайном в index.html) */
.site-header{background:rgba(246,243,242,.97)}

/* ============================================================
   Секции главной страницы (пересборка после миграции)
   ============================================================ */

.section-kicker {
    display: block;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 2px solid #d4a373;
    color: #835419;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.section-kicker--light { color: #d4a373; }

.section-title {
    margin: 0 0 28px;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 600;
    line-height: 1.02;
    text-transform: uppercase;
}

.section-title--light { color: #f6f3f2; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    border-radius: 4px;
    background: #26170c;
    color: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background .25s ease;
}

.btn-primary:hover { background: #835419; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border: 1.5px solid #26170c;
    border-radius: 4px;
    color: #26170c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all .25s ease;
}

.btn-ghost:hover { background: #26170c; color: #fff; }

/* --- О компании --- */

.about-section {
    background: #f9f7f2;
    padding: clamp(72px, 8vw, 120px) 0;
}

.about-section__inner {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
}

.about-section__copy p {
    margin: 0 0 22px;
    color: #5f534c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.about-section__lead {
    color: #26170c !important;
    font-size: 19px !important;
    line-height: 1.6 !important;
}

.about-section__copy .btn-primary { margin-top: 10px; }

/* --- Производство --- */

.production-section {
    background: #24241f;
    padding: clamp(72px, 8vw, 120px) 0;
}

.production-section__inner {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
}

.production-section__header { margin-bottom: clamp(36px, 4vw, 56px); }

.production-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.production-section__video { margin: 0; }

.production-section__video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    background: #000;
}

.production-section__video figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.production-section__copy p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 15.5px;
    line-height: 1.75;
}

.production-section__gallery {
    margin-top: clamp(36px, 4vw, 56px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 24px);
}

.production-section__gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

/* --- Породы древесины --- */

.species-section {
    background: #fff;
    padding: clamp(72px, 8vw, 120px) 0;
}

.species-section__inner {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
}

.species-section__header {
    margin-bottom: clamp(36px, 4vw, 56px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.species-section__header .section-title { margin-bottom: 0; }

.species-section__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 28px);
}

.species-card {
    display: block;
    border: 1px solid rgba(210, 196, 188, 0.6);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}

.species-card:hover {
    border-color: #d4a373;
    box-shadow: 0 20px 40px -20px rgba(38, 23, 12, 0.3);
    transform: translateY(-3px);
}

.species-card figure {
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.species-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.species-card:hover img { transform: scale(1.05); }

.species-card h3 {
    margin: 18px 18px 6px;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.species-card__tags {
    margin: 0 18px 18px;
    color: #81756e;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --- Укладка: этапы --- */

.steps-section {
    background: #f7f3ed;
    padding: clamp(72px, 8vw, 120px) 0;
}

.steps-section__inner {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
}

.steps-section__header { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }

.steps-section__lead {
    margin: 0;
    color: #5f534c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.steps-section__grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 28px);
}

.step-card {
    background: #fff;
    border-radius: 4px;
    padding: 26px 24px 28px;
    border-top: 2px solid #d4a373;
}

.step-card__num {
    display: block;
    margin-bottom: 18px;
    color: #d4a373;
    font-family: "Libre Caslon Text", serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.step-card h3 {
    margin: 0 0 12px;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
}

.step-card p {
    margin: 0;
    color: #5f534c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

.steps-section__details {
    margin-top: clamp(28px, 3vw, 40px);
    border: 1px solid rgba(129, 117, 110, 0.3);
    border-radius: 4px;
    background: #fff;
}

.steps-section__details summary {
    cursor: pointer;
    padding: 18px 24px;
    color: #26170c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.steps-section__details > div { padding: 0 24px 24px; max-width: 800px; }

.steps-section__details h4 {
    margin: 22px 0 10px;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.steps-section__details p {
    margin: 0 0 16px;
    color: #5f534c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14.5px;
    line-height: 1.7;
}

.steps-section__details a { color: #835419; text-decoration: underline; }

/* --- Контакты --- */

.contacts-section {
    background: #fff;
    padding: clamp(72px, 8vw, 120px) 0;
}

.contacts-section__inner {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
}

.contacts-section__header { margin-bottom: clamp(32px, 4vw, 48px); }

.contacts-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 28px);
}

.contact-card {
    background: #f9f7f2;
    border-radius: 4px;
    padding: 28px 26px;
}

.contact-card h3 {
    margin: 0 0 14px;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-card p {
    margin: 0 0 10px;
    color: #5f534c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
}

.contact-card__phones {
    margin-top: 16px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-card__phones a {
    color: #26170c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.contact-card__phones a:hover { color: #835419; }

.contacts-section__note {
    margin: clamp(28px, 3vw, 40px) 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(210, 196, 188, 0.6);
    color: #81756e;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    max-width: 760px;
}

.contacts-section__note a { color: #835419; text-decoration: underline; }

/* --- Адаптив --- */

@media (max-width: 1023px) {
    .species-section__grid { grid-template-columns: repeat(2, 1fr); }
    .steps-section__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .about-section__inner,
    .production-section__grid { grid-template-columns: 1fr; }
    .production-section__gallery { grid-template-columns: 1fr; }
    .contacts-section__grid { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
    .species-section__grid,
    .steps-section__grid { grid-template-columns: 1fr; }
}

/* --- Награды в блоке «О компании» --- */

.about-awards {
    border: 1px solid rgba(129, 117, 110, 0.25);
    border-radius: 4px;
    background: #fff;
    padding: 26px 26px 24px;
}

.about-awards__label {
    display: block;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 2px solid #d4a373;
    color: #835419;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.about-awards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.award-thumb {
    display: block;
    padding: 0;
    border: 1px solid rgba(129, 117, 110, 0.3);
    border-radius: 4px;
    background: #f9f7f2;
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.award-thumb:hover {
    border-color: #d4a373;
    box-shadow: 0 14px 28px -14px rgba(38, 23, 12, 0.35);
    transform: translateY(-2px);
}

.award-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.about-awards__caption {
    margin: 18px 0 0;
    color: #81756e;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

/* --- Полоса фактов --- */

.facts-band {
    width: min(calc(100% - 48px), 1120px);
    margin: clamp(48px, 5vw, 72px) auto 0;
    padding: clamp(24px, 3vw, 36px) 0 0;
    border-top: 1px solid rgba(129, 117, 110, 0.3);
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.facts-band li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
    border-left: 1px solid rgba(210, 196, 188, 0.7);
}

.facts-band li:first-child { border-left: none; padding-left: 0; }

.facts-band strong {
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1;
}

.facts-band span {
    color: #81756e;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

/* --- Лайтбокс наград --- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(24, 14, 9, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox img {
    max-width: min(92vw, 900px);
    max-height: 92vh;
    border-radius: 4px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease;
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }

@media (max-width: 767px) {
    .facts-band { grid-template-columns: 1fr 1fr; }
    .facts-band li:nth-child(3) { border-left: none; padding-left: 0; }
}

/* --- Галерея сортов (страница штучного паркета) --- */

.sort-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 8px 0 32px;
}

.sort-grid--mini { grid-template-columns: repeat(3, 1fr); }

.sort-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    border: 1px solid rgba(210, 196, 188, 0.6);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sort-card:hover {
    border-color: #d4a373;
    box-shadow: 0 18px 36px -18px rgba(38, 23, 12, 0.3);
    transform: translateY(-2px);
}

.sort-card figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.sort-card--mini figure { aspect-ratio: 1 / 1; }

.sort-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.sort-card:hover img { transform: scale(1.04); }

.sort-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
}

.sort-card__name {
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
}

.sort-card__desc {
    color: #5f534c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
}

.sort-card__hint {
    margin-top: 4px;
    color: #835419;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sort-card--mini .sort-card__body { padding: 12px 14px 14px; }
.sort-card--mini .sort-card__name { font-size: 17px; }

/* --- Лайтбокс: навигация и подписи --- */

.lightbox__stage {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: min(92vw, 900px);
}

.lightbox__stage img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 4px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.lightbox__stage figcaption {
    display: flex;
    align-items: baseline;
    gap: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lightbox__counter { color: rgba(255, 255, 255, 0.5); }

.lightbox__nav {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    margin: 0 clamp(4px, 2vw, 24px);
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease;
}

.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox__nav[hidden] { display: none; }

@media (max-width: 767px) {
    .sort-grid { grid-template-columns: 1fr; }
    .sort-grid--mini { grid-template-columns: repeat(3, 1fr); }
    .lightbox__nav {
        position: fixed;
        bottom: 18px;
        top: auto;
    }
    .lightbox__nav--prev { left: 18px; }
    .lightbox__nav--next { right: 18px; }
}

/* ==========================================================================
   Прайс-лист: блок вместо прямых цен
   ========================================================================== */

.price-cta {
    margin: 40px 0 8px;
    padding: 30px 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    border: 1px solid rgba(129, 117, 110, 0.3);
    border-left: 3px solid #d4a373;
    border-radius: 4px;
    background: #fff;
}

.price-cta__text { min-width: 0; }

.price-cta__title {
    margin: 0 0 8px;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.price-cta__note {
    margin: 0;
    color: #5f534c;
    font-size: 15px;
    line-height: 1.6;
}

.price-cta__note a { color: #835419; text-decoration: underline; }

.price-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.price-cta__button {
    min-height: 48px;
    padding: 14px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
    background: #835419;
    color: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.price-cta__button:hover,
.price-cta__button:focus-visible { background: #26170c; }

.price-cta__phone {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #26170c;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.price-cta__phone:hover { color: #835419; }

/* тёмный вариант — для секций на тёмном фоне */
.source-section--factory .price-cta {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

.source-section--factory .price-cta__title { color: #fff; }
.source-section--factory .price-cta__note { color: rgba(255, 255, 255, 0.78); }
.source-section--factory .price-cta__phone { color: #fff; }

/* ==========================================================================
   Галереи: работы, розетки, бордюры, фасады
   ========================================================================== */

.media-grid {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.media-grid--works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid--tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.media-grid--facades { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.media-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-card__button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(129, 117, 110, 0.22);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-card__button:hover,
.media-card__button:focus-visible {
    border-color: #d4a373;
    box-shadow: 0 14px 34px rgba(38, 23, 12, 0.14);
}

.media-card__button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card__button:hover img { transform: scale(1.04); }

.media-grid--works .media-card__button { aspect-ratio: 4 / 3; }
.media-grid--tiles .media-card__button { aspect-ratio: 1 / 1; padding: 6px; }
.media-grid--tiles .media-card__button img { object-fit: contain; }
.media-grid--facades .media-card__button { aspect-ratio: 2 / 3; }

.media-card__caption {
    color: #5f534c;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   Образцы цвета и профили плинтуса
   ========================================================================== */

.profile-row {
    margin: 0 0 30px;
    padding: 26px 20px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    justify-items: center;
    border: 1px solid rgba(129, 117, 110, 0.22);
    border-radius: 4px;
    background: #fff;
}

.profile-row img {
    height: 118px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.swatch-grid {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.swatch-grid--named { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.swatch-grid--dense { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.swatch-grid--strips { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.swatch {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.swatch img {
    display: block;
    width: 100%;
    border-radius: 3px;
    border: 1px solid rgba(129, 117, 110, 0.28);
}

.swatch-grid--named img { aspect-ratio: 1 / 1; object-fit: cover; border-color: transparent; }
.swatch-grid--dense img { aspect-ratio: 1 / 1; object-fit: cover; }
.swatch-grid--strips img { aspect-ratio: 5 / 2; object-fit: cover; }

.swatch figcaption {
    color: #5f534c;
    font-size: 12px;
    line-height: 1.4;
}

/* ==========================================================================
   Таблица характеристик
   ========================================================================== */

.spec-table-wrap {
    margin: 0 0 30px;
    overflow-x: auto;
    border: 1px solid rgba(129, 117, 110, 0.24);
    border-radius: 4px;
    background: #fff;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.spec-table caption {
    padding: 16px 20px 0;
    color: #26170c;
    font-family: "Libre Caslon Text", serif;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

.spec-table th,
.spec-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(196, 174, 159, 0.34);
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    width: 58%;
    color: #5f534c;
    font-weight: 400;
}

.spec-table td {
    color: #26170c;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Адаптив для новых блоков
   ========================================================================== */

@media (max-width: 899px) {
    .media-grid--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .media-grid--facades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .swatch-grid--dense { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .swatch-grid--named { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .price-cta {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 22px;
    }
    .media-grid--works { grid-template-columns: 1fr; }
    .media-grid--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .media-grid--facades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swatch-grid--dense { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .swatch-grid--named,
    .swatch-grid--strips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px 14px; }
    .profile-row img { height: 92px; }
}

/* ============================================================
   Хлебные крошки
   ============================================================ */

.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #81756e;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li::after {
    content: "/";
    margin-left: 8px;
    color: #c4ae9f;
}

.breadcrumbs li:last-child::after {
    content: none;
}

.breadcrumbs a {
    color: #835419;
    text-decoration: none;
    border-bottom: 1px solid rgba(131, 84, 25, 0.28);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #26170c;
    border-bottom-color: #26170c;
}

.breadcrumbs span[aria-current] {
    color: #5f534c;
}

/* ============================================================
   Подменю пород (штучный паркет)
   ============================================================ */

.species-nav {
    border-top: 1px solid rgba(196, 174, 159, 0.24);
    border-bottom: 1px solid rgba(196, 174, 159, 0.24);
    background: #f9f7f2;
}

.species-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.species-nav__label {
    margin-right: 6px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #835419;
}

.species-nav__link {
    padding: 8px 18px;
    border: 1px solid rgba(129, 117, 110, 0.3);
    border-radius: 3px;
    background: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #5f534c;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.species-nav__link:hover {
    color: #26170c;
    border-color: #d4a373;
}

.species-nav__link[aria-current="page"] {
    background: #26170c;
    border-color: #26170c;
    color: #fff;
}

@media (max-width: 640px) {
    .species-nav__inner {
        padding: 14px 18px;
        gap: 8px;
    }

    .species-nav__label {
        width: 100%;
        margin-bottom: 2px;
    }

    .species-nav__link {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* ============================================================
   Карточки пород на странице-хабе
   ============================================================ */

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
    margin: 40px 0 8px;
}

.species-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(129, 117, 110, 0.28);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.species-card:hover {
    border-color: #d4a373;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(38, 23, 12, 0.09);
}

.species-card figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #efe8df;
}

.species-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.species-card__body {
    padding: 20px 22px 24px;
}

.species-card__name {
    display: block;
    margin-bottom: 8px;
    font-family: "Libre Caslon Text", serif;
    font-size: 22px;
    font-weight: 600;
    color: #26170c;
}

.species-card__meta {
    display: block;
    margin-bottom: 10px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #835419;
}

.species-card__desc {
    display: block;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #5f534c;
}

/* Карточка раздела без фотографии */
.species-card--text .species-card__body {
    padding: 24px 22px 26px;
    border-top: 3px solid #d4a373;
}

/* ============================================================
   Сравнительная таблица пород
   ============================================================ */

.species-table-wrap {
    margin: 36px 0 8px;
    overflow-x: auto;
}

.species-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
}

.species-table th,
.species-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(129, 117, 110, 0.22);
}

.species-table thead th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #835419;
    border-bottom: 1px solid rgba(129, 117, 110, 0.4);
}

.species-table tbody th {
    font-weight: 600;
    color: #26170c;
}

.species-table tbody th a {
    color: #26170c;
    text-decoration: none;
    border-bottom: 1px solid #d4a373;
}

.species-table tbody th a:hover {
    color: #835419;
}

.species-table td {
    color: #5f534c;
}

.species-table tbody tr:hover {
    background: #f9f7f2;
}

/* Доступность позиций в таблице (есть / под заказ) */
.species-table .t-yes {
    color: #4a6b3a;
    font-weight: 600;
}

.species-table .t-req {
    color: #835419;
    font-style: italic;
}

.species-table .t-sub {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #81756e;
}

/* Подписи в плотной сетке образцов: длинные названия не должны налезать */
.swatch-grid--dense figcaption {
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* ============================================================
   Атлас пород / видов — интерактивный подборщик
   ============================================================ */

.atlas {
    border-top: 1px solid rgba(196, 174, 159, 0.24);
    background: #f9f7f2;
    padding: clamp(64px, 7vw, 104px) 0;
}

.atlas__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.atlas__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(129, 117, 110, 0.25);
}

.atlas__kicker {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #835419;
}

.atlas__title {
    max-width: 640px;
    margin: 0;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(30px, 3.4vw, 50px);
    font-weight: 600;
    line-height: 1.04;
    color: #26170c;
}

.atlas__lead {
    max-width: 420px;
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #5f534c;
}

@media (min-width: 900px) {
    .atlas__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 48px;
    }
}

.atlas__body {
    display: grid;
    gap: 40px;
    margin-top: 44px;
}

@media (min-width: 960px) {
    .atlas__body {
        grid-template-columns: 268px minmax(0, 1fr);
        gap: 56px;
    }
}

/* ── левый индекс ── */

.atlas__index {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.atlas__index::-webkit-scrollbar { display: none; }

@media (min-width: 960px) {
    .atlas__index {
        flex-direction: column;
        gap: 0;
        overflow: visible;
        padding-bottom: 0;
    }
}

.atlas__item {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.atlas__item:hover { border-bottom-color: rgba(129, 117, 110, 0.35); }
.atlas__item[aria-selected="true"] { border-bottom-color: #a8501f; }

.atlas__item-plate {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(95, 83, 76, 0.55);
}

.atlas__item[aria-selected="true"] .atlas__item-plate { color: #a8501f; }

.atlas__dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.atlas__item[aria-selected="true"] .atlas__dot { transform: scale(1.35); }

.atlas__item-name {
    font-family: "Libre Caslon Text", serif;
    font-size: 17px;
    color: #5f534c;
    white-space: nowrap;
}

.atlas__item[aria-selected="true"] .atlas__item-name { color: #26170c; }

.atlas__item-latin {
    display: none;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-style: italic;
    color: rgba(95, 83, 76, 0.5);
}

@media (min-width: 960px) {
    .atlas__item-latin { display: inline; }
    .atlas__item { padding-right: 0; }
}

/* ── сцена ── */

.atlas__stage-row {
    display: grid;
    gap: 28px;
    align-items: start;
}

@media (min-width: 760px) {
    .atlas__stage-row { grid-template-columns: 1.35fr 1fr; gap: 32px; }
}

.atlas__stage {
    border: 1px solid rgba(129, 117, 110, 0.3);
    background: #fff;
    overflow: hidden;
}

.atlas__figure {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    background: #efe8df;
}

.atlas__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.32s ease;
}

.atlas__figure.is-swapping img { opacity: 0; }

.atlas__zoom {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: none;
    cursor: zoom-in;
    padding: 0;
}

.atlas__zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    border-radius: 3px;
    background: rgba(38, 23, 12, 0.76);
    color: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.atlas__zoom:hover .atlas__zoom-hint,
.atlas__zoom:focus-visible .atlas__zoom-hint { opacity: 1; }

.atlas__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: repeating-linear-gradient(45deg, #efe8df, #efe8df 12px, #e7dbcf 12px, #e7dbcf 24px);
}

.atlas__empty p {
    margin: 0;
    max-width: 240px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #5f534c;
}

.atlas__empty a {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #26170c;
    border-bottom: 1px solid #d4a373;
    text-decoration: none;
}

.atlas__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid rgba(129, 117, 110, 0.3);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.atlas__caption-left { color: #5f534c; }
.atlas__caption-right { color: #a8501f; }

/* ── описание ── */

.atlas__info { display: flex; flex-direction: column; gap: 18px; }

.atlas__blurb {
    margin: 0;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.34;
    color: #26170c;
}

.atlas__grade-desc {
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    line-height: 1.62;
    color: #5f534c;
}

.atlas__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    color: #81756e;
}

.atlas__link {
    align-self: flex-start;
    padding: 10px 20px;
    border: 1px solid #26170c;
    border-radius: 3px;
    background: #26170c;
    color: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.atlas__link:hover { background: transparent; color: #26170c; }

/* ── регулятор ── */

.atlas__scale { margin-top: 34px; }

.atlas__scale-ends {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.atlas__scale-ends span:first-child { color: #81756e; }
.atlas__scale-ends span:last-child { color: #a8501f; }

.atlas__track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b9ada4 0%, #a8501f 100%);
}

.atlas__range {
    position: absolute;
    inset: -9px 0;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.atlas__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid #26170c;
    border-radius: 50%;
    background: #fff;
    cursor: grab;
}

.atlas__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid #26170c;
    border-radius: 50%;
    background: #fff;
    cursor: grab;
}

.atlas__range:focus-visible { outline: 2px solid #835419; outline-offset: 6px; }

.atlas__ticks {
    display: grid;
    gap: 4px;
    margin-top: 14px;
}

.atlas__tick {
    padding: 4px 2px;
    border: 0;
    background: none;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(95, 83, 76, 0.5);
    cursor: pointer;
    transition: color 0.2s ease;
}

.atlas__tick:hover { color: #5f534c; }
.atlas__tick[aria-selected="true"] { color: #26170c; }

/* ── лента образцов (плинтус) ── */

.atlas__filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.atlas__search {
    flex: 1 1 220px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(129, 117, 110, 0.4);
    border-radius: 3px;
    background: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    color: #26170c;
}

.atlas__search:focus-visible { outline: 2px solid #835419; outline-offset: 1px; }

.atlas__count {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    color: #81756e;
}

.atlas__swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    max-height: 330px;
    overflow-y: auto;
}

.atlas__swatch {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    background: none;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease;
}

.atlas__swatch:hover { border-color: rgba(212, 163, 115, 0.8); }
.atlas__swatch[aria-selected="true"] { border-color: #26170c; }

.atlas__swatch img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.atlas__swatch span {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 10px;
    line-height: 1.3;
    color: #5f534c;
    overflow-wrap: anywhere;
}

.atlas__noresult {
    margin: 18px 0 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    color: #81756e;
}

@media (prefers-reduced-motion: reduce) {
    .atlas__figure img,
    .atlas__dot,
    .atlas__zoom-hint { transition: none; }
}

/* Карточка сортировки, у которой пока нет фото */
.sort-card--nophoto {
    cursor: default;
}

.sort-card--nophoto figure {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #efe8df, #efe8df 12px, #e7dbcf 12px, #e7dbcf 24px);
}

.sort-card--nophoto figure::after {
    content: "Фото готовится";
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #81756e;
}

.sort-card__ask {
    display: block;
    margin-top: 6px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #835419;
}

/* Плитка-образец без увеличения: розетки и бордюры показываем статично */
.media-card__button--static {
    cursor: default;
}

.media-card__button--static:hover,
.media-card__button--static:focus-visible {
    border-color: rgba(129, 117, 110, 0.22);
    box-shadow: none;
}

.media-card__button--static:hover img {
    transform: none;
}

/* ============================================================
   Карточки-позиции (состав изделия)
   ============================================================ */

.spec-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin: 30px 0 8px;
}

.spec-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 22px 24px;
    border: 1px solid rgba(129, 117, 110, 0.26);
    border-left: 3px solid #d4a373;
    border-radius: 4px;
    background: #fff;
}

.spec-card__unit {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #835419;
}

.spec-card__name {
    font-family: "Libre Caslon Text", serif;
    font-size: 19px;
    line-height: 1.25;
    color: #26170c;
}

.spec-card__desc {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #5f534c;
}

.spec-card__note {
    margin-top: auto;
    padding-top: 10px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    color: #81756e;
}

/* ============================================================
   Условия заказа
   ============================================================ */

.terms-list {
    margin: 28px 0 8px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(129, 117, 110, 0.24);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(129, 117, 110, 0.24);
}

.terms-list li {
    display: grid;
    gap: 4px 24px;
    padding: 18px 22px;
    background: #fff;
}

@media (min-width: 720px) {
    .terms-list li {
        grid-template-columns: 210px minmax(0, 1fr);
        align-items: baseline;
    }
}

.terms-list dt,
.terms-list__label {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #835419;
}

.terms-list__text {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #26170c;
}

.terms-list__text strong { font-weight: 700; }

/* ============================================================
   Вопросы и ответы
   ============================================================ */

.faq {
    margin: 28px 0 8px;
    border-top: 1px solid rgba(129, 117, 110, 0.24);
}

.faq details {
    border-bottom: 1px solid rgba(129, 117, 110, 0.24);
}

.faq summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 2px;
    cursor: pointer;
    list-style: none;
    font-family: "Libre Caslon Text", serif;
    font-size: 17px;
    line-height: 1.35;
    color: #26170c;
    transition: color 0.2s ease;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #835419; }

.faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 22px;
    line-height: 1;
    color: #835419;
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    content: "−";
}

.faq__answer {
    margin: 0;
    padding: 0 2px 20px;
    max-width: 62ch;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 15px;
    line-height: 1.68;
    color: #5f534c;
}

@media (prefers-reduced-motion: reduce) {
    .faq summary, .faq summary::after { transition: none; }
}

/* ============================================================
   Сетка укладок (инженерная доска) — крупные фото рисунка
   ============================================================ */

.media-grid--patterns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.media-grid--patterns .media-card__button {
    aspect-ratio: 1 / 1;
    padding: 0;
}

.media-grid--patterns .media-card__button img {
    object-fit: cover;
}

.media-grid--patterns .media-card__caption strong {
    display: block;
    margin-bottom: 3px;
    font-family: "Libre Caslon Text", serif;
    font-size: 16px;
    font-weight: 600;
    color: #26170c;
}

@media (max-width: 899px) {
    .media-grid--patterns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 520px) {
    .media-grid--patterns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .media-grid--patterns .media-card__caption { font-size: 12px; }
}
