/* --- СБРОС И ОСНОВНЫЕ СТИЛИ --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative; /* Для позиционирования фона */
}

/* --- CSS АНИМАЦИИ --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* Анимация для плавающего фона */
@keyframes bgFloat {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
    100% { transform: translate(0, 0); }
}

/* --- ЗАДНИЙ ФОН НА ВСЕ ПРЕДСТАВЛЕНИЕ --- */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f9ff;
    z-index: -1; /* Задний план */
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1; /* Прозрачность */
    animation: bgFloat 20s linear infinite; /* Медленная анимация */
}

.bg-shape-1 {
    width: 200px; height: 200px;
    background: #ffe66d;
    top: 10%; left: 10%;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 300px; height: 300px;
    background: #4ecdc4;
    top: 40%; left: 70%;
    animation-delay: -5s;
}

.bg-shape-3 {
    width: 150px; height: 150px;
    background: #ff6b6b;
    top: 70%; left: 20%;
    animation-delay: -10s;
}

.bg-shape-4 {
    width: 250px; height: 250px;
    background: #ffe66d;
    top: 20%; left: 80%;
    animation-delay: -15s;
}

/* --- ШАПКА И НАВИГАЦИЯ --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #ff6b6b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 700;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #4ecdc4;
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #ff6b6b;
}

nav a:hover::after {
    width: 100%;
}

/* --- ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ --- */
.lang-switch {
    display: flex;
    gap: 5px;
    background: #edf2f7;
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #ff6b6b;
    color: #ffffff;
}

/* --- ГЛАВНЫЙ БАННЕР (HERO) --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #a8edf7 0%, #fed6e3 100%);
    padding: 90px 20px;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
    margin-bottom: 30px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2d3748;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #4a5568;
}

.btn {
    display: inline-block;
    background-color: #ff6b6b;
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #ff5252;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-1 { width: 80px; height: 80px; background: #ffe66d; top: 15%; left: 10%; animation-delay: 0s; }
.hero-shape-2 { width: 120px; height: 120px; background: #4ecdc4; bottom: 10%; right: 8%; animation-delay: 2s; }
.hero-shape-3 { width: 60px; height: 60px; background: #ff6b6b; top: 20%; right: 15%; animation-delay: 4s; }

/* --- СЕКЦИИ --- */
section {
    padding: 70px 20px;
    max-width: 1150px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 45px;
    color: #2d3748;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    margin: 12px auto 0;
    border-radius: 10px;
}

/* --- ГАЛЕРЕЯ (ФОТО) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- СОТРУДНИКИ --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.team-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: #ffe66d;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
}

.team-card img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff6b6b;
    transition: transform 0.4s ease;
}

.team-card:hover img {
    transform: rotate(5deg) scale(1.05);
}

.team-card h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 8px;
}

.team-card p {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 600;
}
/* --- СТИЛИ ДЛЯ КАРТЫ --- */
.map-container {
    width: 100%;
    min-height: 280px;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}
/* --- КОНТАКТЫ --- */
.contacts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background-color: #e6fffa;
    color: #4ecdc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.map-placeholder {
    background-color: #edf2f7;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #718096;
    font-weight: 600;
    border: 2px dashed #cbd5e0;
}

/* --- ПОДВАЛ --- */
footer {
    background: #2d3748;
    color: #a0aec0;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    position: relative;
}

/* --- МОБИЛЬНАЯ АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-right {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-shape, .bg-shape {
        display: none;
    }
}