/* Дополнения магазина к вёрстке: избранное, поиск, cookie, формы, пагинация.
   Базовая вёрстка живёт в style.css и не трогается. */

:root {
    /* верхняя чёрная панель с меню — она в потоке, её высоту вычитаем из первого экрана */
    --topbar-h: 40px;
}

/* --- Бейдж избранного в шапке --- */

.header__action--fav {
    position: relative;
}

.header__badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #C46A4B;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.header__badge[hidden] {
    display: none;
}

/* --- Кнопка избранного на карточке --- */

.product,
.pcard2 {
    position: relative;
}

.product__fav,
.pcard2__fav {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
}

.product:hover .product__fav,
.pcard2:hover .pcard2__fav,
.product__fav.is-active,
.pcard2__fav.is-active,
.product__fav:focus-visible,
.pcard2__fav:focus-visible {
    opacity: 1;
}

.product__fav img,
.pcard2__fav img,
.pcard__fav img {
    width: 18px;
    height: 18px;
    /* heart.svg белый — он рисовался для тёмной шапки.
       На светлой кнопке инвертируем, на активной тёмной возвращаем как есть. */
    filter: invert(1);
    transition: filter .2s;
}

.product__fav.is-active,
.pcard2__fav.is-active {
    background: #322828;
}

.product__fav.is-active img,
.pcard2__fav.is-active img {
    filter: none;
}

/* Кнопка избранного в карточке товара — по вёрстке белая с рамкой */

.pcard__fav img {
    width: 22px;
    height: 22px;
}

.pcard__fav.is-active {
    background: #322828;
    border-color: #322828;
}

.pcard__fav.is-active img {
    filter: none;
}

/* Цифры в блоке «о компании» лежали по макету в верхней трети фотографии,
   у самых картин, а нижняя половина кадра пустовала. Опускаем их ниже —
   сдвиг через transform, чтобы не трогать ни абсолютную раскладку макета
   (широкие экраны), ни сетку из медиазапроса. */

.about__stat,
.about__line {
    /* линии рисуют сетку вокруг цифр — двигаем их тем же сдвигом,
       иначе на широких экранах цифры уезжают из своих ячеек */
    transform: translateY(clamp(120px, 13.5vw, 240px));
}

/* От 1920px идёт макетная абсолютная раскладка: там до нижнего края фотографии
   остаётся всего около 120px, дальше начинается тёмная полоса с аудиторией —
   опускать сильнее нельзя, второй ряд цифр уходит под неё. */
@media (min-width: 1920px) {
    .about__stat,
    .about__line {
        transform: translateY(95px);
    }
}

/* Фото товара — всегда 3:4, как в ленте Instagram. В макете стояла жёсткая
   высота (616px, в медиазапросах clamp), и на широких экранах карточка
   вытягивалась почти вдвое: 367×616 вместо 367×489. */

.product__img,
.product__img--empty,
.pcard2__media,
.pcard2__img--empty {
    height: auto;
    aspect-ratio: 3 / 4;
}

.product__img--empty,
.pcard2__img--empty {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #EFEDE9;
}

.product__price--request,
.pcard2__price--request {
    font-size: 13px;
    line-height: 1.35;
    color: #6B615C;
}

/* --- Поиск --- */

.searchbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14vh 24px 24px;
    background: rgba(28, 22, 20, .58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: searchbox-fade .22s ease;
}

.searchbox[hidden] {
    display: none;
}

@keyframes searchbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes searchbox-rise {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

.searchbox__inner {
    position: relative;
    width: min(760px, 100%);
    padding: 28px 32px 32px;
    border-radius: 16px;
    background: #FBFAF8;
    box-shadow: 0 30px 80px rgba(20, 14, 12, .32);
    animation: searchbox-rise .26s ease;
}

.searchbox__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.searchbox__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #A9A099;
}

.searchbox__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: -6px;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6B615C;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.searchbox__close svg {
    width: 18px;
    height: 18px;
}

.searchbox__close:hover {
    background: #EFEDE9;
    color: #322828;
}

.searchbox__form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 64px;
    padding: 0 8px 0 20px;
    border: 1px solid #E4E1DA;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.searchbox__form:focus-within {
    border-color: #322828;
    box-shadow: 0 0 0 3px rgba(50, 40, 40, .07);
}

.searchbox__icon {
    display: flex;
    flex: 0 0 auto;
    color: #A9A099;
}

.searchbox__icon svg {
    width: 20px;
    height: 20px;
}

.searchbox__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: #322828;
}

.searchbox__input::placeholder {
    color: #A9A099;
}

.searchbox__input:focus {
    outline: none;
}

/* нативный крестик Chrome в type=search спорит с нашим оформлением */
.searchbox__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.searchbox__submit {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 26px;
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: #322828;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s;
}

.searchbox__submit:hover {
    background: #C46A4B;
}

.searchbox__hints {
    margin-top: 24px;
}

.searchbox__hints-title {
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #A9A099;
}

.searchbox__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.searchbox__chip {
    padding: 9px 16px;
    border: 1px solid #E4E1DA;
    border-radius: 999px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6B615C;
    text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s;
}

.searchbox__chip:hover {
    border-color: #322828;
    background: #322828;
    color: #fff;
}

.searchbox__chip--section {
    background: #EFEDE9;
    border-color: transparent;
    color: #322828;
}

.searchbox__chip--section:hover {
    background: #322828;
    color: #fff;
}

/* --- Cookie --- */

.cookiebar {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 110;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 560px;
    padding: 18px 22px;
    background: #322828;
    color: #F2F1ED;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.cookiebar[hidden] {
    display: none;
}

.cookiebar__text {
    margin: 0;
}

.cookiebar__text a {
    color: #F2F1ED;
}

.cookiebar__btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    border: 1px solid #F2F1ED;
    background: none;
    color: #F2F1ED;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.cookiebar__btn:hover {
    background: #F2F1ED;
    color: #322828;
}

/* --- Панели меню каталога --- */

.menu__panel {
    display: none;
}

.menu__panel--active {
    display: block;
}

.menu__empty {
    margin: 0;
    color: #6B615C;
    font-size: 14px;
}

/* --- Формы заявок --- */

.lead__file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 24px;
    border: 1px dashed rgba(242, 241, 237, .38);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #F2F1ED;
    transition: border-color .2s, background .2s;
}

.lead__file:hover {
    border-color: rgba(242, 241, 237, .7);
    background: rgba(242, 241, 237, .04);
}

/* Нативный «Выберите файл / Файл не выбран» прячем: он ломает тёмную секцию */
.lead__file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.lead__file-icon {
    flex: 0 0 auto;
    opacity: .75;
}

.lead__file-text {
    opacity: .85;
}

.lead__file-name {
    margin-left: auto;
    padding-left: 16px;
    color: #F2F1ED;
    font-size: 13px;
    opacity: .6;
    text-align: right;
}

.lead__result {
    color: #F2F1ED;
}

.lead__consents {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.lead__consent {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #F2F1ED;
    cursor: pointer;
}

.lead__consent-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lead__consent-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(242, 241, 237, .4);
    border-radius: 6px;
    transition: background .15s, border-color .15s;
}

.lead__consent-box::after {
    content: '';
    width: 11px;
    height: 6px;
    border-left: 2px solid #322828;
    border-bottom: 2px solid #322828;
    transform: rotate(-45deg) translate(1px, -2px);
    opacity: 0;
    transition: opacity .15s;
}

.lead__consent-input:checked + .lead__consent-box {
    background: #F2F1ED;
    border-color: #F2F1ED;
}

.lead__consent-input:checked + .lead__consent-box::after {
    opacity: 1;
}

.lead__consent-input:focus-visible + .lead__consent-box {
    outline: 2px solid rgba(242, 241, 237, .6);
    outline-offset: 2px;
}

.lead__consent.is-invalid .lead__consent-box {
    border-color: #E08B6B;
}

.lead__consent-text {
    color: #F2F1ED;
    opacity: .8;
}

.lead__consent-text a {
    color: #F2F1ED;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* На светлых секциях (контакты, каталоги) форма стоит на тёмном фоне так же,
   но если понадобится светлый вариант — переопределяем через .lead--light */

.lead--light .lead__file,
.lead--light .lead__consent-box {
    border-color: #D8D4CC;
}

.lead--light .lead__consent-input:checked + .lead__consent-box {
    background: #322828;
    border-color: #322828;
}

.lead--light .lead__consent-input:checked + .lead__consent-box::after {
    border-color: #F2F1ED;
}

.lead__bullets {
    margin: 18px 0 0;
    padding-left: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    /* секция с формой тёмная — без своего цвета список наследовал чёрный */
    color: #ffffff;
    opacity: .75;
}

.lead__bullets li {
    margin-bottom: 4px;
}

/* --- Общий каркас страниц-подборок --- */

.pagehead__lead {
    max-width: 760px;
    margin: 18px auto 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    text-align: center;
    color: #6B615C;
}

.cards {
    padding: 56px 0 24px;
}

.cards__inner {
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.cards__title {
    margin: 64px 0 28px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 34px;
    line-height: 1.2;
}

.cards__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 40px;
}

.cards__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
}

/* --- Карточка PDF-каталога --- */

.pdfcard {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.pdfcard__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #EFEDE9;
}

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

.pdfcard:hover .pdfcard__media img {
    transform: scale(1.03);
}

.pdfcard__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    background: #322828;
    color: #F2F1ED;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .08em;
}

.pdfcard__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdfcard__title {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    color: #363636;
}

.pdfcard__meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #948A84;
}

.pdfcard__desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 19px;
    color: #6B615C;
}

.pdfcard__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: auto;
}

.pdfcard__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    border: 1px solid #322828;
    background: #322828;
    color: #F2F1ED;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.pdfcard__btn img {
    width: 18px;
    filter: invert(1);
    transition: transform .2s;
}

.pdfcard__btn:hover {
    background: transparent;
    color: #322828;
}

.pdfcard__btn:hover img {
    filter: none;
    transform: translateX(3px);
}

.pdfcard__btn--ghost {
    background: transparent;
    color: #322828;
}

.pdfcard__link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6B615C;
}

/* --- Карточка идеи и статьи --- */

.ideacard,
.jcard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    text-decoration: none;
    color: #363636;
}

.ideacard__media,
.jcard__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #EFEDE9;
}

.ideacard__media img,
.jcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.ideacard:hover .ideacard__media img,
.jcard:hover .jcard__media img {
    transform: scale(1.04);
}

.ideacard__body,
.jcard__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ideacard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ideacard__tag {
    padding: 4px 10px;
    border: 1px solid #E4E1DA;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B615C;
}

.ideacard__title,
.jcard__title {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
}

.ideacard__desc,
.jcard__lead {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: #6B615C;
}

.jcard__date,
.jbig__date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #948A84;
}

/* --- Главный материал журнала --- */

.jbig {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
    text-decoration: none;
    color: #363636;
}

.jbig__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #EFEDE9;
}

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

.jbig:hover .jbig__media img {
    transform: scale(1.03);
}

.jbig__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jbig__title {
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 38px;
    line-height: 44px;
}

.jbig__lead {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

.jbig__more {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #322828;
}

.ideahero {
    max-width: var(--container-inner, 1792px);
    margin: 0 auto 8px;
    padding: 0 var(--container-pad, 64px);
}

.ideahero__img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.legal--narrow {
    max-width: 720px;
}

.legal__quote {
    margin: 0 0 28px;
    padding: 0 0 0 20px;
    border-left: 2px solid #322828;
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 22px;
    line-height: 32px;
    color: #322828;
}

.legal__date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #948A84;
    margin-bottom: 24px;
}

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

/* Раскладка первого экрана общая со страницами тура и «о компании»:
   слева текст, справа медиа — здесь на месте медиа карта */
.cohero {
    padding: 32px 0 8px;
}

.cohero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.cohero__crumbs {
    margin: 0 0 20px;
}

.cohero__title {
    margin: 0 0 18px;
    max-width: 16ch;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #322828;
}

.cohero__lead {
    margin: 0 0 28px;
    max-width: 52ch;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #6B615C;
}

.cohero__actions,
.cohero__more {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cohero__more {
    margin-top: 32px;
}

.cohero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0 0;
    padding-top: 28px;
    border-top: 1px solid #E4E1DA;
}

.cohero__fact dt {
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 34px;
    color: #322828;
}

.cohero__fact dd {
    margin: 4px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #6B615C;
}

.cohero__map {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cohero__frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 10px;
    background: #F1EEE8;
    /* карта без цвета: рядом с фотографиями интерьеров яркая подложка Яндекса
       перетягивала внимание на себя */
    filter: grayscale(1) contrast(.95);
}

.cohero__addr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
}

.cohero__addr-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

.cohero__addr-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #322828;
    text-decoration: none;
    border-bottom: 1px solid #C9C3B8;
    transition: border-color .2s ease;
}

.cohero__addr-link:hover {
    border-color: #322828;
}

/* --- Способы связи --- */

.cocard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .25s ease;
}

a.cocard:hover {
    border-color: #C9C3B8;
}

.cocard__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: #322828;
    color: #FFFFFF;
    transition: transform .3s ease, background-color .3s ease;
}

a.cocard:hover .cocard__badge {
    transform: translateY(-2px);
    background: #1A1A1A;
}

.cocard__badge svg {
    width: 22px;
    height: 22px;
}

.cocard__label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #948A84;
}

.cocard__value {
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.cocard__note {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

.cocard__msgrs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.contacts__messenger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #E4E1DA;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #322828;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.contacts__messenger:hover {
    border-color: #322828;
    background: #F2F1ED;
}

.contacts__messenger img {
    width: 18px;
    height: 18px;
}

/* --- Кто ответит и реквизиты --- */

.coinfo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
    gap: 40px;
    padding: 32px;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
}

.coinfo__person {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.coinfo__avatar {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.coinfo__person-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.coinfo__name {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.coinfo__role {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #948A84;
}

.coinfo__note {
    margin: 8px 0 0;
    max-width: 48ch;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

.coinfo__legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.coinfo__legal-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #948A84;
}

.coinfo__legal-text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

/* --- FAQ отдельной страницей --- */

.faq--page {
    padding: 24px 0 40px;
}

.faq--page .faq__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Карточка материала на главной: в макете это был блок, у нас — ссылка на статью */
.post {
    text-decoration: none;
    color: inherit;
}

.post__title,
.post__text {
    display: block;
}

.post__title {
    /* в макете заголовки набраны строчными, у нас они приходят из базы */
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post__text {
    /* фиксированная ширина из макета рвала сетку на узких экранах */
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post__media {
    overflow: hidden;
}

.post__img {
    transition: transform .6s ease;
}

.post:hover .post__img {
    transform: scale(1.04);
}

/* Переход из вопросов-ответов в материал журнала для дизайнеров */
.faq__more {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 40px;
    padding: 28px 32px;
    border: 1px solid #E2DFDA;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .25s ease, background-color .25s ease;
}

.faq__more:hover {
    border-color: #322828;
    background: #FAF9F7;
}

.faq__more-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #948A84;
}

.faq__more-title {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 22px;
    line-height: 30px;
    color: #322828;
}

.faq__more-go {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #322828;
}

@media (max-width: 1280px) {
    .cards__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .cohero__inner,
    .coinfo {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cohero__title {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .jbig {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cards__grid,
    .cards__grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cards__grid,
    .cards__grid--3 {
        grid-template-columns: 1fr;
    }

    .cohero__facts {
        gap: 24px 32px;
    }

    /* на узком экране кнопка не помещается рядом с полем — уводим её под поле,
       а общую рамку снимаем, иначе кнопка оказывается внутри рамки поля */
    .searchbox {
        padding: 10vh 16px 24px;
    }

    .searchbox__inner {
        padding: 22px 20px 26px;
    }

    .searchbox__form {
        display: block;
        height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .searchbox__form:focus-within {
        box-shadow: none;
    }

    .searchbox__icon {
        position: absolute;
        top: 18px;
        left: 16px;
    }

    .searchbox__input {
        width: 100%;
        height: 56px;
        padding: 0 16px 0 46px;
        border: 1px solid #E4E1DA;
        border-radius: 12px;
        background: #fff;
        font-size: 16px;
    }

    .searchbox__input:focus {
        border-color: #322828;
    }

    .searchbox__submit {
        width: 100%;
        height: 50px;
        margin-top: 10px;
    }
}

/* --- Мобильные: чиним то, что вылезало за экран --- */

@media (max-width: 768px) {
    /* Секция заявки в макете двухколоночная — на телефоне ставим в одну */
    .lead {
        display: block;
        max-width: 100%;
        overflow-x: clip;
    }

    .lead__media,
    .lead__body,
    .lead__head,
    .lead__form,
    .lead__fields,
    .lead__row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .lead__body {
        padding: 32px 20px 40px;
    }

    .lead__row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .lead__field,
    .lead__input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .lead__title {
        font-size: 26px;
        line-height: 32px;
    }

    .lead__submit {
        width: 100%;
        box-sizing: border-box;
    }

    /* Ленты-слайдеры не должны растягивать страницу */
    .ideas,
    .blog,
    .reviews,
    .insta {
        overflow-x: clip;
    }

    .ideas__slider .swiper-slide,
    .blog__slider .swiper-slide,
    .reviews__slider .swiper-slide {
        max-width: calc(100vw - 40px);
    }

    .idea,
    .idea__media,
    .idea__img {
        max-width: calc(100vw - 40px);
    }

    .cat2head__title {
        font-size: 30px;
        line-height: 36px;
    }

    .cards {
        padding: 32px 0 16px;
    }

    .cards__inner,
    .cohero__inner,
    .ideahero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cohero__title {
        font-size: 32px;
    }

    .coinfo {
        padding: 24px 20px;
    }

    .jbig__title {
        font-size: 26px;
        line-height: 32px;
    }

    .pdfcard__actions {
        width: 100%;
    }

    .pdfcard__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Фон блока «8 лет помогаем реализовывать интерьеры».
   Кадр с зелёным диваном светлее прежнего, и белые цифры попадали на светлые
   картины. Вместо плоской заливки из макета — градиент: слева плотнее под
   заголовком, к центру светлее, чтобы интерьер оставался виден. */
.about__overlay {
    background: linear-gradient(
        90deg,
        rgba(34, 29, 24, 0.72) 0%,
        rgba(34, 29, 24, 0.6) 40%,
        rgba(34, 29, 24, 0.62) 68%,
        rgba(34, 29, 24, 0.7) 100%
    );
}

/* Подпись под кадром в галерее идеи: имя товара, ведёт на карточку.
   У проектов подписей нет, поэтому правило своё, а не общее с .prj__shot. */
.prj__shot-link,
.prj__shot-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(34, 29, 24, 0.55);
    backdrop-filter: blur(6px);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #ffffff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.prj__shot {
    position: relative;
}

.prj__shot:hover .prj__shot-link,
.prj__shot:focus-within .prj__shot-link,
.prj__shot:hover .prj__shot-caption {
    opacity: 1;
    transform: translateY(0);
}

.prj__shot-link {
    pointer-events: auto;
}

.prj__shot-link:hover {
    background: rgba(34, 29, 24, 0.75);
}

/* на телефоне наведения нет — подпись видна всегда */
@media (hover: none) {
    .prj__shot-link,
    .prj__shot-caption {
        opacity: 1;
        transform: none;
    }
}

/* --- Плитки главной: фото ведёт себя как фон --- */
/* В макете у каждой плитки были свои координаты кадра под конкретный снимок
   (например у tile--sofa: left -42px, top -538px, 933×1165). С фотографиями
   из каталога это давало случайную обрезку, поэтому кадрируем по центру. */

.tile__img,
.tile--sofa .tile__img,
.tile--tables .tile__img,
.tile--kids .tile__img,
.tile--wardrobes .tile__img,
.tile--light .tile__img,
.tile--rugs .tile__img,
.tile--decor .tile__img,
.tile--textile .tile__img,
.tile--outdoor .tile__img,
.tile--beds .tile__img,
.tile--tableware .tile__img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Подпись плитки уже лежит на градиенте из макета — здесь только усиливаем его
   для светлых фото: кадры теперь приходят из каталога, а не подбираются вручную. */

.tile__caption {
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .62) 100%);
}

/* --- Выпадающее меню «Покупателям» --- */

.bmenu {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 90;
    background: #FBFAF8;
    box-shadow: 0 24px 48px rgba(50, 40, 40, .10);
    /* закрытое состояние: меню остаётся в разметке, поэтому появление
       можно анимировать. display: none этого не позволял */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity .34s ease, transform .44s cubic-bezier(.22, .8, .3, 1),
                visibility 0s linear .44s;
}

.bmenu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    /* появление нарочно неспешное: меню большое, резкий выезд читается рывком */
    transition: opacity .5s ease, transform .68s cubic-bezier(.16, .84, .28, 1),
                visibility 0s;
}

/* содержимое подъезжает следом за самой панелью — так выезд читается мягче */
.bmenu__nav,
.bmenu__cards,
.bmenu__contacts {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .42s ease, transform .56s cubic-bezier(.16, .84, .28, 1);
}

.bmenu.is-open .bmenu__nav {
    opacity: 1;
    transform: none;
    transition-delay: .1s;
}

.bmenu.is-open .bmenu__cards {
    opacity: 1;
    transform: none;
    transition-delay: .18s;
}

.bmenu.is-open .bmenu__contacts {
    opacity: 1;
    transform: none;
    transition-delay: .26s;
}

.bmenu[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .bmenu,
    .bmenu__nav,
    .bmenu__cards,
    .bmenu__contacts {
        transition-duration: .01s;
        transform: none;
    }
}

.bmenu__inner {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(200px, 250px);
    gap: 56px;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 40px var(--container-pad, 64px) 44px;
}

.bmenu__label {
    margin: 0 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #A9A099;
}

/* Левая колонка — навигация */

.bmenu__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bmenu__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px 11px 0;
    text-decoration: none;
    color: #322828;
    transition: padding-left .22s ease, color .22s;
}

.bmenu__link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 0;
    height: 1px;
    background: #322828;
    transform: translateY(-50%);
    transition: width .22s ease;
}

.bmenu__link:hover {
    padding-left: 18px;
}

.bmenu__link:hover::before {
    width: 20px;
}

.bmenu__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    color: #948A84;
    transition: color .22s;
}

.bmenu__link:hover .bmenu__icon {
    color: #322828;
}

.bmenu__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bmenu__title {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 16px;
    line-height: 21px;
}

.bmenu__sub {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 17px;
    color: #948A84;
}

/* Центр — две карточки с подписью поверх фото, как плитки на главной */

.bmenu__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-content: start;
}

.bmenu__card {
    display: block;
    text-decoration: none;
    color: #F2F1ED;
}

.bmenu__card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #EFEDE9;
}

.bmenu__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .6s ease;
}

.bmenu__card:hover .bmenu__card-media img {
    transform: scale(1.05);
}

.bmenu__card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(20, 16, 15, 0) 0%, rgba(20, 16, 15, .78) 100%);
}

.bmenu__card-title {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 20px;
    line-height: 25px;
}

.bmenu__card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 17px;
    opacity: .8;
}

/* Правая колонка — контакты */

.bmenu__contacts {
    position: relative;
    display: flex;
    flex-direction: column;
}

.bmenu__phone {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 22px;
    line-height: 28px;
    color: #322828;
    text-decoration: none;
    letter-spacing: -.5px;
}

.bmenu__mail {
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6B615C;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
    transition: border-color .2s;
}

.bmenu__mail:hover {
    border-bottom-color: #6B615C;
}

.bmenu__hours {
    margin: 14px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #A9A099;
}

.bmenu__socials {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.bmenu__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #322828;
    color: #fff;
    transition: background-color .25s ease, transform .25s ease;
}

.bmenu__social:hover {
    background: #C46A4B;
    transform: translateY(-2px);
}

.bmenu__social svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* кнопка как основная в UI-ките: чёрная заливка, Bitum, радиус 8px */
.bmenu__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 8px;
    background: #000000;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: normal;
    font-size: 17px;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: none;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s ease, background-color .2s ease;
}

.bmenu__cta:hover {
    background: #000000;
    color: #ffffff;
    opacity: .85;
}

@media (max-width: 1280px) {
    .bmenu__inner {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 40px;
    }

    .bmenu__contacts {
        display: none;
    }
}

@media (max-width: 900px) {
    .bmenu {
        display: none;
    }
}

/* --- Сотрудничество: заголовок FAQ был фиксированной ширины 884px --- */

.faq--coop .faq__title {
    width: min(884px, 100%);
    max-width: 884px;
    flex-shrink: 1;
}

/* --- Портфолио: контейнер и адаптивная кнопка --- */

.pfhead,
.pfitem {
    max-width: var(--container-max, 1920px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad, 64px);
    padding-right: var(--container-pad, 64px);
    box-sizing: border-box;
}

.pfitem__media,
.pfitem__grid,
.pfhead__inner {
    max-width: var(--container-inner, 1792px);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* В макете кнопка была ровно 369 px под короткую подпись —
   с текстом «Смотреть дизайн интерьера» он не влезал и обрезался. */

.pfitem__button {
    width: auto;
    min-width: 280px;
    max-width: 100%;
    padding: 0 32px;
    box-sizing: border-box;
}

.pfitem__button .ideas__all-text {
    white-space: normal;
}

@media (max-width: 768px) {
    .pfhead,
    .pfitem {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pfitem__button {
        width: 100%;
        min-width: 0;
        height: 64px;
        padding: 0 20px;
    }

    .pfitem__button .ideas__all-text {
        font-size: 16px;
        line-height: 20px;
    }
}

/* --- Каталог: подписи карточек и сайдбар фильтров --- */
/* В макете подписи были в одну строку и всегда короткие, а список фильтров
   имел ровно 6 пунктов с фиксированной высотой 180px. С реальными данными
   и то и другое ломалось: описания вылезали за карточку, группы фильтров
   наезжали друг на друга. */

.pcard2__name,
.pcard2__price {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcard2__price--request {
    white-space: normal;
    overflow: visible;
}

/* первый блок фильтров начинается вровень со строкой сортировки справа */
.filters2__group:first-child {
    padding: 0 0 32px 0;
}

/* списки фильтров показываем целиком: своя полоса прокрутки внутри колонки
   мешала — колонка и так следует за страницей */
.filters2__list--fixed {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.cat2__aside {
    align-self: start;
}

/* --- Галерея товара: зум и просмотр во весь экран --- */

.pcard__shot {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.pcard__shot img {
    transition: transform .6s ease;
}

.pcard__shot:hover img {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 13, 12, .94);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 3;
    border: 0;
    background: none;
    color: #F2F1ED;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(242, 241, 237, .7);
    letter-spacing: .06em;
}

.lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1400px, 92vw);
    height: 88vh;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(242, 241, 237, .3);
    border-radius: 50%;
    background: none;
    color: #F2F1ED;
    font-size: 22px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.lightbox__arrow:hover {
    background: rgba(242, 241, 237, .12);
    border-color: rgba(242, 241, 237, .6);
}

.lightbox__arrow--prev { left: 3vw; }
.lightbox__arrow--next { right: 3vw; }

@media (max-width: 900px) {
    .cat2__aside {
        position: static;
        max-height: none;
    }

    .lightbox__arrow {
        width: 44px;
        height: 44px;
    }

    .lightbox__arrow--prev { left: 10px; }
    .lightbox__arrow--next { right: 10px; }
}

/* --- Карточка товара без цены --- */
/* Крупным кеглем набирается сумма; когда её нет, «цена по запросу» уходит
   в подпись, а акцент переносится на то, что клиенту нужно сделать. */

.pcard__request {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
}

.pcard__request-label {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #A9A099;
}

.pcard__request-text {
    margin: 0;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -.5px;
    color: #322828;
}

@media (max-width: 768px) {
    .pcard__request-text {
        font-size: 20px;
        line-height: 26px;
    }
}

/* --- Названия из базы пишем как есть --- */
/* В макете заголовки набраны строчными, но имя товара и раздела приходит
   из каталога и должно сохранять авторский регистр: «Банкетка Deco». */

.pcard__title,
.cat2head__title,
.product__name,
.pcard2__name,
.menu__title,
.menu__item-name,
.similar__title {
    text-transform: none;
}

/* --- Более короткая сторона карточки следует за прокруткой --- */
/* Без JS сохраняется прежнее закрепление правой колонки. */

.pcard__info {
    position: sticky;
    top: var(--pcard-sticky-top, 120px);
    align-self: start;
}

.pcard[data-pcard-sticky="gallery"] .pcard__info,
.pcard[data-pcard-sticky="none"] .pcard__info {
    position: static;
}

.pcard[data-pcard-sticky="gallery"] .pcard__gallery {
    position: sticky;
    top: var(--pcard-sticky-top, 120px);
    align-self: start;
}

@media (max-width: 1024px) {
    .pcard__info,
    .pcard[data-pcard-sticky] .pcard__gallery {
        position: static;
    }

    .pcard__info {
        width: 100%;
    }
}

/* Иконка MAX — фирменный градиент, поэтому не иконка-файл, а инлайновый SVG */

.msgr__max {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.pcard__messenger .msgr__max,
.contacts__messenger .msgr__max {
    margin-right: 2px;
}

/* --- Строка «найдено / сортировка» над сеткой каталога --- */

.cat2bar {
    align-items: center;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: space-between;
}

.cat2bar__count {
    font-size: 14px;
    color: #6B615C;
}

.cat2bar__sort {
    gap: 12px;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #948A84;
}

.cat2bar__select {
    appearance: none;
    -webkit-appearance: none;
    height: 40px;
    padding: 0 38px 0 14px;
    border: 1px solid #E4E1DA;
    border-radius: 2px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #6B615C 50%), linear-gradient(135deg, #6B615C 50%, transparent 50%);
    background-position: calc(100% - 19px) 18px, calc(100% - 14px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: #322828;
    cursor: pointer;
    transition: border-color .2s;
}

.cat2bar__select:hover,
.cat2bar__select:focus {
    border-color: #322828;
    outline: none;
}

@media (max-width: 640px) {
    .cat2bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* --- Сердце избранного --- */
/* Красим сам SVG через stroke и fill: свойство color внутри карточки
   перебивается стилями макета, а stroke/fill работают предсказуемо. */

.fav-icon {
    display: block;
    width: 18px;
    height: 18px;
    stroke: #322828;
    fill: none;
}

.pcard__fav .fav-icon {
    width: 22px;
    height: 22px;
}

/* Избранное: пустой контур — товар не в избранном, залитое сердце — в избранном.
   Наведение всегда заливает кнопку тёмным, поэтому сердце на ней белое.
   Раньше активная кнопка перебивала фон наведения на прозрачный, и белое сердце
   пропадало на белом фоне — отсюда и «сердечко исчезает». */

.product__fav:hover,
.pcard2__fav:hover,
.pcard__fav:hover,
.product__fav.is-active:hover,
.pcard2__fav.is-active:hover,
.pcard__fav.is-active:hover {
    background: #322828;
    border-color: #322828;
}

.product__fav:hover .fav-icon,
.pcard2__fav:hover .fav-icon,
.pcard__fav:hover .fav-icon {
    stroke: #FFFFFF;
    fill: none;
}

.product__fav.is-active .fav-icon,
.pcard2__fav.is-active .fav-icon,
.pcard__fav.is-active .fav-icon {
    stroke: #322828;
    fill: #322828;
}

.product__fav.is-active,
.pcard2__fav.is-active {
    background: rgba(255, 255, 255, .92);
}

.pcard__fav.is-active {
    background: transparent;
    border-color: #322828;
}

.product__fav.is-active:hover .fav-icon,
.pcard2__fav.is-active:hover .fav-icon,
.pcard__fav.is-active:hover .fav-icon {
    stroke: #FFFFFF;
    fill: #FFFFFF;
}

/* Иконка MAX — монохром в один размер с Telegram и WhatsApp */

.msgr__max {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #322828;
}

/* --- Мебельный тур --- */

/* Кнопки страницы тура — то же оформление, что у кнопок карточки товара:
   скругление 8px, Bitum, обычный регистр. Капса и разрядки на сайте нет. */

.tourbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    border: 0;
    border-radius: 8px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.tourbtn--solid {
    background: #1A1A1A;
    color: #ffffff;
}

.tourbtn--solid:hover {
    background: #322828;
}

/* Первый экран стал светлым, поэтому призрачная кнопка везде тёмная:
   белым по белому её попросту не было видно. */

.tourbtn--ghost {
    background: transparent;
    color: #1A1A1A;
    box-shadow: inset 0 0 0 1px #1A1A1A;
}

.tourbtn--ghost:hover {
    background: #1A1A1A;
    color: #ffffff;
}

/* Обводка фокуса остаётся только для клавиатуры. После щелчка мышью браузер
   тоже ставит :focus, и на карточке ролика или кнопке оставался чёрный контур. */

:focus:not(:focus-visible) {
    outline: none;
}

.pcard__shot:focus,
.prj__shot:focus,
.reel:focus:not(:focus-visible),
.reelbox__nav:focus:not(:focus-visible),
.reelbox__close:focus:not(:focus-visible),
.reels__arrow:focus:not(:focus-visible),
.tourbtn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Страница поиска использует раскладку каталога, но сайдбара у неё нет:
   в ряд вставали счётчик, сетка и пагинация. Разворачиваем в колонку. */

.cat2__inner--wide {
    flex-direction: column;
    gap: 0;
}

.cat2__inner--wide .cat2__grid {
    width: 100%;
}

.cat2__inner--wide .pager {
    align-self: center;
    margin-top: 40px;
}

/* Нижняя часть карточки в портфолио и идеях: в колоночной раскладке
   (планшет и телефон) блок с текстом брал ширину по контенту — внутри
   лежит подпись автора фиксированной ширины из макета, и строка вылезала
   за экран на 46px. */

.pfitem__text {
    width: 100%;
    max-width: 100%;
}

.pfitem__text .idea__author {
    max-width: 100%;
}

/* теги в карточке на телефоне не помещались в строку и уезжали за экран */
.pfitem__tags {
    flex-wrap: wrap;
    max-width: 100%;
}

/* Галерея в списках портфолио и идей — ссылка на страницу материала */

.pfitem__gallery--link {
    text-decoration: none;
}

/* Карточки аудиторий — целиком ссылки с подсветкой при наведении. */
.audience__col {
    position: relative;
    isolation: isolate;
    color: inherit;
    cursor: pointer;
}

.audience__col::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #423A32;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .9s cubic-bezier(.16, .84, .28, 1);
}

.audience__col:hover::before,
.audience__col:focus-visible::before {
    transform: scaleX(1);
}

@media (min-width: 1025px) {
    .audience__col {
        height: auto;
        min-height: 374px;
        gap: 24px;
    }

    .audience__title,
    .audience__text {
        overflow-wrap: anywhere;
    }

    .audience__link-text {
        white-space: normal;
        text-align: left;
        line-height: 1.4;
    }

    .audience__link-icon {
        flex-shrink: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .audience__col::before {
        transition: none;
    }
}

/* Скругление у фотографий контента: товары, подборки, статьи, проекты.
   Аватары людей и логотипы не трогаем — у них своя форма. */

.product__img,
.pcard2__media,
.pcard__shot,
.ideacard__media,
.jcard__media,
.post__media,
.idea__media,
.collection__cover,
.subcat__media,
.insta__cell,
.prj__shot,
.pgal__item {
    border-radius: 10px;
    overflow: hidden;
}

.product__img,
.pcard2__media img,
.pcard__shot img {
    border-radius: 10px;
}

/* Иконки-признаки на карточке товара: белая иконка в тёмном квадрате,
   как в блоке преимуществ на странице дизайнеров. */

.designer__feat-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #322828;
}

.designer__feat-icon {
    width: 17px;
    height: 17px;
    /* файлы иконок тёмные — на тёмном квадрате выводим белыми */
    filter: brightness(0) invert(1);
}

/* Подсветка текущего раздела в верхней панели */

.topbar__link--active {
    color: #ffffff;
    opacity: 1;
}

.topbar--inner .topbar__link--active {
    color: #1A1A1A;
    font-weight: 500;
}

/* Идеи на главной: два вертикальных кадра 3:4 на подборку */

.idea__shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.idea__shot {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: #EFECE7;
}

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

.idea:hover .idea__shot img {
    transform: scale(1.04);
}

a.idea {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.idea__name {
    display: block;
}

/* Обязательная по закону оговорка про Meta и звёздочка у ссылки */

.footer__mark {
    margin-left: 2px;
    font-size: .6em;
    vertical-align: super;
}

.footer__note {
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 18px;
    /* оговорку легко пропустить — держим её читаемой, а не полупрозрачной */
    color: rgba(255, 255, 255, .7);
}

/* звёздочка у слова Instagram, от неё ведём к оговорке внизу */
.footer__mark {
    font-size: .7em;
    vertical-align: super;
    line-height: 0;
}

/* Дата в блоке «Цена по запросу»: держим строку целой и чуть выделяем */

.pcard__request-date {
    font-weight: 500;
    white-space: nowrap;
    color: #322828;
}

/* Подзаголовок раздела растягивался на всю ширину контейнера и читался
   одной длинной строкой — ограничиваем чуть больше половины. */

.cathead__sub {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .cathead__sub {
        max-width: 100%;
    }
}

/* Ряд фильтров в шапке раздела: в макете он не имел ни контейнера, ни переносов,
   и полтора десятка кнопок упирались в края экрана. */

.pfhead__filters {
    flex-wrap: wrap;
    gap: 10px;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.pfhead__filters .filter {
    height: 42px;
    padding: 0 20px;
    font-size: 12px;
}

.filter--extra[hidden] {
    display: none;
}

.filter--more {
    border-style: dashed;
}

@media (max-width: 768px) {
    .pfhead__filters {
        gap: 8px;
        padding: 0 20px;
    }

    .pfhead__filters .filter {
        height: 38px;
        padding: 0 14px;
        font-size: 11px;
    }
}

/* Фильтр прячет карточки через атрибут hidden, но у секции свой display
   из макета — он перебивал скрытие, и фильтр визуально не работал. */

[data-pf-item][hidden] {
    display: none;
}

/* подборка без галереи: один кадр обложки, ряд не растягиваем */
.pfitem__gallery--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-right: auto;
}

/* Аватар автора-компании: вместо портрета логотип на светлой плашке */

.idea__avatar--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #E4E1DA;
    background: #ffffff;
}

.idea__avatar--logo img {
    width: 100%;
    height: auto;
    /* логотип в файле белый — он рисовался для тёмной шапки */
    filter: invert(1);
}

/* Портфолио: три вертикальных кадра в ряд.
   В макете было одно широкое фото слева и два узких справа — при разной высоте
   снимков ряд выглядел случайным. Делаем равные колонки 3:4. */

.pfitem__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    height: auto;
}

.pfitem__side {
    /* два боковых кадра становятся обычными ячейками общей сетки */
    display: contents;
}

.pfitem__main,
.pfitem__side-shot {
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: 10px;
}

.pfitem__main-img,
.pfitem__side-img {
    position: absolute;
    inset: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .pfitem__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* третий кадр в две колонки не помещается — прячем, чтобы не рвать ряд */
    .pfitem__side-shot:last-child {
        display: none;
    }
}

@media (max-width: 560px) {
    .pfitem__gallery {
        grid-template-columns: 1fr;
    }

    .pfitem__side-shot {
        display: none;
    }
}

/* Кнопка под сеткой проектов дизайнеров стояла впритык к карточкам */

.cards__grid + .ideas__all,
.dcase__grid + .ideas__all {
    margin-top: 40px;
}

/* Разделы сайта в окне каталога.
   Верхняя панель уезжает при прокрутке, а каталог открывают с любого места —
   поэтому те же ссылки дублируем строкой в самом окне. */

.menu__top {
    position: absolute;
    top: 46px;
    left: 167px;
    right: 130px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.menu__top-link {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #6B615C;
    transition: color .2s ease;
}

.menu__top-link:hover {
    color: #1A1A1A;
}

@media (max-width: 1919px) {
    .menu {
        /* освобождаем место под строку разделов */
        padding-top: clamp(72px, 6.8vw, 130px);
    }

    .menu__top {
        top: clamp(20px, 2.4vw, 46px);
        left: clamp(16px, 3.33vw, 64px);
        right: clamp(60px, 7vw, 130px);
    }
}

@media (max-width: 1024px) {
    .menu__top {
        gap: 8px 18px;
    }

    .menu__top-link {
        font-size: 11px;
        letter-spacing: .06em;
    }
}

@media (max-width: 768px) {
    .menu {
        padding-top: 104px;
    }

    .menu__top {
        gap: 6px 14px;
    }

    .menu__top-link {
        font-size: 10px;
    }
}

/* Идеи интерьера: карточки в четыре колонки с вертикальным кадром 3:4,
   как в ленте Instagram, откуда и приходят подборки. */

.cards__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
}

.ideacard__media {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
}

/* компактный вариант общего тега: в макете он высотой 57px — на карточке
   подборки это половина подписи */
.tag--sm {
    height: 34px;
    padding: 0 16px;
    font-size: 11px;
    line-height: 13px;
    cursor: default;
}

@media (max-width: 1440px) {
    .cards__grid--4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .cards__grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cards__grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Кнопки в карточках каталогов: были прямоугольные, Inter, 13px —
   приводим к общему виду кнопок сайта (скругление 8px, Bitum, обычный регистр). */

.pdfcard__btn {
    height: auto;
    padding: 16px 22px;
    border-radius: 8px;
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: normal;
    text-transform: none;
    border-color: #1A1A1A;
    background: #1A1A1A;
    color: #ffffff;
    transition: background-color .25s ease, color .25s ease;
}

.pdfcard__btn:hover {
    background: #322828;
    border-color: #322828;
    color: #ffffff;
}

.pdfcard__btn:hover img {
    filter: invert(1);
}

.pdfcard__btn--ghost {
    background: transparent;
    border-color: #1A1A1A;
    color: #1A1A1A;
}

.pdfcard__btn--ghost:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #ffffff;
}

/* Логотип Pinterest в поле «прикрепить файл»: обычно того же цвета, что текст,
   а при наведении на поле загорается фирменным красным — как в цитате на главной. */

.lead__pin {
    display: inline-flex;
    align-items: baseline;
    gap: 0.06em;
    white-space: nowrap;
    transition: color .28s ease;
}

.lead__pin .pinterest__logo {
    /* в форме кегль мельче, чем в цитате: держим иконку по строке */
    width: 0.95em;
    height: 0.95em;
    align-self: center;
    margin-right: 0.12em;
}

.lead__file:hover .lead__pin,
.lead__file:focus-within .lead__pin {
    color: #E60023;
}

/* Цифры в первом экране страницы дизайнеров: в макете это была плотная серая
   плашка без разделителей, значения и подписи набраны одним шрифтом.
   Разводим сеткой с линиями, подписи переводим на Inter. */

.coop__stats {
    column-gap: 0;
    row-gap: 0;
    padding: 0;
    border: 1px solid #E4E1DA;
    border-radius: 12px;
    background: #FAF9F7;
    overflow: hidden;
}

.coop__stat {
    gap: 8px;
    padding: 26px 28px;
    border-bottom: 1px solid #E4E1DA;
    border-right: 1px solid #E4E1DA;
}

.coop__stat:nth-child(2n) {
    border-right: 0;
}

.coop__stat:nth-last-child(-n+2) {
    border-bottom: 0;
}

.coop__stat-value {
    font-size: 34px;
    line-height: 40px;
    letter-spacing: -0.8px;
    color: #322828;
}

.coop__stat-label {
    margin-top: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: normal;
    color: #6B615C;
    opacity: 1;
}

@media (max-width: 768px) {
    .coop__stat {
        padding: 20px;
    }

    .coop__stat-value {
        font-size: 26px;
        line-height: 32px;
    }
}

/* Блок преимуществ на странице дизайнеров.
   В макете секция жила со своим отступом 232px и не совпадала по ширине
   с остальными — приводим к общему контейнеру. Иконка лежит в тёмном кубике:
   сами файлы иконок тёмные, поэтому белыми делаем их фильтром. */

.benefits {
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px) 120px;
    gap: 48px;
}

.benefits__head {
    padding-right: 0;
    max-width: 1100px;
}

.benefits__grid {
    gap: 0;
    /* линии между пунктами вместо рамок — спокойнее и не дробит сетку */
    border-top: 1px solid #E4E1DA;
}

.benefit {
    position: relative;
    gap: 14px;
    padding: 32px 32px 36px;
    border-bottom: 1px solid #E4E1DA;
    border-right: 1px solid #E4E1DA;
    transition: background-color .3s ease;
}

/* правый край сетки без лишней линии */
.benefit:nth-child(3n) {
    border-right: 0;
}

.benefit::before {
    /* тонкая полоса, которая наливается тёмным при наведении */
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 0;
    height: 1px;
    background: #322828;
    transition: width .45s ease;
}

.benefit:hover {
    background: #FAF9F7;
}

.benefit:hover::before {
    width: 100%;
}

.benefit__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #322828;
    transition: transform .3s ease, background-color .3s ease;
}

.benefit:hover .benefit__badge {
    transform: translateY(-2px);
    background: #1A1A1A;
}

.benefit__icon {
    width: 22px;
    height: 22px;
    /* иконки нарисованы тёмными — на тёмном кубике выводим их белыми */
    filter: brightness(0) invert(1);
}

.benefit__title {
    font-size: 21px;
    line-height: 27px;
}

.benefit__text {
    font-size: 15px;
    line-height: 23px;
    color: #6B615C;
}

@media (max-width: 1280px) {
    .benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit:nth-child(3n) {
        border-right: 1px solid #E4E1DA;
    }

    .benefit:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 768px) {
    .benefits {
        padding: 0 20px 64px;
        gap: 28px;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
    }

    .benefit {
        padding: 24px 0 28px;
        border-right: 0;
    }

    .benefit:nth-child(3n),
    .benefit:nth-child(2n) {
        border-right: 0;
    }
}

/* Верхняя панель на планшетах не помещалась: десять пунктов с зазором 36px
   дают 1136px, и вся страница получала горизонтальную прокрутку.
   Ужимаем зазор и кегль — прокрутку внутри панели делать нельзя,
   она обрезала бы выпадающее меню «Покупателям». */

@media (max-width: 1100px) {
    .topbar__nav {
        gap: 18px;
        padding: 0 12px;
    }

    .topbar__link {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .topbar__nav {
        gap: 12px;
    }

    .topbar__link {
        font-size: 10px;
    }
}

/* Блок вопросов на странице дизайнеров: в макете заголовок занимал жёсткие
   884px, и справа список ответов оказывался заметно уже. Делим пополам,
   зазор вычитаем из каждой половины. */

.faq--coop {
    gap: 56px;
    align-items: flex-start;
}

.faq--coop .faq__title {
    flex: 0 1 calc(50% - 28px);
    width: auto;
    max-width: calc(50% - 28px);
}

.faq--coop .faq__list--coop {
    flex: 0 0 calc(50% - 28px);
    width: calc(50% - 28px);
    max-width: calc(50% - 28px);
}

@media (max-width: 1024px) {
    .faq--coop {
        flex-direction: column;
        gap: 32px;
        padding: 64px 32px 80px;
    }

    .faq--coop .faq__title,
    .faq--coop .faq__list--coop {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .faq--coop {
        padding: 48px 20px 64px;
    }

    .faq--coop .faq__title {
        font-size: 32px;
        line-height: 38px;
    }
}

/* ==========================================================================
   Страница «О компании»
   Раскладка и кнопки те же, что на /tour/ и /cooperation/: слева текст,
   справа вертикальный кадр 9:16. Ролики — по одному в блоке.
   ========================================================================== */

.abouthero {
    padding: 32px 0 64px;
}

.abouthero__inner,
.aboutrow__inner,
.aboutteam__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
    gap: 64px;
    align-items: center;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.abouthero__crumbs {
    margin-bottom: 28px;
    text-align: left;
}

.abouthero__title {
    max-width: 20ch;
    margin: 0 0 20px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 54px;
    line-height: 1.06;
    letter-spacing: -1.8px;
    color: #322828;
}

.abouthero__lead {
    max-width: 560px;
    margin: 0 0 32px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #6B615C;
}

.abouthero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

.abouthero__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding-top: 26px;
    border-top: 1px solid #E4E1DA;
}

.abouthero__fact dt {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 26px;
    line-height: 32px;
    color: #322828;
}

.abouthero__fact dd {
    margin: 6px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 19px;
    color: #6B615C;
}

.abouthero__media {
    /* кадры и ролики страницы держим в одной пропорции 3:4 */
    aspect-ratio: 3 / 4;
    max-height: 640px;
    margin-left: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #EFECE7;
}

.abouthero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Ряды «текст + медиа» --- */

.aboutrow {
    padding: 48px 0;
}

.aboutrow--flip .aboutrow__inner > *:first-child {
    order: 2;
}

.aboutrow__title,
.aboutteam__title,
.aboutwarranty__title {
    margin: 0 0 18px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: #322828;
}

.aboutrow__text,
.aboutteam__text,
.aboutwarranty__text {
    max-width: 640px;
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

.aboutrow__body .tourbtn,
.aboutteam__body .tourbtn {
    margin-top: 12px;
}

.aboutrow__media {
    aspect-ratio: 3 / 4;
    max-height: 620px;
    margin-left: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #EFECE7;
}

.aboutrow__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Карточка ролика: обложка плюс кнопка --- */

.aboutvid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

.aboutvid__frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    /* без ограничения по высоте: оно ломало пропорцию 3:4 на широком экране */
    border-radius: 12px;
    overflow: hidden;
    background: #EFECE7;
}

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

.aboutvid:hover .aboutvid__poster {
    transform: scale(1.03);
}

.aboutvid__play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1A1A1A;
    animation: reel-pulse 2.6s ease-in-out infinite;
}

.aboutvid__play svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.aboutvid:hover .aboutvid__play {
    animation-play-state: paused;
    transform: scale(1.1);
}

.aboutvid__caption {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #6B615C;
}

/* --- Команда и тур --- */

.aboutteam {
    padding: 48px 0;
}

.aboutteam__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.aboutteam__media {
    border-radius: 12px;
    overflow: hidden;
    background: #EFECE7;
}

.aboutteam__media img {
    display: block;
    width: 100%;
    height: auto;
}

.aboutteam__eyebrow {
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #948A84;
}

/* --- Пять шагов --- */

.aboutsteps {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aboutsteps__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #E4E1DA;
}

.aboutsteps__item:first-child {
    border-top: 1px solid #E4E1DA;
}

.aboutsteps__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #322828;
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 14px;
    color: #ffffff;
}

.aboutsteps__title {
    margin: 0 0 4px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.aboutsteps__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

/* --- Гарантия --- */

.aboutwarranty {
    max-width: 860px;
    padding: 36px 40px;
    border: 1px solid #E4E1DA;
    border-radius: 12px;
    background: #FAF9F7;
}

.aboutwarranty__text {
    margin: 0;
}

@media (max-width: 1280px) {
    .abouthero__title {
        font-size: 44px;
    }

    .abouthero__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .abouthero__inner,
    .aboutrow__inner,
    .aboutteam__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* на узком экране порядок всегда одинаковый: сначала текст, потом кадр */
    .aboutrow--flip .aboutrow__inner > *:first-child {
        order: 0;
    }

    .abouthero__media,
    .aboutrow__media,
    .aboutvid {
        max-width: 420px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .abouthero {
        padding: 24px 0 40px;
    }

    .abouthero__inner,
    .aboutrow__inner,
    .aboutteam__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .abouthero__title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .aboutrow__title,
    .aboutteam__title,
    .aboutwarranty__title {
        font-size: 30px;
    }

    .abouthero__actions .tourbtn {
        width: 100%;
    }

    .aboutwarranty {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   Страница «Бизнесу»: комплектация заведений
   Оформление общее со страницей тура — те же карточки, шаги и кнопки,
   поэтому селекторы группируем, а не дублируем правила.
   ========================================================================== */

.bizhero {
    padding: 32px 0 64px;
}

.bizhero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 64px;
    align-items: center;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.bizhero__crumbs {
    margin-bottom: 28px;
    text-align: left;
}

.bizhero__title {
    max-width: 20ch;
    margin: 0 0 20px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 52px;
    line-height: 1.06;
    letter-spacing: -1.6px;
    color: #322828;
}

.bizhero__lead {
    max-width: 560px;
    margin: 0 0 36px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #6B615C;
}

.bizmanager {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid #E4E1DA;
    border-radius: 12px;
}

.bizmanager__avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.bizmanager__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bizmanager__name {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 18px;
    color: #322828;
}

.bizmanager__role,
.bizmanager__hint {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #948A84;
}

.bizhero__note {
    margin: 24px 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

.bizhero__messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.msgr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid #E4E1DA;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: #322828;
    transition: border-color .25s ease, background-color .25s ease;
}

.msgr:hover {
    border-color: #322828;
    background: #FAF9F7;
}

.msgr img {
    width: 16px;
    height: 16px;
}

.bizhero__media {
    aspect-ratio: 3 / 4;
    max-height: 640px;
    margin-left: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #EFECE7;
}

.bizhero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Карточки: те же, что «кому подходит» на странице тура --- */

.bizgrid {
    display: grid;
    gap: 20px;
}

.bizgrid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bizgrid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bizcard,
.bizcase {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
}

.bizcase {
    align-items: flex-start;
}

.bizcard__title,
.bizcase__title {
    margin: 0;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.bizcard__text,
.bizcase__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

/* --- Примеры проектов: карточки портфолио --- */

.bizprj {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 20px;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .25s ease;
}

.bizprj:hover {
    border-color: #C9C3B8;
}

.bizprj__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 6px;
    border-radius: 10px;
    overflow: hidden;
    background: #F1EEE8;
}

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

.bizprj:hover .bizprj__media img {
    transform: scale(1.03);
}

.bizprj__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px;
}

.bizprj__title {
    padding: 0 8px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.bizprj__text {
    padding: 0 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

.bizprj__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 8px 0;
}

.bizprj__all {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* --- Что мы делаем --- */

.bizdo {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.bizdo__title {
    margin: 0 0 16px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: #322828;
}

.bizdo__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

.bizlist {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bizlist li {
    padding: 18px 0;
    border-bottom: 1px solid #E4E1DA;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #322828;
}

.bizlist li:first-child {
    border-top: 1px solid #E4E1DA;
}

/* --- Образец перед партией --- */

.bizsample {
    padding: 40px 0;
}

.bizsample__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
    gap: 56px;
    align-items: center;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.bizsample__eyebrow {
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #948A84;
}

.bizsample__title {
    margin: 0 0 16px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: #322828;
}

.bizsample__text {
    max-width: 640px;
    margin: 0 0 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

.bizsample__list,
.bizsteps {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.bizsample__list li,
.bizsteps li {
    position: relative;
    padding-left: 26px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 23px;
    color: #322828;
}

.bizsample__list li::before,
.bizsteps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 7px;
    border-left: 1px solid #322828;
    border-bottom: 1px solid #322828;
    transform: rotate(-45deg);
}

/* в тёмной секции заявки галочки и текст светлые */
.lead .bizsteps li {
    color: rgba(255, 255, 255, .86);
}

.lead .bizsteps li::before {
    border-color: rgba(255, 255, 255, .7);
}

.bizsteps {
    margin-top: 24px;
}

.bizsample__media {
    aspect-ratio: 4 / 5;
    max-height: 520px;
    margin-left: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #EFECE7;
}

.bizsample__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Шаги работы: у страницы бизнеса кадров нет, колонка с фото не нужна --- */

.plan--biz .plan__step {
    grid-template-columns: 140px minmax(0, 1fr);
}

/* --- Поставка и условия --- */

.bizterms {
    display: grid;
    margin: 0;
}

.bizterms__row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    padding: 22px 0;
    border-bottom: 1px solid #E4E1DA;
}

.bizterms__row:first-child {
    border-top: 1px solid #E4E1DA;
}

.bizterms dt {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.bizterms dd {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

@media (max-width: 1280px) {
    .bizgrid--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bizhero__title {
        font-size: 44px;
    }
}

@media (max-width: 1024px) {
    .bizhero__inner,
    .bizsample__inner,
    .bizdo {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bizhero__media,
    .bizsample__media {
        max-width: 420px;
        margin: 0;
    }

    .bizgrid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bizterms__row {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .bizhero__inner,
    .bizsample__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bizhero__title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .bizgrid--5,
    .bizgrid--3 {
        grid-template-columns: 1fr;
    }

    .bizterms__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .plan--biz .plan__step {
        grid-template-columns: 1fr;
    }
}

/* --- Первый экран: слева текст, справа вертикальный ролик --- */

.tourhero {
    padding: 32px 0 64px;
    background: #ffffff;
}

.tourhero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
    gap: 64px;
    align-items: center;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.tourhero__crumbs {
    /* общие крошки идут по центру страницы, здесь колонка с текстом — ставим влево */
    margin-bottom: 28px;
    text-align: left;
}

.tourhero__media {
    /* ролик снят вертикально — держим пропорцию кадра, а не растягиваем */
    aspect-ratio: 9 / 16;
    max-height: 720px;
    margin-left: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #EFECE7;
}

.tourhero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tourhero__eyebrow {
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #948A84;
}

.tourhero__title {
    max-width: 24ch;
    margin: 0 0 24px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 54px;
    line-height: 1.06;
    letter-spacing: -1.8px;
    color: #322828;
}

.tourhero__lead {
    max-width: 560px;
    margin: 0 0 32px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #6B615C;
}

.tourhero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

.tourhero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding-top: 26px;
    border-top: 1px solid #E4E1DA;
}

.tourhero__fact dt {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 26px;
    line-height: 32px;
    color: #322828;
}

.tourhero__fact dd {
    margin: 6px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 19px;
    color: #6B615C;
}

/* --- Лента вертикальных роликов --- */

.reels {
    padding: 64px 0 24px;
}

.reels__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto 32px;
    padding: 0 var(--container-pad, 64px);
}

.reels__title {
    margin: 0 0 10px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #322828;
}

.reels__lead {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

.reels__nav {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.reels__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #E4E1DA;
    border-radius: 50%;
    background: #ffffff;
    color: #322828;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, opacity .25s ease;
}

.reels__arrow svg {
    width: 20px;
    height: 20px;
}

.reels__arrow:hover {
    background: #322828;
    border-color: #322828;
    color: #ffffff;
}

.reels__arrow[disabled] {
    opacity: .35;
    cursor: default;
    background: #ffffff;
    border-color: #E4E1DA;
    color: #322828;
}

/* лента начинается по левому краю контейнера и уходит за правый край экрана */
.reels__track {
    display: flex;
    gap: 16px;
    padding: 4px 0 20px;
    padding-left: var(--gutter, 64px);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    /* без этого прилипание тянет первую карточку к самому краю окна,
       игнорируя отступ до контейнера */
    scroll-padding-left: var(--gutter, 64px);
    /* полосу прокрутки прячем: на ленте она выглядит чужеродно */
    scrollbar-width: none;
}

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

.reel {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
}

.reel__frame {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #EFECE7;
}

.reel__video,
.reel__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.reel:hover .reel__video,
.reel:hover .reel__poster {
    transform: scale(1.03);
}

.reel__play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1A1A1A;
    /* мягкая пульсация: подсказывает, что карточку можно открыть */
    animation: reel-pulse 2.6s ease-in-out infinite;
}

@keyframes reel-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
}

.reel__play svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.reel:hover .reel__play {
    animation-play-state: paused;
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .reel__play {
        animation: none;
    }
}

.reel__caption {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #322828;
}

/* --- Просмотр ролика на весь экран --- */

.reelbox {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(20, 16, 16, .92);
}

.reelbox[hidden] {
    display: none;
}

.reelbox__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 100%;
}

.reelbox__video {
    max-width: min(460px, 100%);
    max-height: calc(100vh - 160px);
    border-radius: 12px;
    background: #000000;
}

.reelbox__caption {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
}

.reelbox__close,
.reelbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    cursor: pointer;
    transition: background-color .25s ease;
}

.reelbox__close:hover,
.reelbox__nav:hover {
    background: rgba(255, 255, 255, .24);
}

.reelbox__close {
    top: 24px;
    right: 24px;
}

.reelbox__close svg,
.reelbox__nav svg {
    width: 22px;
    height: 22px;
}

.reelbox__nav--prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.reelbox__nav--next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Что даёт поездка --- */

.tourgain {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 60px;
}

.gain {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gain__media {
    display: block;
    /* кадры сняты вертикально: узкая плитка вместо широкой полосы */
    width: 35%;
    min-width: 140px;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
    overflow: hidden;
    background: #EFECE7;
}

.gain__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gain__title {
    margin: 0;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    color: #322828;
}

.gain__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

/* --- Итоги первого тура --- */

.tourdone {
    padding: 40px 0 24px;
}

.tourdone__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.tourdone__media {
    border-radius: 12px;
    overflow: hidden;
    background: #EFECE7;
}

.tourdone__media img {
    display: block;
    width: 100%;
    height: auto;
}

.tourdone__eyebrow {
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #948A84;
}

.tourdone__title {
    margin: 0 0 18px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1.4px;
    color: #322828;
}

.tourdone__text,
.tourdone__next {
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

.tourdone__next {
    margin-bottom: 28px;
}

/* --- Программа --- */

.tourplan {
    padding: 24px 0 48px;
}

.tourplan__inner {
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.plan {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan__step {
    display: grid;
    grid-template-columns: 104px 140px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #E4E1DA;
}

.plan__step:first-child {
    border-top: 1px solid #E4E1DA;
}

.plan__media {
    display: block;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    overflow: hidden;
    background: #EFECE7;
}

.plan__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* у последнего пункта своего кадра нет — колонку оставляем пустой */
.plan__step--after .plan__day {
    grid-column: 2;
}

.plan__day {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #948A84;
}

.plan__title {
    margin: 0 0 6px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    color: #322828;
}

.plan__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

/* --- Кому подходит --- */

.tourwho__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tourwho {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
}

.tourwho__title {
    margin: 0;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.tourwho__text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

/* --- Что входит --- */

.incl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.incl__card {
    padding: 36px;
    border: 1px solid #E4E1DA;
    border-radius: 12px;
}

.incl__card--muted {
    background: #FAF9F7;
}

.incl__title {
    margin: 0 0 20px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 32px;
    color: #322828;
}

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

.incl__list li {
    position: relative;
    padding-left: 26px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 23px;
    color: #322828;
}

.incl__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 1px;
    background: #948A84;
}

.incl__list--yes li::before {
    top: 8px;
    width: 12px;
    height: 7px;
    border-left: 1px solid #322828;
    border-bottom: 1px solid #322828;
    background: none;
    transform: rotate(-45deg);
}

.incl__note {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #E4E1DA;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

/* --- Вопросы: вопрос и ответ в одной колонке --- */

.tfaq {
    max-width: 860px;
}

.tfaq__row {
    border-bottom: 1px solid #E4E1DA;
}

.tfaq__row:first-child {
    border-top: 1px solid #E4E1DA;
}

.tfaq__q {
    position: relative;
    display: block;
    width: 100%;
    padding: 24px 48px 24px 0;
    border: 0;
    background: none;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    text-align: left;
    color: #322828;
    cursor: pointer;
}

.tfaq__q::after,
.tfaq__q::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 14px;
    height: 1px;
    background: #322828;
    transition: transform .3s ease, opacity .3s ease;
}

.tfaq__q::before {
    transform: rotate(90deg);
}

.tfaq__row--open .tfaq__q::before {
    transform: rotate(0deg);
    opacity: 0;
}

.tfaq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}

.tfaq__row--open .tfaq__a {
    grid-template-rows: 1fr;
}

.tfaq__a > p {
    overflow: hidden;
    margin: 0;
    padding-right: 48px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

.tfaq__row--open .tfaq__a > p {
    padding-bottom: 24px;
}

@media (max-width: 1280px) {
    .tourgain {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tourwho__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tourhero__title {
        font-size: 52px;
    }
}

@media (max-width: 1024px) {
    .tourhero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tourhero__media {
        max-width: 420px;
        margin: 0;
    }

    .tourdone__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .plan__step {
        grid-template-columns: 88px 120px minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tourhero {
        padding: 24px 0 40px;
    }

    .tourhero__inner,
    .reels__head,
    .tourdone__inner,
    .tourplan__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .reels__track {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tourhero__title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .tourhero__actions .tourbtn {
        width: 100%;
    }

    .reels__title {
        font-size: 32px;
    }

    .tourgain,
    .tourwho__grid,
    .incl {
        grid-template-columns: 1fr;
    }

    .plan__step {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plan__media {
        max-width: 120px;
    }

    .gain__media {
        width: 45%;
    }

    .reels__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .reels__track {
        padding-left: 20px;
        scroll-padding-left: 20px;
    }

    .plan__step--after .plan__day {
        grid-column: 1;
    }

    .reel {
        flex-basis: 220px;
    }

    .tourdone__title {
        font-size: 32px;
    }
}

/* --- Выбор цвета обивки в карточке --- */
/* В макете блок фиксированной ширины 387 px — на узких экранах сжимаем. */

.pcard__color {
    width: min(387px, 100%);
    background: none;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.pcard__color:hover {
    border-color: rgba(26, 26, 26, .5);
    background: rgba(50, 40, 40, .03);
}

.pcard__color-img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
}

.pcard__color-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pcard__color-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #A9A099;
}

.pcard__color-value {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 16px;
    line-height: 21px;
    color: #322828;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcard__color-arrow {
    width: 20px;
    margin-left: auto;
    transition: transform .2s;
}

.pcard__color:hover .pcard__color-arrow {
    transform: translateX(3px);
}

/* Кнопки из вёрстки, которые стали <button> ради модалки заявки.
   Фон и типографику НЕ трогаем — они заданы макетом: background: none
   делал чёрную кнопку белой, а font: inherit сбивал Bitum. */

.fabrics__button,
.checkblock__button {
    border: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* --- Каталог: пагинация и пустое состояние --- */

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.pager__link,
.pager__current {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #E4E1DA;
    color: #322828;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.pager__current {
    background: #322828;
    border-color: #322828;
    color: #fff;
}

.pager__link:hover {
    border-color: #322828;
    background: #F2F1ED;
}

/* разрыв между первой, соседними и последней страницей */
.pager__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 44px;
    color: #A9A099;
}

.empty {
    padding: 48px 0 64px;
    max-width: 560px;
}

.empty__title {
    margin: 0 0 12px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 30px;
    line-height: 36px;
    color: #322828;
}

.empty__text {
    margin: 0 0 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

.empty__btn {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 26px;
    background: #322828;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: opacity .2s;
}

.empty__btn:hover {
    opacity: .85;
}

/* --- Личный кабинет --- */

.account {
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 48px var(--container-pad, 64px) 96px;
}

.account__title {
    margin: 0 0 24px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 44px;
    line-height: 1.1;
    color: #322828;
}

.account__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #E4E1DA;
    margin-bottom: 32px;
}

.account__tab {
    padding: 12px 20px;
    border: 0;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6B615C;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}

.account__tab:hover {
    color: #322828;
}

.account__tab.is-active {
    color: #322828;
    border-bottom-color: #322828;
}

.account__panel {
    display: none;
}

.account__panel.is-active {
    display: block;
}

.account__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px 24px;
}

.account__form {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.account__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6B615C;
}

.account__input {
    height: 48px;
    padding: 0 14px;
    border: 1px solid #E4E1DA;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #322828;
}

.account__input:focus {
    outline: none;
    border-color: #322828;
}

.account__submit {
    align-self: flex-start;
    height: 50px;
    padding: 0 28px;
    border: 0;
    background: #322828;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s;
}

.account__submit:hover {
    opacity: .85;
}

.account__table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.account__table th,
.account__table td {
    text-align: left;
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid #E4E1DA;
}

.account__table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #A9A099;
}

/* --- Портфолио: пустой результат фильтра --- */

.empty--filter {
    margin: 0 auto 64px;
}

/* --- Служебное для сотрудников: иконка панели и строка под заголовком --- */

.header__action--admin {
    color: #ffffff;
    transition: opacity .2s;
}

.header__action--admin svg {
    width: 20px;
    height: 20px;
}

.header__action--admin:hover {
    opacity: .7;
}

/* на светлых внутренних страницах шапка тёмная, но в мегаменю фон белый */
.header--solid .header__action--admin {
    color: #ffffff;
}

.pcard__admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 12px 0 0;
    padding: 10px 14px;
    border: 1px dashed #D8D4CC;
    border-radius: 8px;
    background: #FBFAF8;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6B615C;
}

.pcard__admin-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #322828;
    text-decoration: none;
    border-bottom: 1px solid rgba(50, 40, 40, .3);
    transition: color .2s, border-color .2s;
}

.pcard__admin-link svg {
    width: 15px;
    height: 15px;
}

.pcard__admin-link:hover {
    color: #C46A4B;
    border-color: #C46A4B;
}

.pcard__admin-date {
    color: #A9A099;
}

/* --- Коллекции: счётчик в заголовке и кликабельные миниатюры --- */

.cathead__count {
    display: inline-block;
    margin-left: 12px;
    font-size: 0.42em;
    letter-spacing: 0;
    vertical-align: super;
    color: #A9A099;
}

a.collection__thumb {
    text-decoration: none;
    transition: opacity .2s;
}

a.collection__thumb:hover {
    opacity: .82;
}

/* --- Вход, регистрация, пароль: две колонки и типографика --- */

.account--narrow {
    max-width: 1100px;
}

.account__hint {
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #6B615C;
}

.account--narrow > .account__hint {
    max-width: 720px;
    margin-bottom: 48px;
}

.account__hint a {
    color: #322828;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account__hint a:hover {
    color: #C46A4B;
}

.account__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
}

.account__col {
    padding: 40px;
    border: 1px solid #E4E1DA;
    background: #FBFAF8;
}

.account__col .account__form {
    max-width: none;
    margin-top: 24px;
}

.account__col .account__hint {
    margin: 20px 0 0;
    font-size: 13px;
}

.account__subtitle {
    margin: 0;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 30px;
    line-height: 1.2;
    color: #322828;
}

/* формы Oscar приходят с нативными полями — приводим их к нашему виду */
.account__form input[type="text"],
.account__form input[type="email"],
.account__form input[type="tel"],
.account__form input[type="password"],
.account__form select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #E4E1DA;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #322828;
    box-sizing: border-box;
}

.account__form input:focus,
.account__form select:focus {
    outline: none;
    border-color: #322828;
}

.account__form .helptext {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #A9A099;
}

.account__form .helptext ul {
    margin: 4px 0 0;
    padding-left: 16px;
}

.account__error {
    font-size: 12px;
    color: #B4442C;
}

.account__tab-count {
    display: inline-block;
    min-width: 20px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #EFEDE9;
    font-size: 11px;
    text-align: center;
    color: #6B615C;
}

.account__tab.is-active .account__tab-count {
    background: #322828;
    color: #fff;
}

.account__back {
    display: inline-block;
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6B615C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account__back:hover {
    color: #322828;
}

.account__done {
    max-width: 620px;
    padding: 40px;
    border: 1px solid #E4E1DA;
    background: #FBFAF8;
}

.account__done .account__subtitle {
    margin-bottom: 16px;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    background: #EFEDE9;
    color: #6B615C;
}

.status--new {
    background: #E2E7E0;
    color: #3C5040;
}

.status--done {
    background: #E7E4F0;
    color: #4A4363;
}

/* --- Текстовые страницы: о компании, дизайнерам, политика, оферта, статьи --- */

.legal {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.legal h1 {
    margin: 0 0 32px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #322828;
}

.legal h2 {
    margin: 44px 0 14px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 32px;
    color: #322828;
}

.legal h3 {
    margin: 32px 0 10px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.legal p,
.legal li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #4A413D;
}

.legal p {
    margin: 0 0 18px;
    max-width: 68ch;
}

.legal ul,
.legal ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

.legal li {
    margin-bottom: 8px;
}

.legal li::marker {
    color: #A9A099;
}

.legal strong {
    font-weight: 600;
    color: #322828;
}

.legal a {
    color: #322828;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .account__cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .account {
        padding: 32px 20px 64px;
    }

    .account__title {
        font-size: 32px;
    }

    .account__tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .account__col,
    .account__done {
        padding: 24px 20px;
    }

    .account__subtitle {
        font-size: 24px;
    }

    .legal {
        padding: 36px 20px 64px;
    }

    .legal h1 {
        font-size: 32px;
    }

    .legal h2 {
        font-size: 22px;
        line-height: 28px;
    }

    .legal p,
    .legal li {
        font-size: 15px;
        line-height: 26px;
    }
}

/* --- Модалка заявки --- */

.leadmodal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 16, 15, .62);
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.leadmodal[hidden] {
    display: none;
}

.leadmodal__inner {
    position: relative;
    width: min(600px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: #322828;
    color: #F2F1ED;
    padding: 44px 48px 40px;
}

.leadmodal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.leadmodal__manager-photo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

.leadmodal__heading {
    min-width: 0;
}

.leadmodal__title {
    margin: 0 0 6px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 30px;
    line-height: 36px;
}

.leadmodal__product {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    opacity: .65;
}

.leadmodal__product:empty {
    display: none;
}

.leadmodal__close {
    position: absolute;
    top: 12px;
    right: 20px;
    border: 0;
    background: none;
    color: #F2F1ED;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
}

.leadmodal__close:hover {
    opacity: 1;
}

.leadmodal .lead__form {
    width: 100%;
}

.leadmodal .lead__submit {
    width: 100%;
    margin-top: 24px;
}

@media (max-width: 640px) {
    .leadmodal__inner {
        padding: 32px 20px 28px;
    }

    .leadmodal__header {
        gap: 12px;
    }

    .leadmodal__manager-photo {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .leadmodal__title {
        font-size: 24px;
        line-height: 30px;
    }
}

/* --- Дизайнерам: карточки проектов --- */

.pagehead__lead--left {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: 680px;
    margin-bottom: 40px;
}

.dcase {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.dcase__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #EFEDE9;
}

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

.dcase:hover .dcase__media img {
    transform: scale(1.04);
}

.dcase__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dcase__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dcase__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dcase__author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dcase__author-name {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 15px;
    color: #322828;
}

.dcase__author-role {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #948A84;
}

.dcase__title {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.dcase__meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 19px;
    color: #6B615C;
}

.dcase__all {
    margin-top: 40px;
}

/* --- Лента «Дизайнеры рекомендуют» --- */
/* Слева выравнена по контейнеру, справа уходит за край экрана — как ленты
   «идеи», «блог» и «отзывы» в макете. */

.recommend {
    overflow-x: clip;
    padding-left: var(--gutter, var(--container-pad, 64px));
    padding-right: 0;
}

.recommend__head {
    padding-right: var(--gutter, var(--container-pad, 64px));
}

.products.recommend__slider {
    width: auto;
    margin-right: 0;
    overflow: visible;
}

.products.recommend__slider .swiper-wrapper {
    align-items: stretch;
}

.products.recommend__slider .swiper-slide {
    width: 367px;
    max-width: 78vw;
    height: auto;
}

.products.recommend__slider .product {
    height: 100%;
}

@media (max-width: 768px) {
    .recommend {
        padding-left: 20px;
    }

    .recommend__head {
        padding-right: 20px;
    }

    .products.recommend__slider .swiper-slide {
        width: 280px;
    }
}

/* --- Карточка витрины: длинный текст не должен распирать сетку --- */
/* В макете подписи были короткие и в одну строку; описания из каталога
   бывают длиннее и раньше вылезали за правый край страницы. */

.product__top,
.product__info {
    min-width: 0;
    max-width: 100%;
}

.product__name,
.product__price {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product__price--request {
    white-space: normal;
    overflow: visible;
}

/* --- Табы стилей над лентой рекомендаций --- */
/* Оформление берём из макета (.filter): рамка, скругление, ховер с тёмным фоном.
   Здесь только приводим <button> к виду ссылки — фон не сбрасываем,
   иначе на ховере белый текст оказывается на прозрачном фоне. */

.recommend .filter {
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background .2s, color .2s, opacity .2s;
}

.recommend .filter:hover,
.recommend .filter--active {
    background: #221d18;
    color: #ffffff;
}

.recommend .filter--active:hover {
    opacity: .88;
}

[data-showcase] {
    transition: opacity .2s;
}

.swiper-slide--empty {
    width: min(520px, 80vw);
    display: flex;
    align-items: center;
}

.products__empty {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #6B615C;
}

/* ==========================================================================
   Первый экран на ноутбучных ширинах
   ========================================================================== */

/* На 1420–1720 пропорция макета (56.25vw) даёт экран выше окна. Первый экран
   должен помещаться целиком вместе с верхним меню, поэтому ведём его по высоте
   окна за вычетом topbar. */

@media (min-width: 1420px) and (max-width: 1720px) {
    .hero {
        height: calc(100vh - var(--topbar-h));
        height: calc(100svh - var(--topbar-h));
    }
}

/* --- Коллекции на узких экранах: колонки в столбик --- */

@media (max-width: 900px) {
    .collection {
        flex-direction: column;
        gap: 24px;
        padding: 0 20px 48px;
    }

    .collection--reverse {
        flex-direction: column;
    }

    .collection__info {
        width: 100%;
        min-width: 0;
        gap: 24px;
    }

    .collection__media {
        width: 100%;
    }

    /* теги идут в одну строку и выпирают за экран — переносим */
    .collection__tags,
    .collection__colors {
        flex-wrap: wrap;
    }
}

/* --- Варианты исполнения на карточке товара --- */

.pvariants {
    margin-top: 24px;
}

.pvariants__title {
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #A9A099;
}

.pvariants__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pvariants__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 11px 16px;
    appearance: none;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, background-color .2s;
}

.pvariants__item:hover {
    border-color: #C0B8AF;
}

.pvariants__item.is-active {
    border-color: #322828;
    background: #FBFAF8;
}

.pvariants__name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #6B615C;
}

.pvariants__item.is-active .pvariants__name {
    color: #322828;
}

.pvariants__price {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    color: #322828;
    white-space: nowrap;
}

.pvariants__note {
    margin: 10px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 19px;
    color: #A9A099;
}

.pvariants__note[hidden] {
    display: none;
}

/* --- Проекты на главной ---
   Секция намеренно высокая: внутри неё стоит закреплённая сцена, и пока
   страница проходит эту высоту, фото остаётся на месте, а подсветка в списке
   переезжает с проекта на проект. Отступы в самом списке при этом обычные. */

.projects {
    display: block;
    height: calc(var(--projects-count, 3) * 70vh + 30vh);
    /* Отступ снизу — padding, а прилипание ограничено внутренней дорожкой:
       она короче секции ровно на этот отступ, поэтому фотография открепляется
       заранее и под ней остаётся белое поле, а не следующий блок. */
    padding-bottom: 140px;
}

.projects__track {
    height: 100%;
}

.projects__stage {
    position: sticky;
    top: 110px;
    display: grid;
    /* ровно пополам: фото заканчивается на середине экрана.
       Именно 50%, а не 1fr — колонка с текстом не даёт 1fr сжаться до половины */
    grid-template-columns: 50% 50%;
    gap: 0;
    /* высоту ведём по содержимому: жёсткая height не мешала строке грида
       растягиваться под список, и фотография вылезала за сцену, съедая
       отступ до следующего блока */
    height: auto;
    min-height: min(60vh, 720px);
    max-height: min(84vh, 900px);
}

.projects__media {
    position: relative;
    /* шире 800 не растёт — на больших экранах слева остаётся поле */
    width: min(100%, 800px);
    /* макет до 1919px держит фотографию по пропорции 955/1035, и она
       перерастала закреплённую сцену почти на сотню пикселей — из-за этого
       съедался отступ до следующего блока. Здесь высоту задаёт сцена. */
    aspect-ratio: auto;
    height: 100%;
    margin-left: auto;
    align-self: stretch;
}

.projects__shot {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
}

.projects__shot.is-active {
    opacity: 1;
    visibility: visible;
}

.projects__shot .projects__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.projects__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    height: 100%;
    /* правый край — по границе контейнера, а не по краю экрана */
    padding-left: 64px;
    padding-right: var(--gutter, 64px);
}

/* длинные названия переносятся, а не лезут на фотографию */
.projects__list .projects__item,
.projects__list .projects__item-text {
    max-width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.projects__list .projects__item-name {
    letter-spacing: -1px;
    text-wrap: balance;
}

/* пункт списка стал ссылкой — возвращаем вид из макета */
a.projects__item {
    text-decoration: none;
    transition: opacity .35s ease;
}

.projects__item--muted {
    opacity: .3;
}

.projects__item.is-current {
    opacity: 1;
}

@media (max-width: 900px) {
    .projects {
        height: auto;
        padding-bottom: 72px;
    }

    .projects__track {
        height: auto;
    }

    .projects__stage {
        position: static;
        grid-template-columns: 1fr;
        height: auto;
    }

    .projects__media {
        height: auto;
        aspect-ratio: 955 / 1035;
    }

    .projects__list {
        gap: 28px;
        height: auto;
        padding: 32px 20px 0;
    }

    .projects__media {
        width: 100%;
        margin-left: 0;
    }
}

/* --- Страница проекта --- */

.prj {
    width: 100%;
    max-width: var(--container-max, 1920px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px) 96px;
}

.prj__inner {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.prj__text {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.prj__lead {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #4A4340;
}

.prj__btn {
    align-self: flex-start;
}

/* В проектах по 12-15 кадров разного формата. Горизонтальные ставим во всю
   ширину — обрезать их в половину колонки значит терять кадр. Вертикальные
   идут парами, иначе страница вытягивается на полтора десятка экранов. */
.prj__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.prj__shot--wide {
    grid-column: 1 / -1;
}

.prj__shot {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
}

/* кадры приходят разной высоты, и ряды получались рваными: задаём формат
   колонке, а само фото вписываем по центру */
.prj__shot img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform .5s ease;
}

.prj__shot--wide img {
    aspect-ratio: 16 / 9;
}

.prj__shot:hover img {
    transform: scale(1.03);
}

/* карточка другого проекта */
.prjcard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
}

.prjcard__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
}

.prjcard__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .5s ease;
}

.prjcard:hover .prjcard__media img {
    transform: scale(1.04);
}

.prjcard__name {
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    color: #322828;
}

.prjcard__desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6B615C;
}

@media (max-width: 1024px) {
    .prj__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .prj__text {
        position: static;
    }
}

@media (max-width: 640px) {
    .prj__gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .prj {
        padding: 0 20px 64px;
    }
}

/* ==========================================================================
   Плавность прокрутки
   Размытие фона (backdrop-filter) пересчитывается на каждом кадре, поэтому
   держим его только там, где оно реально видно.
   ========================================================================== */

/* у скрытых снимков проектов размывать нечего */
.projects__shot:not(.is-active) .projects__view {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Шапка внутренних страниц. Наверху она сплошная, а по мере прокрутки
   становится стеклянной, как на главной: долю задаёт скрипт в переменной
   --glass (0 вверху, 1 когда шапка сжалась). Подложку держим плотнее, чем на
   главной: там стекло лежит на тёмном видео, а здесь под ним светлый контент,
   и белые логотип с иконками на прозрачной панели читались бы плохо.

   position: relative обязателен — логотип лежит абсолютом и раньше
   отсчитывался от backdrop-filter, которого в покое теперь нет. */
.header--solid {
    position: relative;
    /* переход нужен, когда прокрутка прыгает сразу: якорь, Home, End */
    transition: background-color .35s ease, box-shadow .35s ease,
                backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease;
}

.header--solid,
.header--solid.header--fixed {
    background: rgba(50, 40, 40, calc(1 - var(--glass, 0) * 0.42));
    backdrop-filter: blur(calc(var(--glass, 0) * 26px));
    -webkit-backdrop-filter: blur(calc(var(--glass, 0) * 26px));
}

/* пока страница вверху, размывать нечего — экономим кадры прокрутки */
.header--solid:not(.header--fixed) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Блок проектов теперь закреплённый: фотография остаётся в кадре всю секцию,
   и появление по view() пересчитывалось на каждом кадре прокрутки. Эффект там
   и не нужен — снимки и так меняются по мере прохода секции. */
.home .projects__media {
    animation: none;
    will-change: auto;
}

/* тяжёлые секции внизу страницы браузер может не отрисовывать,
   пока они не понадобятся; высоту подсказываем, чтобы прокрутка не прыгала */
.insta,
.blog {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

/* --- Страница проекта: части описания и сайт заказчика --- */

.prj__client {
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6B615C;
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 97, 92, .35);
    transition: color .2s, border-color .2s;
}

.prj__client:hover {
    color: #C46A4B;
    border-color: #C46A4B;
}

.prj__part {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prj__part-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #A9A099;
}

/* ==========================================================================
   Карточки товара: подписи по левому краю и переносимое описание
   В макете они центрированы и в одну строку с обрезкой, но названия и
   материалы из базы длиннее макетных — центр смотрится случайным, а обрезка
   съедает половину описания.
   ========================================================================== */

.product__info,
.product__top,
.pcard2__info,
.pcard2__top {
    text-align: center;
    align-items: center;
}

.product__name,
.product__price,
.pcard2__name,
.pcard2__price {
    text-align: center;
}

/* название — максимум две строки, дальше многоточие */
.product__name,
.pcard2__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
}

/* ряды в ленте товаров: в макете отступ 10px рассчитан на подписи в одну
   строку, а название занимает две */
.products {
    row-gap: 36px;
}

/* --- Отступы между секциями на странице идеи --- */

.ideahero + .legal {
    padding-top: 24px;
}

.legal + .similar,
.similar + .cards {
    padding-top: 56px;
}

.cards + .lead {
    margin-top: 56px;
}

/* --- Цитата про Pinterest ---
   Логотип стоит инлайновым значком и красится через currentColor: картинкой
   с зашитым цветом перекрасить его было нечем. При наведении на цитату
   значок и слово рядом берут фирменный красный Pinterest. */

.pinterest__quote .pinterest__accent {
    transition: color .28s ease;
}

.pinterest__logo {
    color: inherit;
    transition: color .28s ease;
}

.pinterest__quote:hover .pinterest__accent,
.pinterest__quote:focus-within .pinterest__accent {
    color: #E60023;
}

/* ==========================================================================
   Дерево категорий в фильтрах
   Раздел открывается стрелкой, подкатегории уходят вправо. Больше десяти
   прячем под кнопку, чтобы колонка не растягивалась на три экрана.
   ========================================================================== */

.filters2__list--tree {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ftree__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ftree__row .filters2__link {
    flex: 1 1 auto;
}

.filters2__link.is-current {
    color: #322828;
    font-weight: 500;
}

/* стрелка видна только у раскрытого раздела и под курсором:
   у свёрнутых она превращала список в частокол значков */
.ftree__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    padding: 0;
    appearance: none;
    border: 0;
    background: none;
    color: #A9A099;
    cursor: pointer;
    opacity: 0;
    transition: color .2s ease, transform .25s ease, opacity .2s ease;
}

.ftree__row:hover .ftree__toggle,
.ftree__toggle:focus-visible,
.ftree__item.is-open .ftree__toggle {
    opacity: 1;
}

.ftree__toggle svg {
    width: 14px;
    height: 14px;
}

.ftree__toggle:hover {
    color: #322828;
}

.ftree__item.is-open .ftree__toggle {
    transform: rotate(180deg);
    color: #322828;
}

.ftree__kids {
    display: none;
    flex-direction: column;
    gap: 1px;
    margin: 4px 0 8px;
    padding: 0 0 0 14px;
    border-left: 1px solid #EDEAE4;
    list-style: none;
}

.ftree__item.is-open .ftree__kids {
    display: flex;
}

.ftree__kid {
    margin: 0;
}

.ftree__kid[hidden] {
    display: none;
}

.ftree__link {
    display: block;
    padding: 5px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 19px;
    color: #6B615C;
    text-decoration: none;
    transition: color .2s ease;
}

.ftree__link:hover {
    color: #322828;
}

.ftree__link.is-current {
    color: #322828;
    font-weight: 500;
}

.ftree__more {
    margin-top: 4px;
    padding: 4px 0;
    appearance: none;
    border: 0;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #A9A099;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .2s ease;
}

.ftree__more:hover {
    color: #322828;
}

/* ==========================================================================
   Сортировка каталога
   Системный выпадающий список рисует операционная система, оформить его
   нельзя. Рядом ставим свой, а настоящий select прячем — он и отправляет
   значение, поэтому без скрипта страница продолжает работать.
   ========================================================================== */

.sortbox {
    position: relative;
    display: inline-block;
}

/* Настоящий select после подмены прячем, но он остаётся в форме и отправляет
   значение. Обнулять padding и border обязательно: с ними ширина не сжимается
   до 1px (мешают собственные отступы поля), и поле выпирало за правый край
   страницы — на 1440px из-за этого появлялась прокрутка на 6px и белый просвет. */

.sortbox__native {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.sortbox__button {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 14px;
    appearance: none;
    border: 1px solid #E4E1DA;
    border-radius: 999px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #322828;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease;
}

.sortbox__button:hover {
    border-color: #C0B8AF;
}

.sortbox.is-open .sortbox__button {
    border-color: #322828;
}

.sortbox__caret {
    display: flex;
    color: #A9A099;
    transition: transform .25s ease, color .2s ease;
}

.sortbox__caret svg {
    width: 15px;
    height: 15px;
}

.sortbox.is-open .sortbox__caret {
    transform: rotate(180deg);
    color: #322828;
}

.sortbox__list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    min-width: 210px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(50, 40, 40, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .28s cubic-bezier(.22, .8, .3, 1),
                visibility 0s linear .28s;
}

.sortbox.is-open .sortbox__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, transform .3s cubic-bezier(.22, .8, .3, 1), visibility 0s;
}

.sortbox__option {
    /* обёртка .cat2bar__sort из макета задаёт капс — списку он не нужен */
    text-transform: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6B615C;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.sortbox__option:hover {
    background: #F4F2EE;
    color: #322828;
}

.sortbox__option.is-current {
    background: #322828;
    color: #fff;
}

/* ==========================================================================
   Просмотр фотографий во весь экран
   ========================================================================== */

.lightbox__swiper {
    width: 100%;
    height: 100%;
    padding: 72px 16px 88px;
}

.lightbox__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__slide .lightbox__img {
    max-width: min(92vw, 1500px);
    max-height: calc(100vh - 170px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox__close,
.lightbox__arrow {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease;
}

.lightbox__close {
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
}

.lightbox__arrow {
    top: 50%;
    width: 54px;
    height: 54px;
    margin-top: -27px;
}

.lightbox__arrow--prev {
    left: 26px;
}

.lightbox__arrow--next {
    right: 26px;
}

.lightbox__close svg {
    width: 20px;
    height: 20px;
}

.lightbox__arrow svg {
    width: 22px;
    height: 22px;
}

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

/* Swiper сам гасит стрелки на краях — используем его класс */
.lightbox__arrow.swiper-button-disabled {
    opacity: .25;
    pointer-events: none;
}

.lightbox__counter {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    margin: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .7);
}

@media (max-width: 768px) {
    .lightbox__swiper {
        padding: 64px 8px 72px;
    }

    .lightbox__arrow {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }

    .lightbox__arrow--prev {
        left: 10px;
    }

    .lightbox__arrow--next {
        right: 10px;
    }
}

/* ==========================================================================
   Кнопка звука на видео первого экрана
   Видео стартует без звука — иначе браузер не даст автозапуск.
   ========================================================================== */

.vsound {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(50, 40, 40, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Bitum', Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .02em;
    color: #ffffff;
    cursor: pointer;
    transition: background-color .25s ease;
}

.vsound:hover {
    background: rgba(50, 40, 40, .8);
}

.vsound__icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.vsound__on,
.vsound.is-on .vsound__off {
    display: none;
}

.vsound.is-on .vsound__on {
    display: block;
}

@media (max-width: 760px) {
    .vsound {
        right: 12px;
        bottom: 12px;
        height: 36px;
        padding: 0 13px;
        font-size: 12px;
    }
}

/* --- QR-код с визиткой в подвале --- */

.footer__qr-link {
    display: block;
    line-height: 0;
}

.footer__qr-img {
    /* картинка теперь векторная — cover обрезал бы поля кода */
    object-fit: contain;
    transform-origin: center;
    transition: transform .18s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .footer__qr-img {
        transition: none;
    }
}

/* --- Блок «увидеть вживую» на карточке товара --- */

.fabrics__item {
    border-radius: 10px;
}

/* --- Видео-аватар менеджера --- */

video.pcard__manager-avatar {
    flex: 0 0 auto;
    background: #F1EEE8;
}

/* Кнопки остаются внутри карточки менеджера даже на узком телефоне. */
.pcard__manager .pcard__messengers {
    flex-wrap: wrap;
}

/* --- Ролик внутри статьи журнала --- */

.aboutvid--article {
    /* кадр вертикальный: на всю ширину колонки статьи он занимал бы целый экран */
    width: 100%;
    max-width: 360px;
    margin: 36px 0 12px;
}


/* Картинки внутри скруглённых обёрток наследуют их радиус: при увеличении
   по наведению браузер иначе показывает прямые уголки поверх скругления. */

.product__img img,
.pcard2__media img,
.pcard__shot img,
.ideacard__media img,
.jcard__media img,
.post__media img,
.idea__media img,
.idea__shot img,
.collection__cover img,
.subcat__media img,
.insta__cell img,
.prj__shot img,
.pgal__item img,
.fabrics__item img,
.bizprj__media img {
    border-radius: inherit;
}

/* ==========================================================================
   Телефон: шапка, меню и первый экран
   ========================================================================== */

/* на десктопе телефонная подпись кнопки и телефонные блоки меню не нужны */
.header__catalog-text--mob,
.menu__mobtitle,
.menu__grid,
.menu__pages,
.menu__bottom {
    display: none;
}

@media (max-width: 768px) {

    /* --- Шапка --- */

    .header__catalog {
        width: auto;
        height: 44px;
        padding: 0 16px;
        /* белая заливка перебивала собой весь первый экран */
        border: 1px solid rgba(255, 255, 255, .34);
        border-radius: 10px;
        background: rgba(50, 40, 40, .28);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .header__catalog-text {
        display: none;
    }

    .header__catalog-text--mob {
        display: inline;
        color: #FFFFFF;
        font-family: 'Inter', Arial, sans-serif;
        font-weight: 500;
        font-size: 13px;
        letter-spacing: .52px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .header__catalog-icon {
        width: 18px;
        height: 18px;
        filter: brightness(0) invert(1);
    }

    /* На мобильном логотип остаётся видимым, а закреплённая шапка сжимается. */
    .header {
        transition: background-color .3s ease, box-shadow .3s ease,
                    padding .25s ease, gap .25s ease;
    }

    .header__logo {
        transition: width .25s ease, height .25s ease;
    }

    .header--shrunk {
        gap: 6px;
        padding: 8px;
    }

    .header--shrunk .header__logo {
        width: 160px;
        height: 18px;
    }

    /* Белые иконки должны читаться и поверх светлых секций. */
    .header--hero.header--shrunk,
    .header--solid.header--shrunk {
        background: rgba(50, 40, 40, .92);
    }

    /* --- Первый экран --- */

    .hero {
        /* svh учитывает адресную строку — с vh заголовок уезжал под неё */
        height: 100svh;
        min-height: 560px;
    }

    .hero__title-wrap {
        height: auto;
        padding-bottom: 14vh;
    }

    .hero__title {
        font-size: clamp(22px, 6.2vw, 36px);
        line-height: 1.2;
        letter-spacing: -.5px;
    }

    /* --- Меню --- */

    .catalog-modal {
        padding: 0;
    }

    .catalog-modal .menu {
        min-height: 100svh;
        border-radius: 0;
        padding: 20px 16px 96px;
        /* выезжает снизу: так понятнее, что это панель, а не новая страница */
        animation: menu-rise .32s cubic-bezier(.22, .8, .3, 1);
    }

    @keyframes menu-rise {
        from { transform: translateY(24px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }

    .menu__top,
    .menu__cats,
    .menu__content {
        display: none;
    }

    .menu__mobtitle {
        display: block;
        margin: 0 0 20px;
        font-family: 'Bitum', Arial, sans-serif;
        font-weight: 300;
        font-size: 28px;
        line-height: 34px;
        color: #322828;
    }

    .catalog-modal .menu__close {
        left: auto;
        right: 8px;
        top: 8px;
        width: 44px;
        height: 44px;
    }

    .menu__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .menucard {
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-decoration: none;
        /* карточки появляются по очереди — лесенкой сверху вниз */
        animation: menu-card .38s both cubic-bezier(.22, .8, .3, 1);
    }

    .menucard:nth-child(2) { animation-delay: .04s; }
    .menucard:nth-child(3) { animation-delay: .08s; }
    .menucard:nth-child(4) { animation-delay: .12s; }
    .menucard:nth-child(5) { animation-delay: .16s; }
    .menucard:nth-child(6) { animation-delay: .2s; }
    .menucard:nth-child(7) { animation-delay: .24s; }

    @keyframes menu-card {
        from { transform: translateY(14px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }

    .menucard__media {
        display: block;
        aspect-ratio: 3 / 4;
        border-radius: 10px;
        overflow: hidden;
        background: #EFECE7;
    }

    .menucard__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
    }

    .menucard__name {
        font-family: 'Bitum', Arial, sans-serif;
        font-size: 17px;
        line-height: 22px;
        color: #322828;
    }

    .menu__pages {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 28px;
        padding-top: 24px;
        border-top: 1px solid #E4E1DA;
    }

    .menu__page {
        padding: 10px 14px;
        border: 1px solid #E4E1DA;
        border-radius: 8px;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: #322828;
        text-decoration: none;
    }

    .menu__bottom {
        position: sticky;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 28px -16px -96px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #E4E1DA;
        background: #FFFFFF;
    }

    .menu__btn {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .catalog-modal .menu,
    .menucard {
        animation: none;
    }
}

/* --- Ролики из ленты Instagram на главной --- */

.insta__reel {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #EFECE7;
}

.insta__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    cursor: pointer;
}

.insta__play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #322828;
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease;
}

.insta__play svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.insta__play:hover {
    transform: scale(1.08);
}

/* у играющего ролика кнопка не нужна — она перекрывает кадр */
.insta__reel.is-playing .insta__play,
.insta__reel--live .insta__play {
    opacity: 0;
    pointer-events: none;
}

/* звук и остановка: появляются, когда ролик играет */

.insta__controls {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
    /* кнопки видны всегда: прятать их за наведением на телефоне бессмысленно */
    opacity: .9;
    transition: opacity .25s ease;
}

.insta__reel:hover .insta__controls {
    opacity: 1;
}

/* пока ролик стоит, останавливать нечего */
.insta__reel:not(.is-playing) .insta__ctrl--stop {
    display: none;
}

.insta__ctrl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 17px;
    background: rgba(50, 40, 40, .5);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .25s ease;
}

.insta__ctrl:hover {
    background: rgba(50, 40, 40, .8);
}

.insta__ctrl--stop {
    padding: 0;
    width: 34px;
    justify-content: center;
}

.insta__ctrl svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* у выключенного звука — перечёркнутый динамик, у включённого — с волнами */
.insta__ico-on,
.insta__reel.is-loud .insta__ico-off {
    display: none;
}

.insta__reel.is-loud .insta__ico-on {
    display: block;
}

.insta__reel.is-loud .insta__ctrl--sound {
    background: rgba(255, 255, 255, .92);
    color: #322828;
}

/* --- Два склада: Китай и Россия --- */

.stocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.stocks__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 28px;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
}

.stocks__title {
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    color: #322828;
}

/* город — подпись под заголовком, мельче и светлее */
.stocks__city {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: .04em;
    color: #948A84;
}

.stocks__text {
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6B615C;
}

@media (max-width: 768px) {
    .stocks {
        grid-template-columns: 1fr;
    }

    .stocks__item {
        padding: 22px 20px;
    }
}

/* --- Артикул и приписка к цене на карточке товара --- */

.pcard__sku {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #948A84;
}

/* артикул стоит вплотную к названию: колоночный gap между ними снимаем,
   плюс у заголовка большой межстрочный интервал и свой воздух сверху */
.pcard__sku + .pcard__title {
    margin-top: -26px;
}

.pcard__sku-value {
    color: #322828;
}

.pcard__price-note {
    margin: 6px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #948A84;
}

/* --- Характеристики товара: строки, а не две колонки --- */

.specs__table {
    display: grid;
    gap: 22px;
    /* колонки макета больше не нужны: строку держит сетка */
    flex: 1 0 0;
    min-width: 0;
    margin: 0;
}

.specs__row {
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 32px;
    align-items: baseline;
    margin: 0;
}

.specs__name,
.specs__value {
    margin: 0;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.12px;
    color: #000000;
}

.specs__name {
    opacity: .4;
}

@media (max-width: 1280px) {
    .specs__row {
        grid-template-columns: clamp(90px, 12vw, 154px) minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .specs__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .specs__name,
    .specs__value {
        font-size: 17px;
        line-height: 24px;
    }
}

/* --- Просмотры у ролика: в правый нижний угол, на уровень кнопки --- */

.insta__views {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: auto;
    height: 46px;
    padding: 0 16px;
    border-radius: 23px;
    background: rgba(50, 40, 40, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.insta__views-icon {
    width: 18px;
    height: 18px;
}

.insta__views-text {
    font-size: 16px;
    letter-spacing: 0;
}

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

.faqhero {
    padding: 32px 0 8px;
}

.faqhero__inner {
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.faqhero__crumbs {
    margin: 0 0 20px;
}

.faqhero__title {
    margin: 0 0 18px;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #322828;
}

.faqhero__lead {
    /* строка ответа в макете шла на всю ширину экрана и читалась тяжело */
    max-width: 62ch;
    margin: 0 0 28px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 28px;
    color: #6B615C;
}

.faqhero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Раздел вопросов --- */

.faqgroup {
    padding: 40px 0 0;
}

.faqgroup__inner {
    display: grid;
    /* номер и название темы слева, вопросы справа — глазу есть за что зацепиться */
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: 64px;
    max-width: var(--container-inner, 1792px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 64px);
}

.faqgroup__head {
    position: sticky;
    top: 140px;
    align-self: start;
}

.faqgroup__num {
    display: block;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .16em;
    color: #C9C3B8;
}

.faqgroup__title {
    margin: 0;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 30px;
    line-height: 36px;
    color: #322828;
}

.faqgroup__list {
    max-width: none;
}

/* вопрос и ответ идут строками друг под другом, а не колонками:
   в макетном блоке вопрос вставал по центру длинного ответа */
.faqgroup .tfaq__q {
    padding: 26px 56px 26px 0;
    font-size: 21px;
    line-height: 30px;
}

.faqgroup .tfaq__a > p {
    max-width: 72ch;
    padding-right: 56px;
    font-size: 16px;
    line-height: 27px;
}

.faqgroup .tfaq__row--open .tfaq__a > p {
    padding-bottom: 28px;
}

/* --- Карточка материала для дизайнеров --- */

.faqcard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 36px 40px;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease;
}

.faqcard:hover {
    border-color: #C9C3B8;
    background: #FAF8F5;
}

.faqcard__label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #948A84;
}

.faqcard__title {
    max-width: 56ch;
    font-family: 'Bitum', Arial, sans-serif;
    font-weight: 300;
    font-size: 26px;
    line-height: 34px;
    color: #322828;
}

.faqcard__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

@media (max-width: 1024px) {
    .faqgroup__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faqgroup__head {
        position: static;
    }

    .faqhero__title {
        font-size: 40px;
        letter-spacing: -1px;
    }
}

@media (max-width: 768px) {
    .faqhero__inner,
    .faqgroup__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .faqhero__title {
        font-size: 32px;
    }

    .faqgroup .tfaq__q {
        padding: 20px 40px 20px 0;
        font-size: 18px;
        line-height: 26px;
    }

    .faqgroup .tfaq__a > p {
        padding-right: 0;
        font-size: 15px;
        line-height: 25px;
    }

    .faqcard {
        padding: 24px 20px;
    }

    .faqcard__title {
        font-size: 21px;
        line-height: 29px;
    }
}

/* --- Мессенджеры на карточке товара: наведение заливает кнопку целиком --- */

.pcard__messenger {
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.pcard__messenger:hover {
    border-color: #1A1A1A;
    background: #1A1A1A;
    color: #FFFFFF;
}

/* иконки лежат картинками — на тёмном их выбеливаем фильтром,
   у MAX иконка рисуется currentColor и белеет сама */
.pcard__messenger:hover img {
    filter: brightness(0) invert(1);
}

/* размер заголовка блока «увидеть вживую» задаём здесь: из макетного
   правила фиксированный кегль убран, а без него остаётся размер по умолчанию */
.fabrics__title {
    font-size: clamp(26px, 2.7vw, 52px);
    line-height: 1.2;
}

/* Новый ролик шоурума заполняет первый экран без увеличения из старого макета. */
.home .hero__media {
    width: 100%;
}

.home .hero__video {
    width: 100%;
    height: 100%;
}

/* На узком телефоне бренд занимает верхнюю строку, меню и действия — нижнюю. */
@media (max-width: 540px) {
    .header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "logo logo" "menu actions";
        column-gap: 8px;
        row-gap: 12px;
    }

    .header__logo {
        grid-area: logo;
        justify-self: center;
        margin: 0;
    }

    .header__catalog {
        grid-area: menu;
        justify-self: start;
    }

    .header__right {
        grid-area: actions;
        justify-self: end;
    }

    .header--shrunk {
        row-gap: 6px;
    }
}

/* Кнопка каталога и служебная иконка — одна группа слева. */
.header__start { display:flex; align-items:center; gap:8px; flex-shrink:0; }
@media (max-width:540px) {
    .header__start { grid-area:menu; justify-self:start; }
}
@media (max-width:360px) {
    .header__start .header__catalog { padding:0 10px; }
}

/* --- Менеджер: крупное видео слева, информация и контакты справа --- */
.pcard__manager {
    display: grid;
    grid-template-columns: minmax(90px, 22.5%) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    border-radius: 16px;
}

.pcard__manager-media,
.pcard__manager-content {
    min-width: 0;
}

.pcard__manager .pcard__manager-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 14px;
}

.pcard__manager-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pcard__manager .pcard__manager-quote {
    font-size: 18px;
    line-height: 23px;
}

.pcard__manager .pcard__manager-text {
    gap: 5px;
}

.pcard__manager .pcard__manager-name {
    font-size: 22px;
    line-height: 26px;
    font-weight: 400;
    white-space: normal;
}

.pcard__manager .pcard__manager-role {
    line-height: 16px;
    white-space: normal;
}

.pcard__manager .pcard__messengers {
    gap: 6px;
}

.pcard__manager .pcard__messenger {
    gap: 6px;
    padding: 9px 10px;
}

@media (max-width: 640px) {
    .pcard__manager {
        grid-template-columns: minmax(66px, 22.5%) minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .pcard__manager-content {
        gap: 12px;
    }

    .pcard__manager .pcard__manager-quote {
        font-size: 16px;
        line-height: 20px;
    }

    .pcard__manager .pcard__manager-name {
        font-size: 20px;
        line-height: 24px;
    }
}


/* --- Квиз: читаемые согласие и результат на светлом фоне --- */
.quiz .lead__consent,
.quiz .lead__consent-text,
.quiz .lead__consent-text a,
.quiz .lead__result {
    color: #322828;
}
.quiz .lead__consent,
.quiz .lead__result {
    grid-column: 1 / -1;
}
.quiz .lead__consent-box { border-color: rgba(50, 40, 40, .45); }
.quiz .lead__consent-input:checked + .lead__consent-box { background: #322828; border-color: #322828; }
.quiz .lead__consent-input:checked + .lead__consent-box::after { border-color: #F2F1ED; }
.quiz .lead__consent-input:focus-visible + .lead__consent-box { outline-color: #322828; }
.quiz .lead__result--error { color: #a32c20; }

/* --- Нижняя мобильная панель: мессенджеры 50%, подбор 50% --- */
.mobile-actions { display: none; }
.mobile-quiz {
    width: min(560px, calc(100% - 24px));
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #d2cfcb;
    color: #322828;
    overscroll-behavior: contain;
}
.mobile-quiz::backdrop { background: rgba(28, 22, 20, .55); }
.mobile-quiz__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #322828;
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
}
.mobile-quiz .quiz__hint { display: none; }
.mobile-quiz .quiz__progress { margin-top: 58px; }
.mobile-quiz .quiz__progress-bar { height: 3px; }
.mobile-quiz .quiz__body { gap: 20px; padding: 24px 20px; }
.mobile-quiz .quiz__title {
    height: auto;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.mobile-quiz .quiz__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mobile-quiz .quiz__option { min-height: 68px; height: auto; gap: 14px; padding: 14px; text-align: left; }
.mobile-quiz .quiz__icon { width: 26px; height: 26px; }
.mobile-quiz .quiz__label { font-size: 17px; line-height: 1.25; }
.mobile-quiz .quiz__radio { width: 22px; height: 22px; }
.mobile-quiz .quiz__foot { padding: 0 20px 20px; }
.mobile-quiz .quiz__step { font-size: 12px; }
.mobile-quiz .quiz__form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.mobile-quiz .quiz__field,
.mobile-quiz .quiz__submit { height: 54px; }
.mobile-quiz .lead__consent { align-items: flex-start; gap: 10px; font-size: 11px; }
.mobile-quiz .lead__consent-box { width: 22px; height: 22px; }
.mobile-quiz .quiz__done { margin: 0; font-size: 16px; line-height: 1.5; }
.mobile-actions a:focus-visible,
.mobile-actions button:focus-visible,
.mobile-quiz button:focus-visible { outline: 2px solid #322828; outline-offset: 3px; }

@media (max-width: 767px) {
    body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .mobile-actions {
        position: fixed;
        inset: auto 0 0;
        z-index: 95;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid #e0dcd6;
        background: #FBFAF8;
    }
    .mobile-actions__socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .mobile-actions__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 48px;
        border: 1px solid #ded9d1;
        border-radius: 8px;
        color: #322828;
        font: 10px/1.1 'Inter', Arial, sans-serif;
        text-decoration: none;
    }
    .mobile-actions__link img { width: 20px; height: 20px; }
    .mobile-actions__pick {
        min-width: 0;
        min-height: 48px;
        padding: 8px 12px;
        border: 1px solid #322828;
        border-radius: 8px;
        background: #322828;
        color: #FBFAF8;
        font: 13px/1.2 'Inter', Arial, sans-serif;
        cursor: pointer;
    }
    .cookiebar { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
