/* ============================================
   СОВРЕМЕННЫЙ АДАПТИВНЫЙ ДИЗАЙН ДЛЯ ТОП-СЦЕНА
   ============================================ */

/* ============================================
   КРИТИЧНО: Header всегда закреплен на ВСЕХ устройствах
   Это правило должно быть первым для максимального приоритета
   ============================================ */
.header,
header.header,
#header,
header#header,
header.header#header,
header[class*="header"],
header[id*="header"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    z-index: 99999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    -moz-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
    -o-transform: translateY(0) !important;
    -webkit-position: fixed !important;
    -webkit-top: 0 !important;
    -moz-position: fixed !important;
    -ms-position: fixed !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    will-change: transform !important;
    contain: layout style paint !important;
}

/* Специальные правила для touch-устройств (телефоны, планшеты) */
@media (hover: none) and (pointer: coarse) {
    /* Header ВСЕГДА закреплен на touch-устройствах - КРИТИЧНО ДЛЯ ТЕЛЕФОНОВ! */
    .header,
    header.header,
    #header,
    header#header,
    header[class*="header"],
    header[id*="header"] {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        z-index: 99999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translateY(0) !important;
        -ms-transform: translateY(0) !important;
        -webkit-position: fixed !important;
        -webkit-top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
        contain: layout style paint !important;
    }
    
    /* Убеждаемся что body не мешает header */
    body {
        position: relative !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
    }
    
    /* Убеждаемся что html не мешает */
    html {
        position: relative !important;
        overflow-x: hidden !important;
    }
}

/* CSS Variables */
:root {
    /* Цвета */
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C42;
    --secondary: #F7931E;
    --accent: #FFA500;
    --dark: #1A1A1A;
    --dark-gray: #2D2D2D;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-section: #FFFFFF;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(247, 147, 30, 0.95) 100%);
    
    /* Тени */
    --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.2);
    --shadow-primary: 0 8px 24px rgba(255, 107, 53, 0.3);
    
    /* Типографика */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.75;
    background: #ffffff;
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px; /* Отступ для фиксированного header */
    letter-spacing: 0;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Глобальные правила для предотвращения переполнения */
* {
    box-sizing: border-box;
}

*:not(html):not(body) {
    max-width: 100%;
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 480px) {
    /* Header ВСЕГДА закреплен на маленьких экранах - КРИТИЧНО! */
    .header,
    header.header,
    #header,
    header#header,
    header[class*="header"],
    header[id*="header"] {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        z-index: 99999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translateY(0) !important;
        -ms-transform: translateY(0) !important;
        -webkit-position: fixed !important;
        -webkit-top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
        contain: layout style paint !important;
    }
    
    body {
        position: relative !important;
    }
    
    body.menu-open {
        position: relative !important;
        overflow: hidden !important;
    }
    
    html {
        position: relative !important;
        overflow-x: hidden !important;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
}

/* Header - Всегда закреплен на всех устройствах и страницах */
.header,
header.header,
#header,
header#header,
header[class*="header"],
header[id*="header"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    z-index: 99999 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, background !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-transform: translateY(0) !important;
    -moz-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
    -o-transform: translateY(0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    contain: layout style paint !important;
}

.header.scrolled {
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05), 0 8px 32px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.99) !important;
    border-bottom-color: rgba(255, 107, 53, 0.15);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: translateY(0) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
}

.header.scrolled .logo-main,
.header.scrolled .logo-golos {
    transform: scale(0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-sm);
    min-height: 80px;
    max-width: 1200px;
    margin: auto;
    width: 100%;
}

@media (min-width: 768px) {
    .header-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    line-height: 0;
    height: 45px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    object-fit: contain;
}

.logo-main {
    max-width: 135px;
}

.logo-golos {
    max-width: 162px;
    height: 40px;
}

.logo-separator {
    font-size: 21px;
    color: var(--dark-gray);
    font-weight: 300;
    line-height: 1;
    margin: 0 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo img[src=""],
.logo img:not([src]) {
    display: none;
}

.logo-link:hover .logo-main,
.logo-link:hover .logo-golos {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.3));
}

.logo:hover .logo-separator {
    opacity: 1;
    color: var(--primary);
}

/* Navigation */
.nav {
    display: flex;
}

@media (min-width: 768px) {
    .nav {
        display: flex !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Header всегда закреплен на десктопе */
    .header,
    header.header,
    #header,
    header#header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
    }
}

.nav-list {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    border-radius: var(--radius-md);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0;
    background: transparent;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    width: 80%;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:active {
    transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.hamburger {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    position: relative;
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background: var(--primary);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px) scale(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
    background: var(--primary);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height для мобильных */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 80px;
    padding-bottom: 20px;
    transform: translateZ(0);
    will-change: right;
}

@media (max-width: 575px) {
    .mobile-menu {
        width: 90%;
        padding-top: 70px;
    }
}

@media (max-width: 360px) {
    .mobile-menu {
        width: 95%;
    }
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__list {
    list-style: none;
    padding: var(--spacing-md) 0;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.mobile-menu.active .mobile-menu__list {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu__item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-menu__item:nth-child(1) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu__item:nth-child(2) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu__item:nth-child(3) {
    transition-delay: 0.35s;
}

.mobile-menu.active .mobile-menu__item:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu.active .mobile-menu__item:nth-child(5) {
    transition-delay: 0.45s;
}

.mobile-menu.active .mobile-menu__item:nth-child(6) {
    transition-delay: 0.5s;
}

.mobile-menu__link {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.1);
    touch-action: manipulation;
    min-height: 44px; /* Минимальный размер для удобного нажатия */
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .mobile-menu__link {
        padding: 16px 18px;
        font-size: 1rem;
    }
}

.mobile-menu__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), transparent);
    color: var(--primary);
    padding-left: 28px;
}

.mobile-menu__link:hover::before,
.mobile-menu__link:active::before {
    transform: scaleY(1);
}

/* Mobile Navigation - скрываем основную навигацию на мобильных */
@media (max-width: 767px) {
    /* Header ВСЕГДА закреплен на мобильных - КРИТИЧНО! */
    .header,
    header.header,
    #header,
    header#header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 99999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        -webkit-position: fixed !important;
        -webkit-top: 0 !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
        /* НЕ используем position: fixed для body, чтобы не мешать header */
    }

    .nav {
        display: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.35), 0 4px 12px rgba(255, 107, 53, 0.25);
    background: linear-gradient(135deg, #FF7B45 0%, #FF9D2E 100%);
}

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

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-white:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3), 0 4px 16px rgba(255, 107, 53, 0.25);
}

.btn-secondary {
    background: var(--dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-white::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-white:hover::before {
    width: 300px;
    height: 300px;
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height для мобильных */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 var(--spacing-sm);
    overflow: visible;
    margin-top: -80px; /* Компенсация padding-top body */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-image: linear-gradient(135deg, rgba(255, 107, 53, 0.35) 0%, rgba(247, 147, 30, 0.35) 100%),
                      url('https://sotni.ru/wp-content/uploads/2023/08/peizazh-minimalizm-88.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Отключаем fixed attachment на мобильных для лучшей производительности */
@media (max-width: 767px) {
    .hero {
        background-attachment: scroll;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        margin-top: -70px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: var(--spacing-md) var(--spacing-sm);
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    overflow: visible;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 4rem); /* Адаптивный размер */
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    color: var(--white);
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--white);
    border-radius: 2px;
    animation: scaleIn 0.8s ease 1s both;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: clamp(3rem, 4.5vw, 4rem);
    }
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: calc(var(--spacing-lg) + 0.5rem);
    line-height: 1.8;
    opacity: 0.95;
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.hero-scroll:hover {
    transform: translateX(-50%) scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Contest Hero */
.contest-hero {
    position: relative;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height для мобильных */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 var(--spacing-sm);
    overflow: visible;
    margin-top: -80px; /* Компенсация padding-top body */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Отключаем fixed attachment на мобильных для лучшей производительности */
@media (max-width: 767px) {
    .contest-hero {
        background-attachment: scroll;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        margin-top: -70px;
    }
}

.contest-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 0;
}

.contest-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.55) 0%, rgba(247, 147, 30, 0.55) 100%),
                url('https://sotni.ru/wp-content/uploads/2023/08/peizazh-minimalizm-88.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Отключаем fixed attachment на мобильных для лучшей производительности */
@media (max-width: 767px) {
    .contest-hero-background {
        background-attachment: scroll;
        background-position: center 80%;
    }
}

.contest-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: auto;
    padding: var(--spacing-md) var(--spacing-sm);
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto;
}

.contest-hero-content.container {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.contest-hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
    overflow: visible;
    max-height: none;
    height: auto;
}

.contest-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
    color: rgba(255, 255, 255, 0.95);
    overflow: visible;
    max-height: none;
    height: auto;
}

@media (min-width: 768px) {
    .contest-hero-title {
        font-size: 3.5rem;
    }
    
    .contest-hero-subtitle {
        font-size: 1.5rem;
    }
}

.contest-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.4s both;
    overflow: visible;
    max-height: none;
    height: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .contest-hero-description {
        font-size: 1.25rem;
    }
}

/* Sections */
.section {
    padding: calc(var(--spacing-xl) + 1rem) 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-alt {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 0;
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
}

main {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Декоративные элементы для визуального интереса */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 0 0 8px 8px;
    opacity: 0.4;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.section-alt::before {
    display: none;
}

/* Улучшение визуального разделения секций */
.section + .section {
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin: 0 auto calc(var(--spacing-lg) + 1rem);
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin: 0 auto calc(var(--spacing-sm) + 0.5rem);
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 100%;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-sizing: border-box;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: scaleIn 0.6s ease 0.3s both;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}


.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray);
    text-align: center;
    margin: var(--spacing-md) auto 0;
    max-width: 700px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0;
}

.subsection-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-md) + 0.5rem);
    line-height: 1.4;
    text-align: center;
}

/* About Section */
/* Улучшение выравнивания для всех grid контейнеров */
.directions,
.projects-grid,
.news-grid,
.team-grid,
.jury-grid,
.gallery-grid,
.stats-grid {
    align-items: stretch;
    justify-content: center;
    justify-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    width: 100%;
    max-width: 100%;
}

.about-text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--dark-gray);
    max-width: 900px;
    margin: auto;
    text-align: justify;
    text-align-last: left;
}

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

.directions-wrapper {
    margin-top: var(--spacing-xl);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.directions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: center;
    place-items: center;
}

@media (min-width: 768px) {
    .directions {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        justify-items: center;
        place-items: center;
    }
    
    .directions > .direction-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc((100% - var(--spacing-lg)) / 2);
        justify-self: center;
    }
}

@media (min-width: 1024px) {
    .directions {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        justify-items: center;
        place-items: center;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .directions > .direction-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: stretch;
    }
}

.direction-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    margin: auto;
    justify-self: center;
    align-self: center;
}

.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.12), 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

.direction-card:not([data-expandable]) {
    cursor: default;
}

.direction-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 2.2rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3), 0 4px 12px rgba(255, 107, 53, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 4s ease-in-out infinite;
    margin-bottom: var(--spacing-md);
}

.direction-card:nth-child(2) .direction-icon {
    animation-delay: 0.3s;
}

.direction-card:nth-child(3) .direction-icon {
    animation-delay: 0.6s;
}

.direction-card:hover .direction-icon {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(255, 107, 53, 0.35), 0 4px 12px rgba(255, 107, 53, 0.25);
}

.direction-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.3s;
}

.direction-card:hover .direction-icon::after {
    opacity: 0.4;
    animation: pulse 2s ease-in-out infinite;
}

.direction-card h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--dark);
    transition: color 0.3s ease;
    line-height: 1.3;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
}

.direction-card:hover h4 {
    color: var(--primary);
}

.direction-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1rem);
    margin: 0;
    transition: color 0.3s ease;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
}

.direction-card:hover p {
    color: var(--dark-gray);
}

/* Team Section */
.team-section {
    margin-top: var(--spacing-xl);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

@media (min-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

.team-member {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    padding: calc(var(--spacing-lg) + 0.75rem);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 2px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
}

.team-member::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.team-member:hover::before {
    opacity: 0.05;
}

.team-member:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.25);
    background: linear-gradient(180deg, #ffffff 0%, #fff9f0 100%);
    border-width: 2px;
}

.team-member > * {
    position: relative;
    z-index: 1;
}

.team-photo-wrapper {
    width: clamp(120px, 20vw, 180px);
    height: clamp(120px, 20vw, 180px);
    min-width: 120px;
    min-height: 120px;
    max-width: 180px;
    max-height: 180px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.team-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s;
    z-index: -1;
}

.team-member:hover .team-photo-wrapper::before {
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

.team-member:hover .team-photo-wrapper {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--secondary);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.team-member:hover .team-photo {
    transform: scale(1.08);
}

.team-member h4 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
    transition: color 0.3s;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
}

.team-member:hover h4 {
    color: var(--primary);
}

.team-member p {
    color: var(--gray);
    transition: color 0.3s;
    font-size: clamp(0.9rem, 2vw, 1rem);
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
    line-height: 1.5;
}

.team-member:hover p {
    color: var(--dark-gray);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

@media (min-width: 576px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .projects-grid > .project-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc((100% - var(--spacing-md)) / 2);
        justify-self: center;
    }
}

@media (min-width: 768px) {
    .projects-grid {
        gap: var(--spacing-lg);
    }
    
    .projects-grid > .project-card:nth-child(3) {
        max-width: calc((100% - var(--spacing-lg)) / 2);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .projects-grid > .project-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: stretch;
    }
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    min-height: 100%;
}


.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.25);
    border-width: 2px;
}

.project-image {
    height: 200px;
    min-height: 200px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
    filter: brightness(1) saturate(1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.project-card:hover .project-image {
    filter: brightness(1.1) saturate(1.2);
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-content {
    padding: calc(var(--spacing-md) + 0.5rem);
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.project-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
    transition: color 0.3s;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    flex-shrink: 0;
}

.project-card:hover .project-content h3 {
    color: var(--primary);
}

.project-content p {
    color: var(--gray);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    margin: 0;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-md) + 0.5rem);
    margin: var(--spacing-md) auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

@media (min-width: 576px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--spacing-md) + 0.5rem);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: calc(var(--spacing-md) + 0.5rem);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

.news-card {
    background: var(--white);
    padding: 0;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    cursor: pointer;
    user-select: none;
    min-height: 120px;
    align-items: stretch;
    height: 100%;
}

.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--gradient-primary);
    z-index: 1;
    border-radius: 28px 0 0 28px;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(255, 107, 53, 0.15), 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 107, 53, 0.3);
}

.news-card:active {
    transform: translateY(-2px);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    width: 75px;
    padding: var(--spacing-md) var(--spacing-xs);
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    align-self: stretch; /* Растягиваем по высоте карточки */
    border-radius: 28px 0 0 28px; /* Скругление слева */
}

.news-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
}

.news-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.05em;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.2;
    margin-bottom: 0;
    padding: 0;
    display: block;
    text-align: center;
}

.news-content {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    min-height: 100%;
    overflow: visible;
    border-radius: 0 28px 28px 0; /* Скругление справа */
}

.news-content h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: var(--dark);
    transition: color 0.3s ease;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
    display: block;
    flex: 1;
    min-height: auto;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.news-card:hover .news-content h3 {
    color: var(--primary);
}

.news-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-sm);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    flex-shrink: 0;
}

.news-card:hover .news-read-more {
    opacity: 1;
    transform: translateX(0);
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-read-more i {
    transform: translateX(4px);
}

/* Модальное окно для новостей */
.news-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    touch-action: none;
}

.news-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Блокировка прокрутки body когда модальное окно открыто */
body.news-modal-open,
html.news-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: none !important;
}

body.news-modal-open {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    cursor: pointer;
}

.news-modal-content {
    position: relative !important;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: calc(var(--spacing-xl) + 1rem);
    max-width: 700px;
    width: calc(100% - var(--spacing-md) * 2);
    max-height: calc(100vh - var(--spacing-md) * 2);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2 !important;
    margin: auto !important;
    box-sizing: border-box;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column !important;
    align-self: center !important;
    justify-self: center !important;
    -webkit-overflow-scrolling: touch;
}

.news-modal.show .news-modal-content {
    transform: scale(1) translateY(0);
}

.news-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.news-modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.news-modal-close:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.news-modal-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    width: 120px;
    padding: var(--spacing-md) var(--spacing-sm);
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    align-self: flex-start;
    box-sizing: border-box;
}

.news-modal-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
}

.news-modal-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 6px;
    letter-spacing: 0.05em;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.2;
    margin-bottom: 0;
    padding: 0 4px;
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 var(--spacing-lg) 0;
    line-height: 1.3;
    padding-right: 50px;
}

.news-modal-description {
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.news-modal-description p {
    margin: 0 0 var(--spacing-md) 0;
    display: block;
}

.news-modal-description p:last-child {
    margin-bottom: 0;
}

/* Мобильные устройства - исправление выравнивания */
@media (max-width: 767px) {
    .news-modal {
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        display: flex !important;
        overflow: hidden !important;
        -webkit-overflow-scrolling: touch;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 100000 !important;
    }
    
    .news-modal-content {
        padding: var(--spacing-lg);
        max-height: 90vh !important;
        margin: auto !important;
        width: calc(100% - var(--spacing-md) * 2) !important;
        max-width: calc(100% - var(--spacing-md) * 2) !important;
        transform: scale(0.95) translateY(0) !important;
        align-self: center !important;
        justify-self: center !important;
        position: relative !important;
        flex-shrink: 0 !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-modal.show .news-modal-content {
        transform: scale(1) translateY(0) !important;
    }
    
    body.news-modal-open,
    html.news-modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none !important;
    }
    
    body.news-modal-open {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    .news-modal-title {
        font-size: 1.5rem;
        padding-right: 40px;
        margin: 0 0 var(--spacing-lg) 0;
    }
    
    .news-modal-date {
        min-width: 110px;
        width: 110px;
        padding: var(--spacing-sm) var(--spacing-xs);
        margin-bottom: var(--spacing-lg);
        align-self: flex-start;
        box-sizing: border-box;
    }
    
    .news-modal-day {
        font-size: 1.75rem;
        margin: 0;
        padding: 0;
    }
    
    .news-modal-month {
        margin-top: 4px;
        margin-bottom: 0;
    }
    
    .news-modal-close {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .news-modal {
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 100000 !important;
    }
    
    .news-modal-content {
        padding: var(--spacing-md);
        margin: auto !important;
        width: calc(100% - var(--spacing-sm) * 2) !important;
        max-width: calc(100% - var(--spacing-sm) * 2) !important;
        max-height: 90vh !important;
        border-radius: var(--radius-lg);
        transform: scale(0.95) translateY(0) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-modal.show .news-modal-content {
        transform: scale(1) translateY(0) !important;
    }
    
    body.news-modal-open,
    html.news-modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none !important;
    }
    
    body.news-modal-open {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    .news-modal-title {
        font-size: 1.3rem;
        padding-right: 35px;
    }
    
    .news-modal-date {
        min-width: 100px;
        width: 100px;
        padding: var(--spacing-xs) calc(var(--spacing-xs) / 2);
        box-sizing: border-box;
    }
    
    .news-modal-day {
        font-size: 1.5rem;
    }
    
    .news-modal-month {
        font-size: 0.7rem;
    }
}

/* Исправление выравнивания карточек на мобильных */
@media (max-width: 575px) {
    .news-card {
        min-height: 120px;
        align-items: stretch;
        overflow: visible;
    }
    
    .news-date {
        min-width: 70px;
        width: 70px;
        padding: var(--spacing-sm) var(--spacing-xs);
        align-self: stretch;
        flex-shrink: 0;
    }
    
    .news-day {
        font-size: 1.4rem;
    }
    
    .news-month {
        font-size: 0.65rem;
        margin-top: 3px;
    }
    
    .news-content {
        padding: var(--spacing-md);
        justify-content: center;
        align-items: center;
        min-height: 100%;
        overflow: visible;
    }
    
    .news-content h3 {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        line-height: 1.5;
        display: block;
        text-align: center;
        flex: 1;
        min-height: auto;
        overflow: visible;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0;
        margin: 0;
    }
    
    .news-read-more {
        margin-top: var(--spacing-xs);
        flex-shrink: 0;
    }
}

.news-content p {
    display: none; /* Скрываем описание в карточке - показываем только в модальном окне */
}

/* Contest Section */
.contest-content {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-lg) + 0.5rem);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: left;
    font-weight: 400;
}

.contest-content p {
    margin-bottom: calc(var(--spacing-md) + 0.5rem);
    color: var(--text-primary);
}

.contest-content p:last-child {
    margin-bottom: 0;
}

.contest-highlight {
    background: var(--gradient-primary);
    padding: calc(var(--spacing-xl) + 1rem);
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--white);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: calc(var(--spacing-lg) + 1rem);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contest-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.contest-highlight-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.contest-highlight-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
    color: var(--white);
    text-align: center;
    width: 100%;
}

.contest-highlight-content p {
    font-size: 1.2rem;
    margin: 0 auto var(--spacing-md);
    opacity: 0.95;
    text-align: center;
    max-width: 800px;
}

/* Rules Section */
.rules-section {
    margin-top: var(--spacing-lg);
}

.rules-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    list-style: none;
    padding: 0;
}

@media (min-width: 768px) {
    .rules-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.rules-list li:hover::before {
    transform: scaleY(1);
}

.rules-list li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rules-list li:hover::after {
    opacity: 1;
}

.rules-list li:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.12), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.2);
}

.rules-list li i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.rules-list li:hover i {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.1);
}

.rules-list li span {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 1rem;
    flex: 1;
    transition: color 0.3s ease;
}

.rules-list li:hover span {
    color: var(--dark);
}

/* Jury Section */
.jury-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-md) auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

@media (min-width: 768px) {
    .jury-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        max-width: 900px;
    }
    
    .jury-grid > .jury-member:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc((100% - var(--spacing-lg)) / 2);
        justify-self: center;
    }
}

@media (min-width: 1024px) {
    .jury-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }
    
    .jury-grid > .jury-member:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: stretch;
    }
}

.jury-member {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    padding: calc(var(--spacing-lg) + 0.75rem);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    border: 2px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    min-height: 100%;
}


.jury-member::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.jury-member:hover::before {
    opacity: 0.05;
}

.jury-member:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.25);
    background: linear-gradient(180deg, #ffffff 0%, #fff9f0 100%);
    border-width: 2px;
}

.jury-member > * {
    position: relative;
    z-index: 1;
}

.jury-photo-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

.jury-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s;
    z-index: -1;
}

.jury-member:hover .jury-photo-wrapper::before {
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

.jury-member:hover .jury-photo-wrapper {
    transform: scale(1.05) rotate(-2deg);
    border-color: var(--secondary);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.jury-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.jury-member:hover .jury-photo-wrapper img {
    transform: scale(1.08);
}

.jury-member h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
    transition: color 0.3s;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
    flex-shrink: 0;
}

.jury-member:hover h3 {
    color: var(--primary);
}

.jury-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
    font-size: clamp(0.95rem, 2vw, 1rem);
    flex-shrink: 0;
    min-height: 1.5em;
}

.jury-member:hover .jury-role {
    color: var(--secondary);
}

.jury-bio {
    color: var(--gray);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    transition: color 0.3s;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    padding: 0 var(--spacing-xs);
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    max-height: 120px;
}

.jury-member:hover .jury-bio {
    color: var(--dark-gray);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    will-change: transform;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 0.2;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: var(--spacing-md);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-weight: 600;
    font-size: 1.1rem;
    animation: slideInRight 0.4s ease 0.2s both;
}

.gallery-overlay p {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Masonry Gallery Section */
.gallery-masonry-container {
    width: 100%;
    margin-top: var(--spacing-md);
}

.gallery-list {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 20px 0;
    display: block;
    visibility: visible;
}

.gallery-list .item-wrapper {
    position: absolute;
    will-change: transform, width, height, opacity;
    padding: 6px;
    cursor: pointer;
    top: 0;
    left: 0;
    overflow: hidden;
}

.gallery-list .item-wrapper > .item-img {
    position: relative;
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0px 10px 50px -10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.gallery-list .item-wrapper:hover > .item-img {
    box-shadow: 0px 15px 60px -10px rgba(255, 107, 53, 0.4);
}

.gallery-list .item-wrapper .item-description {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    background: rgba(128, 128, 128, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.results-section {
    padding: var(--spacing-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    justify-items: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 2rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: float 3s ease-in-out infinite;
}

.stat-card:nth-child(2) .stat-icon {
    animation-delay: 0.3s;
}

.stat-card:nth-child(3) .stat-icon {
    animation-delay: 0.6s;
}

.stat-card:hover .stat-icon {
    animation: bounce 0.6s ease;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-display);
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Registration Form */
.registration-section {
    padding: var(--spacing-xl) 0;
}

.registration-form {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.registration-form textarea {
    min-height: 80px;
    max-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    font-size: clamp(0.95rem, 2vw, 1rem);
    font-family: var(--font-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

/* Стили для поля телефона */
input[type="tel"] {
    letter-spacing: 0.5px;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

input[type="tel"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1), 0 4px 16px rgba(255, 107, 53, 0.15);
    background: white;
    transform: translateY(-2px);
}

input[type="tel"]::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1), 0 4px 16px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #4caf50;
    background: #f0fdf4;
}

/* Валидация только после попытки отправки формы */
.form-group input.form-touched:invalid:not(:placeholder-shown):not(:focus),
.form-group textarea.form-touched:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #f44336;
    background: #fff5f5;
}

/* Скрытые метки для доступности */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Checkbox стили */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 0;
}

.checkbox-label .offer-link {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 500;
    display: inline;
    white-space: nowrap;
}

.checkbox-label .offer-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid rgba(255, 107, 53, 0.3);
    outline-offset: 2px;
}

.checkbox-label input[type="checkbox"]:invalid {
    border-color: #f44336;
}

.checkbox-label span {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-hint {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--gray);
}

.form-note {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--light-gray);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.form-note i {
    color: var(--primary);
}

/* Группы произведений */
.work-group {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--light-gray);
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.work-group-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
}

.work-group-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

#worksContainer {
    margin-top: var(--spacing-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-note p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
}

.submit-button {
    width: 100%;
    margin-top: var(--spacing-md);
}

/* Payment Section */
.payment-section {
    padding: var(--spacing-xl) 0;
}

.payment-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    width: 100%;
    max-width: 100%;
}

.payment-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.amount-label {
    font-size: 1.25rem;
    color: var(--gray);
    font-weight: 500;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
}

.payment-description {
    color: var(--gray);
    font-size: 1rem;
}

.payment-methods {
    margin-bottom: var(--spacing-lg);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

@media (min-width: 768px) {
.payment-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
}

.payment-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
    color: var(--primary);
}

.payment-option label:hover {
    border-color: var(--primary);
}

.payment-option label i {
    font-size: 1.5rem;
}

.payment-placeholder {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.payment-placeholder-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: var(--radius-full);
    color: var(--gray);
    font-size: 3rem;
}

.payment-placeholder p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

.payment-note {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin: var(--spacing-lg) auto 0;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    justify-items: center;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: stretch;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: calc(var(--spacing-md) + 0.25rem);
    align-items: flex-start;
    background: var(--white);
    padding: calc(var(--spacing-md) + 0.5rem);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.contact-item:hover .contact-icon {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.contact-details p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary);
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.social-link i {
    color: var(--white) !important;
    font-size: 1.2rem;
    z-index: 1;
        position: relative;
    }
    
.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05) rotate(2deg);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.social-link:active {
    transform: translateY(-2px) scale(1.05);
}

.contact-form-wrapper {
    background: var(--white);
    padding: calc(var(--spacing-lg) + 0.5rem);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
    flex-shrink: 0;
}

/* Уведомления для формы */
.form-notification {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.form-notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-notification::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
}

.form-notification-success::before {
    content: '✓';
    color: #155724;
    font-weight: bold;
    font-size: 1.2rem;
}

.form-notification-error::before {
    content: '✗';
    color: #721c24;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Модальное окно успешной отправки */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--spacing-md);
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.success-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: calc(var(--spacing-xl) + 1rem);
    max-width: 500px;
    width: 100%;
    max-width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
    z-index: 2;
    margin: auto;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.success-modal.show .success-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.success-modal-icon {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    min-width: 60px;
    min-height: 60px;
    max-width: 80px;
    max-height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: var(--radius-full);
    color: var(--white);
    animation: successPulse 0.6s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal-icon svg {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    min-width: 30px;
    min-height: 30px;
    max-width: 40px;
    max-height: 40px;
    stroke-width: 3;
    flex-shrink: 0;
}

.success-modal-title {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 var(--spacing-md) 0;
    font-family: var(--font-display);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 var(--spacing-xs);
    box-sizing: border-box;
}

.success-modal-message {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0 0 var(--spacing-xl) 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 var(--spacing-xs);
    box-sizing: border-box;
}

.success-modal-button {
    min-width: clamp(120px, 30vw, 150px);
    max-width: 100%;
    width: auto;
    margin: auto;
    box-sizing: border-box;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: clamp(0.95rem, 2vw, 1rem);
}

/* Адаптивность для модального окна */
@media (max-width: 767px) {
    .success-modal {
        padding: var(--spacing-sm);
        align-items: center;
        justify-content: center;
    }

    .success-modal-content {
        padding: var(--spacing-lg);
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        margin: var(--spacing-sm);
        border-radius: var(--radius-lg);
    }

    .success-modal-icon {
        width: clamp(60px, 18vw, 70px);
        height: clamp(60px, 18vw, 70px);
        margin-bottom: var(--spacing-md);
    }

    .success-modal-icon svg {
        width: clamp(30px, 9vw, 35px);
        height: clamp(30px, 9vw, 35px);
    }

    .success-modal-title {
        font-size: clamp(1.3rem, 5vw, 1.5rem);
        margin-bottom: var(--spacing-sm);
        padding: 0 var(--spacing-xs);
    }

    .success-modal-message {
        font-size: clamp(0.95rem, 3vw, 1rem);
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-xs);
    }

    .success-modal-button {
        min-width: clamp(120px, 40vw, 150px);
        width: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .success-modal {
        padding: var(--spacing-xs);
    }

    .success-modal-content {
        padding: var(--spacing-md);
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        margin: var(--spacing-xs);
        border-radius: var(--radius-md);
    }

    .success-modal-icon {
        width: clamp(60px, 20vw, 70px);
        height: clamp(60px, 20vw, 70px);
        margin-bottom: var(--spacing-sm);
    }

    .success-modal-icon svg {
        width: clamp(28px, 10vw, 32px);
        height: clamp(28px, 10vw, 32px);
    }

    .success-modal-title {
        font-size: clamp(1.2rem, 6vw, 1.3rem);
        margin-bottom: var(--spacing-xs);
        padding: 0 var(--spacing-xs);
    }

    .success-modal-message {
        font-size: clamp(0.9rem, 3.5vw, 0.95rem);
        margin-bottom: var(--spacing-md);
        padding: 0 var(--spacing-xs);
        line-height: 1.5;
    }

    .success-modal-button {
        min-width: clamp(100px, 50vw, 140px);
        width: auto;
        max-width: calc(100% - 2rem);
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: clamp(0.9rem, 3vw, 0.95rem);
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .success-modal-content {
        padding: var(--spacing-sm);
        max-width: calc(100% - 0.5rem);
        width: calc(100% - 0.5rem);
        margin: var(--spacing-xs);
    }

    .success-modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-xs);
    }

    .success-modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .success-modal-title {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }

    .success-modal-message {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.4;
    }

    .success-modal-button {
        min-width: 100px;
        width: 100%;
        max-width: 100%;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
}

/* Планшеты в портретной ориентации */
@media (min-width: 768px) and (max-width: 1024px) {
    .success-modal-content {
        max-width: 450px;
        padding: var(--spacing-xl);
    }
}

/* Большие экраны */
@media (min-width: 1440px) {
    .success-modal-content {
        max-width: 550px;
        padding: calc(var(--spacing-xl) + 1.5rem);
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .success-modal {
        align-items: flex-start;
        padding-top: var(--spacing-md);
        overflow-y: auto;
    }

    .success-modal-content {
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .success-modal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-sm);
    }

    .success-modal-icon svg {
        width: 25px;
        height: 25px;
    }

    .success-modal-title {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs);
    }

    .success-modal-message {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }
}

/* Высокие экраны */
@media (min-height: 900px) {
    .success-modal-content {
        padding: calc(var(--spacing-xl) + 1.5rem);
    }
}

.contact-form-wrapper > p {
    color: var(--gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
        flex-direction: column;
    gap: var(--spacing-md);
}

.contact-form .form-group {
    flex-shrink: 0;
}

.contact-form .form-group:last-of-type {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.contact-form textarea {
    min-height: 100px;
    max-height: 150px;
    resize: vertical;
    flex-shrink: 0;
}

.contact-form button {
    margin-top: auto;
    align-self: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.contact-form button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.contact-form input:disabled,
.contact-form textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: calc(var(--spacing-xl) + 1rem) 0 var(--spacing-md);
    margin-top: calc(var(--spacing-xl) + 2rem);
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-lg) + 0.5rem);
    margin: 0 auto var(--spacing-lg) auto;
    padding: 0 var(--spacing-sm);
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        padding: 0 var(--spacing-md);
        align-items: center;
        gap: var(--spacing-xl);
        justify-items: center;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .footer-brand img {
        margin: 0 auto var(--spacing-md) auto;
    }

    .footer-brand p {
        text-align: center;
        width: 100%;
    }

    .footer-newsletter,
    .footer-contacts {
        align-items: center;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .footer-newsletter h4,
    .footer-contacts h4 {
        text-align: center;
        width: 100%;
    }

    .footer-newsletter p,
    .footer-contacts p {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .footer-container {
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-brand img {
    margin-bottom: var(--spacing-md);
    height: auto;
    width: auto;
    max-width: 200px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 var(--spacing-xs) 0;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-brand p:last-of-type {
    margin-bottom: 0;
}

.footer-newsletter,
.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-newsletter h4,
.footer-contacts h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-newsletter p,
.footer-contacts p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-contacts a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.newsletter-form {
    margin-top: var(--spacing-md);
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    width: 100%;
}

.newsletter-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 1rem;
    background: var(--white);
    color: var(--dark);
    min-width: 0;
}

.newsletter-input-group input:focus {
    outline: none;
}

.newsletter-input-group button {
    padding: 12px 20px;
    border: none;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1rem;
    white-space: nowrap;
}

.newsletter-input-group button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
    width: 100%;
}

.footer-bottom .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-bottom .container {
        padding: 0 var(--spacing-md);
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.offer-footer-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.8;
}

.offer-footer-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .footer-bottom .container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.8);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   МОБИЛЬНАЯ АДАПТИВНОСТЬ
   ============================================ */

/* Мобильные устройства (до 576px) */
@media (max-width: 575px) {
    /* Header ВСЕГДА закреплен на мобильных - КРИТИЧНО ДЛЯ ТЕЛЕФОНОВ! */
    .header,
    header.header,
    #header,
    header#header,
    header[class*="header"],
    header[id*="header"] {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        z-index: 99999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translateY(0) !important;
        -ms-transform: translateY(0) !important;
        -webkit-position: fixed !important;
        -webkit-top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
        contain: layout style paint !important;
    }
    
    /* Убеждаемся что body не мешает */
    body {
        position: relative !important;
        padding-top: 70px !important;
    }
    
    body.menu-open {
        position: relative !important;
        overflow: hidden !important;
    }
    
    html {
        position: relative !important;
        overflow-x: hidden !important;
    }
    
    .header-container {
        padding: var(--spacing-xs) var(--spacing-sm);
        min-height: 70px;
    }

    .logo {
        gap: 6px;
    }

    .logo-link {
        height: 36px;
    }

    .logo img {
        height: 36px;
        max-width: 150px;
    }

    .logo-main {
        max-width: 108px;
    }

    .logo-golos {
        max-width: 126px;
        height: 32px;
    }

    .logo-separator {
        font-size: 18px;
        margin: 0 2px;
    }

    body {
        padding-top: 70px; /* Отступ для фиксированного header */
    }

    /* Hero */
    .hero {
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height */
        min-height: 100vh !important;
        min-height: 100dvh !important;
        margin-top: -70px;
        padding: 0 var(--spacing-sm);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding: var(--spacing-md) var(--spacing-xs);
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.75rem !important;
        margin-bottom: var(--spacing-sm);
        line-height: 1.3;
        word-wrap: break-word;
    }

    /* Header всегда закреплен на маленьких экранах */
    .header,
    header.header,
    #header,
    header#header,
    header[class*="header"],
    header[id*="header"] {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        z-index: 99999 !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
        contain: layout style paint !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
    }
    
    /* Contest Hero */
    .contest-hero {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        margin-top: -70px;
        padding: 0 var(--spacing-sm);
    }

    .contest-hero-title {
        font-size: 1.75rem !important;
        margin-bottom: var(--spacing-xs);
        line-height: 1.3;
    }
    
    .contest-hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.4;
    }

    .contest-hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-md);
    }

    .hero .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }

    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: var(--spacing-xs);
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-top: var(--spacing-sm);
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Cards */
    .direction-card,
    .project-card,
    .news-card,
    .team-member,
    .jury-member {
        padding: var(--spacing-md);
    }

    .project-image {
        height: 180px;
        min-height: 180px;
    }

    .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }

    .project-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }

    .contact-form-wrapper {
        padding: var(--spacing-md);
    }

    /* Team & Jury */
    .team-photo-wrapper,
    .jury-photo-wrapper {
        width: 140px;
        height: 140px;
        margin: 0 auto var(--spacing-sm);
        display: block;
    }
    
    .jury-member {
        min-height: auto;
        height: auto;
    }
    
    .jury-bio {
        min-height: auto;
    }

    /* Gallery */
    .gallery-item {
        height: 200px;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-container {
        gap: var(--spacing-md);
    }

    /* About text */
    .about-text {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }

    /* News cards */
    .news-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .news-date {
        min-width: 60px;
        width: 60px;
        padding: var(--spacing-sm) var(--spacing-xs);
        flex-shrink: 0;
    }

    .news-day {
        font-size: 1.4rem;
    }
    
    .news-month {
        font-size: 0.7rem;
    }
    
    .news-content {
        padding: var(--spacing-sm);
        flex: 1;
        min-width: 0;
    }
    
    .news-content h3 {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Планшеты и маленькие экраны (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .project-image {
        height: 200px;
        min-height: 200px;
    }

    .btn {
        padding: 13px 28px;
    }

    /* Header ВСЕГДА закреплен на планшетах - КРИТИЧНО! */
    .header,
    header.header,
    #header,
    header#header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 99999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        -webkit-position: fixed !important;
        -webkit-top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Contest Hero для планшетов */
    .contest-hero {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding: 0 var(--spacing-sm) !important;
        margin-top: -80px;
    }

    .contest-hero-content {
        padding: var(--spacing-md) var(--spacing-sm);
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
    }

    .contest-hero-title {
        font-size: 2rem;
        margin-top: var(--spacing-md);
    }
}

/* Улучшения для всех мобильных устройств */
@media (max-width: 767px) {
    /* Header ВСЕГДА закреплен на всех мобильных устройствах - КРИТИЧНО ДЛЯ ТЕЛЕФОНОВ! */
    .header,
    header.header,
    #header,
    header#header,
    header[class*="header"],
    header[id*="header"] {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        z-index: 99999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translateY(0) !important;
        -ms-transform: translateY(0) !important;
        -webkit-position: fixed !important;
        -webkit-top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
        contain: layout style paint !important;
    }
    
    /* Убеждаемся что body не мешает header */
    body {
        position: relative !important;
    }
    
    body.menu-open {
        position: relative !important;
        overflow: hidden !important;
    }
    
    html {
        position: relative !important;
        overflow-x: hidden !important;
    }
    
    /* Hero секция - предотвращение обрезания */
    .hero {
        overflow: visible !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding: 0 var(--spacing-sm) !important;
        box-sizing: border-box;
    }
    
    .hero-content {
        overflow: visible !important;
        padding: var(--spacing-md) var(--spacing-sm) !important;
    }
    
    /* Улучшенная читаемость */
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Оптимизация изображений */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Улучшенные отступы */
    .section {
        padding: var(--spacing-lg) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-md);
        padding: 0 var(--spacing-xs);
    }

    .section-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 var(--spacing-xs);
    }

    /* Направления */
    .directions {
        gap: var(--spacing-md);
    }

    .direction-card {
        padding: var(--spacing-lg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .direction-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .direction-card h4 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs);
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .direction-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Проекты */
    .projects-grid {
        gap: var(--spacing-md);
        grid-template-columns: 1fr;
    }
    
    .projects-grid > .project-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: stretch;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .project-card {
        border-radius: var(--radius-lg);
        min-height: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-image {
        height: 180px;
        min-height: 180px;
        width: 100%;
        max-width: 100%;
    }

    .project-content {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .project-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        align-items: flex-start;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Новости */
    .news-grid {
        gap: var(--spacing-md);
    }

    .news-card {
        flex-direction: row;
        padding: 0;
    }

    .news-date {
        min-width: 65px;
        width: 65px;
        padding: var(--spacing-md) var(--spacing-xs);
        flex-shrink: 0;
    }

    .news-day {
        font-size: 1.4rem;
    }

    .news-month {
        font-size: 0.65rem;
        margin-top: 4px;
    }

    .news-content {
        padding: var(--spacing-md);
        flex: 1;
        min-width: 0;
    }

    .news-content h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .news-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Команда */
    .team-grid {
        gap: var(--spacing-md);
        width: 100%;
        max-width: 100%;
    }

    .team-member {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: auto;
    }

    .team-photo-wrapper {
        width: clamp(100px, 25vw, 150px);
        height: clamp(100px, 25vw, 150px);
        margin-bottom: var(--spacing-sm);
        max-width: 150px;
        max-height: 150px;
    }

    .team-member h4 {
        font-size: clamp(1rem, 4vw, 1.1rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .team-member p {
        font-size: clamp(0.85rem, 3vw, 0.9rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Жюри */
    .jury-grid {
        gap: var(--spacing-md);
        grid-template-columns: 1fr;
    }

    .jury-member {
        padding: var(--spacing-md);
        min-height: auto;
    }

    .jury-photo-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: var(--spacing-sm);
    }

    .jury-member h3 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs);
    }

    .jury-role {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
        min-height: 1.5em;
    }

    .jury-bio {
        font-size: 0.9rem;
        min-height: auto;
        line-height: 1.5;
    }

    /* Статистика */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Контакты */
    .contact-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .contact-details {
        flex: 1;
        min-width: 0;
    }

    .contact-details h4 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .contact-details p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .contact-form-wrapper {
        padding: var(--spacing-md);
    }

    .contact-form-wrapper h3 {
        font-size: 1.3rem;
    }

    .contact-form-wrapper > p {
        font-size: 0.9rem;
    }

    /* Header всегда закреплен на планшетах */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
    }
    
    /* Конкурс */
    .contest-hero {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding: 0 var(--spacing-sm) !important;
        margin-top: -80px;
    }
    
    /* Header всегда закреплен на планшетах */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
    }

    .contest-hero-content {
        padding: var(--spacing-md) var(--spacing-xs);
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
    }

    .contest-hero-title {
        font-size: 1.75rem;
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-xs);
        line-height: 1.3;
    }
    
    .contest-hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.4;
    }

    .contest-hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .contest-highlight {
        padding: var(--spacing-lg);
        margin: var(--spacing-md) var(--spacing-xs) 0;
    }

    .contest-highlight-content h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .contest-highlight-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contest-content {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 var(--spacing-xs);
    }

    .contest-content p {
        margin-bottom: var(--spacing-md);
    }

    /* Правила */
    .rules-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .rules-list li {
        padding: var(--spacing-md);
        gap: var(--spacing-xs);
    }

    .rules-list li i {
        font-size: 1.2rem;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .rules-list li span {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Галерея */
    .gallery-grid {
        gap: var(--spacing-sm);
    }

    .gallery-item {
        height: 180px;
    }

    /* Masonry Gallery мобильные стили */
    .gallery-masonry-container {
        padding: 0;
    }

    .gallery-list {
        padding: 10px 0;
        min-height: 300px;
    }

    /* Платежи */
    .payment-options {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .payment-option label {
        padding: var(--spacing-sm);
        font-size: 0.95rem;
    }

    .amount-value {
        font-size: 2rem;
    }

    .payment-placeholder {
        padding: var(--spacing-md);
    }

    .payment-placeholder-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    /* Формы */
    .registration-form {
        padding: var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .form-group {
        margin-bottom: var(--spacing-sm);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .submit-button {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    /* Кнопки */
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
        padding: 0 var(--spacing-sm);
    }

    .footer-brand {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .footer-brand img {
        margin: 0 auto var(--spacing-md);
        max-width: 180px;
    }

    .footer-brand p {
        text-align: center;
        font-size: 0.9rem;
    }

    .footer-newsletter,
    .footer-contacts {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .footer-newsletter h4,
    .footer-contacts h4 {
        text-align: center;
        font-size: 1.1rem;
    }

    .footer-newsletter p,
    .footer-contacts p {
        text-align: center;
        font-size: 0.9rem;
    }

    .newsletter-form {
        margin-top: var(--spacing-sm);
        width: 100%;
    }

    .newsletter-input-group {
        flex-direction: row;
        max-width: 100%;
        width: 100%;
    }

    .newsletter-input-group input {
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        width: 100%;
        font-size: 16px; /* Предотвращает зум на iOS */
    }

    .newsletter-input-group button {
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        padding: 12px 16px;
    }

    .footer-bottom {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-sm);
    }

    .footer-bottom .container {
        padding: 0 var(--spacing-sm);
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    /* Header ВСЕГДА закреплен на очень маленьких экранах */
    .header,
    header.header,
    #header,
    header#header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Все карточки на очень маленьких экранах */
    .direction-card,
    .project-card,
    .news-card,
    .team-member,
    .jury-member {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .project-image {
        height: 150px;
        min-height: 150px;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }

    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem !important;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .stat-card {
        padding: var(--spacing-sm);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .direction-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .direction-card {
        padding: var(--spacing-md);
    }

    .direction-card h4 {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .direction-card p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .news-date {
        min-width: 60px;
        width: 60px;
        padding: var(--spacing-sm) 8px;
    }

    .news-day {
        font-size: 1.25rem;
    }

    .news-month {
        font-size: 0.6rem;
    }

    .news-content {
        padding: var(--spacing-sm);
    }

    .news-content h3 {
        font-size: 1rem;
    }

    .news-content p {
        display: none; /* Скрыто в карточке */
    }

    .contact-form-wrapper {
        padding: var(--spacing-sm);
    }

    .registration-form {
        padding: var(--spacing-sm);
    }
}

/* Страница договора оферты */
.offer-hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 var(--spacing-sm);
    overflow: visible;
    margin-top: -80px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    color: var(--white);
    text-align: center;
}

.offer-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.55) 0%, rgba(247, 147, 30, 0.55) 100%),
                url('https://sotni.ru/wp-content/uploads/2023/08/peizazh-minimalizm-88.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 0;
}

.offer-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

@media (max-width: 767px) {
    .offer-hero {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        margin-top: -70px;
    }
    
    .offer-hero-background {
        background-attachment: scroll;
        background-position: center 80%;
    }
}

.offer-hero .hero-title {
    color: var(--white);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--white);
    background-clip: unset;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.offer-hero .hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.offer-content {
    max-width: 900px;
    margin: auto;
    padding: var(--spacing-xl) 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-xl);
    box-sizing: border-box;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.offer-date,
.offer-version {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.offer-intro {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    margin-bottom: var(--spacing-xl);
}

.offer-intro p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--dark-gray);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.offer-intro p:last-child {
    margin-bottom: 0;
}

.offer-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.offer-section:last-of-type {
    border-bottom: none;
}

.offer-section-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-display);
    line-height: 1.3;
}

.offer-text {
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

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

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

.offer-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.offer-list li {
    padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
    position: relative;
    line-height: 1.7;
    color: var(--dark-gray);
}

.offer-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.offer-list li strong {
    color: var(--dark);
    font-weight: 600;
}

.offer-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--primary);
    text-align: center;
}

.offer-acceptance {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.offer-download-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.btn-download {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download i {
    margin-right: var(--spacing-xs);
}

.offer-link {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 500;
}

.offer-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Адаптивность для страницы оферты */
@media (max-width: 767px) {
    .offer-hero {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding: 0;
    }

    .offer-content {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    .offer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .offer-section-title {
        font-size: 1.4rem;
    }

    .offer-text {
        font-size: 0.95rem;
    }

    .offer-list li {
        padding-left: var(--spacing-md);
    }

    .offer-download-buttons {
        gap: var(--spacing-sm);
    }

    .offer-download-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .offer-content {
        padding: var(--spacing-sm);
    }

    .offer-intro {
        padding: var(--spacing-md);
    }

    .offer-section-title {
        font-size: 1.3rem;
    }

    .offer-text {
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* Дополнительные улучшения выравнивания */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Улучшение для всех карточек */
.card,
.direction-card,
.project-card,
.news-card,
.team-member,
.jury-member,
.stat-card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Плавные переходы для всех интерактивных элементов */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Улучшение производительности анимаций */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Дополнительные улучшения для мобильных устройств */
@media (max-width: 767px) {
    /* Предотвращение горизонтального скролла */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Улучшение производительности скролла */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Оптимизация изображений */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Улучшение читаемости текста */
    p, span, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }

    /* Улучшение форм для мобильных */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: var(--radius-md);
        font-size: 16px; /* Предотвращает зум на iOS */
    }

    /* Улучшение кнопок для touch */
    button,
    .btn,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
    }

    /* Улучшение таблиц */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Улучшение видео */
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Print Styles */
@media print {
    /* В режиме печати header скрыт, но на экране всегда виден */
    .header {
        display: none !important;
    }
    
    .footer,
    .btn,
    .mobile-menu-btn {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}


