/* Общие стили */
:root {
    --brad-regular: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 100px; /* Учтена высота шапки */
}

/* SVG-фон страницы */
.svg-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    z-index: -1;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    padding-top: 20px; /* Добавляем отступ сверху для всего контента */
}

/* Шапка */
header {
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    padding: 10px 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.top-bar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; /* Растягиваем на всю ширину */
    background: linear-gradient(90deg, #FFD700, #FFC107);
    height:60px;
    z-index: 1000;
    transform: none !important; /* Переопределяем transform для фиксации */
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Тень */
}

.top-bar.scrolled {
    transform: translateY(-100%); /* Скрываем на десктопе при скролле */
}

.top-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* Ограничиваем содержимое контейнером */
    margin: 0 auto;
    padding: 0 15px;
    border-radius: 10px;
}


/* Остальные стили для .header-left, .logo, .location, .phone, .nav-bar, .menu-btn и т.д. из вашего CSS */
.header-left {
    display: flex;
    align-items: center;
    gap: 30px; /* Расстояние между логотипом и info-container */
}

.info-container {
    display: flex;
    flex-direction: column;
}

.location {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    font-size: 12px; /* Уменьшенный шрифт для гармонии */
}

.location i {
    margin-right: 8px;
    color: #1f9f27;
    font-size: 14px;
}

.phone-numbers {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    font-size: 12px; /* Уменьшенный шрифт для гармонии */
}

.phone-numbers i {
    margin-right: 6px;
    color: #FF6F61;
    font-size: 11px;
}

.phone-numbers span a {
    color: #1a1a1a;
    text-decoration: none;
}

.phone-numbers span a:hover {
    color: #FF9999;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flag-icon {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между флагами */
}

.flag-icon img {
    width: 20px;
    height: 15px;
    vertical-align: middle;
    transition: transform 0.3s ease; /* Плавное увеличение при наведении */
}

.flag-icon img:hover {
    transform: scale(1.2); /* Эффект наведения */
}

.logo img {
    height: 40px;
    width: auto;
}

.location {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 14px;
}

.phone {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 12px;
}

.phone i {
    margin-right: 8px;
    color: #FF6F61;
    font-size: 12px;
}

.phone a {
    color: #555;
    text-decoration: none;
}

.phone a:hover {
    color: #FF6F61;
}


.nav-bar a,.nav-bar a:hover {
    color: #fff;
	font-size:18px;
}

.nav-bar {
    background: transparent;
}

.nav-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(90deg, #FFD700, #FFC107);
    transition: max-width 0.3s ease, border-radius 0.3s ease, position 0.3s ease, top 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.nav-bar .container.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px; /* Ограничиваем ширину навигации */
    width: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, #FFD700, #FFC107);
    z-index: 1001;
}

.menu-btn {
    font-size: 24px;
    color: #FFFFFF;
    cursor: pointer;
    background: #ffc107;
    border-radius: 38px;
    padding: 8px;
    transition: background 0.3s, color 0.3s;
}

.menu-btn:hover {
    color: #ffc107;
    background: #FFFFFF;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Поиск */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #FF9999;
}

.search-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: transparent;
    z-index: 1999;
    cursor: pointer;
}

.search-overlay.active {
    display: block;
}

.search-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #FFFFFF;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease-out;
}

.search-form.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.search-form .input-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    z-index: 2002;
}

.search-form input[type="text"] {
    padding: 10px 15px 10px 40px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.search-form .submit-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.search-form .submit-search:hover {
    color: #FF9999;
}

.search-form .close-search {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.search-form .close-search:hover {
    color: #FF9999;
}

.search-form::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.5s ease-out, height 0.5s ease-out;
}

.search-form.active::before {
    width: 200vw;
    height: 200vw;
}

/* Десктопная версия формы поиска */
@media (min-width: 769px) {
    .search-form {
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        padding: 10px 15px;
    }

    .search-form.active {
        transform: translateX(-50%) scale(1);
    }

    .search-form .input-container {
        margin-left: 50px;
        max-width: calc(100% - 100px);
    }
}

/* Сетка для разделов сайта (колонки из Customizer) */
.site-sections {
    display: grid;
    grid-template-columns: repeat(var(--ss-cols, 4), 1fr);
    gap: 20px;
    margin: 20px 0;
}

.site-section {
    opacity: 0; /* Начальная прозрачность */
    transform: translateY(20px); /* Начальное смещение вниз */
    transition: opacity 0.6s ease, transform 0.6s ease; /* Плавный переход */
}

.site-section.fade-in {
    animation: fadeIn 0.6s ease forwards; /* Применяем анимацию fadeIn */
}

.site-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    aspect-ratio: 1 / 1; /* Делаем блоки квадратными */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-section a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.site-section a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.site-section a img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение заполняет блок, сохраняя пропорции */
    object-position: center; /* Центрируем изображение */
    display: block;
}

/* SVG-фоны для разделов */
.sidebar-home {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad1)"/><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FF9999;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23FF6F61;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><circle cx="50" cy="25" r="15" fill="%23FFD700"/></g></svg>');
}

.sidebar-structure {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad2)"/><defs><linearGradient id="grad2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%2387CEEB;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%2398FB98;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><path d="M50 35 l10 -20 l10 20 l-20 0 z" fill="%23FF9999"/></g></svg>');
}

.sidebar-sitemap {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad3)"/><defs><linearGradient id="grad3" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FFD700;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23FF9999;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><rect x="40" y="20" width="20" height="20" rx="5" fill="%2387CEEB"/></g></svg>');
}

.sidebar-nutrition {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad4)"/><defs><linearGradient id="grad4" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%2398FB98;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23FF6F61;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><path d="M50 30 c-10 -10 -20 0 -20 10 c0 15 20 15 20 15 c0 0 20 0 20 -15 c0 -10 -10 -20 -20 -10 z" fill="%23FFD700"/></g></svg>');
}

.sidebar-anticorruption {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad5)"/><defs><linearGradient id="grad5" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FF6F61;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%2387CEEB;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><path d="M50 35 l20 -60 l60 40 l-60 40 l-20 -60 l-60 40 l60 40 l-20 -60 l-60 -40 l60 -40 z" fill="%23FFD700"/></g></svg>');
}

.sidebar-rating {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad6)"/><defs><linearGradient id="grad6" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%2398FB98;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23FFD700;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><path d="M50 30 c-30 0 -50 -20 -50 -40 c0 -30 30 -40 50 -40 c20 0 50 10 50 40 c-20 0 -40 20 -50 40 z" fill="%23FF9999"/></g></svg>');
}

.sidebar-assistance {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad7)"/><defs><linearGradient id="grad7" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FF9999;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%2398FB98;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><circle cx="50" cy="25" r="20" fill="%2387CEEB"/></g></svg>');
}

.sidebar-appeals {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad8)"/><defs><linearGradient id="grad8" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FFD700;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%2387CEEB;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><rect x="40" y="20" width="20" height="20" rx="5" fill="%23FF6F61"/></g></svg>');
}

.sidebar-instagram {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad9)"/><defs><linearGradient id="grad9" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%2387CEEB;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23FF6F61;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><rect x="40" y="20" width="40" height="20" rx="5" fill="%23FFD700"/></g></svg>');
}

.sidebar-feedback {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad10)"/><defs><linearGradient id="grad10" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FF6F61;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23FFD700;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><path d="M50 40 l-30 50 l60 0 l-30 -50 l0 -20 a15 15 0 0 1 30 0 z" fill="%2398FB98"/></g></svg>');
}

.sidebar-contact {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><rect width="100%" height="100%" fill="url(%23grad11)"/><defs><linearGradient id="grad11" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%2398FB98;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23FF9999;stop-opacity:0.8"/></linearGradient></defs><g opacity="0.5"><path d="M50 30 a40 20 0 0 1 80 0 h-20 v20 h-40 v-20 h-20 z" fill="%23FF6F61"/></g></svg>');
}

/* Стили для гиперссылок */
a {
    color: #FF6F61;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #FF9999;
    text-decoration: none;
    transform: scale(1.05);
}



/* Секции */
.section {
    padding: 40px 0;
    text-align: center;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Стили для анимации затухания */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #FF6F61;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

h2.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

p {
    font-size: 16px;
    color: #555;
    max-width: 800px;
    margin: 0 auto 5px;
}

.btn {
    background: linear-gradient(90deg, #FF9999, #FF6F61);
    color: #FFFFFF;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 105, 97, 0.4);
    text-decoration: none;
}

.headmaster {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.headmaster img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-post {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.blog-post p {
    font-size: 16px;
    color: #555;
    max-width: 800px;
    margin: 0 30px 15px 30px;
    text-align: left;
}

.blog-post img {
    max-width: 800px;
    display: block;
    margin: 10px 30px 10px 30px;
    border-radius: 5px;
}

/* Адаптивность для блога */
@media (max-width: 768px) {
    .blog-post p {
        max-width: 100%;
        margin: 0 0 15px 0;
    }

    .blog-post img {
        max-width: 100%;
        margin: 10px 0;
    }
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-left {
        align-items: flex-start;
        gap: 10px; /* Вертикальное расположение на мобильных */
    }

    .logo img {
        height: 30px;
    }

    .info-container {
        gap: 0px;
    }

    .location {
        font-size: 10px;
    }

    .location i {
        font-size: 11px;
    }

    .phone-numbers {
        font-size: 11px;
    }

    .phone-numbers i {
       font-size: 10px;
    }

    .flag-icon {
        display: flex; /* Включаем отображение флагов на мобильных */
        gap: 5px; /* Уменьшенный отступ для трех флагов */
        align-items: center;
    }

    .flag-icon img {
        width: 16px; /* Еще немного уменьшаем размер флагов для компактности */
        height: 12px;
    }

    .header-right {
        gap: 6px; /* Уменьшенный отступ между флагами и кнопкой меню */
        align-items: center;
    }

    .menu-btn {
        width: 34px; /* Слегка уменьшаем кнопку меню для баланса */
        height: 34px;
        padding: 0;
    }

    .header-right {
        gap: 10px;
    }

    .menu-btn {
        width: 40px;
        height: 40px;
        background: #ffc107;
        padding: 0;
    }

    header .container {
        max-width: 100%;
    }

    .nav-bar .container {
        display: none;
    }

    nav {
        display: none;
    }
	
    .top-bar {
        background-color: #ffe509 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Мягкая тень снизу */
        transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;

    }

    .top-bar.fixed {
	    background: #000;
        background-color: #fff !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Усиленная тень при фиксированном положении */
        transform: none !important;
    }
	
}

/* Обновленная секция контактов */
.contact {
    background: #eff1fe;
    padding: 20px;
    border-radius: 2vw;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900" preserveAspectRatio="xMidYMid slice"><g opacity="0.2"><path fill="%23939df2" d="M200 300c-20 0-40 10-50 30-10 20-10 40 0 60 10 20 30 30 50 30s40-10 50-30c10-20 10-40 0-60-10-20-30-30-50-30zm240 150c-20 0-40 10-50 30-10 20-10 40 0 60 10 20 30 30 50 30s40-10 50-30c10-20 10-40 0-60-10-20-30-30-50-30zm300-100c-20 0-40 10-50 30-10 20-10 40 0 60 10 20 30 30 50 30s40-10 50-30c10-20 10-40 0-60-10-20-30-30-50-30zm240 200c-20 0-40 10-50 30-10 20-10 40 0 60 10 20 30 30 50 30s40-10 50-30c10-20 10-40 0-60-10-20-30-30-50-30zm300-150c-20 0-40 10-50 30-10 20-10 40 0 60 10 20 30 30 50 30s40-10 50-30c10-20 10-40 0-60-10-20-30-30-50-30z"/></g></svg>');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 1200px;
}

.map-container {
    flex: 0 0 60%;
    min-width: 250px;
    max-width: 720px;
    box-sizing: border-box;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

.contact-info {
    flex: 0 0 40%;
    min-width: 250px;
    padding: 0;
    margin-left: 20px;
    box-sizing: border-box;
}

.contact-info p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact-info p i {
    margin-right: 12px;
    color: #FF6F61;
    font-size: 18px;
}

.contact-info .social-label {
    font-size: 16px;
    color: #FF6F61;
    font-weight: 600;
    margin: 20px 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Социальные ссылки */
.social-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.instagram-btn, .telegram-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.telegram-btn {
    background: linear-gradient(45deg, #0088cc, #00a2e8);
}

.instagram-btn i, .telegram-btn i {
    font-size: 20px;
    color: #FFFFFF;
}

.instagram-btn:hover, .telegram-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Обновленный стиль для воспитателей */
.staff-carousel {
    padding: 20px 0;
    background: transparent;
}

.carousel-title {
    color: #FF6F61;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 10px;
    user-select: none;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.staff-carousel-content {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
    width: fit-content;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 220px;
    height: 300px;
    max-width: 220px;
}

.staff-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 220px;
    width: 100%;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.staff-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #FF6F61;
}

.staff-info {
    padding: 15px;
    text-align: center;
}

.staff-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-info p {
    font-size: 14px;
    color: #555;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Обновленный стиль для футера */
footer {
    background: transparent;
    padding: 10px 0px 20px 0px;
    text-align: center;
}

.footer-carousel {
    position: relative;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    overflow: hidden;
    user-select: none;
    cursor: grab;
}

.footer-carousel:active {
    cursor: grabbing;
}

.footer-carousel-content {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
    width: fit-content;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 155px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #FFFFFF;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Кнопка "Вверх" */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #FF9999, #FF6F61);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Стили для секции get-consultation */
.get-consultation {
    margin-bottom: 20px;
    margin-top: 20px;
}

.get-consultation__container {
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: var(--brad-regular);
    color: #333;
    padding: 23px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.get-consultation__title {
    text-align: left;
    max-width: 80%;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #FF6F61;
}

.get-consultation__content p {
    font-size: 16px;
    color: #555;
    max-width: 50%;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    position: relative;
}

.get-consultation__content p::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

.get-consultation__person {
    position: absolute;
    width: 33%;
    height: 87%;
    right: 0;
    bottom: 0;
    border-radius: var(--brad-regular);
}

.get-consultation__person .person-info {
    width: 180px;
    position: absolute;
    top: 70px;
    left: -110px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: var(--brad-regular);
}

.get-consultation__person .person-info p {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    text-align: right;
    margin-bottom: 10px;
    color: #333;
}

.get-consultation__person .person-info span {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    text-align: right;
    color: #555;
}

.get-consultation__person .person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--brad-regular);
    pointer-events: none;
}

/* Стили для контейнера виджета Elfsight */
.elfsight-app-b39a9c20-eead-4c9e-8d31-90c86c50c312 {
    margin-bottom: 20px !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .site-sections {
        grid-template-columns: repeat(min(var(--ss-cols, 4), 3), 1fr);
    }
}

@media (max-width: 768px) {

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

    .site-sections {
        grid-template-columns: repeat(var(--ss-cols-mobile, 1), 1fr);
        gap: 10px; /* как у «Наши группы» */
    }

    .site-section {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .site-section a {
        font-size: 16px;
        padding: 0;
    }

    .contact {
        border-radius: 4vw;
    }

    .contact-container {
        flex-direction: column;
        align-items: stretch;
    }

    .map-container, .contact-info {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .map-container {
        order: 1;
    }

    .contact-info {
        order: 2;
        margin-left: 0;
    }

    .map-container iframe {
        height: 250px;
    }

    .contact-info {
        margin: 20px 0px 0px 0px;
    }

    .social-links {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .social-links .btn:not(.instagram-btn):not(.telegram-btn) {
        width: auto;
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
    }

    .instagram-btn, .telegram-btn {
        width: 35px;
        height: 35px;
    }

    .instagram-btn i, .telegram-btn i {
        font-size: 18px;
    }

    .section.contact h2 {
        font-size: 24px;
    }

    .container {
        max-width: 100%;
    }

    .search-form {
        padding: 10px;
    }

    .search-form .input-container {
        margin-left: 0;
        max-width: calc(100% - 50px);
    }

    .search-form .close-search {
        right: 15px;
        top: 15px;
        display: block;
        opacity: 1;
        visibility: visible;
        z-index: 2001;
        font-size: 18px;
        padding: 5px;
    }

    .slider {
        height: 200px;
        margin-bottom: 20px;
    }

    .slide {
        flex: 0 0 100%;
    }

    .headmaster {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 90%;
        border-radius: 15px;
    }

    .wrapper {
        max-width: 100%;
    }

    .carousel-container {
        padding: 0 10px;
    }

    .carousel-slide {
        flex: 0 0 160px;
        height: 250px;
        max-width: 160px;
    }

    .staff-card {
        max-width: 160px;
    }

    .staff-card img {
        height: 150px;
    }

    .staff-info h3 {
        font-size: 14px;
    }

    .staff-info p {
        font-size: 12px;
    }

    .footer-carousel {
        padding: 0 10px;
    }

    .carousel-item {
        flex: 0 0 155px;
        width: 155px;
        height: 53px;
    }

    footer {
        margin: 0px 15px 0px 15px;
    }

    /* Адаптивность для get-consultation */
    .get-consultation {
        margin-bottom: 30px;
    }

    .get-consultation__container {
        padding: 20px;
        min-height: 600px;
        border-radius: var(--brad-regular);
        overflow: hidden;
        padding-bottom: 100px;
    }

    .get-consultation__title {
        margin-bottom: 30px;
        max-width: 100%;
        text-align: center;
        font-size: 17px;
    }

    .get-consultation__content p {
        max-width: 100%;
        text-align: justify;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }


    .bottom-person {
        padding-bottom: 230px;
    }

    .get-consultation__content p::after {
        content: "";
        display: block;
        clear: both;
        visibility: hidden;
    }

    .get-consultation__person {
        width: 65%;
        height: auto;
        max-height: 43%;
        left: auto;
        right: 0;
        bottom: 0;  
    }

    .get-consultation__person .person-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 0;
        left: -20px;
        right: auto;
        bottom: auto;

    }

    .get-consultation__person .person-info {
        top: auto;
        left: -95px;
        right: auto;
        bottom: 170px;
        width: 145px; 
    }

    .get-consultation__person .person-info p {
        font-size: 16px;
        line-height: 1.4;
    }

    .get-consultation__person .person-info span {
        font-size: 14px;
        line-height: 1.4;
    }
	
}


/* Модальное меню */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content ul {
    list-style: none;
    margin-top: 15px;
}

.modal-content ul li {
    margin: 10px 0;
}

.modal-content ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.modal-content ul li a:hover {
    color: #FF9999;
    transform: scale(1.1);
    text-decoration: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #FFFFFF;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #FF9999;
}

[onScrollDisplay_JS] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[onScrollDisplay_JS].visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.6s ease forwards;
}



#cookie_notification{
  display: flex;
  opacity: 0;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 46.875vw;
  max-width: 90%;
  transform: translateX(-50%) translatey(100%);
  padding: 1vw;
  background-color: white;
  border-radius: 8px;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);
  z-index: 50;
  transition: 0.4s;
  z-index: 9999;
}

#cookie_notification.show{
	opacity: 0.9;
	bottom: 0.5vw;
	transform: translateX(-50%) translatey(0);
}

#cookie_notification p{
  margin: 5px 0 0 0;
  text-align: left;
  line-height: 1.5;
  /*color: $color_text;*/
}

#cookie_notification .btn-primary {
    font-size: 0.7291666667vw;
    max-width: 100%;
    padding: 0.46875vw 1.510416667vw;
    -webkit-transition: all .2s ease;
    -o-transition: all .2s ease;
    transition: all .2s ease;
    white-space: normal;
    color: #000;
    border: 1px solid #ef9625;
    border-radius: 2vw;
    background: #fff;
	cursor: pointer;
    border-radius: 2vw;
}


@media (max-width: 699px) {

	#cookie_notification{
		width: 100%;
		padding: 1vw 2vw;
		align-items: center;
		margin-bottom: 3rem;
	}
	#cookie_notification p{
		font-size: 2.5vw;
    	width: 70%;
	}
	#cookie_notification .btn-primary{
		width: 25%;
		height: auto;
		padding: 3vw 0;
		font-size: 3vw;
	}
	#cookie_notification.show{
	bottom: -8vw;
	}
}

/* Base Styling */

.phone-call {
 
  height:32px;
  line-height:32px;
  font-size:14px;
  font-weight:bold;
  color:#333333;
  margin:33px 0 33px 2px;
}
.phone-call svg {
  width:18px;
  height:18px;
  float:left;
  margin-top:6px;
  margin-right:0px;
}
.phone-call svg path {
  fill:#f03454;
}
.phone-call svg path:nth-child(2) {
  -webkit-animation: header-phone-call 1s infinite cubic-bezier(.1, .57, .5, 1);
  animation: header-phone-call 1s infinite cubic-bezier(.1, .57, .5, 1);
}
.phone-call svg path:nth-child(3) {
  -webkit-animation:header-phone-call2 1s infinite cubic-bezier(.1, .57, .5, 1);
  animation:header-phone-call2 1s infinite cubic-bezier(.1, .57, .5, 1);
}




/* Animate phone-call */

@-webkit-keyframes header-phone-call {
  0%,30% {opacity:0; -webkit-transform:translate3d(-20px, 20px, 0); transform:translate3d(-20px, 20px, 0)}
  80% {opacity:1; -webkit-transform:translate3d(0, 0, 0); transform:translate3d(0, 0, 0)}
  100%{opacity:0}}
@keyframes header-phone-call {
  0%,30%{opacity:0; -webkit-transform:translate3d(-20px, 20px, 0); transform:translate3d(-20px, 20px, 0)}
  80%{opacity:1; -webkit-transform:translate3d(0, 0, 0); transform:translate3d(0, 0, 0)}
  100%{opacity:0}}
@-webkit-keyframes header-phone-call2 {
  0%{opacity:0; -webkit-transform:translate3d(-20px, 20px, 0); transform:translate3d(-20px, 20px, 0)}
  70%,90%{opacity:1; -webkit-transform:translate3d(0, 0, 0); transform:translate3d(0, 0, 0)}
  100%{opacity:0}}
@keyframes header-phone-call2 {
  0%{opacity:0; -webkit-transform:translate3d(-20px, 20px, 0); transform:translate3d(-20px, 20px, 0)}
  70%,90%{opacity:1; -webkit-transform:translate3d(0, 0, 0); transform:translate3d(0, 0, 0)}
  100%{opacity:0}}


.nav-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1100px; /* Ограничение ширины */
    margin: 0 auto; /* Центрирование */
}

/* Скрытие на мобильных устройствах */
@media (max-width: 768px) {
    .nav-container {
        display: none !important;
    }
}

.nav-menu-wrapper {
    flex-grow: 1;
    overflow-x: hidden;
    white-space: nowrap;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
    will-change: transform;
}
/* Navigation Items */
.nav-menu li.nav-item {
    flex: 0 0 auto;
    margin: 0 5px;
}

.nav-menu li.nav-item a {
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s, color 0.3s;
    white-space: nowrap;
}

.nav-menu li.nav-item a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    z-index: 10;
    box-sizing: border-box;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-arrow-left {
    margin-right: 10px;
}

.nav-arrow-right {
    margin-left: 10px;
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Адаптивные изменения max-width */
@media (max-width: 1200px) {
    .nav-container {
        max-width: 1000px; /* Уменьшаем ширину для экранов до 1200px */
    }
}

@media (max-width: 1024px) {
    .nav-container {
        max-width: 900px; /* Уменьшаем ширину для экранов до 1024px */
    }
}

@media (max-width: 900px) {
    .nav-container {
        max-width: 800px; /* Уменьшаем ширину для экранов до 900px */
    }
}

/* Скрытие на мобильных устройствах (как в исходном коде) */
@media (max-width: 768px) {
    .nav-container {
        display: none !important;
    }
}

/* Стили для галереи */
.gallery-slider {
    padding-top: 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-content {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 400px;
}

.gallery-slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    opacity: 0;
    transform: rotateY(90deg);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-slide.active {
    opacity: 1;
    transform: rotateY(0deg);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide-caption {
    position: absolute;
    bottom: 0; /* Внизу слайда */
    left: 0; /* На всю ширину */
    width: 100%; /* Полная ширина экрана */
    color: #FFFFFF; /* Белый текст */
    background: rgba(50, 50, 50, 0.7); /* Полупрозрачный тёмно-серый фон */
    padding: 7px; /* Упрощённый отступ */
    border-bottom-left-radius: 10px; /* Закруглённые нижние углы */
    border-bottom-right-radius: 10px;
    font-size: clamp(20px, 3vw, 24px); /* Увеличенный шрифт */
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3); /* Тень для контрастности */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2); /* Тень, направленная вверх */
    box-sizing: border-box; /* Учёт отступов */
    transform: translateY(20px); /* Начальное смещение для анимации снизу */
}

.gallery-slide.active .slide-caption {
    opacity: 1;
    transform: translateY(0); /* Появление снизу */
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #FF6F61;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, color 0.3s;
    z-index: 10;
}

.gallery-arrow:hover {
    background: #FF6F61;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-left {
    left: 10px;
}

.gallery-arrow-right {
    right: 10px;
}

.gallery-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Анимации для переходов */
.gallery-slide.flip-in {
    animation: flipInY 0.5s ease forwards;
}

.gallery-slide.flip-out {
    animation: flipOutY 0.5s ease forwards;
}

@keyframes flipInY {
    from {
        opacity: 0;
        transform: rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@keyframes flipOutY {
    from {
        opacity: 1;
        transform: rotateY(0deg);
    }
    to {
        opacity: 0;
        transform: rotateY(-90deg);
    }
}

/* Адаптивность для галереи */
@media (max-width: 768px) {

.gallery-slider {
    padding-top: 60px;

}

    .gallery-content {
        height: 250px;
    }

    .gallery-slide img {
        border-radius: 10px;
    }

    .slide-caption {
        font-size: clamp(16px, 2.5vw, 18px); /* Увеличенный шрифт для планшетов */
        padding: 7px;
        border-bottom-left-radius: 8px; /* Меньший радиус для планшетов */
        border-bottom-right-radius: 8px;
        text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.5), 0 0 6px rgba(0, 0, 0, 0.3);
        box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.2);
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .gallery-arrow-left {
        left: 5px;
    }

    .gallery-arrow-right {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .gallery-content {
        height: 200px;
    }

    .slide-caption {
        font-size: clamp(14px, 2.2vw, 16px); /* Увеличенный шрифт для мобильных */
        padding: 6px;
        border-bottom-left-radius: 6px; /* Меньший радиус для мобильных */
        border-bottom-right-radius: 6px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 4px rgba(0, 0, 0, 0.3);
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    }

    .gallery-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}


/* Стили для галереи групп */
.group-gallery {
    padding-bottom: 20px;
    background: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 0 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #FF6F61;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-overlay p {color: #FFFFFF;
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптивность */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 150px;
    }

    .gallery-overlay h3 {
        font-size: 14px;
    }

    .gallery-overlay p {
        font-size: 12px;
    }
}
/* Стили для модального окна */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow-y: auto;
    opacity: 0; /* Начальное состояние - полностью прозрачное */
    transition: opacity 0.3s ease; /* Плавный переход для opacity */
}

.gallery-modal.active {
    display: flex;
    opacity: 1; /* При активации становится полностью видимым */
}

.gallery-modal-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 0;
    opacity: 0; /* Начальная прозрачность для изображения */
    transition: opacity 0.3s ease; /* Плавный переход для изображения */
}

.gallery-modal.active .gallery-modal-image {
    opacity: 1; /* Изображение становится видимым при открытии */
}

.gallery-modal-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
    max-width: 90%;
    z-index: 1002;
    opacity: 0; /* Начальная прозрачность для подписи */
    transition: opacity 0.3s ease; /* Плавный переход для подписи */
}

.gallery-modal.active .gallery-modal-caption {
    opacity: 1; /* Подпись становится видимой при открытии */
}

.gallery-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #FFFFFF;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease; /* Переход для цвета и прозрачности */
    z-index: 1002;
    opacity: 0; /* Начальная прозрачность для кнопки закрытия */
}

.gallery-modal.active .gallery-modal-close {
    opacity: 1; /* Кнопка становится видимой при открытии */
}

.gallery-modal-close:hover {
    color: #FF6F61;
}

.gallery-modal-prev,
.gallery-modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    font-size: 24px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease, opacity 0.3s ease; /* Переход для фона и прозрачности */
    z-index: 1002;
    opacity: 0; /* Начальная прозрачность для кнопок */
}

.gallery-modal.active .gallery-modal-prev,
.gallery-modal.active .gallery-modal-next {
    opacity: 1; /* Кнопки становятся видимыми при открытии */
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: #FF6F61;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .gallery-modal-image {
        width: 100%;
        height: auto;
        max-height: 90vh;
    }

    .gallery-modal-caption {
        font-size: 14px;
        padding: 8px 15px;
        bottom: 15px;
        max-width: 95%;
    }

    .gallery-modal-close {
        font-size: 24px;
        top: 15px;
        right: 15px;
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        font-size: 20px;
        padding: 8px 12px;
    }
}


/* Стили для блока статистики */
#stats {
    padding: 0;
    border-radius: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
	text-align:center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--card-accent) 50%, transparent);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.today::before { --card-accent: #FF6F61; }
.week::before { --card-accent: #FFD700; }
.month::before { --card-accent: #98FB98; }

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-number.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    #stats {
        padding-bottom: 10px;
        margin: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 10px;
    }

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

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

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.6rem;
    }

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