/* === БАЗА === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #e8e6e1;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* === ШАПКА === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 8px 0;
    background: rgba(10, 10, 10, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.5s ease;
}

.header:hover {
    background: rgba(10, 10, 10, 0.85);
}

/* На странице каталога шапка всегда тёмная */
.page-catalog .header {
    background: rgba(10, 10, 10, 0.9);
}

.header .nav.container {
    max-width: 100%;
    padding: 0 20px;
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.nav__left {
    position: relative;
    display: flex;
    align-items: center;
    justify-self: start;
    min-height: 32px;
}

.nav__search-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #e8e6e1;
    cursor: pointer;
    padding: 6px 0;
    font-family: inherit;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav__search-toggle:hover {
    opacity: 0.7;
}

.nav__search-toggle.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav__search-label {
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 300;
}

.nav__center {
    display: flex;
    align-items: center;
    justify-self: center;
}

.nav__logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    letter-spacing: 5px;
    font-weight: 400;
    color: #e8e6e1;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 22px;
    justify-self: end;
}

.nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8e6e1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav__icon:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

/* === ПОЛЕ ПОИСКА === */
.search-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 5;
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
}

.search-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8e6e1;
    flex-shrink: 0;
    opacity: 0.9;
}

.search-bar__input {
    width: 320px;
    max-width: 100%;
    background: transparent;
    border: none;
    color: #e8e6e1;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 300;
    padding: 6px 0;
    outline: none;
}

.search-bar__input::placeholder {
    color: rgba(232, 230, 225, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 300;
}

.search-bar__close {
    background: none;
    border: none;
    color: #e8e6e1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 4px;
    flex-shrink: 0;
}

.search-bar__close:hover {
    opacity: 1;
}

/* === HERO === */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero__content {
    position: relative;
    text-align: center;
    z-index: 2;
    animation: fadeUp 1.5s ease-out;
}

.hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(60px, 10vw, 140px);
    font-weight: 300;
    letter-spacing: 12px;
    margin-bottom: 30px;
    line-height: 1;
}

.hero__subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 60px;
    opacity: 0.8;
}

.hero__cta {
    display: inline-block;
    padding: 18px 50px;
    border: 1px solid #e8e6e1;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.hero__cta:hover {
    background: #e8e6e1;
    color: #0a0a0a;
    opacity: 1;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: #e8e6e1;
    animation: scrollLine 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === ОБЩИЕ === */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2520);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    min-height: 400px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* === КОЛЛЕКЦИИ === */
.collections {
    padding: 70px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.collections .container { width: 100%; }
.collections .section-header { margin-bottom: 40px; }
.collections .section-title { margin-bottom: 0; }

.collections__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.collection-card {
    display: block;
    overflow: hidden;
    position: relative;
}

.collection-card:hover { opacity: 1; }

.collection-card__image {
    overflow: hidden;
    height: clamp(280px, 55vh, 460px);
}

.collection-card__image .placeholder {
    height: 100%;
    min-height: auto;
    transition: transform 1.2s ease;
}

.collection-card:hover .placeholder {
    transform: scale(1.05);
}

.collection-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s ease;
}

.collection-card:hover .collection-card__img {
    transform: scale(1.05);
}

.collection-card__content {
    padding: 22px 0 5px;
    text-align: center;
}

.collection-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: letter-spacing 0.4s ease;
}

.collection-card:hover .collection-card__title {
    letter-spacing: 7px;
}

.collection-card__subtitle {
    display: block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.5;
    font-weight: 300;
}

/* === ФОТООТЧЁТ === */
.reports {
    padding: 130px 0;
    background: #0d0d0d;
}

.reports__header {
    margin-bottom: 50px;
    text-align: left;
}

.reports__header .section-title { margin-bottom: 0; }

.reports__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.reports__row::-webkit-scrollbar {
    height: 1px;
}

.reports__row::-webkit-scrollbar-track {
    background: transparent;
}

.reports__row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06);
    border-radius: 0;
}

.reports__row::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.12);
}

.report-card {
    display: block;
    text-align: center;
    width: 100%;
}

.report-card:hover { opacity: 1; }

.report-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 18px;
}

.report-card__image .placeholder {
    width: 100%;
    height: 100%;
    min-height: auto;
    transition: transform 1s ease;
}

.report-card:hover .placeholder {
    transform: scale(1.05);
}

.report-card__title {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.report-card:hover .report-card__title { opacity: 1; }

/* === КОНТАКТЫ === */
.contacts {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contacts__inner {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contacts__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.9;
}

.contacts__phones {
    list-style: none;
    margin-bottom: 18px;
}

.contacts__phones li {
    margin-bottom: 5px;
}

.contacts__phones a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: #e8e6e1;
    font-weight: 300;
}

.contacts__phones a:hover { opacity: 0.7; }

.contacts__note {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.45;
    margin-left: 4px;
}

.contacts__address {
    font-size: 13px;
    letter-spacing: 0.5px;
    opacity: 0.6;
    font-weight: 300;
    margin-bottom: 18px;
}

.contacts__email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.8px;
    color: #e8e6e1;
    margin-bottom: 22px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.contacts__email:hover { opacity: 1; }

.contacts__email svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.contacts__socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.contacts__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contacts__social:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.contacts__social svg {
    display: block;
}

.contacts__meta-notice {
    font-size: 10px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    opacity: 0.35;
    font-weight: 300;
    margin-bottom: 22px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.contacts__copyright {
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.35;
    font-weight: 300;
}

/* === СТРАНИЦА КАТАЛОГА === */
.catalog-page {
    padding: 90px 0 80px;
    min-height: 100vh;
}

.catalog-page__header {
    text-align: center;
    margin-bottom: 50px;
}

.catalog-page__label {
    display: block;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.55;
    margin-bottom: 10px;
}

.catalog-page__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1;
}

.catalog-page__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.catalog-card {
    display: block;
    text-align: center;
}

.catalog-card:hover { opacity: 1; }

.catalog-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #1a1a1a, #2a2520);
}

.catalog-card__image .placeholder {
    width: 100%;
    height: 100%;
    min-height: auto;
    transition: transform 1s ease;
}

.catalog-card:hover .catalog-card__image .placeholder {
    transform: scale(1.05);
}

.catalog-card__title {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.catalog-card:hover .catalog-card__title {
    opacity: 1;
}

/* === АНИМАЦИИ === */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* === АДАПТИВ === */
@media (max-width: 968px) {
    .container { padding: 0 20px; }

    .header .nav.container { padding: 0 16px; }

    .nav { 
    grid-template-columns: 1fr auto 1fr; 
    gap: 14px; 
}

    .nav__search-label { display: none; }

    .nav__logo {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .nav__right { gap: 14px; }

    .search-bar__input {
        width: 200px;
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .search-bar__input::placeholder {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    /* Коллекции */
    .collections {
        padding: 90px 0 60px;
        min-height: auto;
    }

    .collections__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .collection-card__image {
        height: clamp(220px, 38vh, 320px);
    }

    .collection-card__title {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .collection-card__subtitle {
        font-size: 10px;
        letter-spacing: 3px;
    }

    /* Фотоотчёт */
    .reports {
        padding: 80px 0;
    }

    .reports__header {
        margin-bottom: 30px;
    }

    .reports__row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-right: 0;
        padding-right: 0;
    }

    

    .report-card__image {
        margin-bottom: 14px;
    }

    .report-card__title {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* Контакты */
    .contacts {
        padding: 45px 0 30px;
    }

    .contacts__heading {
        font-size: 22px;
        letter-spacing: 4px;
        margin-bottom: 20px;
    }

    .contacts__phones a {
        font-size: 13px;
    }

    .contacts__note {
        font-size: 10px;
    }

    .contacts__address {
        font-size: 12px;
        padding: 0 10px;
    }

    .contacts__email {
        font-size: 12px;
    }

    .contacts__copyright {
        font-size: 10px;
    }

    .hero__title { letter-spacing: 6px; }

    /* Каталог */
    .catalog-page {
        padding: 85px 0 60px;
    }

    .catalog-page__header {
        margin-bottom: 35px;
    }

    .catalog-page__label {
        font-size: 10px;
        letter-spacing: 4px;
        margin-bottom: 8px;
    }

    .catalog-page__title {
        letter-spacing: 4px;
    }

    .catalog-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .catalog-card__title {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .catalog-page__grid {
        gap: 16px;
    }
}


/* ===== СТРАНИЦА ВЫСТАВКИ ===== */
.exhibition {
    padding: 70px 0 40px;
    background: #0a0a0a;
}
.exhibition__header {
    margin: 0 0 24px 0;
    padding: 0;
}
.exhibition__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #f5f5f5;
    margin: 0;
}

/* Галерея: главное фото слева на всю ширину, узкая колонка превью справа */
.exhibition__gallery {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 16px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Главное фото — занимает всю ширину своей колонки, прижато к левому краю */
.exhibition__main {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.exhibition__main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin: 0;
}
.exhibition__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Описание — прямо под главным фото, по левому краю */
.exhibition__description {
    margin: 22px 0 0 0;
    padding: 0;
    color: #cfcfcf;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
    width: 100%;
    max-width: 100%;
}
.exhibition__description p { margin: 0; }

/* Превью — узкая колонка, 2 столбца маленьких квадратов */
.exhibition__thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 400px;
    align-self: start;
}
.exhibition__thumb {
    position: relative;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
}
.exhibition__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.exhibition__thumb:hover { opacity: 0.85; border-color: rgba(255,255,255,0.2); }
.exhibition__thumb.active { border-color: rgba(255,255,255,0.4); }

.exhibition__arrows {
    position: absolute;
    bottom: 20px; right: 20px;
    display: flex; gap: 10px;
    z-index: 2;
}

@media (max-width: 900px) {
    .exhibition__gallery { grid-template-columns: 1fr; }
    .exhibition__thumbs { grid-template-columns: repeat(4, 1fr); width: 100%; }
}
@media (max-width: 500px) {
    .exhibition__thumbs { grid-template-columns: repeat(2, 1fr); }
}


/* ===== СТРАНИЦА ТКАНИ (FABRIC) ===== */
.fabric {
    padding: 90px 0 60px;
    background: #0a0a0a;
    min-height: calc(100vh - 80px);
}

.fabric__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.fabric__layout {
    display: grid;
    grid-template-columns: 160px 720px auto;
    gap: 30px;
    align-items: start;
    justify-content: start;
}

/* === ЛЕВАЯ КОЛОНКА: фото / видео === */
.fabric__sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fabric__side-thumb {
    position: relative;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a1a;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.fabric__side-thumb:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.fabric__side-thumb.active {
    border-color: rgba(255, 255, 255, 0.5);
}

.fabric__side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fabric__side-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    min-height: auto;
}

/* === ЦЕНТР: главное изображение === */
.fabric__main {
    position: relative;
    width: 720px;
    height: 720px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.fabric__main-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.fabric__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fabric__main-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

/* Стрелки */
.fabric__arrows {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.fabric__arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    transition: background 0.3s ease, transform 0.3s ease;
}

.fabric__arrow:hover {
    background: #fff;
    transform: scale(1.06);
}

/* === ПРАВАЯ КОЛОНКА === */
.fabric__info {
    padding-top: 6px;
    width: 340px;
}

.fabric__label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 16px;
    line-height: 1;
}

.fabric__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 2.8vw, 38px);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #f5f5f5;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.fabric__sku {
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.55;
    margin: 0 0 26px;
}

.fabric__sku span {
    opacity: 0.95;
    color: #f5f5f5;
}

.fabric__variant {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fabric__variant-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.5;
}

.fabric__variant-value {
    font-size: 13px;
    color: #f5f5f5;
    letter-spacing: 1px;
}

/* Цвета */
.fabric__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fabric__color {
    position: relative;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1a;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.fabric__color:hover {
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.fabric__color.active {
    border-color: #f5f5f5;
    border-width: 2px;
}

.fabric__color img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fabric__color-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    font-size: 10px;
    letter-spacing: 0;
}

/* === АДАПТИВ === */
@media (max-width: 1200px) {
    .fabric__layout {
        grid-template-columns: 140px 1fr 320px;
        gap: 24px;
        justify-content: stretch;
    }
    .fabric__side-thumb {
        width: 140px;
        height: 140px;
    }
    .fabric__main {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 600px;
    }
}

@media (max-width: 1024px) {
    .fabric__container {
        padding: 0 24px;
    }
    .fabric__layout {
        grid-template-columns: 110px 1fr 280px;
        gap: 20px;
    }
    .fabric__side-thumb {
        width: 110px;
        height: 110px;
    }
    .fabric__main {
        max-width: 500px;
    }
    .fabric__info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .fabric {
        padding: 85px 0 40px;
    }
    .fabric__container {
        padding: 0 20px;
    }
    .fabric__layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .fabric__sidebar {
        flex-direction: row;
        order: 2;
        justify-content: flex-start;
        gap: 12px;
    }
    .fabric__side-thumb {
        width: 90px;
        height: 90px;
    }
    .fabric__main {
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 100%;
    }
    .fabric__info {
        order: 3;
        width: 100%;
    }
    .fabric__colors {
        justify-content: flex-start;
    }
    .fabric__color {
        width: 44px;
        height: 44px;
    }
}
/* === Звёздочка рядом с Instagram === */
.contacts__social--ig {
    position: relative;
}

.contacts__ig-star {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 16px;
    line-height: 1;
    color: #e8e6e1;
    opacity: 0.7;
    font-weight: 400;
    pointer-events: none;
}


/* === FABRIC SPECS BLOCK === */

.fabric__specs {
    margin: 4px 0 26px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fabric__specs .spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 12px;
}
.fabric__specs .spec-label {
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.15em;
    font-weight: 300;
}
.fabric__specs .spec-value {
    color: #f5f5f5;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-size: 12px;
}
.fabric__specs .spec-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}
.fabric__specs .spec-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    flex-shrink: 0;
}
.fabric__specs .spec-icon svg,
.fabric__specs .spec-icon img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    filter: invert(1) brightness(1.1);
    opacity: 0.85;
    display: block;
}

/* Цифры в названии CAT.XXX — системный шрифт (SF Pro / San Francisco) */
.fabric__name .cat-num,
.catalog-card__name .cat-num {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 200;
    font-size: 1em;
    letter-spacing: 0;
}








.report-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Сдвиг кадрирования обложки Home Fest 15 */
.report-card[href="homefest15.html"] .report-card__image img {
    object-position: left center;
}


/* Сдвиг кадрирования вниз для 4-го фото в главном блоке Home Fest 15 */
.exhibition__main-image.main-shift-down img {
    object-position: center 10%;
}


/* Кадрирование главных фото в выставках */

body.page-homefest13 .exhibition__main-image.main-shift-3 img { object-position: center 60%; }

/* Размер иконки Pattern direction (без сдвига строки) */
.fabric__specs .spec-row[data-spec="pattern"] {
    position: relative;
    height: 24px;              /* как у остальных строк */
    min-height: 24px;
}

.fabric__specs .spec-row[data-spec="pattern"] .spec-icons {
    position: relative;
    height: 24px;
    overflow: visible;
}

.fabric__specs .spec-row[data-spec="pattern"] .spec-icon {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
}

.fabric__specs .spec-row[data-spec="pattern"] .spec-icon img {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
}




/* OEKO-TEX badge — фиксированный относительно блока цветов */
.fabric__info {
    position: relative;
}

.fabric__colors {
    position: relative;
}

.fabric__colors::after {
    content: "";
    position: absolute;
    right: 0;
    top: -55px;
    width: 48px;
    height: 48px;
    background: url('icons/oeko.png') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 3;
}

.fabric__info::after {
    display: none;
}

/* === Обложки каталогов === */
.catalog-card__image {
    position: relative;
}
.catalog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}
.catalog-card:hover .catalog-card__image img {
    transform: scale(1.05);
}

/* HomeFest 14 — кадрирование главных фото */
body.page-homefest14 .exhibition__main-image.main-shift-1 img { object-position: center 35%; } /* фото 2: выше на 15% */
body.page-homefest14 .exhibition__main-image.main-shift-5 img { object-position: center 65%; } /* фото 6: в самый низ */

.fabric__article-extra {
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.55;
    margin: 18px 0 14px;
}

.fabric__article-extra span {
    opacity: 0.95;
    color: #f5f5f5;
}

/* Скрываем OEKO-TEX для каталога 617 */
body.cat-617 .fabric__colors::after {
    display: none;
}
/* === Адаптация длинного состава только для каталога 03 === */
body.cat-03 .fabric__specs .spec-row:has(#specComposition) {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

body.cat-03 #specComposition {
  text-align: right;
  font-size: 0.85em;
  line-height: 1.4;
  max-width: 70%;
  word-break: normal;
  overflow-wrap: break-word;
}
/* === КОНТАКТЫ: соцсети со строками-подписями === */
.contacts__socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.contacts__social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contacts__social-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: #e8e6e1;
    opacity: 0.75;
    font-weight: 300;
}

.contacts__social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Размер значков уменьшен на 25% (28px → 21px) */
.contacts__social-icons svg,
.contacts__social-icons img {
    display: block;
    width: 21px;
    height: 21px;
    border-radius: 6px;
}

@media (max-width: 968px) {
    .contacts__social-label {
        font-size: 11px;
    }
}
/* === Сообщение об ошибке поиска === */
.search-bar__error {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    max-width: 320px;
    background: #2a2a2a;
    color: #f0d9d9;
    font-size: 12px;
    line-height: 1.4;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 200;
    pointer-events: none;
}
.search-bar__error.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== МОБИЛЬНЫЙ ПОИСК — строка под шапкой ===== */
@media (max-width: 968px) {
    .search-bar {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        width: 100%;
        transform: translateY(-8px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 10px 16px;
        box-sizing: border-box;
        gap: 10px;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .search-bar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .search-bar__input {
        width: 100%;
        flex: 1;
    }

    .search-bar__error {
        position: fixed;
        top: 103px; /* 53px шапка + 50px строка поиска */
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0;
    }
}
