body {
    margin: 0;
    font-family: 'Times New Roman' , Times, Serif;
    background-color: #cdcdcd;
    background-image: url('bgwhitepc.jpg'); /* Укажите путь к фото */
    background-size: cover; /* Фото растягивается на весь экран */
    background-position: center; /* Фото центрируется */
    background-repeat: repeat; /* Фото не повторяется */
    background-attachment: fixed; /* Фото фиксируется при прокрутке */
}

.navbar {
    height: 10vh; /* Высота 10% экрана */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 5px;
    position: fixed;
    top: 0;
    z-index: 5;
    box-sizing: border-box;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    padding-left:  10px;
}

.logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    margin-right: 20px;
    padding-bottom: 7px;
}

.studio-name {
    font-size: 30px;
    color: #333;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    padding-right: 10px;    
}

.nav-btn {
    background: white;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: black;
    text-decoration: none;
}

.nav-btn:hover {
    background: #f0f0f0;
}

/* Стили корзины для десктопа */
.popup-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    background: rgba(0,0,0,0.3);
    margin-top: -6.4%;
    padding-bottom: 500px;
    
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px; /* Увеличили размер */
    cursor: pointer;
    padding: 8px; /* Добавили отступы для лучшей кликабельности */
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 1;
    background: none;
    border: none;
    color: #333; /* Цвет по умолчанию */
}

.close-popup:hover {
    color: #000; /* Цвет при наведении */
    transform: scale(1.1); /* Легкое увеличение при наведении */
}

.cart-popup-content {
    display: flex;
    height: 88%;
    padding: 20px;
    flex-direction: row-reverse; /* Меняем порядок блоков */
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
    width: 80%;
    margin-left: 10%;
    background: white;
    pointer-events: all;
    border: 1px solid #000;
    border-radius: 14px;
    margin-top: 3vh;
}

.popup-overlay.active .cart-popup-content {
    transform: translateY(0);
}

.cart-items-wrapper {
    width: 50%; /* Товары справа */
    padding-left: 30px;
    border-left: 2px solid black;
    margin-bottom: 14px;
    margin-left: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%; /* Добавляем высоту для правильной работы flex */
    min-height: 0; /* Важно для вложенных flex-элементов */
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-top: 5px;
}

/* Улучшенные стили формы */
.order-form {
    width: 50%;
    padding-right: 30px;
}

.order-form h4 {
    margin: 20px 0 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

.form-title-icon {
    display: none;
}
.input-group {
    margin-bottom: 15px;
}

/* Стили для выбранных кнопок */
.social-btn.selected,
.delivery-btn.selected {
    background: black;
    color: white;
}

.social-btn,
.delivery-btn {
    background: white;
    color: black;
    border: 1px solid black;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover,
.delivery-btn:hover {
    background: #f0f0f0;
}

.social-btn:active,
.delivery-btn:active {
    background: black;
    color: white;
}

.social-btn {
    margin-bottom: 14px;
}

.input-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.input-label a {
    color: inherit; /* Наследует цвет родителя */
    text-decoration: none; /* Убирает подчеркивание */
    border-bottom: 1px dashed #666; /* Необязательный вариант */
    transition: color 0.3s ease;
}

.input-label a:hover {
    color: #000; /* Цвет при наведении */
    text-decoration: none; /* Убирает стандартное подчеркивание */
    border-bottom-style: solid; /* Для dashed варианта */
}

.order-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 14px;
}

.promo-code-container {
    display: flex;
    gap: 10px;
}

.apply-promo-btn {
    white-space: nowrap;
    background: #000;
    color: white;
}

#promoCodeInput:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    color: gray;
}

.cart-summary {
    position: static;
    background: white;
    padding-bottom: 14px;
    padding-right: 28px;
    border-top: 2px solid #000;
    top: 100%;
    text-align: end;
    margin-top: auto; /*прижимает к низу родительского контейнера */
}

#cartsummarytext {
    font-weight: bold;
    font-size: large;
}

#totalPrice {
    transition: opacity 0.5s ease, transform 0.3s ease;
    display: inline-block;
}

.price-update {
    animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
    0% { transform: translateY(-5px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.order-btn {
    width: 100%;
    background: #000;
    color: white;
    padding: 15px;
    margin-top: 20px;
    font-size: 16px;
}

/* Крестик удаления */
.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease
}

.remove-item:hover {
    color: #ff0000;
}

/* Адаптация карточек товаров */
.cart-item {
    position: relative;
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #000;
    border-radius: 14px;
    padding: 15px;
    align-items: center;
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Общие стили для обеих версий */
.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 15px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info p {
    margin: 5px 0;
    line-height: 1.4;
}

.cart-item-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-weight: bold;
}

button {
    border: 1px solid #000;
    border-radius: 14px;
    background: white;
    padding: 10px 20px;
    transition: all 0.3s;
}

button:hover {
    background: #f0f0f0;
}

button:active {
    background: #000;
    color: white;
}

/* Контейнер карусели */
.carousel-container {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    border-radius: 28px; /* Закругленные края */
    margin-top: 6%;
    /* margin-top: 95px; */
    margin-bottom: 28px;
}

/* Карусель */
.carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); /* Плавная анимация с замедлением */
}

/* Элемент карусели */
.carousel-item {
    cursor: default;
    min-width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px; /* Закругленные углы */
    overflow: hidden; /* Скрываем содержимое, выходящее за пределы закругленных углов */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фотография полностью помещается в блок */
    border-radius: 20px; /* Закругленные углы */
}

/* Разделенный контейнер */
.split-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Кликабельные элементы */
.split-part, .carousel-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Части разделенного контейнера */
.split-part {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: repeat; /* Повторение фона */
    overflow: hidden;
    cursor: default;
}

.split-part::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

/* Вертикальные разделители */
.split-part:not(:last-child) {
    border-right: 2px solid white; /* Вертикальные линии */
}

/* Текст в частях */
.split-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    z-index: 2;
    transition: font-size 0.3s ease, color 0.3s ease;
}

/* Затемнение и увеличение текста при наведении */
.split-part:hover .split-text {
    font-size: 70px;
}

.split-part:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Видео заполняет блок без искажений */
}

/* Стрелки */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8); /* Черный круг */
    color: white;
    border: 2px solid white; /* Белая рамка */
    border-radius: 50%;
    width: 50px; /* Размер стрелок */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px; /* Размер иконки */
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 1); /* Черный круг при наведении */
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Точки */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background: gray;
    border-radius: 50%;
    border: 2px solid white; /* Белый контур */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: black; /* Активная точка черная */
    transform: scale(1.2); /* Увеличиваем активную точку */
}

/* catalog */
:root {
    --card-width: 280px; /* Фиксированная ширина карточки */
    --card-gap: 76px; /* Базовый отступ между карточками */
    --edge-gap: 20px; /* Отступ от краев экрана */
}

.catalog {
    background: white;
    border-radius: 28px;
    margin: 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid black;
    margin-bottom: 0;
}

.catalog-slider {
    position: relative;
    background: #fafafa;
    border-radius: 28px;
    min-height: 300px;
    margin: 0 auto;
    padding: 28px;
    max-width: 1400px; /* Ограничение максимальной ширины */
}

.category-grid, .subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, var(--card-width));
    justify-content: center; /* Центрирование карточек */
    gap: var(--card-gap); /* Адаптивный отступ между карточками */
    margin: 0 auto; /* Центрирование сетки */
}

.category-item, .subcategory-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: var(--card-width); /* Фиксированная ширина */
    aspect-ratio: 5/8; /* Соотношение сторон */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto; /* Центрирование карточек */
}

.category-item:hover, .subcategory-item:hover {
    transform: translateY(-5px); /* Поднимаем карточку */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Тень */
}

.category-item img, .subcategory-item img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0;
}

.description {
    margin: 0;
    padding: 0;
}

.itemcatname {
    margin: 0;
    padding: 0;
    font-size: 23px;
}

.category-item.selected, .subcategory-item.selected {
    border-color: black;
}

/* Стили кнопки */
.size-chart-btn {
    display: block;
    margin: 10px auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    width: 200px;
    text-align: center;
}

.size-chart-btn:hover {
    background: #f0f0f0;
    border-color: #000;
}

/* Стили попапа */
.size-chart-popup {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
}

.size-chart-popup.active {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.size-chart-popup-content {
    background: white;
    border-radius: 28px;
    padding: 14px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.chart-image {
    height: 90vh;
    max-width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 14px;
}

.chart-image img {
    max-height: 10vh;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    transition: all 0.3s;
}

.close-btn:hover {
    background: white;
    color: black;
    border-color: black;
}

/* Общий контейнер для размеров */
.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Стиль отдельного размера */
.size-option {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #bdbdbd; /* Черная рамка */
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    color: #000; /* Черный текст */
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff; /* Белый фон */
}

/* Активный размер */
.size-option.selected {
    background-color: #000; /* Черный фон */
    color: #fff; /* Белый текст */
    border: 2px solid black;
}

/* Наведение на размер */
.size-option:hover {
    border: 2px solid #3e3e3e; /* Черная рамка */
    background-color: #f9f9f9; /* Светло-серый фон */
    color: black;
}

/* Отключенный размер */
.size-option.disabled {
    border-color: #ccc; /* Серая рамка */
    color: #ccc; /* Серый текст */
    cursor: not-allowed;
    background-color: #fff; /* Белый фон */
}

.next-btn {
    background: white;
    border: 1px solid #000;
    border-radius: 25px;
    padding: 14px 56px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 14px auto 0;
    font-size: medium;
}

.prev-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.nav-arrow {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    border: 1px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
}

/* Анимации */
.slide {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideBack {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.filters-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
}

.catalogname {
    margin-left: 40px;
    margin-top: -17px;
    font-size: 40px;
    padding-left: 14px;
}

.filter-group {
    position: relative;
    flex: 1;
}

.filter-header {
    border: 2px solid #000;
    border-radius: 14px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-dropdown {
    display: block;
    position: absolute;
    width: 100%;
    background: white;
    border: 2px solid #000;
    border-radius: 14px;
    margin-top: 5px;
    z-index: 4;
    max-height: 300px;
    overflow-y: auto;
    transition: opacity 0.3s, visibility 0.3s;
    transform-origin: top center;
    visibility: hidden;
    opacity: 0;
}

.filter-dropdown.show {
    visibility: visible;
    opacity: 1;
    animation: none;
    background: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.filter-dropdown.closing {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.dropdown-options {
    padding: 10px;
}

.filter-option {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-option:hover {
    background: #f5f5f5;
}

.selected-type,
.selected-category,
.selected-title {
    color: #000;
    font-weight: bold;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px;
    opacity: 1; /* Добавить */
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.design-card {
    border: 2px solid #000;
    border-radius: 14px;
    overflow: hidden;
    animation-fill-mode: none;
    cursor: pointer;
    animation: fadeInCard 0.5s ease-out forwards;
    transform: translateY(0);
    transition: transform 0.2s, box-shadow 0.2s;
}

.design-card:hover {
    transform: translateY(-5px); /* Поднимаем карточку */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Тень */
}

.design-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 14px;
}

.design-info {
    padding: 10px;
}

.design-name {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.design-price::before {
    content: "Цена: ";
    font-weight: normal;
}

.desdesc {
    margin-top: -8px;
}

.no-options {
    padding: 10px;
    color: #666;
    font-style: italic;
}

.filter-header[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

.designs-grid {
    transition: opacity 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для кнопки сброса */
.reset-filter {
    position: absolute;
    right: 1px;
    top: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.reset-filter:hover {
    background: #f0f0f0;
}

.reset-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: pointer;
}

/* Добавляем базовые стили для попапа */
.design-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.design-popup.show {
    opacity: 1;
    visibility: visible;
}   

.popup-content {
    background: white;
    width: 70%;
    height: 90%;
    padding: 30px;
    padding-top: 10px;
    border-radius: 10px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s;
}

.design-popup.show .popup-content {
    transform: translateY(0);
}

.popup-content img {
    width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
    max-height: 65%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.add-to-cart {
    background: #000;
    color: white;
    padding: 12px 30px;
    border: 1px solid black;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.add-to-cart:active,
.apply-promo-btn:active,
.order-btn:active {
    background: white !important;
    color: black !important;
    border: 1px solid black;
}

.add-to-cart:active {
    transform: scale(0.98);
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.pagination-wrapper button {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.pagination-wrapper button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pagination-controls {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
}

#pagination-controls button {
    margin: 0 10px;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ddd;
}

#pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pagination-controls span {
    margin: 0 15px;
    font-weight: bold;
}

.galtitlecont {
    display: flex;
    align-items: flex-end;
    position: relative;
}
.glrytitle {
    font-size: clamp(1rem, 2vw + 0.5rem, 2rem);
    font-style: italic;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 5px;
    border-radius: 14px 14px 0 0;
    border: 2px solid black;
    margin-top: 28px;
    margin-bottom: 0;
    padding-top: 3px;
    width: 30%;
    border-bottom: none;
    position: relative;
    height: 40px;
    border-right: none;
    border-left: none;
}
.glrytitleleft {
    font-size: xx-large;
    font-style: italic;
    font-weight: bold;
    text-align: center;
    color: transparent;
    background: none;
    padding: 5px;
    border-radius: 0 0 14px 0;
    border: 2px solid black;
    margin-top: 28px;
    margin-bottom: 0;
    padding-top: 3px;
    width: 3%;
    margin-left: calc(4% + 20px);
    border-top: none;
    border-left: none;
    position: relative;
    margin-right: -1px; 
    margin-bottom: -1px;
    height: 33px;
    align-self: flex-end;
    z-index: 2;
    
}
.glrytitleright {
    font-size: small;
    font-style: italic;
    font-weight: bold;
    text-align: center;
    color: transparent;
    background: transparent;
    padding: 5px;
    border-radius: 0 0 0 14px;
    border: 2px solid black;
    margin-top: 28px;
    margin-bottom: 0;
    padding-top: 0;
    width: 1%;
    border-top: none;
    border-right: none;
    position: relative;
    margin-left: -2px;
    margin-bottom: -1px;
    align-self: flex-end;
    height: 35px;
    z-index: 2;
}

.gallery {
    background: transparent;
    padding: 20px;
    display: flex;
    gap: 30px;
    margin: 0 3%;
    padding-top: 0;
}

/* Основной блок с фото */
.gallery-main {
    width: 50%;
    height: 555px;
    border: 2px solid black;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: transparent; /* Убираем фон */
    padding: 0; /* Сбрасываем padding */
}

/* Тень только для изображения */
.main-image {
    width: 100%;
    height: 96%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(8px 8px 20px rgba(0,0,0,0.5)); /* Тень по контуру */
    transition: opacity 0.3s, filter 0.3s;
    padding-top: 2%;
    cursor: pointer;
}

/* Контейнер миниатюр */
.gallery-grid-wrapper {
    position: relative;
    flex-grow: 1;
    height: 555px;
    overflow: hidden;
}

/* Сетка миниатюр */
.gallery-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-rows: 130px; /* Высота строки */
    grid-template-rows: repeat(auto-fit, 130px);
    gap: 8px;
    min-height: 350px; /* Минимальная высота для 3 строк */
    max-height: 100%; /* Ограничиваем максимальной высотой контейнера */
    padding: 10px 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Полностью убираем скроллбар */
.gallery-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* Миниатюры */
.thumbnail {
    width: 110px;
    height: 130px;
    border: 2px solid black;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

.thumbnail img:hover {
    background-color: white;
    opacity: 60%;
}

/* Плавные стрелки */
.scroll-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow:hover {
    background: linear-gradient(
        90deg, 
        rgba(0,0,0,0.5) 0%, 
        transparent 100%
    );
}

.scroll-arrow.active {
    opacity: 1;
    visibility: visible;
}

/* Стили стрелок */
.scroll-arrow.arrow-right:hover {
    background: linear-gradient(
        270deg, 
        rgba(0,0,0,0.5) 0%, 
        transparent 100%
    );
}

.scroll-arrow::before,
.scroll-arrow::after {
    content: '';
    width: 15px;
    height: 2px;
    background: white;
    position: absolute;
}

.arrow-left {
    left: 1px;
}

.arrow-right {
    right: 1px;
}

.arrow-left::before {
    transform: rotate(-45deg) translateY(-3px);
}
.arrow-left::after {
    transform: rotate(45deg) translateY(6px) translateX(3px);
}

.arrow-right::before {
    transform: rotate(45deg) translateY(-3px);
}
.arrow-right::after {
    transform: rotate(-45deg) translateY(6px) translateX(-3px);
}

/* Анимации */
.fade-out {
    opacity: 0 !important;
}

/* Попап галереи */
.popup-glry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    animation: glryFadeIn 0.3s ease forwards;
}

.popup-glry-overlay.popup-glry-hiding {
    animation: glryFadeOut 0.3s ease forwards;
}

.popup-glry-container {
    background: white;
    border-radius: 28px;
    border: 2px solid #000;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    max-width: 90%;
    max-height: 90vh;
    min-height: 80vh;
    padding: 14px 0;
    padding-left: 14px;
    padding-right: 14px;
    margin: 0 auto;
    cursor: auto;
    position: relative;
}

.popup-glry-image {
    width: auto;
    max-height: calc(95vh - 56px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(14px 14px 14px rgba(0,0,0,0.8));
    border-radius: 14px;
}

.popup-glry-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.popup-glry-close:hover {
    background: #fff !important;
    border: 2px solid black;
}

.popup-glry-close:hover .glry-close-line {
    background: #000 !important;
}

.glry-close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: background 0.3s ease;
}

.glry-close-line:first-child {
    transform: rotate(45deg);
}

.glry-close-line:last-child {
    transform: rotate(-45deg);
}

@keyframes glryFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glryFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Раздел "Чем мы занимаемся" */
.what-we-do {
    padding: 14px 150px;
    color: white;
    text-align: center;
}

/* Заголовок */
.section-title {
    font-size: 48px;
    margin-bottom: 40px;
    color: black;
    border-radius: 14px;
}

/* Блоки с информацией */
.info-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98); /* Затемнение фона */
    padding: 20px;
    border-radius: 28px;
    border:  1px solid black;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Фото */
.info-image {
    width: 300px; /* Фиксированная ширина */
    height: 300px; /* Фиксированная высота */
    overflow: hidden;
    border-radius: 14px; /* Скругленные края */
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото квадратное с обрезкой */
}

/* Фото справа */
.info-image.right {
    order: 2; /* Фото справа */
}

/* Текст */
.info-text {
    flex: 1;
    padding: 20px;
    text-align: left;
    color: black;
}

.info-text.right {
    text-align: right; /* Текст примыкает вправо */
}

.info-text h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.info-text p {
    font-size: 18px;
    line-height: 1.6;
}

/* Кнопка "Заказать свой дизайн" */
.custom-order-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: black; /* Черная заливка */
    color: white; /* Белый текст */
    border: 1px solid black; /* Белая рамка */
    border-radius: 14px;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.custom-order-button:hover {
    background: white; /* Белая заливка при наведении */
    color: black; /* Черный текст при наведении */
}

.bottom-strip {
    width: 60%; /* На всю ширину экрана */
    background: white; /* Белый фон */
    color: black; /* Чёрный текст */
    text-align: center; /* Текст по центру */
    padding: 10px 0; /* Отступы сверху и снизу для текста */
    border-top-left-radius: 10px; /* Закругление верхнего левого угла */
    border-top-right-radius: 10px; /* Закругление верхнего правого угла */
    margin: 10px auto 0; /* Отступ сверху 10px */
    font-size: 17px;
    border: 1px solid black;
}

/* Стили для кнопки SALE */
.sale-button {
    position: fixed; /* Фиксированная позиция */
    bottom: 20px; /* Отступ снизу */
    right: 20px; /* Отступ справа */
    background: white; /* Белый фон */
    color: black; /* Чёрный текст */
    padding: 10px 20px; /* Отступы внутри кнопки */
    border-radius: 25px; /* Закруглённые края */
    text-decoration: none; /* Убираем подчёркивание */
    font-size: 16px; /* Размер текста */
    font-weight: bold; /* Жирный текст */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Тень для кнопки */
    z-index: 2; /* Чтобы кнопка была поверх полоски */
    transition: background 0.3s, color 0.3s; /* Плавный эффект при наведении */
}

/* Эффект при наведении на кнопку */
.sale-button:hover {
    background: black; /* Чёрный фон */
    color: white; /* Белый текст */
}

/* Футер */
.site-footer {
    background: #1a1a1a; /* Темный фон */
    color: white;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    padding-bottom: 0;
}

/* Контент футера */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* Секции футера */
.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

/* Логотип и описание */
.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footerlogo {
    border-radius: 10px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

/* Заголовки секций */
.footer-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Ссылки */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff00e1; /* Желтый цвет при наведении */
}

/* Социальные сети */
.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 10px;
}

.social-icon {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ff00e1; /* Желтый цвет при наведении */
}

/* Контактная информация */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff00e1; /* Желтый цвет при наведении */
}

/* Копирайт */
/* Стили для футера */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ccc;
}

/* Ссылка на Telegram */
.TGdevlink {
    display: inline-block; /* Чтобы ссылка занимала только нужное место */
    margin-top: 10px; /* Отступ сверху */
    color: white; /* Желтый цвет для выделения */
    text-decoration: none; /* Убираем подчеркивание */
    font-weight: bold; /* Жирный текст */
    transition: color 0.3s ease; /* Плавное изменение цвета */
}

.TGdevlink:hover {
    color: #ff00e1; /* Белый цвет при наведении */
    text-decoration: none; /* Подчеркивание при наведении */
}

/* Логотип */
.footer-logo img {
    width: 150px; /* Ширина логотипа */
    height: auto; /* Сохраняем пропорции */
    margin-bottom: 10px;
}

/* Стили для уведомлений */
#notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

.notification {
    min-width: 14%; /* Немного увеличили минимальную ширину */
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600; /* Полужирный текст */
    animation: slideIn 0.3s ease-out forwards;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4; /* Межстрочный интервал */
    text-align: center;
}

.notification span {
    display: block;
    width: 100%;
}

.notification.success {
    background: #e8f5e9;
    border: 2px solid #43a047;
    color: #2e7d32;
}

.notification.error {
    background: #ffebee;
    border: 2px solid #e53935;
    color: #c62828;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

.notification.hide {
    animation: fadeOut 0.3s ease-in forwards;
}