/* Шрифты загружаются через <link> в HTML для лучшей производительности */

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

:root {
    --color-white: #FFFFFF;
    --color-cream: #F5F5F0; /* более теплый светлый фон */
    --color-burgundy: #FF7A1A; /* яркий оранжевый акцент */
    --color-black: #0A0A0A;
    --color-gray: #6B7280;
    --color-light-gray: #F9FAFB;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-2xl: 80px;
    --spacing-3xl: 120px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--color-black);
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 122, 26, 0.03), transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.02), transparent 50%),
        var(--color-cream);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Прелоадер */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--color-black);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-text {
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f9fafb;
    white-space: nowrap;
    border-right: 2px solid var(--color-burgundy);
    padding-right: 8px;
    overflow: hidden;
    animation: caret-blink 0.9s steps(1, end) infinite;
}

.preloader-text.typing-done {
    border-right-color: transparent;
    animation: none;
}

@keyframes caret-blink {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: var(--color-burgundy);
    }
}

body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Второй загрузочный экран для переходов между страницами */
.page-loader {
    position: fixed;
    inset: 0;
    background-color: var(--color-black);
    z-index: 1900;
    display: none;
    align-items: center;
    justify-content: center;
}

.page-loader.is-visible {
    display: flex;
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header:hover {
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-family: 'Cormorant', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-burgundy);
    letter-spacing: 0.05em;
    text-transform: none;
    text-decoration: none;
    transition: all var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-black);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all var(--transition-base);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--color-burgundy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-burgundy) 0%, transparent 100%);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero секция */
.hero {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 200px 0 180px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('img/Fs_mGtX5XFEKsUvgTMlcWZ0IrqJP9JsZZNv7ID5AHitxTRDowr2NTP_Cs8eCsYE.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-inner::before {
    content: 'ТОК-ШОУ';
    position: absolute;
    top: 10%;
    left: -4%;
    font-size: 120px;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: rgba(249, 235, 222, 0.08);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 540px;
}

.hero-tagline {
    font-size: 16px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.hero-content h1 {
    font-size: 80px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.hero-content h1 span {
    display: block;
    font-family: 'Cormorant', serif;
    font-size: 70px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-white) 0%, #FFE5D9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    font-style: normal;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0;
}

/* Удалено: hero-photo, hero-image, hero-script - не используются */

/* Декоративные элементы в секциях */
.about,
.events,
.interactive,
.contacts {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: attr(data-shadow-title);
    position: absolute;
    top: 0;
    right: -10%;
    font-size: 120px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    white-space: nowrap;
}

.events::before {
    content: 'ФОРМАТ МЕРОПРИЯТИЯ - НЕВАЖНО (ЁЩЕ НЕ ПРИДУМАЛИ ТОГО, ЧТО ЕВГЕНИЙ НЕ СМОЖЕТ ПРОВЕСТИ) МЕСТО ПРОВЕДЕНИЯ - НЕВАЖНО (ЁЩЕ НЕ БЫЛО ТАКОГО МЕСТА, КУДА БЫ ЕВГЕНИЙ НЕ ДОБРАЛСЯ) НАСТРОЕНИЕ - ВАЖНО (ЁЩЕ БЫ БЫЛО ГРУСТНО... ЕВГЕНИЙ РОДИЛСЯ С УЛЫБКОЙ)';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    font-size: 80px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    opacity: 0.2;
    pointer-events: none;
    white-space: normal;
    width: 180%;
    max-width: none;
    text-align: center;
    line-height: 1.5;
    z-index: 0;
    word-wrap: break-word;
    overflow: visible;
}


.events::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 18%;
    width: 200px;
    height: 60px;
    border-radius: 999px;
    border: 3px solid var(--color-burgundy);
    border-style: dashed;
    transform: rotate(12deg);
    opacity: 0.6;
}

.interactive::before {
    content: 'INTERACTIVE';
    position: absolute;
    left: -8%;
    bottom: 0;
    font-size: 110px;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    text-transform: uppercase;
}

/* Общие рамки для фото */
.about-gallery .gallery-item {
    background-color: var(--color-black);
    padding: 12px;
    border-radius: 18px;
    border: 3px solid var(--color-cream);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.about-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.about-gallery .gallery-item::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid var(--color-burgundy);
    opacity: 0.7;
    pointer-events: none;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 20px 50px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-burgundy) 0%, #FF8C3A 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(255, 122, 26, 0.4);
}

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

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-burgundy);
    border: 2px solid var(--color-burgundy);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-burgundy) 0%, #FF8C3A 100%);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

/* Кнопки в карточках услуг */
.service-card .btn-secondary,
.service-card .service-btn {
    background: linear-gradient(135deg, var(--color-white) 0%, rgba(255, 255, 255, 0.9) 100%);
    color: var(--color-burgundy);
    border: 2px solid var(--color-white);
    font-weight: 600;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.service-card .btn-secondary::before,
.service-card .service-btn::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.service-card .btn-secondary:hover,
.service-card .service-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Секции */
section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-family: 'Cormorant', serif;
    font-size: 56px;
    color: var(--color-black);
    text-align: left;
    margin-bottom: var(--spacing-xl);
    font-weight: 900;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.about .section-title {
    color: var(--color-white);
    z-index: 1;
}

.about .section-title::after {
    background-color: var(--color-white);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-burgundy) 0%, transparent 100%);
    border-radius: 2px;
}

/* Обо мне */
.about {
    background-color: var(--color-burgundy);
    position: relative;
}

.about::after {
    content: var(--about-bg-text, 'ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ ПРИВЕТ');
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    font-size: 80px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.1);
    transform: rotate(-45deg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    word-spacing: 40px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.about-text {
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.about-text p {
    margin-bottom: var(--spacing-md);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

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

/* Галерея между блоками */
.photo-gallery {
    width: 100%;
    height: 500px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-burgundy) rgba(0, 0, 0, 0.1);
}

.photo-gallery::-webkit-scrollbar {
    height: 8px;
}

.photo-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.photo-gallery::-webkit-scrollbar-thumb {
    background: var(--color-burgundy);
    border-radius: 4px;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
    background: #FF8C3A;
}

.gallery-strip {
    display: flex;
    height: 100%;
    gap: 0;
    width: max-content;
}

.gallery-strip img {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

/* Мероприятия */
.events {
    background-color: var(--color-white);
    position: relative;
}

.events .container {
    position: relative;
    z-index: 1;
}

.events-intro {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-black);
    max-width: 900px;
    margin: 0 auto 60px;
}

.events-intro p {
    margin-bottom: 15px;
}

.events-ps {
    margin-top: 30px;
    font-style: italic;
    color: var(--color-burgundy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--color-burgundy) 0%, #FF8C3A 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        var(--shadow-xl), 
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 20px 60px rgba(255, 122, 26, 0.3);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Корпоратив */
.service-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    transform: rotate(-2deg);
}

.service-card:nth-child(1)::after {
    bottom: -50px;
    right: -50px;
    left: auto;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

/* Свадьба */
.service-card:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    transform: rotate(1deg);
}

.service-card:nth-child(2)::after {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    bottom: auto;
    left: auto;
}

/* Выпускной */
.service-card:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    transform: rotate(1deg);
}

.service-card:nth-child(3)::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    opacity: 0.5;
}

/* Индивидуально */
.service-card:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    transform: rotate(-2deg);
}

.service-card:nth-child(4)::after {
    top: -80px;
    left: -80px;
    bottom: auto;
    width: 250px;
    height: 250px;
}

.service-card:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(255, 122, 26, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    z-index: 10;
}

/* Отключаем hover эффекты на мобильных */
@media (max-width: 768px) {
    .service-card:hover {
        transform: none !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
}

.service-card h3 {
    font-size: 42px;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    font-family: 'Cormorant', serif;
    line-height: 1.2;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.service-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    flex-grow: 1;
    font-weight: 400;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-top: auto;
    padding: 14px 28px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: var(--radius-md);
    display: inline-block;
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Интерактив */
.interactive {
    background: linear-gradient(135deg, var(--color-black) 0%, #2b2b2b 40%, var(--color-black) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.interactive::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--interactive-bg-image, url('img/wFYMiOCtxlphHZApQ_pmvWt3MgYANsaZ7Er_6UvdQQTNi1WCUolXC3NChrpS6aq.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    opacity: 0.3;
    z-index: 0;
}

.interactive .container {
    position: relative;
    z-index: 1;
}

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

.interactive .section-title::after {
    display: none;
}

.interactive-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.interactive-content p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Контакты */
.contacts {
    background-color: var(--color-cream);
}

.contacts-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contacts-intro {
    font-size: 22px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-label {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-burgundy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-phone {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.contact-phone:hover {
    color: var(--color-burgundy);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-burgundy);
    text-decoration: none;
    padding: 14px 32px;
    border: 2px solid var(--color-burgundy);
    border-radius: 30px;
    transition: all var(--transition-base);
    display: inline-block;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--color-burgundy) 0%, #FF8C3A 100%);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-address {
    font-size: 20px;
    color: var(--color-black);
    font-style: italic;
    line-height: 1.6;
}

/* Фиксированный виджет поддержки */
.support-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 999px;
    background-color: var(--color-burgundy);
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.support-widget:hover {
    background-color: #cc5f10;
    transform: translateY(-3px);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.75);
}

.support-widget:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

/* Попап с формой */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1600;
    padding: 20px;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 32px 32px 28px;
    border-radius: 24px;
    background-color: #111111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    color: #f9fafb;
}

.modal-title {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.modal-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-field span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.modal-field input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background-color: #020617;
    color: #f9fafb;
    font-size: 16px;
}

.modal-field input::placeholder {
    color: #6b7280;
}

.modal-field input:focus {
    outline: none;
    border-color: var(--color-burgundy);
    box-shadow: 0 0 0 1px var(--color-burgundy);
}

/* Валидация - ошибки */
.modal-field input.input-error,
.modal-field input[aria-invalid="true"] {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
    animation: shake 0.3s ease;
}

.modal-field input.input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Анимация загрузки */
.btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-submit {
    width: 100%;
    margin-top: 8px;
}

.modal-note {
    margin-top: 6px;
    font-size: 13px;
    color: #9ca3af;
}

.modal-success {
    display: none;
    margin-top: 16px;
    font-size: 16px;
    color: var(--color-burgundy);
    font-weight: 500;
}

.modal-success.is-visible {
    display: block;
}

/* Адаптивность */
/* Бургер-меню для мобильных */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    z-index: 1001;
    position: relative;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-black);
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Хедер и навигация */
    .header {
        padding: 0;
    }

    .header-content {
        position: relative;
        padding: 15px 0;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        font-size: 16px;
        flex: 1;
        min-width: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    /* Overlay для мобильного меню */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 18px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        font-size: 16px;
        font-weight: 500;
        min-height: 48px;
        transition: background-color 0.2s ease;
    }

    .nav-link:active {
        background-color: rgba(255, 122, 26, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    /* Hero секция */
    .hero {
        padding: 120px 0 80px;
        min-height: auto;
        background-attachment: scroll;
    }

    .hero-inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-inner::before {
        font-size: 60px;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content h1 span {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }

    /* Удалено: hero-photo - не используется */

    /* Секции */
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Обо мне */
    .about {
        padding: 80px 0;
    }

    .about::after {
        font-size: 40px;
        gap: 20px;
        word-spacing: 20px;
    }

    .about-text {
        font-size: 18px;
        line-height: 1.7;
    }

    /* Галерея */
    .photo-gallery {
        height: 300px;
    }

    .gallery-strip img {
        height: 100%;
        width: auto;
    }

    /* Мероприятия */
    .events {
        padding: 80px 0;
    }

    /* Мобильный дизайн карточек мероприятий */
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .service-card {
        min-height: auto;
        padding: 35px 25px;
        border-radius: 20px;
        overflow: hidden;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
    }

    /* Убираем повороты и сложную grid-структуру на мобильных */
    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        grid-column: auto !important;
        grid-row: auto !important;
        transform: none !important;
    }

    /* Контент карточки */
    .service-card h3,
    .service-card .service-title {
        font-size: 28px;
        margin-bottom: 12px;
        color: var(--color-white);
        padding: 0;
        margin-top: 0;
    }

    .service-card .service-description {
        font-size: 17px;
        margin-bottom: 15px;
        color: var(--color-white);
        line-height: 1.7;
        padding: 0 0 0 16px;
    }

    .service-card .service-price {
        font-size: 18px;
        margin-bottom: 20px;
        color: var(--color-white);
        font-weight: 600;
        padding: 10px 20px;
    }

    .service-card .service-btn {
        margin: 0;
        width: 100%;
        padding: 16px 32px;
        background-color: var(--color-white);
        color: var(--color-burgundy);
        border: 2px solid var(--color-white);
        font-weight: 600;
    }
    
    .service-card .service-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: var(--color-white);
        border-color: var(--color-white);
    }

    /* Интерактив */
    .interactive {
        padding: 80px 0;
    }

    .interactive-content {
        text-align: center;
    }

    .interactive-content p {
        font-size: 18px;
        margin-bottom: 25px;
    }

    /* Контакты */
    .contacts {
        padding: 80px 0;
    }

    .contacts-intro {
        font-size: 20px;
        margin-bottom: 30px;
        text-align: center;
    }

    .contacts-info {
        flex-direction: column;
        gap: 25px;
    }

    .contact-item {
        text-align: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    /* Кнопки */
    .btn {
        padding: 16px 32px;
        font-size: 16px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 100%;
    }

    /* Модальное окно */
    .modal {
        max-width: 90%;
        padding: 25px 20px;
        margin: 20px;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .modal-field input,
    .modal-field textarea {
        font-size: 16px;
        padding: 12px;
        min-height: 48px;
    }

    /* Галерея */
    .about-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Страницы мероприятий */
    .service-page {
        padding-top: 80px;
    }

    .service-page .section-title {
        padding: 0 20px;
        font-size: 28px;
    }

    .service-page-content {
        min-height: 550px;
    }

    /* Градиент для мобильных сверху вниз */
    .service-page-content::before {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
        z-index: 2;
    }

    .service-page-text {
        gap: 25px;
        padding: 50px 25px;
        margin: 0;
        max-width: 100%;
        align-items: flex-start;
        justify-content: flex-end;
        z-index: 3;
    }

    .service-intro {
        font-size: 40px;
        font-weight: 900;
        line-height: 1.1;
        color: var(--color-white);
        letter-spacing: 0;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    }

    .service-page-text p {
        font-family: 'Montserrat', sans-serif;
        font-size: 18px;
        line-height: 1.6;
        color: var(--color-white);
        letter-spacing: -0.01em;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    }

    .service-price-large {
        font-size: 28px;
        font-weight: 900;
        padding: 0;
        background-color: transparent;
        color: var(--color-white);
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        margin-top: 10px;
        border-radius: 10px;
    }

    .service-gallery,
    .service-page-cta {
        padding: 0 20px;
    }

    .service-gallery h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .gallery-scroll {
        padding: 15px 0;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-item {
        width: 250px;
        height: 250px;
        flex-shrink: 0;
    }

    .service-page-cta {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 60px;
    }

    .service-page-cta .btn {
        width: 100%;
    }

    /* Интерактивная страница */
    .interactive-page {
        padding: 100px 0 60px;
    }

    .interactive-intro {
        font-size: 18px;
        padding: 20px;
    }

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

    .interactive-feature {
        padding: 25px;
    }

    .quiz-promo {
        padding: 30px 20px;
    }

    .quiz-promo h2 {
        font-size: 28px;
    }

    .quiz-promo p {
        font-size: 16px;
    }

    .quiz-promo::before {
        font-size: 120px;
    }

    /* Виджет поддержки */
    .support-widget {
        right: 16px;
        bottom: 16px;
        padding: 14px 22px;
        font-size: 13px;
        letter-spacing: 0.12em;
    }

    /* Прелоадер */
    .preloader-text {
        font-size: 14px;
    }

    /* Улучшаем touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Оптимизация для touch устройств */
    .btn {
        touch-action: manipulation;
    }

    /* Улучшаем читаемость на маленьких экранах */
    .service-description {
        font-size: 17px;
        line-height: 1.7;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content h1 span {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .service-title {
        font-size: 20px;
    }

    .gallery-item {
        width: 200px;
        height: 200px;
    }

    .gallery-scroll {
        gap: 12px;
    }

    .container {
        padding: 0 12px;
    }
}

/* Страницы услуг */
.service-page {
    padding-top: 80px;
    background-color: var(--color-white);
}

.service-page .container {
    max-width: 100%;
    padding: 0;
}

.service-page-content {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    background-color: var(--color-black);
}

/* Затемняющий overlay для читаемости текста */
.service-page-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

.service-page-text {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 35px;
    text-align: left;
    max-width: 900px;
    padding: 100px 80px;
    margin-left: 5%;
}

.service-intro {
    font-size: 80px;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.service-page-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    line-height: 1.6;
    color: var(--color-white);
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.service-price-large {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-white);
    margin-top: 10px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    align-self: flex-start;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* service-page-images как фоновое фото на весь блок */
.service-page-images {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.service-page-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Заголовок страницы услуг */
.service-page .section-title {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

/* Галерея и CTA в контейнере */
.service-gallery,
.service-page-cta {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

/* Галерея на страницах мероприятий */
.service-gallery {
    margin-top: 40px;
    margin-bottom: 60px;
}

.service-gallery h3 {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-burgundy);
    margin-bottom: 30px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-burgundy) var(--color-cream);
    /* Улучшаем прокрутку на мобильных */
    scroll-snap-type: x mandatory;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--color-cream);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--color-burgundy);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #cc5f10;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.service-page-cta {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* Страница интерактивов */
.interactive-page {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-white) 100%);
}

.interactive-page-content {
    max-width: 1000px;
    margin: 0 auto;
}

.interactive-intro {
    text-align: center;
    font-size: 22px;
    line-height: 1.8;
    color: var(--color-black);
    margin-bottom: 60px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
}

.interactive-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.interactive-feature {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.interactive-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(94, 49, 54, 0.2);
}

.interactive-feature h3 {
    font-size: 24px;
    color: var(--color-burgundy);
    margin-bottom: 15px;
}

.interactive-feature p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
}

.interactive-cta {
    text-align: center;
    padding: 40px;
    background-color: var(--color-black);
    border-radius: 20px;
    color: var(--color-white);
}

.interactive-cta p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.logo {
    text-decoration: none;
    display: inline-block;
}


/* Блок промо квиза */
.quiz-promo {
    background: linear-gradient(135deg, var(--color-burgundy) 0%, #cc5f10 100%);
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-promo::before {
    content: '🎯';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: -30px;
    top: -30px;
}

.quiz-promo h2 {
    font-size: 36px;
    color: var(--color-white);
    margin-bottom: 15px;
}

.quiz-promo p {
    font-size: 20px;
    color: var(--color-white);
    margin-bottom: 30px;
    opacity: 0.9;
}

.quiz-promo .btn {
    background: var(--color-white);
    color: var(--color-burgundy);
    font-size: 20px;
    padding: 18px 40px;
}

.quiz-promo .btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

