﻿/* ===================================
   CSS VARIABLES
   =================================== */

:root {
    /* Colors */
    --color-background: #A29D95;
    --color-surface: #B3AEA8;
    --color-beige: #9F968A;
    --color-rose: #9F908C;
    --color-champagne: #C9A66B;
    --color-gold: #D4AF37;
    --color-dark: #1E1A17;
    --color-muted: #5C5249;
    --color-white: #FFFDFC;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E8D7D3 0%, #C9A66B 100%);
    --gradient-hover: linear-gradient(135deg, #EBC4C4 0%, #D4AF37 100%);
    
    /* Typography */
    --font-serif: 'Dancing Script', 'Cormorant Garamond', serif;
    --font-sans: 'Manrope', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
    
    /* Radius */
    --radius-card: 24px;
    --radius-pill: 50px;
    --radius-small: 16px;
    
    /* Shadows */
    --shadow-soft: 0 8px 32px rgba(48, 42, 39, 0.08);
    --shadow-medium: 0 16px 48px rgba(48, 42, 39, 0.12);
    --shadow-lift: 0 20px 60px rgba(48, 42, 39, 0.15);
    
    /* Transitions */
    --transition-base: 300ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   RESET & BASE
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* overflow-x убран чтобы цепочка выходила за края */
    position: relative;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base), opacity var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

/* ===================================
   PAGE ENTRANCE ANIMATIONS
   =================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* Шапка */
.header {
    animation: fadeDown 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Hero текст */
.hero-label   { animation: fadeUp 0.7s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-title   { animation: fadeUp 0.8s 0.35s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-subtitle{ animation: fadeUp 0.8s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-text    { animation: fadeUp 0.8s 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-content .btn-primary { animation: fadeUp 0.8s 0.75s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Банан */
.hero-banana  { animation: fadeIn 1.1s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Лупа */
.glass-magnifier { animation: fadeIn 1.2s 0.9s ease both; }

/* Секции при скролле — базовое состояние */
.services, .intro, .statistics, .categories,
.prices, .gallery, .testimonial, .booking-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.services.visible, .intro.visible, .statistics.visible,
.categories.visible, .prices.visible, .gallery.visible,
.testimonial.visible, .booking-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(48, 42, 39, 0.15);
}

p {
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(48, 42, 39, 0.08);
}

/* ===================================
   BACKGROUND SHAPES
   → вынесено в background-shapes.css
   =================================== */

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: var(--shadow-lift);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-white);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-transform: none;
}

.btn-secondary:hover {
    background: var(--gradient-hover);
}

.btn-header {
    padding: 0.75rem 1.75rem;
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-white);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-pill);
    transition: all var(--transition-smooth);
}

.btn-header:hover {
    background: var(--gradient-hover);
}

/* ===================================
   HEADER — TRANSPARENT WITH LOGO + NAV + GRADIENT BUTTON
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    border-bottom: none;
    padding: 1.5rem 0;
}

main {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип как в референсе: IS + Luxury Salon */
.header-logo .logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 0.125rem;
    /* Белый текст с золотой обводкой и тенью */
    -webkit-text-stroke: 0.5px rgba(201, 166, 107, 0.8);
    text-stroke: 0.5px rgba(201, 166, 107, 0.8);
    paint-order: stroke fill;
    text-shadow:
        0 0 8px rgba(201, 166, 107, 0.6),
        0 2px 12px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: #D4AF37;  /* золотой цвет — хорошо читается на любом фоне */
    text-transform: uppercase;
    text-shadow:
        0 1px 8px rgba(0, 0, 0, 0.9),
        0 0 16px rgba(0, 0, 0, 0.7);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #FFFFFF;
    transition: color var(--transition-base);
    text-decoration: none;
    /* Тонкая золотая обводка + глубокая тень */
    -webkit-text-stroke: 0.3px rgba(201, 166, 107, 0.5);
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.4);
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-divider {
    display: none;
}

.nav-lang {
    display: none;
}

/* Градиентная кнопка как в референсе */
.btn-header {
    padding: 0.75rem 1.75rem;
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    background: linear-gradient(135deg, #C9A66B 0%, #E8D7D3 100%);
    border: none;
    border-radius: var(--radius-pill);
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(201, 166, 107, 0.30);
    text-decoration: none;
    animation: fadeDown 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ===================================
   HEADER RIGHT — Instagram + Lang toggle
   =================================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row;
}

.header-instagram {
    color: #D4AF37;
    display: flex;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
    /* Уменьшена тень в 3 раза */
    filter: drop-shadow(0 0 2px rgba(212,175,55,0.25)) drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.header-instagram:hover {
    color: #F5D76E;
    transform: scale(1.12);
    filter: drop-shadow(0 0 4px rgba(212,175,55,0.5));
}

/* Переключатель языка — три кнопки */
.lang-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
    background: transparent;
    border: none;
    border-radius: 14px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.lang-btn:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
}

.lang-btn.active {
    color: #1E1A17;
    background: radial-gradient(circle at 35% 35%, #F5D76E, #C9A66B 60%, #8B6914);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: none;
}

/* Читаемость hero текста — без тёмного фона */
.hero-content {
    background: none;
    border-radius: 0;
    padding: 0;
    max-width: 55%;
}

.btn-header:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #EBC4C4 100%);
    box-shadow: 0 6px 20px rgba(201, 166, 107, 0.45);
}

/* Burger Menu - скрыт на десктопе */
.burger-menu {
    display: none;
}

.burger-line {
    display: none;
}

/* ===================================
   HERO SECTION — 2 ЦВЕТА В ЗАГОЛОВКЕ, ГРАДИЕНТНАЯ КНОПКА СЛЕВА
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Основное фото (hader.png) - только для hero секции */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url('images/hader.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 5.5rem 2rem 10rem;
    text-align: left;
    pointer-events: none;
}

.hero-content {
    max-width: 52%;  /* текст занимает левую половину, банан — правую */
    position: relative;
    pointer-events: auto;
}

.hero-label {
    font-size: 0.688rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 8.545rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.25;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Первая строка — Nail Studio */
.hero-title-main {
    display: block;
    white-space: nowrap;
}

/* Акцентная часть заголовка золотисто-бежевым */
.hero-title-accent {
    display: block;
    white-space: nowrap;
    color: #F5E6D3;
    font-weight: 400;
    font-size: 1.477rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Строка с городом — белая, размер между заголовком и кнопкой */
.hero-title-location {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.619rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-top: 0.5rem;
    text-shadow:
        0 0 12px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 500px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Градиентная кнопка слева под текстом */
.hero-content .btn-primary {
    background: linear-gradient(135deg, #C9A66B 0%, #E8D7D3 100%);
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(201, 166, 107, 0.35);
    display: inline-block;
}

.hero-content .btn-primary:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #EBC4C4 100%);
    box-shadow: 0 12px 32px rgba(201, 166, 107, 0.45);
}

/* Скрываем старую визуальную часть */
.hero-visual {
    display: none;
}

.hero-image-placeholder {
    display: none;
}

.placeholder-shape {
    display: none;
}

.placeholder-label {
    display: none;
}

.hero-decoration {
    display: none;
}

/* Декоративные PNG — рука с бананом */
.hero-banana {
    position: absolute;
    right: calc(-18% - 29px + 10px);
    bottom: calc(24px + 10% + 70px);
    width: 66.7%;
    z-index: 3;
    pointer-events: none;
}

/* banana1 — всегда виден */
.hero-banana-front {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* banana2 — нижний слой, проявляется через лупу */
.hero-banana-back {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    -webkit-mask-image: radial-gradient(
        circle 150px at var(--magnifier-x, -9999px) var(--magnifier-y, -9999px),
        black 0%, black 95%, transparent 100%
    );
    mask-image: radial-gradient(
        circle 150px at var(--magnifier-x, -9999px) var(--magnifier-y, -9999px),
        black 0%, black 95%, transparent 100%
    );
}
@media (max-width: 768px) {
    .hero-banana-back {
        -webkit-mask-image: radial-gradient(
            circle 97px at var(--magnifier-x, -9999px) var(--magnifier-y, -9999px),
            black 0%, black 95%, transparent 100%
        );
        mask-image: radial-gradient(
            circle 97px at var(--magnifier-x, -9999px) var(--magnifier-y, -9999px),
            black 0%, black 95%, transparent 100%
        );
    }
}

/* banana1 — всегда виден */
.hero-banana-front {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* banana2 (маникюр) — поверх banana1, видим только под лупой */
.hero-banana-back {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
    z-index: 2;
    -webkit-mask-image: radial-gradient(
        circle 150px at var(--magnifier-x, -9999px) var(--magnifier-y, -9999px),
        black 0%,
        black 99%,
        transparent 100%
    );
    mask-image: radial-gradient(
        circle 150px at var(--magnifier-x, -9999px) var(--magnifier-y, -9999px),
        black 0%,
        black 99%,
        transparent 100%
    );
}

@media (max-width: 768px) {
    .hero-banana-back {
        -webkit-mask-image: radial-gradient(
            circle 97px at var(--magnifier-x, -9999px) var(--magnifier-y, -9999px),
            black 0%,
            black 99%,
            transparent 100%
        );
        mask-image: radial-gradient(
            circle 97px at var(--magnifier-x, -9999px) var(--magnifier-y, -9999px),
            black 0%,
            black 99%,
            transparent 100%
        );
    }
}

@media (max-width: 768px) {
    .hero-banana {
        width: 80.5%;
        right: calc(-18% - 29px + 10px);
        bottom: 0; /* опускаем вниз экрана */
    }
}

/* ===================================
   INTRO SECTION
   =================================== */

.intro {
    padding: var(--spacing-xl) 0;
    background-color: transparent;
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.intro-title {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.intro-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Карточки о студии */
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.about-card {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 166, 107, 0.2);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
}

.about-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: rgba(201, 166, 107, 0.4);
}

.about-card-icon {
    font-size: 1.5rem;
    color: var(--color-champagne);
    margin-bottom: 1rem;
    display: block;
}

.about-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.about-card-text {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .intro-title {
        font-size: 1.75rem;
    }
}

/* ===================================
   HORIZONTAL CATEGORIES — SIMPLE STYLE (как "Our Beauty Services")
   =================================== */

.categories {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: rgba(255, 252, 248, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.categories-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 3rem;
}

.categories-scroll {
    display: flex;
    gap: 3rem;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 100px;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.category-item:hover {
    /* Убрал transform для стабильности */
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    padding: 16px;
    background: rgba(201, 166, 107, 0.08);
    border: 1.5px solid rgba(201, 166, 107, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(201, 166, 107, 0.12);
}

.category-item:hover .category-icon-wrapper {
    background: rgba(201, 166, 107, 0.18);
    border-color: rgba(201, 166, 107, 0.6);
    box-shadow: 0 6px 24px rgba(201, 166, 107, 0.25);
}

.category-item:hover .category-icon-wrapper svg {
    transform: scale(1.1);
}

.category-icon-wrapper svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke-width: 1.3;
    transition: transform var(--transition-base);
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark);
    text-align: center;
    line-height: 1.3;
}

/* ===================================
   STATISTICS SECTION
   =================================== */

.statistics {
    position: relative;
    padding: var(--spacing-xl) 0;
    background-color: transparent;
}

.statistics-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(251, 249, 246, 0.50);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--color-champagne);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.938rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ===================================
   TESTIMONIALS CAROUSEL
   =================================== */

.testimonial {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.testimonial-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-carousel {
    position: relative;
    min-height: 220px;
}

.tcard {
    display: none;
    background: rgba(251,249,246,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201,166,107,0.2);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    animation: fadeUp 0.5s ease both;
}

.tcard.active { display: block; }

.testimonial-stars {
    color: var(--color-gold);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-family: 'Dancing Script', var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: normal;
    text-shadow: none;
}

.testimonial-author-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A66B, #E8D7D3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
}

.testimonial-date {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.1rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(201,166,107,0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.tdot.active {
    background: #C9A66B;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .testimonial-quote { font-size: 1.05rem; }
    .tcard { padding: 1.5rem; }
}

/* ===================================
   SERVICES SECTION — HORIZONTAL CARDS (как в референсе красный блок)
   =================================== */

.services {
    position: relative;
    padding: 0 0 var(--spacing-xl);
    margin-top: -8rem;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    will-change: auto;
    overflow: hidden;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: none;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-champagne);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-dark);
}

.section-description {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    position: relative;
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
}

/* Наложение карточек друг на друга — только на десктопе */
.service-card:nth-child(2) {
    margin-left: -1rem;
}

.service-card:nth-child(3) {
    margin-left: -1rem;
}

.service-card {
    position: relative;
    padding: 1rem 0.625rem;
    background: rgba(255, 252, 248, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 166, 107, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(48, 42, 39, 0.08);
    transition: all var(--transition-smooth);
    text-align: center;
    aspect-ratio: 0.9 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(48, 42, 39, 0.12);
    background: rgba(255, 252, 248, 0.75);
    border-color: rgba(201, 166, 107, 0.4);
}

.service-icon {
    width: 100%;
    max-width: 68px;
    height: 68px;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 52px;
    height: 52px;
    stroke: var(--color-champagne);
    fill: none;
    stroke-width: 1.8;
}

.service-number {
    display: none;
}

.service-name {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.2;
}

.service-description {
    font-size: 0.625rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.3;
    margin: 0;
}

/* Градиентная кнопка "Learn More" */
.service-link {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    font-size: 0.563rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    background: linear-gradient(135deg, #C9A66B 0%, #E8D7D3 100%);
    border-radius: var(--radius-pill);
    text-transform: capitalize;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(201, 166, 107, 0.30);
    flex-shrink: 0;
}

.service-link:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #EBC4C4 100%);
    box-shadow: 0 6px 20px rgba(201, 166, 107, 0.45);
}

.service-line {
    display: none;
}

.services-decoration {
    display: none;
}

/* ===================================
   PRICES SECTION
   =================================== */

.prices {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background-color: transparent;
}

.prices-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.price-groups {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.price-group {
    padding: 3rem;
    background: rgba(251, 249, 246, 0.60);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
}

.price-group:hover {
    box-shadow: var(--shadow-medium);
}

.price-category {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(201, 166, 107, 0.30);
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 1rem;
}

.price-name {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-dark);
}

.price-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(48, 42, 39, 0.2);
    margin: 0 0.5rem;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-champagne);
    white-space: nowrap;
}

.prices-decoration {
    position: absolute;
    top: 20%;
    right: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 215, 211, 0.25), transparent);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* ===================================
   GALLERY SECTION — 3D CIRCULAR CAROUSEL
   =================================== */

.gallery {
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery .section-header {
    display: block;
    text-align: center;
    margin-bottom: 3rem;
}

/* Обёртка карусели */
.circular-gallery-wrap {
    position: relative;
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1800px;
    perspective-origin: 50% 50%;
}

/* Сцена — вращается целиком */
.circular-scene {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    /* transform задаётся через JS */
}

/* Карточка — каждая расставлена через rotateY + translateZ */
.cg-card {
    position: absolute;
    width: 240px;
    height: 320px;
    top: -160px;
    left: -120px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    will-change: transform;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

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

.cg-label {
    display: none;
}

/* Стрелки */
.cg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--color-dark);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background var(--transition-base);
    -webkit-backdrop-filter: blur(10px);
}

.cg-arrow:hover {
    background: rgba(201,166,107,0.35);
}

.cg-arrow-left  { left: 0; }
.cg-arrow-right { right: 0; }

/* Мобильные */
@media (max-width: 768px) {
    .circular-gallery-wrap {
        height: 480px; /* было 400 → +20% */
    }

    .cg-card {
        width: 216px;  /* было 180 → +20% */
        height: 288px; /* было 240 → +20% */
        top: -144px;   /* половина высоты */
        left: -108px;  /* половина ширины */
    }

    .cg-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .circular-gallery-wrap {
        height: 408px; /* было 340 → +20% */
    }

    .cg-card {
        width: 180px;  /* было 150 → +20% */
        height: 240px; /* было 200 → +20% */
        top: -120px;
        left: -90px;
    }
}

/* ===================================
   BOOKING CTA SECTION
   =================================== */

.booking-cta {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background-color: transparent;
    overflow: hidden;
}

.booking-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.booking-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.booking-text {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.booking-decoration {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 253, 252, 0.4), transparent);
    border-radius: 50%;
    z-index: 0;
}

.booking-container > * {
    position: relative;
    z-index: 1;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    position: relative;
    z-index: 1;
    padding: 0; /* никакого воздуха снизу */
    background-color: var(--color-dark);
    color: var(--color-white);
    overflow: hidden;
}

/* Фото — последний элемент, прижато к низу */
.footer-image {
    width: 100%;
    line-height: 0;
    margin-top: var(--spacing-md);
    display: block;
}

.footer-image img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg) 2rem var(--spacing-md);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 253, 252, 0.6);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 253, 252, 0.7);
}

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

.footer-lang-text {
    font-size: 0.813rem;
    color: rgba(255, 253, 252, 0.6);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 253, 252, 0.1);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social-link {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 253, 252, 0.5);
}

.footer-social-link:hover {
    color: var(--color-champagne);
}

.footer-social-placeholder {
    cursor: default;
    opacity: 0.5;
}

.footer-social-placeholder:hover {
    color: rgba(255, 253, 252, 0.5);
}

.footer-copyright {
    font-size: 0.813rem;
    font-weight: 300;
    color: rgba(255, 253, 252, 0.5);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Desktop (1025px+) — Ensure burger is hidden */
@media (min-width: 1025px) {
    .burger-menu {
        display: none !important;
    }
    
    .header-nav {
        display: flex !important;
    }
}

/* Tablet (768px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Hide burger on tablet and desktop */
    .burger-menu {
        display: none;
    }
}

/* Mobile (768px and below) — ПРИОРИТЕТ */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }
    
    /* HEADER — полностью прозрачный, не выделяется */
    .header {
        background: transparent;
        border-bottom: none;
    }    
    .header-container {
        padding: 0.875rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    
    .header-logo .logo-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-main {
        color: #FFFFFF;
        font-size: 1.5rem;
    }
    
    .logo-sub {
        color: rgba(255, 255, 255, 0.75);
    }
    
    .header-logo {
        flex: 1;
    }
    
    .header-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(48, 42, 39, 0.08);
        box-shadow: 0 10px 30px rgba(48, 42, 39, 0.1);
        z-index: 100;
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1rem;
        text-align: center;
    }
    
    .nav-lang {
        color: rgba(255, 255, 255, 0.70);
    }
    
    .burger-menu {
        display: flex;
    }
    
    .burger-line {
        background-color: #FFFFFF;
    }
    
    .burger-menu.active .burger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .burger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .btn-header {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }
    
    /* HERO — МОБИЛЬНАЯ КОМПОЗИЦИЯ */
    .hero {
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }
    
    .hero::before {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .hero-container {
        padding: 68px 1.5rem 6rem;
        text-align: left;
    }
    
    .hero-content {
        max-width: 58%; /* текст не перекрывает руку */
        text-align: left;
    }
    
    .hero-label {
        font-size: 0.688rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-title {
        font-size: 4.8rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 0.938rem;
        margin-bottom: 1rem;
    }
    
    .hero-text {
        font-size: 0.875rem;
        margin-bottom: 1.75rem;
    }
    
    /* Кнопка в левом углу, не на всю ширину */
    .hero-content .btn-primary {
        width: auto;
        display: inline-block;
    }
    
    /* INTRO */
    .intro-container {
        padding: 0 1.5rem;
    }
    
    .intro-title {
        font-size: 1.75rem;
    }
    
    .intro-text {
        font-size: 0.938rem;
    }
    
    /* SERVICES — МОБИЛЬНЫЙ */
    .services {
        margin-top: -6rem;
        padding-bottom: var(--spacing-md);
        overflow: hidden;
    }
    
    .services-container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        max-width: 100%;
        width: 100%;
        justify-items: stretch;
    }
    
    /* Убираем наложение на мобильных — главная причина выхода за грани */
    .service-card:nth-child(2) {
        margin-left: 0;
    }
    
    .service-card:nth-child(3) {
        margin-left: 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.938rem;
    }
    
    .service-card {
        padding: 0.875rem 0.375rem;
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 14px;
        gap: 0.375rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .service-icon {
        width: 100%;
        max-width: 52px;
        height: 52px;
        padding: 0;
        margin: 0 auto;
    }
    
    .service-icon svg {
        width: 34px;
        height: 34px;
        stroke-width: 1.3;
    }
    
    .service-name {
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.2;
        font-weight: 600;
    }
    
    .service-description {
        font-size: 0.563rem;
        margin: 0;
        line-height: 1.3;
    }
    
    .service-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.469rem;
    }
    
    /* CATEGORIES — ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ */
    .categories-container {
        padding: 0 1.5rem;
    }

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 380px) {
    .services-container {
        padding: 0 0.5rem;
    }
    
    .services-grid {
        gap: 0.375rem;
    }
    
    .service-card {
        padding: 0.75rem 0.25rem;
    }
    
    .service-icon {
        max-width: 44px;
        height: 44px;
    }
    
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .service-name {
        font-size: 0.688rem;
    }
    
    .service-description {
        font-size: 0.5rem;
    }
    
    .service-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.438rem;
    }
}
    
    .categories-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .categories-scroll {
        gap: 2.5rem;
        justify-content: flex-start;
        padding: 0.5rem 0;
    }
    
    .category-item {
        min-width: 80px;
    }
    
    .category-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .category-icon-wrapper svg {
        width: 40px;
        height: 40px;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    /* STATISTICS */
    .statistics-container {
        padding: 0 1.5rem;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    /* PRICES */
    .prices-container {
        padding: 0 1.5rem;
    }
    
    .price-groups {
        gap: 2rem;
    }
    
    .price-group {
        padding: 2rem 1.5rem;
    }
    
    .price-category {
        font-size: 1.25rem;
    }
    
    .price-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .price-dots {
        display: none;
    }
    
    .price-value {
        text-align: left;
        font-size: 1.125rem;
    }
    
    /* GALLERY */
    .gallery-container {
        padding: 0 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* TESTIMONIAL */
    .testimonial-container {
        padding: 2rem 1.5rem;
        margin: 0 1.5rem;
    }
    
    .testimonial-quote {
        font-size: 1.25rem;
    }
    
    /* BOOKING CTA */
    .booking-container {
        padding: 0 1.5rem;
    }
    
    .booking-title {
        font-size: 2rem;
    }
    
    .booking-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }
    
    /* FOOTER */
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Extra Small Mobile (390px and below) */
@media (max-width: 390px) {
    .hero-title {
        font-size: 3rem;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .intro-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .testimonial-quote {
        font-size: 1.125rem;
    }

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */

.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-item.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Отключаем анимацию для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
