/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}
body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #333;
    overflow-y: scroll;
    
}
/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
}
/* ЛОГО */
.logo {
    height: 90px;
    transition: 0.3s;
}
.logo:hover {
    transform: scale(1.05);
}
/* ТЕЛЕФОН */
.header-phone {
    padding-left: 30px;
    font-family: 'Times New Roman', Times, serif;
    color: #ffd700;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
}
.header-phone:hover {

    color: #ffa500;
}
/* ===== NAV DESKTOP ===== */
.site-nav {
    display: flex;
}
.site-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}
.site-nav a {
    color: #ffd700;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: 0.3s;
}
.site-nav a:hover::after {
    width: 100%;
}
/* ===== BURGER ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;                    /* чуть увеличил расстояние между линиями */
    cursor: pointer;
    margin-left: auto;
    z-index: 200;
    padding: 5px;                /* увеличивает зону нажатия */
}
.burger span {
    width: 28px;                 /* чуть шире и заметнее */
    height: 3px;
    background: #ffd700;
    border-radius: 3px;
    transition: all 0.35s ease;  /* более плавная анимация */
    transform-origin: center;
}
/* АНИМАЦИЯ БУРГЕРА → КРЕСТИК */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0, 8px);   /* улучшенные значения */
}
.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0.2);       /* дополнительно убираем середину */
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -8px);
}
.burger:hover span {
    background: #ffcc00;
}
/* ===== OVERLAY (затемнение) ===== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 90;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
/* ===== MOBILE CONTACT & SOCIAL ===== */
.mobile-contact-social {
    display: none;
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .header-phone {
        display: none;
    }
    .mobile-contact-social {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 auto;
    }
    .mobile-phone {
        font-family: 'Times New Roman', Times, serif;
        color: #ffd700;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        white-space: nowrap;
    }
    .mobile-social-icons {
        display: flex;
        gap: 1px;
    }
    .social-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffd700;
        text-decoration: none;
        transition: 0.3s;
        border-radius: 50%;
    }
    .social-icon:hover {
        color: #ffa500;
        transform: scale(1.15);
    }
    .social-icon svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }
    .social-svg {
        width: 40px;
        height: 40px;
    }
    .logo {
        height: 55px;
    }
    .burger {
        gap: 7px;
        display: flex;
    }
    .burger span {
        width: 30px;
        height: 3.5px;
    }
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(1px, 7px);
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(1px, -7px);
    }
    .site-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 80px);
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        z-index: 100;
    }
    .site-nav.active {
        right: 0;
    }
    .site-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .site-nav a {
        font-size: 1.4rem;
    }
}
/* Hero Section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* немного снизу */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('img/background2.webp'); /* путь относительно CSS файла */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease forwards, shimmer 3s infinite;
    position: relative;
}
@keyframes shimmer {
    0%, 100% {
        text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    }
    50% {
        text-shadow: 2px 2px 5px rgba(0,0,0,0.3),
                     0 0 5px rgba(255, 255, 255, 0.4),
                     0 0 10px rgba(255, 223, 0, 0.3);
    }
}
.hero h2 {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.hero p {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s; /* задержка */
    font-size: 1.4rem;
    color: #a1a1a1;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 20px; /* расстояние между кнопками */
    justify-content: center;
    flex-wrap: wrap; /* если экран маленький — кнопки перейдут на новую строку */
}
.hero-buttons .button {
    min-width: 180px; /* можно задать одинаковую ширину для обеих кнопок */
}
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: translateX(-50%) rotate(-45deg);
    animation: bounce 1.5s infinite;
}
@keyframes bounce {
    0% {
        transform: translate(-50%, 0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, 10px) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px) rotate(-45deg);
        opacity: 0;
    }
}
.button {
    background-color: #fff;          /* начальный фон */
    color: #000000;                  /* текст */
    border: 2px solid #b38e16;       /* обводка кнопки */
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;       /* плавный переход */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}
.button:hover {
    background: linear-gradient(45deg, #b87333, #caa179); /* медный градиент */
    color: #fff; /* текст меняем на белый для контраста */
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.about {
    padding: 100px 20px;
    background-image: url('img/background4.webp'); /* светлый фон */
    background-size: cover;
    background-position: center;
}
.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.about-title {
    font-size: 2.6rem; /* было ~2.2 */
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.gold-line {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b8962e);
    border-radius: 2px;
}
.about-text {
    font-size: 1.25rem; /* было ~1.1 */
    line-height: 1.9;
    color: #444;
    margin-bottom: 35px;
    font-weight: 700;
    
}
.about-note {
    font-size: 20px; /* было 13px */
    color: #8b6d09;
    opacity: 0.7;
}
.preview-catalog .catalog-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    
}
/* Мини каталог на главной */
.preview-catalog .preview-items {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    justify-content: center;     /* Центрирование по горизонтали */
    align-items: center;         /* Вертикальное выравнивание */
    gap: 25px;
    margin: 0 auto;              /* Дополнительная гарантия центрирования */
    max-width: fit-content;      /* Чтобы grid не растягивался на всю ширину */
}

@media(max-width: 768px) {
    .preview-items {
        grid-template-columns: 1fr;
    }
}
.services {
    padding: 100px 20px;
    background-image: url('img/background2.webp'); /* тёмный фон */
    background-size: cover;
    background-position: center;
    color: #fff;
}
.services-container {
    max-width: 1100px;
    margin: 0 auto;
}
.services-title {
    font-size: 2.6rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    overflow: hidden; /* чтобы картинка не выходила за рамки */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-card-link:hover .service-card {
    transform: translateY(-5px);
    transition: 0.3s ease;
}
.service-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.service-card:hover .service-img {
    transform: scale(1.05);
}
.service-card h3 {
    font-size: 1.4rem;
    margin: 20px 20px 10px;
}
.service-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ddd;
    margin: 0 20px 20px;
    flex-grow: 1;
}
.services-sale {
    margin-top: 40px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37;
    position: relative;
    cursor: pointer;
}
.services-sale::after {
    content: "";
    display: block;
    width: 220px;
    height: 2px;
    background: #d4af37;
    margin: 12px auto 0;
}
.services-sale:hover {
    color: #ffd700;
    transform: scale(1.03);
    transition: 0.3s;
}
/* Why Section */
.why {
    padding: 100px 20px;
    background-image: url('img/background5.webp'); /* светлый фон */
    background-size: cover;
    background-position: center;
}
.why-container {
    max-width: 1100px;
    margin: 0 auto;
}
/* Заголовок */
.why-title {
    font-size: 2.6rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}
/* Сетка */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
/* Карточка */
.why-item {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.5); /* золотая обводка */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}
/* Hover */
.why-item:hover {
    transform: translateY(-6px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}
/* Иконка */
.why-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}
/* Заголовок */
.why-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
/* Текст */
.why-item p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}
.why-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #000;
    letter-spacing: 0.4px;
    opacity: 0;

    animation: hintFade 1s ease forwards, hintFloat 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}
/* Control Section */
.control {
    padding: 100px 20px;
    background-image: url('img/background9.webp'); /* тёмный фон */
    background-size: cover;
    background-position: center;
    color: #fff;
}
.control-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.control-title {
    font-size: 2.4rem;
    margin-bottom: 60px;
}
.control-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.control-item {
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    overflow: hidden; /* важно для картинки */
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    cursor:pointer;
}
.control-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 9999;
}
.control-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.control-modal-content {
    background: #fff;
    max-width: 800px;
    width: 90%;
    padding: 30px;
    border-radius: 20px;
    
    transform: translateY(40px) scale(0.95);
    transition: 0.4s ease;
}
.control-modal.active .control-modal-content {
    transform: translateY(0) scale(1);
}
.control-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.4px;
    opacity: 0;

    animation: hintFade 1s ease forwards, hintFloat 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}
.control-seo-text {
    margin-top: 10px;
    font-size: 13px;
    color: #9b9a9a;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
@keyframes hintFade {
    to { opacity: 1; }
}
@keyframes hintFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}
.control-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    cursor: pointer;
}
.control-item:hover {
    transform: translateY(-6px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}
.control-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
.control-item h3 {
    font-size: 1.4rem;
    margin: 20px 20px 10px;
}
.control-item p {
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.7;
    margin: 0 20px 20px;
}
.gallery {
    padding: 100px 20px;
    background-image: url('img/background6.webp');
    background-size: cover;
    background-position: center;
}
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-title {
    font-size: 2.6rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    min-width: 100%;
    padding: 10px;
}
.carousel-item img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}
.carousel-item img:hover {
    border-color: #d4af37;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
}
.prev-btn {
    left: 20px;
}
.next-btn {
    right: 20px;
}
.catalog {
    padding: 100px 20px;
    background-image: url('img/background7.jpeg');
    background-size: cover;
    background-position: center;
    text-align: center;
}
.catalog-container {
    max-width: 900px;
    margin: 0 auto;
}
.catalog-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
}
.catalog-text {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 40px;
}
.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    color: #fff;
    text-decoration: none;
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}
.catalog-btn:hover {
    background: linear-gradient(90deg, #b8860b, #d4af37);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}
.catalog-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}
.catalog-items {
    margin-top: 60px;
}
.catalog-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.catalog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}
.catalog-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212,175,55,0.3);
}
.catalog-card:hover .catalog-img {
    transform: scale(1.05);
}
.catalog-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.catalog-card h3 {
    margin: 15px;
    color: #fff;
    font-size: 1.2rem;
}
@media(max-width: 1000px) {
    .catalog-items {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 600px) {
    .catalog-items {
        grid-template-columns: 1fr;
    }
}
.contacts {
    padding: 100px 20px;
    background-image: url('img/background2.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
}
.contacts-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.contacts-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.contact-card {
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 20px 25px;
    max-width: 100%;
    background: rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    gap: 30px; 
    overflow-x: auto;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    white-space: nowrap;
}
.contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.contact-icon {
    filter: brightness(0) saturate(100%) invert(70%) sepia(30%) saturate(500%) hue-rotate(10deg);
}
.contact-text a {
    color: #d4af37;
    text-decoration: none;
}
.contact-link {
    color: #d4af37;
    text-decoration: none;
}
.contact-text a:hover {
    text-decoration: underline;
}

.contact-map {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}
.contact-note {
    font-size: 16px;
    color: #999;
}
footer {
    margin-top: auto;
    background-color: #000;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px 20px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: Arial, Helvetica, sans-serif;
    flex-wrap: wrap;
}
.footer-block {
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-block a {
    color: #d4af37;
    text-decoration: none;
}
.footer-block a:hover {
    text-decoration: underline;
}
@media (max-width: 1000px) {
    .services-grid,
    .why-grid,
    .control-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.3rem;
    }
    .catalog-items {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 1.7rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .services-grid,
    .why-grid,
    .control-grid,
    .catalog-items {
        grid-template-columns: 1fr;
    }
    .services-sale {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        overflow-x: visible;
    }
    /* Кнопки */
    .button,
    .catalog-btn {
        width: 100%;
        max-width: 300px;
    }
    /* Продукт/Карточки */
    .product-container {
        flex-direction: column;
        gap: 20px;
    }
    .carousel-item img {
        height: 350px;
    }
    /* Кнопки карусели */
    .carousel-btn {
        font-size: 1.8rem;
        padding: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
}
img {
    max-width: 100%;
    height: auto;
}
body {
    overflow-x: hidden;
}

/* ===== INFO SECTION ===== */
.info-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    background-image: url('img/background11.jpg');
}

.info-container {
    max-width: 1100px;
    margin: 0 auto;
}

.info-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.info-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.info-card-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.info-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.info-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.info-list li {
    padding: 12px 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.info-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    background: linear-gradient(90deg, #b8860b, #d4af37);
}

.info-btn:active {
    transform: translateY(-1px);
}

/* Адаптив */
@media (max-width: 768px) {
    .info-section {
        padding: 60px 20px;
    }

    .info-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

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

    .info-card {
        padding: 25px;
    }

    .info-card-header h3 {
        font-size: 1.5rem;
    }

    .info-list li {
        font-size: 0.95rem;
    }

    .info-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ===== PAGE SPLASH ===== */
.page-splash {
    animation-delay: 100ms;
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    opacity: 1;
    pointer-events: auto;
    animation: splashFade 1s ease forwards;
}

.page-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-splash .splash-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.page-splash .splash-logo img {
    width: 220px;
    max-width: 70%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.7));
}

@keyframes splashFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Partners Section */
.partners {
    flex: 1;
    padding: 100px 20px;
    background-image: url('img/background5.webp');
    background-size: cover;
    background-position: center;
    padding-top: 123px;
}
.partners-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.partners-title {
    font-size: 2.6rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.partner-card {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; 
}
.partner-card:hover {
    transform: translateY(-6px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}
.partner-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 15px; /* центр + отступ снизу */
    display: block;      /* обязательно */
    border-radius: 15px;
}
.partner-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.partner-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}
/* Кнопка */
.partner-link {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #d4af37;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    transition: 0.3s;
    margin-top: auto; /* ключевая строка */
}
.partner-link:hover {
    background: linear-gradient(45deg, #b87333, #caa179);
    color: #fff;
}
/* Адаптив */
@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}
.seo-text {
    padding: 80px 20px;
    background: #111;
    color: #fff;
}
.seo-container {
    max-width: 1100px;
    margin: 0 auto;
}
.seo-block {
    margin-bottom: 50px;
}
.seo-block h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #d4af37;
}
.seo-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ccc;
}
.works-page {
    padding: 100px 20px;
    background-image: url('img/background6.webp'); /* тёмный фон */
    background-size: cover;
    background-position: center;
}
.intro-video {
    margin-bottom: 50px;
}
.intro-video video {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(212,175,55,0.4);
}
.vertical-videos {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.vertical-videos video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(212,175,55,0.4);
    transition: 0.3s;
}
.vertical-videos video:hover {
    transform: scale(1.03);
    border-color: #d4af37;
}
/* 📱 Адаптив */
@media (max-width: 768px) {
    .intro-video video {
        height: 250px;
    }
    .vertical-videos {
        grid-template-columns: 1fr;
    }
    .vertical-videos video {
        height: 400px;
    }
}
/* ===== Форма (Bitrix24) ===== */
#form-section {
    padding-bottom: 100px;
    background-image: url('img/background8.webp');
    background-size: cover;
    background-position: center;
}
#form-section h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5rem;
    color: #000;
}
#form-section p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #555;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.msk-branch {
    padding: 120px 20px;
    background-image: url('img/background5.webp');
    background-size: cover;
    background-position: center;
}

.msk-branch-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.msk-branch-content {
    flex: 1;
}

.msk-branch-title {
    font-size: 2.6rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.msk-branch-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #444;
}

.msk-branch-image {
    flex: 1;
}

.msk-branch-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(212,175,55,0.4);
}

/* Адаптив */
@media (max-width: 768px) {
    .msk-branch-container {
        flex-direction: column;
    }

    .msk-branch-image img {
        height: 250px;
    }
}
/* ===== Содержимое страниц (карнизы, ткани) ===== */
.content-section {
    padding: 100px 20px;
    background-image: url('img/karniz.jpg');
    background-size: cover;
    background-position: center;
}
.content-container {
    max-width: 900px;
    margin: 0 auto;
}
.content-title {
    font-size: 2.6rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}
.content-block {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.content-block h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #000;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}
.content-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}
.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.content-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}
.content-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-size: 1.2rem;
}
.content-list li strong {
    color: #000;
}
.content-row {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.content-text {
    flex: 1;
    min-width: 250px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.content-img {
    width: 300px;
    height: auto;
    max-height: 350px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.content-block:nth-child(even) .content-row {
    flex-direction: row-reverse;
}
/* Адаптив для мобильных */
@media (max-width: 768px) {
    .content-section {
        padding: 50px 20px;
    }
    .content-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .content-block {
        padding: 20px;
        margin-bottom: 20px;
    }
    .content-block h3 {
        font-size: 1.3rem;
    }
    .content-block p {
        font-size: 1rem;
    }
    .content-list li {
        font-size: 1rem;
    }
    .content-row {
        flex-direction: column;
        gap: 15px;
    }
    .content-row.content-block:nth-child(even) {
        flex-direction: column;
    }
    .content-text {
        min-width: 100%;
    }
    .content-img {
        width: 100%;
        max-height: none;
        height: auto;
    }
}
/* ===== COOKIE ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100% - 20px);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    display: none;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    animation: cookieFade 0.4s ease;
}
@keyframes cookieFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cookie-content p {
    font-size: 13px;
    line-height: 1.4;
}
.cookie-content a {
    color: #ffd700;
    text-decoration: underline;
}
.cookie-content button {
    background: #ffd700;
    border: none;
    color: #000;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.cookie-content button:hover {
    background: #ffa500;
}
/* мобилка */
@media (max-width: 600px) {
    .cookie-banner {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 10px;
    }
}
      /* Оверлей на весь экран */
      .curtain-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #e8e0d5;  /* тёплый бежевый фон за шторами */
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.6s ease;
        opacity: 1;
        pointer-events: auto;
        font-family: 'Segoe UI', Roboto, sans-serif;
      }
      /* Контейнер для двух половинок штор */
      .curtain-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        overflow: hidden;
        pointer-events: none;
      }
      /* Левая и правая шторы — бежевые с текстурой */
      .curtain {
        width: 50%;
        height: 100%;
        background-size: cover;
        background-position: center;
        transition: transform 1.2s ease-in-out;
        will-change: transform;
        box-shadow: 0 0 15px rgba(0,0,0,0.1);
      }
      .curtain-left {
        background-image: url('img/curtain-intro1.webp');
        background-color: #e8d8c8;
        transform: translateX(0);
      }
      .curtain-right {
        background-image: url('img/curtain-intro1.webp');
        background-color: #e8d8c8;
        transform: translateX(0);
      }
      /* Анимация открывания */
      .open-left {
        transform: translateX(-100%);
      }
      .open-right {
        transform: translateX(100%);
      }
      /* Чёрный пульт внизу экрана */
      .remote-button-img {
        position: absolute;
        bottom: 10px; /* ниже */
        left: 50%;
        transform: translateX(-50%);
        width: 300px; /* было 400 — слишком жирно */
        opacity: 0.85; /* чуть приглушаем */
        cursor: pointer;
        z-index: 10000;
        transition: transform 0.15s ease, filter 0.15s ease, opacity 0.2s ease;
        }
        .remote-button-img:hover {
        transform: translateX(-50%) scale(1.03);
        filter: brightness(1.1);
        opacity: 1;
        }
        .remote-button-img:active {
        transform: translateX(-50%) scale(0.96);
        }
      /* Скрываем оверлей после открытия */
      .curtain-overlay.hidden {
        opacity: 0;
        pointer-events: none;
      }
      .remote-hint {
        position: absolute;
        bottom: 300px; /* всегда над пультом */
        left: 50%;
        transform: translateX(-50%);        
        background: rgba(0,0,0,0.75);
        color: #fff;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        letter-spacing: 0.4px;
        white-space: nowrap;
        z-index: 10001;
        opacity: 0;
        animation: fadeIn 0.8s ease forwards, float 2s ease-in-out infinite;
        animation-delay: 0.6s;
        pointer-events: none;
        }
        /* Плавное появление */
        @keyframes fadeIn {
        to { opacity: 1; }
        }
        /* Лёгкая пульсация */
        @keyframes float {
        0%   { transform: translateX(-50%) translateY(0); }
        50%  { transform: translateX(-50%) translateY(-6px); }
        100% { transform: translateX(-50%) translateY(0); }
        }
        @keyframes remoteClickSoft {
        0%   { transform: translateX(-50%) scale(1); }
        50%  { transform: translateX(-50%) scale(0.96); } /* мягкое нажатие */
        100% { transform: translateX(-50%) scale(1); }
        }
.remote-button-img.clicked {
  animation: remoteClickSoft 0.25s ease;
  filter: brightness(1.08); /* очень аккуратно */
}
        /* эффект вспышки */
        .remote-button-img.clicked {
        animation: remoteClick 0.35s ease;
        filter: brightness(1.3);
        }
      /* Для мобильных */
      @media (max-width: 600px) {
        .remote-button-img {
            width: 250px;
            bottom: 15px;
        }
        .remote-hint {
            bottom: 260px;
            font-size: 12px;
            padding: 6px 12px;
        }
        }
/* ===== CONTACT GRID (ТОЛЬКО ДЛЯ СТРАНИЦЫ CONTACTS) ===== */
.contacts-page .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 25px;

    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
}
.contacts-page .contact-grid .contact-item {
    background: rgba(255,255,255,0.05);
    padding: 12px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.contacts-page .contact-grid .contact-item:hover {
    background: rgba(212,175,55,0.1);
    transform: translateY(-3px);
}
@media (max-width: 900px) {
    .contacts-page .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .contacts-page .contact-grid {
        grid-template-columns: 1fr;
    }
}
.mobile-only {
    display: none;
}
/* 📱 На мобилке */
@media (max-width: 768px) {

    /* скрываем кнопку справа */
    .header-contacts-btn {
        display: none;
    }

    /* показываем в бургере */
    .mobile-only {
        display: block;
    }
}
/* ====================== ФОРМА ОТЗЫВА ====================== */
.add-review-form {
    max-width: 700px;
    margin: 80px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e5d9b8;
}

.add-review-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.star-rating {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* делаем большую зону нажатия */
.star-rating span {
    font-size: 2.4rem;
    cursor: pointer;
    color: #ddd;

    /* 👇 главное: увеличиваем "кнопку" */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    transition: 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* активная звезда */
.star-rating span.active {
    color: #ffd700;
}

/* удобный hover на ПК */
.star-rating span:hover {
    transform: scale(1.15);
}

.photo-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.photo-preview img {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}
.review-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.review-photos img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}
.submit-review-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

.submit-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}
.reviews-section{
    padding: 100px 20px;
    background-image: url('img/background6.webp'); /* светлый фон */
    background-size: cover;
    background-position: center;
}
.review-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 25px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.review-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
}
.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #d4af37;
}
.review-stars {
    color: #ffd700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.review-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}
.review-author {
    font-size: 0.9rem;
    color: #777;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* ====================== СЕКЦИЯ КОНСУЛЬТАЦИИ ====================== */
.consultation-section {
    padding: 60px 20px;
    text-align: center;
    margin: 40px 0;
}

.consultation-container {
    max-width: 800px;
    margin: 0 auto;
}

.consultation-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #2c2c2c;
    margin-bottom: 16px;
}

.consultation-section p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* ====================== КНОПКА ====================== */
.consultation-btn {
    display: inline-block;
    background-color: #d4af37; /* золотой цвет */
    color: #ffffff;
    padding: 16px 42px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    margin: 0 auto;           /* центрирование */
}

.consultation-btn:hover {
    background-color: #c19a2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .consultation-section h2 {
        font-size: 2rem;
    }
    
    .consultation-btn {
        padding: 14px 36px;
        font-size: 1.1rem;
    }
}
/* ====================== GRID GALLERY ====================== */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 16px;
}

.grid-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.08);
}

/* Адаптивность галереи */
@media (max-width: 1024px) {
    .grid-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 12px;
    }
    
    .grid-item {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .grid-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }
    
    .grid-item img {
        min-height: 220px; /* чтобы фото не были слишком мелкими */
    }
}

/* ====================== GALLERY MODAL (улучшено для мобильных) ====================== */
/* ====================== GALLERY MODAL ====================== */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.gallery-modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 95%;
    max-height: 92vh;
}

.gallery-image-wrapper {
    max-width: 100%;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y; /* важно для свайпа */
}

.gallery-image {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    user-select: none;
}

/* Кнопки навигации — всегда по бокам */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.6);
    color: #ffd700;
    font-size: 42px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 2001;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-nav:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: translateY(-50%) scale(1.15);
    border-color: #ffd700;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 2002;
    padding: 10px;
}

.gallery-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    font-size: 17px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 22px;
    border-radius: 30px;
}

/* Адаптив */
@media (max-width: 768px) {
    .gallery-nav {
        width: 52px;
        height: 52px;
        font-size: 36px;
    }
    
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
    
    .gallery-close {
        top: 15px;
        right: 15px;
        font-size: 38px;
    }
    
    .gallery-image {
        max-height: 82vh;
    }
}