/* ===============================
   Цветовые переменные
=============================== */
:root {
    --primary: #4a6cfa;
    --primary-hover: #3a5cea;
    --primary-light: #6b89ff;
    --secondary: #ff9e40;
    --accent: #2ecc71;
    --light: #f8f9fa; 
    --dark: #212b36;
    --text: #454f5b;
    --text-dark: #333333; /* Добавьте эту строку */
    --white: #ffffff; /* Добавьте эту строку */
    --gray-100: #f9fafb;
    --transition: all 0.3s ease;
    --radius: 16px;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* ===============================
   Общие стили
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #fff;
}

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

section {
    padding: 50px 0;
}

h1, h2, h3, h4, h5 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.3;
        }

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
            font-size: 2.5rem;
            margin-bottom: 3rem;
            position: relative;
            display: inline-block;
        }

        h2:after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--gradient-primary);
            border-radius: 2px;
        }

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 15px;
     color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===============================
   Кнопки
=============================== */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: #3451d1;
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background-color: #e58a36;
}

/* ===============================
   Header
=============================== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Затемнение header при скролле */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.logo span {
            color: var(--secondary);
        }

/* Навигация для десктопа */
.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

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

/* Активная ссылка */
.nav-link.active {
  color: var(--primary);
}

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

/* Бургер меню (скрыт на десктопе) */
.burger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
  margin: 3px 0;
}

/* Анимация бургера в крестик */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ===============================
   Hero Section
=============================== */
.hero {
    position: relative;
    padding: 120px 0 80px;
    margin-top: 70px;
    color: var(--dark);
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(221, 224, 225, 0.05) 0%, rgba(221, 224, 225, 0.1) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.hero-content {
    width: 100%;
    animation: fadeInUp 1s ease forwards;
}

.hero-text {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.6;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-form-container {
    flex: 0 0 400px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-image {
    flex: 1;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* ===============================
   Формы
=============================== */
#hero-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-form-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.1) 100%);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.5;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Nunito', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   Features
=============================== */
.features {
    background-color: white;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/*.feature-item {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align:  left;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}*/
.feature-item {
            background: var(--white);
            padding: 40px 30px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            text-align: center;
            transition: var(--transition);
            border: 1px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .feature-item:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
            border-color: var(--primary-light);
        }

        .feature-item:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .feature-item:hover:before {
            transform: scaleX(1);
        }

        .feature-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 25px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(74, 108, 250, 0.1);
            transition: var(--transition);
        }

        .feature-item:hover .feature-icon {
            background: var(--primary);
            color: var(--white);
            transform: scale(1.1) rotate(5deg);
        }

/* ===============================
   For Whom
=============================== */
.for-whom {
            background: var(--gray-100);
            position: relative;
        }

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    background-color: var(--primary);
    color: white;
    font-size: 2rem;
    padding: 20px;
    text-align: center;
}

.anim-icon {
    background-color: var(--primary);
    color: white;
    padding: 0px 20px; /* Увеличиваем отступы */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px; /* Минимальная высота для иконки */
}

.boy-icon {
    background-color: var(--primary);
    color: white;
    padding: 30px 20px; /* Увеличиваем отступы */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; /* Минимальная высота для иконки */
}

.teens-icon {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px; /* Увеличиваем отступы */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; /* Минимальная высота для иконки */
}

.adult-icon {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px; /* Увеличиваем отступы */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; /* Минимальная высота для иконки */
}

/* Стили для Lottie-анимации */
.anim-icon lottie-player {
    width: 80px !important; /* Размер анимации */
    height: 80px !important;
    margin: 0 auto; /* Центрирование */
    display: block;
}

/* Стили для Lottie-анимации */
.boy-icon lottie-player {
    width: 40px !important; /* Размер анимации */
    height: 40px !important;
    margin: 0 auto; /* Центрирование */
    display: block;
}

/* Стили для Lottie-анимации */
.teens-icon lottie-player {
    width: 80px !important; /* Размер анимации */
    height: 80px !important;
    margin: 0 auto; /* Центрирование */
    display: block;
}

/* Стили для Lottie-анимации */
.adult-icon lottie-player {
    width: 70px !important; /* Размер анимации */
    height: 70px !important;
    margin: 0 auto; /* Центрирование */
    display: block;
}

.card-content {
            padding: 30px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .card h3 {
            color: var(--primary);
            margin-bottom: 15px;
        }

        .card p {
            margin-bottom: 20px;
            flex-grow: 1;
        }
/* ===============================
   Benefits
=============================== */
.benefits {
    background-color: white;
}

.benefit-content{
    text-align:  left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

.benefit-icon {
            font-size: 2.5rem;
            color: var(--accent);
            margin-right: 25px;
            min-width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(46, 204, 113, 0.1);
            border-radius: 50%;
            transition: var(--transition);
        }

.benefit-item:hover .benefit-icon {
            background: var(--accent);
            color: var(--white);
            transform: scale(1.1);
        }

/* ===============================
   Stats
=============================== */
/*.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}*/
.stats {
            background: var(--gradient-primary);
            color: var(--white);
            position: relative;
            overflow: hidden;
        }

        .stats:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
            opacity: 0.5;
        }

        .stats h2 {
            color: var(--white);
        }

        .stats h2:after {
            background: var(--white);
        }

        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 30px;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .stat-item {
            padding: 40px 30px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: var(--transition);
        }

        .stat-item:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.15);
        }

        .stat-number {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--white);
            margin-bottom: 15px;
            font-family: 'Montserrat', sans-serif;
        }

        .stat-text {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            font-weight: 500;
        }

/* ===============================
   Travel
=============================== */
/*.travel {
    text-align: center;
}

.travel-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto 30px;
    border-radius: var(--radius);
    background: url('https://placehold.co/800x400/4a6bff/white?text=Kids+in+London') no-repeat center/cover;
    box-shadow: var(--shadow);
}*/
.gallery-section {
            background: var(--gray-100);
            position: relative;
        }

        .gallery-container {
            position: relative;
            display: flex;
            align-items: center;
            margin: 50px 0;
        }

        .gallery-track {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            -ms-overflow-style: none;
            gap: 20px;
            padding: 20px 0;
            scroll-padding: 0 20px;
        }

        .gallery-track::-webkit-scrollbar {
            display: none;
        }

        .gallery-item {
            scroll-snap-align: start;
            flex: 0 0 calc(33.333% - 20px);
            min-width: 300px;
        }

        .gallery-card {
            background: var(--white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
        }

        .gallery-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .gallery-image-container {
            position: relative;
            overflow: hidden;
            height: 250px;
        }

        .gallery-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .gallery-card:hover .gallery-image {
            transform: scale(1.1);
        }

        .gallery-caption {
            padding: 20px;
        }

        .gallery-caption h3 {
            margin-bottom: 10px;
            color: var(--primary);
        }

        .gallery-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--white);
            border: none;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 5;
            transition: var(--transition);
        }

        .gallery-btn:hover {
            background: var(--primary);
            color: var(--white);
        }

        .gallery-btn.prev {
            left: -25px;
        }

        .gallery-btn.next {
            right: -25px;
        }

/* ===============================
   Testimonials
=============================== */


/* ===============================
   Final Form
=============================== */
.final-form {
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

/* ===============================
   Footer
=============================== */
footer {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: #e2e8f0;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-info p {
    color: #cbd5e0;
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 300px;
}

/* Стили для блоков филиалов */
.footer-branch {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary);
    backdrop-filter: blur(10px);
}

.footer-branch h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-branch h3 i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.branch-contacts p {
    margin-bottom: 12px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.branch-contacts i {
    color: var(--secondary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.branch-contacts a {
    color: #e2e8f0;
    transition: var(--transition);
    text-decoration: none;
}

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

/* Соцсети для каждого филиала */
.branch-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.branch-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--secondary); /* Иконки акцентного цвета */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none; /* Убираем подчеркивание */
    position: relative;
}

.branch-social a:hover {
    background: transparent; /* Прозрачный фон при наведении */
    color: var(--secondary); /* Сохраняем акцентный цвет */
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px rgba(255, 193, 7, 0.3),
        0 0 0 2px var(--secondary); /* Акцентная обводка */
}

.branch-social a:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--secondary);
    opacity: 0.1;
    z-index: -1;
}

/* Альтернативный вариант с glow эффектом */
.branch-social a.alternative:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(255, 193, 7, 0.4),
        inset 0 0 0 1px var(--secondary);
}

/* Вариант с pulsating glow */
.branch-social a.glow:hover {
    animation: socialGlow 1.5s ease-in-out infinite alternate;
    background: transparent;
    color: var(--secondary);
}

.max-logo {
  width: 24px; /* Настройте под нужный размер */
  height: 24px;
  object-fit: contain; /* Сохраняет пропорции */
  vertical-align: middle;
}

.custom-max-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


@keyframes socialGlow {
    from {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.2),
                   0 0 0 1px var(--secondary);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6),
                   0 0 0 2px var(--secondary);
    }
}

/* Убираем стандартное подчеркивание для всех ссылок в футере */
.branch-social a,
.branch-social a:hover,
.branch-social a:focus {
    text-decoration: none !important;
}

/* Дополнительно: улучшаем доступность */
.branch-social a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .branch-social a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .branch-social a:hover {
        transform: translateY(-1px);
        box-shadow: 
            0 3px 10px rgba(255, 193, 7, 0.25),
            0 0 0 1px var(--secondary);
    }
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    color: #a0aec0;
}

/* Адаптивность */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        gap: 25px;
        grid-template-columns: 1fr;
    }
    
    .footer-branch {
        padding: 20px;
    }
    
    .branch-social a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-branch {
    animation: fadeInUp 0.6s ease-out;
}

.footer-branch:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-branch:nth-child(3) {
    animation-delay: 0.2s;
}

/* ===============================
   Анимации
=============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* #intro {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #fff;
}

#mascot {
  width: 200px;
  animation: spinY 2s ease-in-out forwards;
  transform-style: preserve-3d;
}

@keyframes spinY {
  0%   { transform: rotateY(0deg); opacity: 1; }
  100% { transform: rotateY(360deg); opacity: 1; }
}

#main-content {
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 1.5s ease, transform 1.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
} */

/* ===============================
   Модалка для уходящих
=============================== */

/* Стили для модального окна */
/*.modal {
  display: none; 
  position: fixed;
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto; 
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalpop 0.5s;
}*/

/* Анимация появления */
/*@keyframes modalpop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
*/
/*.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: #000;
  text-decoration: none;
}

.modal-content h2 {
  margin-top: 0;
  color: #2c3e50;
}

.modal-content p {
  margin-bottom: 20px;
  line-height: 1.5;
  color: #555;
}*/

/*.form-group {
  margin-bottom: 15px;
}

.modal-content input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.modal-content input:focus {
  outline: none;
  border-color: #3498db;
}

.cta-button {
  width: 100%;
  padding: 15px;
  background-color: #e74c3c; 
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
*/
/*.cta-button:hover {
  background-color: #c0392b;
}

.small-text {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 15px;
}

.success-message {
  color: #27ae60;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background-color: #f0fdf4;
  border-radius: 6px;
  border-left: 4px solid #27ae60;
}
*/
/* Адаптивность для мобильных устройств */
/*@media screen and (max-width: 768px) {
  .modal-content {
    margin: 20% auto;
    width: 85%;
    padding: 20px;
  }
}*/

        
/* Стили для львенка при скроле*/
/* .lion {
    position: fixed;
    width: 150px;
    height: 150px;
    z-index: 1000;
    transition: all 0.3s ease-out;
    pointer-events: none;
    top: 80px;
    left: 0px;
    transform-origin: center;
}

.lion img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
}

@media (max-width: 768px) {
    .lion {
        width: 70px;
        height: 70px;
    }
} */
        /* Стили для львенка */
/* ====== Львенок ====== */
.lion {
  position: fixed;
  width: 120px;
  z-index: 1200;
  pointer-events: none;
  left: 5%;
  top: 15%;
  transition: left 0.7s cubic-bezier(.2,.9,.2,1), top 0.7s cubic-bezier(.2,.9,.2,1), opacity 0.8s ease;
  will-change: left, top;
  transform: translateZ(0); /* рендер-подсказка */
}

.lion img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}


@media (max-width: 1024px) {
    .lion { width: 100px; }
}

@media (max-width: 768px) {
    .lion { 
        width: 80px;
        /* Не скрываем, а уменьшаем */
    }
}

@media (max-width: 480px) {
    .lion { 
        width: 60px;
        /* Можно скрыть на очень маленьких экранах */
        /*display: none !important;*/
    }
}