/* === ЛЮКСОВЫЕ ЦВЕТА === */
:root {
    --wine: #4A0E17;
    --wine-hover: #722F37;
    --gold: #C5A059;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --dark-text: #232323;
    --gray-text: #555555;
    --border: #E8E8E8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--white);
    color: var(--dark-text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

a, button, .gallery-item, input, textarea, label {
    touch-action: manipulation;
}

h1, h2, h3, .logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

/* === ШАПКА === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    padding-top: calc(30px + env(safe-area-inset-top));
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* === БУРГЕР-МЕНЮ === */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1101;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--wine);
    transition: all 0.4s;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wine);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    padding: calc(60px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 10px;
}

.mobile-menu a:active {
    color: var(--gold);
}

.mobile-menu__phone {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    border: 1px solid rgba(197, 160, 89, 0.6);
    padding: 12px 26px !important;
    color: var(--gold) !important;
}

.logo {
    line-height: 1.2;
}

.logo__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--dark-text);
    line-height: 1.1;
}

.logo__name span {
    color: var(--wine);
}

.logo__tagline {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #FFFFFF;
    background-color: var(--wine);
    padding: 4px 10px 3px;
    margin-top: 6px;
}

nav a {
    color: var(--dark-text);
    text-decoration: none;
    margin-left: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.4s;
    font-weight: 500;
}

nav a:hover {
    color: var(--wine);
}

.social-vk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wine);
    transition: color 0.4s, transform 0.4s;
}

.social-vk:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-vk {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-vk:hover {
    color: var(--gold);
}

/* === ГЛАВНЫЙ ЭКРАН (параллакс) === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero__bg {
    position: absolute;
    top: -30%;
    left: 0;
    right: 0;
    bottom: -30%;
    will-change: transform;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    opacity: 0;
    transition: opacity 2s ease;
    will-change: opacity, transform;
    animation: heroZoom 12s ease-out forwards;
}

.hero__slide.active {
    opacity: 1;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(74, 14, 23, 0.85), rgba(30, 5, 10, 0.7));
    z-index: 2;
}

.hero > *:not(.hero__bg) {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 84px;
    letter-spacing: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: fadeInDown 1.5s ease;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 30px;
}

.hero p {
    font-size: 16px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    letter-spacing: 1px;
    font-weight: 300;
    animation: fadeInUp 1.5s ease;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 2s ease;
}

.btn {
    background-color: transparent;
    color: var(--white);
    padding: 18px 50px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.5s;
}

.btn:hover {
    background-color: var(--white);
    color: var(--wine);
    border-color: var(--white);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.08);
}

/* === ЦИФРЫ === */
.stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 90px 10%;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    line-height: 1;
    color: var(--wine);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === О НАС === */
.about {
    padding: 150px 10%;
    text-align: center;
    background-color: var(--white);
}

.section-title {
    font-size: 52px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--dark-text);
}

.section-subtitle {
    font-size: 14px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
}

.section-title span {
    color: var(--wine);
    font-style: italic;
}

.section-divider {
    width: 40px;
    height: 1px;
    background-color: var(--gold);
    margin: 40px auto;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 250px;
}

.feature-item h3 {
    color: var(--wine);
    margin-bottom: 20px;
    font-size: 28px;
    letter-spacing: 1px;
}

.feature-item p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 2;
    font-weight: 300;
}

/* === УСЛУГИ === */
.services {
    padding: 150px 10%;
    background-color: var(--off-white);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.service-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 45px 30px;
    text-align: left;
    transition: border-color 0.4s, transform 0.4s;
}

.service-item:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.service-item h3 {
    font-size: 28px;
    color: var(--wine);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.service-item::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--gold);
    margin-bottom: 25px;
}

.service-item p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.9;
    font-weight: 300;
}

/* === БЕГУЩАЯ СТРОКА === */
.marquee {
    background-color: var(--wine);
    overflow: hidden;
    padding: 24px 0;
    white-space: nowrap;
}

.marquee__track {
    display: inline-flex;
    gap: 90px;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee__text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: var(--gold);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee--light {
    background-color: #fff;
}

.marquee--light .marquee__text {
    color: var(--wine);
}

/* === БЛОКИ ГАЛЕРЕИ === */
.gallery-blocks {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    margin-top: 60px;
}

.gallery-blocks .gallery-block {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
}

.gallery-blocks .carousel {
    margin-top: 40px;
    padding: 0 46px;
}

.gallery-block {
    margin-top: 110px;
    text-align: center;
}

.gallery-block__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 34px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wine);
}

.gallery-block__title::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background-color: var(--gold);
    margin: 16px auto 0;
}

/* === КАРУСЕЛЬ ГАЛЕРЕИ === */
.gallery {
    padding: 150px 0;
    background-color: var(--white);
    text-align: center;
}

.carousel {
    position: relative;
    margin: 60px auto 0;
    max-width: 1100px;
    padding: 0 70px;
}

.carousel__viewport {
    overflow: hidden;
    background-color: transparent;
}

.carousel__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.gallery-item {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: transparent;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.015);
}

.gallery-item figcaption {
    margin-top: 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--dark-text);
}

.gallery-item figcaption::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 14px;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--wine);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    opacity: 0.55;
}

.carousel__btn:hover {
    opacity: 1;
    color: var(--gold);
}

.carousel__prev { left: 6px; }
.carousel__next { right: 6px; }

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.carousel__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel__dots button.active {
    background-color: var(--gold);
    transform: scale(1.3);
}

/* === СЕКЦИИ С ФОРМАМИ === */
.join {
    padding: 150px 10%;
    background-color: var(--wine);
    color: var(--white);
}

.partners {
    padding: 150px 10%;
    background-color: var(--off-white);
}

.split {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.split-text {
    flex: 1;
    min-width: 300px;
}

.split-text p {
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 20px;
}

.join .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.join .section-title {
    color: var(--white);
}

.join .section-title span {
    color: var(--gold);
}

.join .section-divider {
    margin-left: 0;
}

.join .split-text p {
    color: rgba(255, 255, 255, 0.85);
}

.partners .section-divider {
    margin-left: 0;
}

/* === КОНТАКТЫ === */
.contact {
    padding: 150px 10%;
    display: flex;
    justify-content: space-between;
    gap: 100px;
    flex-wrap: wrap;
    background-color: var(--white);
}

.contact-form {
    flex: 1;
    min-width: 350px;
}

.contact-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: var(--wine);
}

.contact-links span {
    font-size: 13px;
    color: var(--gray-text);
}

.contact-map {
    flex: 1;
    min-width: 350px;
    height: 550px;
    background-color: var(--off-white);
    border: 1px solid var(--border);
    overflow: hidden;
}

.contact-map iframe {
    border: none;
    filter: grayscale(0.3);
}

/* === ПОДВАЛ === */
footer {
    text-align: center;
    padding: 60px 0;
    background-color: var(--wine);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(197, 160, 89, 0.5);
    transition: color 0.3s, border-color 0.3s;
}

.footer-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* === СТРАНИЦА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ === */
.privacy-header .logo { text-decoration: none; }

.privacy-back {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.4s;
}

.privacy-back:hover { color: var(--wine); }

.privacy {
    max-width: 860px;
    margin: 0 auto;
    padding: 150px 24px 90px;
    background-color: var(--white);
    text-align: left;
}

.privacy h1 {
    font-size: 42px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.privacy .section-divider { margin-left: 0; margin-top: 30px; }

.privacy h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 26px;
    letter-spacing: 1px;
    color: var(--wine);
    margin: 56px 0 14px;
}

.privacy p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.95;
    color: #232323;
    margin-bottom: 16px;
}

.privacy a { color: var(--wine); }

.privacy-date { margin-top: 60px; font-size: 13px; color: var(--gray-text); }

@media (max-width: 768px) {
    .privacy { padding: 110px 24px 60px; }
    .privacy h1 { font-size: 30px; letter-spacing: 2px; }
    .privacy h2 { font-size: 21px; margin-top: 44px; }
    .privacy p { font-size: 14px; line-height: 1.9; }
}

/* === КНОПКА "НАВЕРХ" === */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 950;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--wine);
    color: var(--white);
    border: 1px solid var(--gold);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.4s;
    font-family: 'Montserrat', sans-serif;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--wine-hover);
    color: var(--gold);
}

/* === ЛАЙТБОКС === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(10, 2, 4, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.open {
    display: flex;
}

.lightbox__body {
    max-width: min(1100px, 90vw);
    text-align: center;
}

.lightbox__img {
    display: block;
    width: min(55.5vh, 92vw);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin: 0 auto;
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--white);
    margin-top: 24px;
}

.lightbox__caption {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox__close:hover {
    background-color: var(--wine);
    border-color: var(--wine);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.lightbox__prev {
    left: 26px;
}

.lightbox__next {
    right: 26px;
}

.lightbox__nav:hover {
    background-color: var(--wine);
    border-color: var(--wine);
}

body.lightbox-open {
    overflow: hidden;
}

/* === АНИМАЦИИ === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (prefers-reduced-motion: reduce) {
    .hero__slide { transition: opacity 0.3s ease; animation: none; }
    .marquee__track { animation: none; }
}

/* === АДАПТИВНОСТЬ === */

/* Компактная шапка на средних экранах (ноутбуки, планшеты landscape) */
@media (max-width: 1300px) {
    nav a { margin-left: 30px; }
    .logo__name { font-size: 24px; letter-spacing: 3px; }
}

/* Планшеты (iPad, крупные Android-планшеты) */
@media (max-width: 1100px) {
    header { padding: 25px 6%; }
    nav { display: none; }
    .burger { display: flex; }
    .hero h1 { font-size: clamp(38px, 6.5vw, 56px); letter-spacing: 6px; }
    .hero p { font-size: 15px; }
    .stats { padding: 70px 6%; }
    .stats-grid { gap: 30px; }
    .about, .services, .join, .partners, .contact { padding: 110px 6%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { padding: 110px 0; }
    .split { gap: 60px; }
    .contact { gap: 60px; }
    .lightbox__img { width: min(48vh, 92vw); }
}

/* Планшеты в портретной ориентации и телефоны: карусели друг под другом */
@media (max-width: 900px) {
    .gallery-blocks { flex-direction: column; align-items: center; gap: 80px; }
    .gallery-blocks .gallery-block { width: 100%; max-width: 720px; margin-top: 0; }
}

@media (max-width: 768px) {
    .hero { min-height: 100svh; min-height: 100vh; padding-top: 110px; }
    .hero h1 { font-size: clamp(34px, 9vw, 48px); letter-spacing: 4px; }
    .hero p { font-size: 15px; }
    .hero-buttons { width: 100%; max-width: 360px; }
    .hero-buttons .btn { flex: 1 1 100%; }

    .logo__name { font-size: 24px; letter-spacing: 4px; }
    .logo__tagline { font-size: 9px; letter-spacing: 3px; }
    header { padding: 16px 5%; padding-top: calc(16px + env(safe-area-inset-top)); }

    .stats { padding: 70px 8%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .stat-num { font-size: 44px; }

    .about { padding: 100px 8%; }
    .features { flex-direction: column; gap: 44px; margin-top: 50px; }
    .feature-item { min-width: 0; }
    .section-title { font-size: clamp(30px, 7vw, 40px); letter-spacing: 2px; }

    .services, .join, .partners { padding: 100px 8%; }
    .services-grid { grid-template-columns: 1fr; margin-top: 45px; }
    .gallery { padding: 100px 0; }
    .carousel { margin-top: 45px; max-width: 100%; padding: 0 46px; }
    .gallery-block { margin-top: 80px; }
    .gallery-block__title { font-size: 26px; }
    .gallery-item figcaption { margin-top: 18px; font-size: 17px; }
    .gallery-item figcaption::before { margin-bottom: 10px; }
    .carousel__btn { width: 40px; height: 40px; font-size: 24px; }
    .carousel__dots { margin-top: 22px; }
    .marquee { padding: 16px 0; }
    .marquee__text { font-size: 20px; letter-spacing: 5px; }

    .contact, .split { flex-direction: column; gap: 60px; }
    .split-text, .contact-form, .contact-map { min-width: 0; width: 100%; }
    .contact-map { height: 380px; }

    .lightbox { padding: 20px; }
    .lightbox__body { max-width: 100vw; }
    .lightbox__title { font-size: 20px; margin-top: 16px; }
    .lightbox__close { top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 46px; height: 46px; }
    .lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
    .lightbox__counter { bottom: calc(16px + env(safe-area-inset-bottom)); }

    .back-to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }

    footer { padding: 50px env(safe-area-inset-right) calc(50px + env(safe-area-inset-bottom)) env(safe-area-inset-left); font-size: 11px; letter-spacing: 1px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .carousel { padding: 0 30px; }
    .carousel__btn { width: 34px; height: 34px; font-size: 20px; }
    .hero p { max-width: 90%; margin-bottom: 36px; }
}

/* Тонкие телефоны */
@media (max-width: 360px) {
    .stats-grid { grid-template-columns: 1fr; }
    .logo__name { font-size: 21px; letter-spacing: 3px; }
}

/* Ховер-эффекты только для устройств с указателем (мышь/трекпад) */
@media (hover: none) {
    .service-item:hover { transform: none; border-color: var(--border); }
    .gallery-item:hover img { transform: none; }
    .carousel__btn { opacity: 0.85; }
    .btn:hover { background-color: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
    .carousel__btn:hover { opacity: 0.85; color: var(--wine); }
}