/* Calibri */
@font-face {
    font-family: "CalibriCustom";
    src: url("fonts/calibri.ttf") format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "CalibriCustom";
    src: url("fonts/calibri_bold.ttf") format("truetype");
    font-weight: bold;
}

/* Ludwig van Beethoven */
@font-face {
    font-family: "LudwigVan";
    src: url("fonts/ludvigvanbethoveen.ttf") format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}


@font-face {
    font-family: 'PlayfairDisplay';
    src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Arial";
    src: url("fonts/arialmt.ttf") format("truetype");
    font-weight: bold;
}

.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #595959;
    font-family: 'Montserrat', sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;

    height: 600px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 0;
    z-index: 100;
}

.header--compact {
    background-image: none;
    background: transparent;
    height: auto;
    box-shadow: 0 1px 12px rgba(18, 18, 18, 0.08);
}

.header--compact .container {
    position: relative;
    padding: 20px;
}

.header--compact .nav-link {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.header--compact .nav-link.active,
.header--compact .nav-link:hover {
    color: #fff;
    background: rgba(17, 17, 17, 0.572);
}

.header--compact .nav-left,
.header--compact .nav-right {
    position: static;
}

.header--compact .nav-left {
    gap: 1.5rem;
}

.header--compact .nav-right {
    margin-left: auto;
}

.header--compact .header-container {
    display: flex;
    align-items: center;
}

/* Хэдер для страницы картин */
.header--paintings {
    position: relative;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    height: auto;
}

.header-container--paintings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    max-width: 100%;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.header-logo:hover {
    opacity: 0.8;
}

.header--paintings .nav-right {
    display: flex;
    gap: 1.5rem;
    margin-left: 0;
    z-index: 1001;
}

.header--paintings .nav-link {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header--paintings .nav-link.active,
.header--paintings .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.gallery-hero {
    background-image: url('images/index.jpg?v=20251204');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.gallery-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.6));
}

.gallery-hero__container {
    position: relative;
    z-index: 1;
    max-width: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gallery-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.gallery-hero__info-box {
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-hero__technique {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-hero__artist {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-hero__button {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
    border-radius: 4px;
}

.gallery-hero__button:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.gallery-hero__breadcrumb {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    opacity: 0.85;
}

.gallery-hero__title {
    font-size: clamp(4rem, 5vw, 6em);
    font-weight: 700;
}

.gallery-hero__description {
    font-size: 1.3rem;
    line-height: 1.75;
    opacity: 0.92;
}

.gallery-hero + .main {
    margin-top: -48px;
}

.gallery-hero--about {
    background-image: url('images/about-bg.jpg');
    padding: 140px 0;
    position: relative;
}

.gallery-hero--about::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.35), rgba(17, 17, 17, 0.55));
}

.gallery-hero--about .gallery-hero__container {
    gap: 20px;
    margin-left: 0;
    margin-right: auto;
}

.gallery-hero--about .gallery-hero__title {
    max-width: 560px;
}

.gallery-hero--about .gallery-hero__description {
    max-width: 520px;
}

.contacts-page {
    min-height: 100vh;
    background-image: url('images/contacts-bg.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 80px;
    text-align: center;
}


.contacts-content {
    backdrop-filter: blur(4px);
    padding: 20px;
    border-radius: 12px;
}

.contacts-title {
    font-family: 'LudwigVan';
    font-weight: 100;
    font-size: 82px;
    margin-bottom: 18px;
    color: white;
}

@font-face {
    font-family: "InriaSerif-Regular";
    src: url("fonts/InriaSerif-Regular.ttf") format("truetype");
    font-weight: normal;
}

.contacts-info {
    font-size: 16px;
    font-family: "InriaSerif-Regular";
    max-width: 650px;
    margin: 0 auto;
    line-height: 2;
    background: none !important; 
    padding: 0 !important;         /* Убираем отступы, чтобы не было «рамки» */
    border-radius: 0 !important;   /* На всякий случай */
    color: white;                  /* Цвет текста, можно любой */
    text-align: left;
}


.contacts-email {
    font-family: 'LudwigVan';
    font-size: 80px;
    margin-bottom: 25px;
    color: white;
}

/* Социальные кнопки */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* расстояние между кнопками */
    margin: 30px 0;
}

.social-links .social-btn img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-links .social-btn img:hover {
    transform: scale(1.1); /* легкое увеличение при наведении */
}

@media (max-width: 768px) {

    /* Бургер слева */
    .mobile-menu-btn {
        display: block;
        order: 1;
    }

    /* Прячем ПК меню */
    .nav {
        display: none;
    }

    .header-logo {
        order: 2;
    }

    .contacts_header-container {
        justify-content: flex-start;
        height: 65px;
        padding: 10px 15px;
    }

    .contacts-title {
        font-size: 70px;
    }

    .contacts-email {
        font-size: 50px;
    }

    .contacts-info {
        font-size: 16px;
        padding: 16px;
    }
    
    .contacts-info p {
        margin: 1em 0;
    }

    .social-links {
        gap: 20px;
    }
}

@media (min-width: 769px) {
    .contacts-info {
        line-height: 1.4;
    }
    
    .contacts-info p {
        margin: 0.6em 0;
        line-height: 1.4;
    }
    
    .contacts-info p:first-child {
        margin-top: 0;
    }
    
    .contacts-info p:last-child {
        margin-bottom: 0;
    }
}


.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}


.nav-left {
    display: flex;
    gap: 2rem;
    position: absolute;
    top: 20px;
    left: 20px; 
}

.nav-right {
    position: absolute;
    top: 20px;
    right: 20px; /* правая позиция */
}


.nav-link {
    text-decoration: none;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 3rem;
}

.nav-link.active,
.nav-link:hover {
    color: white;
}

[data-cart-count] {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Главный контент */
.main {
    padding: 2rem 0;
}

/* Фильтры */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #2c5aa0;
    background: white;
    color: #2c5aa0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2c5aa0;
    color: white;
}

/* Сетка картин */
.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px));
    gap: 32px;
    margin-bottom: 48px;
    justify-content: start;
}

.painting-card,
.decor-card,
.product-card {
    width: 260px;
    min-width: 240px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.painting-card:hover,
.decor-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card__thumbs {
    display: flex;
    gap: 12px;
    padding: 16px 22px 0;
}

.product-card__thumb {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.product-card__thumb:hover {
    transform: translateY(-2px);
}

.product-card__thumb--active {
    border-color: #111;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
    flex: 1;
}

.product-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #16171a;
}

.product-card__description {
    font-size: 0.9rem;
    color: #666b72;
    min-height: 48px;
}

.product-card__meta {
    font-size: 0.8rem;
    color: #a0a4ab;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card__price {
    font-weight: 600;
    color: #111;
    font-size: 1rem;
}

.product-card__button,
.decor-card__button {
    margin-top: 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.45rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card__button:hover:not(:disabled),
.decor-card__button:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.18);
}

.product-card__button:disabled,
.decor-card__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

.gallery-carousel__viewport {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-carousel__track {
    display: flex;
    gap: 28px;
    padding: 6px 4px 6px 2px;
}

.gallery-carousel__track .product-card {
    scroll-snap-align: start;
}

.gallery-carousel__track::-webkit-scrollbar {
    display: none;
}

.gallery-carousel__control {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
}

.gallery-carousel__control:hover:not(:disabled) {
    background: #111;
    color: #fff;
    border-color: #111;
}

.gallery-carousel__control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.gallery-groups {
    display: flex;
    flex-direction: column;
}

.gallery-section {
    padding: 72px 0 56px;
}

.gallery-section--alt {
    background: #595959
}

.gallery-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.gallery-section__title {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 600;
    color: #fff;
}

.gallery-section__subtitle {
    margin-top: 8px;
    max-width: 520px;
    color: #6f7278;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gallery-groups__message {
    text-align: center;
    padding: 64px 16px;
    font-size: 1rem;
    color: #5d6167;
}

.gallery-groups__message--muted {
    color: #9a9da3;
}

.gallery-groups__message--error {
    color: #c0392b;
}

.gallery-section + .gallery-section {
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

/* Полноэкранная карусель картин */
.main--fullscreen {
    padding: 0;
    position: relative;
    min-height: calc(100vh - 80px);
}

.paintings-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out;
    opacity: 1;
}

.paintings-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.paintings-carousel-fullscreen {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 80px;
    overflow: hidden;
}


.paintings-carousel-fullscreen__viewport {
    width: 100%;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.paintings-carousel-fullscreen__viewport::-webkit-scrollbar {
    display: none;
}

.paintings-carousel-fullscreen__container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0 calc(50vw - 400px);
}

.painting-slide {
    flex: 0 0 auto;
    width: 800px;
    max-width: 80vw;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding: 40px 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.4;
}

.painting-slide.active {
    opacity: 1;
    transform: scale(1);
}

.painting-slide:not(.active) {
    transform: scale(0.85);
}

.painting-slide:hover:not(.active) {
    opacity: 0.7;
    transform: scale(0.9);
}

.painting-slide__content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    pointer-events: none;
}

.painting-slide.active .painting-slide__content {
    pointer-events: auto;
}

.painting-slide__image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.painting-slide__info {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.painting-slide__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.painting-slide__details {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.painting-slide__button {
    margin-top: 20px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.painting-slide__button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.paintings-carousel-fullscreen__loading {
    text-align: center;
    padding: 100px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.paintings-carousel-fullscreen__empty {
    text-align: center;
    padding: 100px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3d6f;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-outline {
    background: white;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-outline:hover {
    background: #2c5aa0;
    color: white;
}

/* Корзина */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.cart-item-details {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: bold;
    color: #2c5aa0;
    margin: 0 1.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.quantity {
    font-weight: bold;
}

.remove-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-total {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #2c5aa0;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Форма заказа */
.order-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1rem;
    color: #2c5aa0;
    font-size: 1.3rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.payment-method:hover {
    border-color: #2c5aa0;
}

.payment-method input[type="radio"]:checked + span {
    font-weight: bold;
    color: #2c5aa0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.order-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* --- Плавающая кнопка корзины --- */
.cart-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    z-index: 1100;
}

.cart-fab:hover {
    transform: translateY(-2px);
    background-color: #000;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.cart-fab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
}

.hidden {
    display: none !important;
}

/* --- Модальное окно корзины --- */
.cart-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.cart-modal.hidden {
    display: none !important;
}

.cart-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cart-modal__content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    width: min(640px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.16);
    animation: popup 0.25s ease;
}

.cart-modal__close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.cart-modal__close:hover {
    color: #000;
}

@keyframes popup {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cart-modal__title {
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.cart-modal__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.cart-modal__item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
    background: #fff;
}

.cart-modal__item-image {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    background: #f5f5f5;
}

.cart-modal__item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-modal__item-title {
    font-size: 18px;
    font-weight: 600;
}

.cart-modal__item-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.35;
}

.cart-modal__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-modal__qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-modal__qty-btn:hover {
    background: #111;
    color: #fff;
}

.cart-modal__qty {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
}

.cart-modal__price {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.cart-modal__remove {
    border: none;
    background: transparent;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-modal__remove:hover {
    color: #e74c3c;
}

.cart-modal__empty {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

.cart-modal__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.cart-modal__form input,
.cart-modal__form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #dedede;
    background: #f6f6f6;
    font-size: 15px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    resize: vertical;
    min-height: 48px;
}

.cart-modal__form textarea {
    min-height: 80px;
}

.cart-modal__form input:focus,
.cart-modal__form textarea:focus {
    border-color: #111;
    background: #fff;
    outline: none;
}

.cart-modal__submit {
    width: 100%;
    padding: 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cart-modal__submit:hover {
    background: #000;
    transform: translateY(-1px);
}

.cart-modal__message {
    font-size: 14px;
    margin-top: 4px;
}

.cart-modal__message--error {
    color: #e74c3c;
}

.cart-modal__message--success {
    color: #27ae60;
}

/* --- Декор: hero и карусели --- */
.decor-hero {
    background: linear-gradient(135deg, #595959 0%, hsl(0, 1%, 29%) 100%);
    padding: 72px 0;
    position: relative;
}

.decor-hero__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    align-items: center;
}

.decor-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.decor-hero__breadcrumb {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: #9a9da3;
}

.decor-hero__title {
    font-size: clamp(2.4rem, 3vw, 3.4rem);
    font-weight: 700;
    color: #FFF;
}

.decor-hero__description {
    max-width: 460px;
    color: #80858b;
    font-size: 1rem;
    line-height: 1.6;
}

.decor-hero__visual {
    min-height: 260px;
    border-radius: 32px;
    background: linear-gradient(160deg, #dfe3e8 0%, #c5ccd4 100%);
    position: relative;
    overflow: hidden;
}

.decor-hero__visual::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 24px;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent);
}

.decor-section {
    padding: 72px 0 56px;
    background: #595959;
}

.decor-section--alt {
    background: #595959;
}

.decor-section + .decor-section {
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.decor-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.decor-section__title {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 600;
    color: #fff;
}

.decor-section__subtitle {
    margin-top: 8px;
    max-width: 520px;
    color: #6f7278;
    font-size: 0.95rem;
    line-height: 1.5;
}

.decor-groups {
    display: flex;
    flex-direction: column;
}

.decor-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

.decor-carousel__viewport {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.decor-carousel__track {
    display: flex;
    gap: 28px;
    padding: 6px 4px 6px 2px;
}

.decor-carousel__track::-webkit-scrollbar {
    display: none;
}

.decor-carousel__control {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #d8dadd;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
}

.decor-carousel__control:hover:not(:disabled) {
    background: #111;
    color: #fff;
    border-color: #111;
}

.decor-carousel__control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.decor-carousel__empty {
    font-size: 0.95rem;
    color: #6e7075;
    margin-top: 16px;
    text-align: center;
    width: 100%;
}

.decor-card {
    scroll-snap-align: start;
}

.decor-groups__message {
    text-align: center;
    padding: 64px 16px;
    font-size: 1rem;
    color: #5d6167;
}

.decor-groups__message--muted {
    color: #9a9da3;
}

.decor-groups__message--error {
    color: #c0392b;
}

/* Модальное окно карточки картины */
.painting-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.painting-modal.hidden {
    display: none !important;
}

.painting-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.painting-modal__content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.painting-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.painting-modal__close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.painting-modal__body {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.painting-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 0;
}

.painting-card__main-image {
    width: 100%;
    height: 400px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.painting-card__main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.painting-card__thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
}

.painting-card__thumb {
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.painting-card__thumb:hover {
    border-color: #333;
    transform: scale(1.05);
}

.painting-card__thumb.active {
    border-color: #333;
}

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

.painting-card__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    padding-bottom: 50px;
    flex-shrink: 0;
    overflow-y: auto;
}

.painting-card__title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

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

.painting-card__meta-item {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.painting-card__meta-item strong {
    color: #333;
    font-weight: 600;
}

.painting-card__price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 15px 0 0 0;
}

.painting-card__description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 15px 0 20px 0;
}

.painting-card__order-btn {
    padding: 15px 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.painting-card__order-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1400;
}

.image-lightbox.hidden {
    display: none !important;
}

.image-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.6);
}

.image-lightbox__content {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 18px;
    background: #fff;
    padding: 32px;
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    max-width: min(960px, 90vw);
    width: min(960px, 90vw);
    z-index: 1;
}

.image-lightbox__nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.image-lightbox__nav[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.image-lightbox__nav[data-lightbox-prev] {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
}

.image-lightbox__nav[data-lightbox-next] {
    grid-column: 3 / span 1;
    grid-row: 1 / span 1;
}

.image-lightbox__stage {
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
    width: 100%;
    max-height: 80vh;
    min-height: 400px;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-lightbox__thumbs {
    grid-column: 1 / span 3;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.image-lightbox__thumb {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f3f4f6;
    transition: border-color 0.2s ease;
}

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

.image-lightbox__thumb--active {
    border-color: #111;
}

.image-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.08);
    color: #111;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.image-lightbox__close:hover {
    background: rgba(17, 17, 17, 0.18);
}

.image-lightbox__caption {
    grid-column: 1 / span 3;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}

footer {
    display: flex;
    justify-content: space-between; /* слева контакты, справа соцсети */
    padding: 40px 100px;
    background-color: #595959;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    font-size: 20px;
}

/* Контактная информация слева */
footer .info {
    text-align: left;
}

footer .info p {
    font-size: 20px;
    margin: 0;
    line-height: 1.6;
    color: #fff;
}

/* Соцсети справа */
footer .contacts {
    display: flex;
    flex-direction: column; /* сначала контакты, затем соцсети */
    align-items: flex-end;  /* прижать всё к правому краю */
    text-align: right;
    font-weight: bold;
}

footer .email {
    font-size: 15px;
}

/* Соцсети */
footer .social-links {
    display: flex;
    gap: 10px;            /* расстояние между кнопками */
    margin-top: 5px;      /* небольшой отступ от контактной информации */
}

footer .social-btn img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s;
}

footer .social-btn:hover img {
    transform: scale(1.2);
}

/* Ссылки в футере (если нужно) */
footer a {
    text-decoration: none;
}

footer .info p,
footer .contacts p {
    margin: 4px 0;
    line-height: 1.4;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000;
}


.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 999;
}

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

.mobile-nav-link {
    font-size: 18px;
    text-decoration: none;
    color: black;
    padding: 8px 0;
}




@media (max-width: 860px) {
    .decor-carousel__control {
        display: none;
    }

    .decor-carousel__viewport {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .decor-hero {
        padding: 56px 0;
    }

    .decor-section {
        padding: 56px 0 40px;
    }

    .decor-section__header {
        align-items: flex-start;
    }

    footer {
        padding: 28px 20px;
        flex-wrap: nowrap;
        gap: 16px;
        align-items: flex-start;
        font-size: 0.95rem;
    }

    footer .info,
    footer .contacts {
        flex: 1 1 0;
    }

    footer .info {
        text-align: left;
        align-items: flex-start;
    }

    footer .contacts {
        align-items: flex-end;
        text-align: right;
    }

    footer .social-links {
        justify-content: flex-end;
        margin-top: 8px;
    }
}

.about-section {
    padding: 56px 0 80px;
}

.about-section__layout {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    flex-direction: row;
}

.main-about {
    position: relative;
    overflow: hidden;
}

.main-about::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    animation: bgZoom 18s ease-in-out infinite alternate;
    z-index: -1;
    opacity: 1;
}

@keyframes bgZoom {
    0% { background-size: 100%; }
    100% { background-size: 115%; }
}


.about-section__visual {
    flex: 0 0 340px;
    max-width: 420px;
    border-radius: 28px;
    overflow: hidden;
}

.about-section__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 28px;
}

.about-section__text {
    flex: 1;
}

.about-text {
    margin: 0;
    font-size: 1.5rem;
    font-family: "CalibriCustom", Calibri, sans-serif;
    line-height: 2;
    color: #fff;
    text-align: left;
    max-width: 700px;      /* чтобы текст колонкой был аккуратным */
}

.sold-title {
    position: relative;
    z-index: 999;
    text-align: center;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    margin: 70px 0 40px;
    color: #fff;
}

.gallery-sold {
    position: relative;
    z-index: 999;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    justify-items: center;
    margin-bottom: 100px;
}


/* ===== КАРТОЧКА ===== */
.gallery-sold-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 340px;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

.gallery-sold-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}


/* ===== КАРТИНКА ===== */
.gallery-sold-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* ===== ТЕКСТ ПОД КАРТИНКОЙ ===== */
.gallery-sold-caption {
    padding: 14px 12px 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}


/* ===== МЕТКА "ПРОДАНО" ===== */
.gallery-sold-label {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.6);
    padding: 6px 12px;
    color: white;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}


/* === ПРОШЕДШИЕ ВЫСТАВКИ === */
.exhibitions {
    margin-top: 40px;
    margin-bottom: 100px;
    text-align: left;  /* выравнивание содержимого слева */
}

/* ——— ЗАГОЛОВОК БЕЗ ФОНА И ЛИНИЙ ——— */
.exhibitions__title {
    text-align: center;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    margin: 70px 0 40px;
    color: #ffffff;
}


.exhibitions__title span {
    background: none;
}

/* ——— СЕТКА КАРТОЧЕК ——— */
.exhibitions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* ——— КАРТОЧКА ВЫСТАВКИ ——— */
.exhibitions__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    overflow: hidden;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.exhibitions__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* ——— ИЗОБРАЖЕНИЕ В КАРТОЧКЕ ——— */
.exhibitions__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: none;
}

/* ——— ТЕКСТ В КАРТОЧКЕ ——— */
.exhibitions__caption {
    padding: 14px 12px 20px;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.exhibitions__caption span {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    color: #eee;
}

/* ——— СООБЩЕНИЯ О ЗАГРУЗКЕ ——— */
.exhibitions__loading,
.exhibitions__error,
.exhibitions__empty {
    font-size: 1.1rem;
    color: #ddd;  /* посветлее, под тёмный фон */
    text-align: center;
    padding: 40px 0;
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ ВЫСТАВКИ === */
.exhibition-detail-section {
    padding: 60px 0;
    min-height: 60vh;
}

.exhibition-detail-section .container {
    padding-left: 0;
    padding-right: 20px;
}

.exhibition-detail__header {
    text-align: left;
    margin-bottom: 40px;
    padding-left: 20px;
}

.exhibition-detail__title {
    font-size: 3rem;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.exhibition-detail__year {
    font-size: 1.5rem;
    color: #ddd;
    margin: 0;
}

.exhibition-detail__description {
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #eee;
    text-align: left;
}

.exhibition-detail__description p {
    margin: 0;
}

.exhibition-detail__gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.exhibition-detail__gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exhibition-detail__gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.exhibition-detail__gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.exhibition-detail__gallery-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #ddd;
    text-align: center;
}

.exhibition-detail__loading,
.exhibition-detail__error,
.exhibition-detail__empty {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.2rem;
    color: #ddd;
}

/* Адаптивность для страницы выставки */
@media (max-width: 1024px) {
    .exhibition-detail__gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .exhibition-detail-section {
        padding: 40px 0;
    }


    .exhibition-detail__title {
        font-size: 2rem;
    }

    .exhibition-detail__year {
        font-size: 1.2rem;
    }

    .exhibition-detail__description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .exhibition-detail__gallery {
        padding: 0 15px;
    }

    .exhibition-detail__gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



/* Адаптивность */
@media (max-width: 768px) {
    .about-hero {
        padding: 56px 0;
    }

    .about-hero__container {
        gap: 32px;
    }

    .about-hero__visual {
        min-height: 200px;
    }

    .header--compact .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .header--compact .nav-left,
    .header--compact .nav-right {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .header--compact .nav-right {
        margin-left: 0;
    }

    .header--compact .nav-link {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.55rem 0.9rem;
        background: rgba(17, 17, 17, 0.04);
    }

    .header--compact .nav-link.active {
        background: rgba(17, 17, 17, 0.12);
    }
    
    .paintings-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .about-section__layout {
        flex-direction: column;
        gap: 32px;
    }

    .about-section__visual {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }

    .about-section__visual img {
        border-radius: 20px;
    }

    .about-text {
        max-width: 100%;
    }

    .cart-item-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .exhibitions__title {
    font-size: 1.6rem;
  }

  .exhibitions__grid {
    gap: 25px;
  }

  .header-container--paintings {
    padding: 15px 20px;
  }

  .header-logo {
    font-size: 1.2rem;
  }

  .header--paintings .nav-right {
    gap: 0.8rem;
  }

  .header--paintings .nav-link {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .gallery-hero__info-box {
    padding: 20px 30px;
  }

  .gallery-hero__technique,
  .gallery-hero__artist {
    font-size: 0.95rem;
  }

  .gallery-hero__button {
    padding: 15px 40px;
    font-size: 1rem;
  }

  .paintings-carousel-fullscreen {
    padding: 70px 0 60px;
  }


  .paintings-carousel-fullscreen__container {
    padding: 0 calc(50vw - 200px);
    gap: 20px;
  }

  .painting-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .painting-modal__content {
    width: 95%;
    max-height: 95vh;
  }

  .painting-modal__body {
    padding: 30px 20px;
  }

  .painting-card__main-image {
    min-height: 300px;
    max-height: 400px;
  }

  .painting-card__title {
    font-size: 1.6rem;
  }

  .painting-card__thumb {
    width: 80px;
    height: 80px;
  }

  .painting-card__thumbnails {
    justify-content: center;
  }

  .painting-slide {
    width: 400px;
    max-width: 90vw;
    min-height: calc(100vh - 80px);
    padding: 20px 15px;
  }

  .painting-slide__image {
    max-width: 100%;
    max-height: 60vh;
  }

  .painting-slide__title {
    font-size: 1.5rem;
  }

  .painting-slide__details {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {

    /* Делаем шапку ровной горизонтальной линией */
    .header-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 15px;
        height: 60px; /* фиксируем высоту, чтобы элементы не прыгали */
        gap: 12px;
        position: relative;
    }

    /* Скрываем десктоп-меню */
    .nav {
        display: none !important;
    }

    /* Бургер слева, на одной линии */
    .mobile-menu-btn {
        display: block;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        margin: 0;

        order: 1;   /* идёт первым */
    }

    /* Логотип ровно справа от бургера */
    .header-logo {
        order: 2;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    /* Гарантия: бургер НЕ будет по центру или выше */
    .header--compact {
        align-items: center;
    }

    /* Мобильное меню появляется слева */
    .mobile-menu {
        position: absolute;
        top: 60px;
        left: 10px;
        right: auto;
        display: none;
        background: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 9999;
    }
}

@media (max-width: 768px) {

    /* Контейнер хедера — элементы по краям */
    .header-container--paintings {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        padding: 10px 20px !important;
        height: 60px !important;
        position: relative;
    }

    /* Скрываем десктоп-меню */
    .header--paintings .nav-right {
        display: none !important;
    }

    /* Бургер показываем */
    .mobile-menu-btn {
        display: block !important;
        margin-left: auto;               /* Прижимает к правому краю */
        font-size: 28px;
        color: #fff;                     /* Чтобы совпадал с стилем хедера-пейнтингз */
    }

    /* Чтобы кнопка не прыгала */
    .header-logo {
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
        order: 1;
    }
}

@media (max-width: 768px) {

    /* Делаем меню справа под кнопкой */
    .mobile-menu {
        position: absolute;
        top: 70px !important;      /* расстояние от верхнего края */
        right: 20px !important;    /* ПРИЖИМАЕМ К ПРАВОМУ КРАЮ */
        left: auto !important;     /* ОТКЛЮЧАЕМ ЛЕВОЕ ВЫРАВНИВАНИЕ */

        background: rgba(255,255,255,0.9);
        padding: 15px 20px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        display: none;
        z-index: 2000;
    }

    /* Чтобы кнопка была справа */
    .mobile-menu-btn {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
        order: 2;
        font-size: 28px !important;
        color: #fff !important;
        background: none;
        border: none;
        cursor: pointer;
    }
}

.about-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

    background-image: url('images/about-bg.jpg'); 
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;

    animation: bgZoomAbout 18s ease-in-out infinite alternate;
}

.about-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* затемнение */
}

.main-about {
    position: relative;
    z-index: 1; /* контент поверх фона */
}

.main-about-fullscreen {
    position: relative;
    z-index: 1;
}


@keyframes bgZoomAbout {
    0% { background-size: 100%; }
    100% { background-size: 115%; }
}

@media (max-width: 768px) {
    .about-section__layout {
        flex-direction: column;   /* текст сверху, фото снизу */
        align-items: center;       /* выравнивание */
        gap: 20px;
    }

    .about-section__visual {
        flex: none;
        width: 100%;              /* фото на всю ширину */
        max-width: 320px;         /* но не слишком большое */
        border-radius: 20px;
    }

    .about-text {
        text-align: center;        /* обычно на телефонах читается лучше */
        font-size: 1rem;
        max-width: 100%;
    }

    .exhibitions {
        text-align: center;
    }

    .exhibitions__title {
        text-align: center;
        margin-left: 0; /* убрать смещение, которое ломает мобильный вид */
        font-size: 34px; /* чтобы красиво помещалось */
    }

    .about-background {
        position: absolute !important;  /* вместо fixed */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        background-size: cover !important;      /* тянем полноценно */
        background-position: top center !important; /* чтобы был виден верх */
        background-repeat: no-repeat;

        background-attachment: scroll !important; /* важно! убирает глюки Safari */
        z-index: -1;
    }

    .main-about-fullscreen {
        position: relative;
        overflow: hidden; /* чтоб фон не вылезал */
        min-height: 100vh;  /* чтобы фон покрывал весь экран */
    }
}

/* ------------------ ФОН ДЛЯ СТРАНИЦЫ КОНТАКТОВ ------------------ */

.contacts-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow: hidden;
}

.contacts-background {
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url('images/contacts-bg.jpg'); /* Можешь поставить другую картинку */
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;

    animation: contactsBgZoom 18s ease-in-out infinite alternate;
}

/* Анимация такая же, как на about */
@keyframes contactsBgZoom {
    0%   { background-size: 100%; }
    100% { background-size: 115%; }
}

/* Затемнение */
.contacts-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}


/* ------- МОБИЛЬНАЯ АДАПТАЦИЯ ФОНА ------- */
@media (max-width: 768px) {
    .contacts-page {
        padding: 20px 15px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contacts-background {
        position: fixed !important; /* Важно: оставляем fixed на мобильных */
        background-attachment: scroll !important; /* Меняем на scroll для мобильных */
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        height: 100vh !important;
        width: 100vw !important;
        z-index: -1;
        animation: none; /* Отключаем анимацию на мобильных для производительности */
    }

    .contacts-content {
        padding: 25px 20px;
        margin: 0 auto;
        max-width: 100%;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .contacts-title {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .contacts-email {
        font-size: 32px;
        margin-bottom: 20px;
        word-break: break-all; /* Для длинных email */
    }

    .contacts-info {
        font-size: 14px;
        line-height: 1.6;
        text-align: center; /* Центрируем текст на мобильных */
        padding: 0 10px !important;
    }

    .contacts-info p {
        margin: 1em 0;
    }

    .social-links {
        gap: 15px;
        margin: 25px 0;
    }

    .social-links .social-btn img {
        width: 35px;
        height: 35px;
    }
}

.paintings-carousel-fullscreen__container {
    transition: opacity 0.3s ease;
}

.paintings-carousel-fullscreen__viewport {
    scroll-behavior: auto;
}

/* Мобильная версия карусели */
@media (max-width: 768px) {
    .paintings-carousel-fullscreen__container {
        padding: 0 20px;
        gap: 20px;
    }
    
    .painting-slide {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        min-height: auto;
        padding: 20px 0;
        opacity: 0.6;
        transform: scale(0.9);
    }
    
    .painting-slide.active {
        opacity: 1;
        transform: scale(1);
    }
    
    .painting-slide:not(.active) {
        transform: scale(0.85);
    }
    
    .painting-slide__image {
        max-height: 50vh;
    }
    
    .painting-slide__title {
        font-size: 1.4rem;
    }
    
    .painting-slide__details {
        font-size: 0.9rem;
    }
    
    /* Убедимся, что viewport занимает всю ширину */
    .paintings-carousel-fullscreen__viewport {
        width: 100vw;
        margin-left: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Дополнительные стили для лучшего отображения на мобильных */
@media (max-width: 768px) {
    .paintings-carousel-fullscreen {
        padding: 60px 0;
    }
    
    .paintings-carousel-fullscreen__viewport {
        height: calc(100vh - 120px);
    }
    
    /* Улучшаем видимость соседних карточек */
    .painting-slide {
        transition: all 0.3s ease;
    }
    
    .painting-slide:not(.active):hover {
        opacity: 0.8;
        transform: scale(0.92);
    }
    
    /* Уменьшаем отступы для контента */
    .painting-slide__content {
        gap: 20px;
    }
    
    .painting-slide__info {
        gap: 10px;
    }
}

/* Мобильная версия карусели */
@media (max-width: 768px) {
    .paintings-carousel-fullscreen {
        padding: 60px 0;
        overflow: hidden;
    }
    
    .paintings-carousel-fullscreen__viewport {
        width: 100vw;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        height: calc(100vh - 120px);
    }
    
    .paintings-carousel-fullscreen__container {
        padding: 0 calc(50vw - 140px); /* Центрируем контейнер */
        gap: 15px;
        height: 100%;
    }
    
    .painting-slide {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: auto;
        min-height: auto;
        padding: 20px 0;
        opacity: 0.6;
        transform: scale(0.9);
        flex-shrink: 0;
    }
    
    .painting-slide.active {
        opacity: 1;
        transform: scale(1);
    }
    
    .painting-slide:not(.active) {
        transform: scale(0.85);
    }
    
    .painting-slide__content {
        width: 100%;
        height: 100%;
        gap: 15px;
    }
    
    .painting-slide__image {
        width: 100%;
        max-height: 45vh;
        object-fit: contain;
    }
    
    .painting-slide__info {
        gap: 8px;
        padding: 0 10px;
    }
    
    .painting-slide__title {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .painting-slide__details {
        font-size: 0.85rem;
    }
    
    /* Убираем возможные полосы прокрутки */
    .paintings-carousel-fullscreen__viewport::-webkit-scrollbar {
        display: none;
    }
}

/* Дополнительные исправления для очень маленьких экранов */
@media (max-width: 380px) {
    .paintings-carousel-fullscreen__container {
        padding: 0 calc(50vw - 130px);
        gap: 12px;
    }
    
    .painting-slide {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }
    
    .painting-slide__image {
        max-height: 40vh;
    }
}

/* Общие стили для карусели */
.paintings-carousel-fullscreen__viewport {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.paintings-carousel-fullscreen__viewport::-webkit-scrollbar {
    display: none;
}

/* Гарантируем, что body не имеет лишних отступов */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main--fullscreen {
    overflow: visible !important;
}


/* --- Унификация фона About с логикой Contacts --- */

.about-background {
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url('images/about-bg.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;

    animation: bgZoomAbout 18s ease-in-out infinite alternate;
}

/* затемнение */
.about-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* MOBILE — как на contacts */
@media (max-width: 768px) {
    .about-background {
        position: fixed !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
    }
}

.about-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow: hidden;
}

.about-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}


/* Фон для страницы декора */
#decor-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out;
    opacity: 1;
}

#decor-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Скрыть кнопки + и - у картин в корзине */
.cart-modal__item:not([data-item-type="decor"]) .cart-modal__controls,
.cart-item:not([data-item-type="decor"]) .quantity-controls {
    display: none;
}

.modal-order-btn {
    width: 100%;
    display: block;
    margin-top: 12px;
}

/* ВЫРАВНИВАЕМ ЦЕНУ И СЧЕТЧИК НА ОДНОЙ СТРОКЕ */
/* Для модального окна корзины */
.cart-modal__price-and-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 8px !important;
}

/* Цена слева */
.cart-modal__price {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

/* Счетчик справа */
.cart-modal__controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* Для страницы корзины (cart.html) */
.cart-item-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}

/* Убираем разделитель если нет счетчика (для картин) */
.cart-item:not([data-item-type="decor"]) .cart-item-footer {
    border-top: none !important;
    padding-top: 0 !important;
}

/* Для картин - цена и удаление слева */
.cart-item:not([data-item-type="decor"]) .cart-item-footer {
    justify-content: flex-start !important;
    gap: 15px !important;
}

/* Для декора - цена слева, счетчик справа */
.cart-item[data-item-type="decor"] .cart-item-footer {
    justify-content: space-between !important;
}

/* УБИРАЕМ ЧЕРНЫЙ ОВАЛ И ВЫРАВНИВАЕМ КНОПКИ */
.cart-modal__qty-btn,
.quantity-controls button {
    border-radius: 0 !important;
    background: transparent !important;
    color: #111 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Количество между кнопками */
.cart-modal__qty,
.quantity {
    font-weight: 700 !important; /* Жирный шрифт */
    font-size: 16px !important;
    min-width: 30px !important;
    text-align: center !important;
    color: #111 !important;
}

/* Убираем старые стили которые мешают */
.cart-modal__controls[style*="position"],
.quantity-controls[style*="position"] {
    position: static !important;
}

/* Для мобильной версии */
@media (max-width: 768px) {
    /* В модальном окне */
    .cart-modal__item {
        display: grid !important;
        grid-template-columns: 70px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 8px 12px !important;
    }
    
    .cart-modal__item-image {
        grid-row: 1 / span 2 !important;
    }
    
    .cart-modal__item-info {
        grid-row: 1 !important;
    }
    
    .cart-modal__price-and-controls {
        grid-row: 2 !important;
        grid-column: 2 !important;
        margin-top: 4px !important;
    }
    
    /* На странице корзины */
    .cart-item {
        display: grid !important;
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 8px 15px !important;
    }
    
    .cart-item-image {
        grid-row: 1 / span 2 !important;
    }
    
    .cart-item-info {
        grid-row: 1 !important;
    }
    
    .cart-item-footer {
        grid-row: 2 !important;
        grid-column: 2 !important;
        margin-top: 4px !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
}

/* Выравниваем цену и счетчик на одной линии в модалке */
.cart-modal__price-and-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 34px !important;
}

/* Оба элемента строго по вертикали одинаково */
.cart-modal__price,
.cart-modal__controls {
    display: flex !important;
    align-items: center !important;
}

/* Убираем линию текста, которая «поднимает» элементы */
.cart-modal__price *,
.cart-modal__controls * {
    line-height: 1 !important;
}

