/* 1. RESET & VARIABLES */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

:root {
    --bg-light: #f4f4f6; /* Чуть темнее белого для фона секций */
    --bg-white: #ffffff;
    --text-main: #1a1a1b;
    --lilac-primary: #9d8db5;
    --lilac-dark: #6e5f8a;
    --border: #e0ddeb;
    --hero-bg: #1a1423; /* Темный цвет бренда */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2 { font-family: 'Playfair Display', serif; }

.container { 
    width: 90%; 
    max-width: 1300px; 
    margin: 0 auto; 
}

/* 2. NAVIGATION */
nav {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}

.logo { font-size: 1.5rem; font-weight: bold; letter-spacing: 2px; color: var(--lilac-dark); }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 30px; }
nav ul li a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.9rem; }

/* 3. HERO SECTION (DARK) */
#hero {
    position: relative;
    background-color: var(--hero-bg); 
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-wrapper { display: flex; width: 100%; height: 100%; align-items: center; }
.hero-content { flex: 1; z-index: 5; padding-left: 8%; padding-right: 50px; }
.hero-image { flex: 1.5; height: 100%; position: relative; }
.hero-image img {
    width: 100%; height: 100%; object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 40%, black 70%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 40%, black 70%);
}

#hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(26, 20, 35, 0.9) 15%, rgba(26, 20, 35, 0) 100%);
    z-index: 1;
}

#hero h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--bg-white); line-height: 1.1; }
#hero p { color: rgba(255, 255, 255, 0.7); max-width: 500px; font-size: 1.1rem; }

.btn-primary {
    display: inline-block;
    background: var(--lilac-primary);
    color: var(--hero-bg);
    padding: 16px 40px;
    text-decoration: none;
    margin-top: 35px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-primary:hover { background: var(--bg-white); color: var(--lilac-dark); }


/* 4. SECTIONS COMMON STYLES (Padding & Headers) */
section { padding: 100px 0; }

/* Центрируем заголовки по центру */
section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--hero-bg); /* Темный цвет заголовков для контраста */
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin: 0 auto 60px auto; /* Центрируем блок и даем отступ снизу */
    max-width: 700px;
    font-weight: 300;
    line-height: 1.6;
}

/* 5. EXPERTISE SECTION (GRAY BACKGROUND) */
#about {
    background-color: var(--bg-light); /* Серый фон для контраста с карточками */
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: var(--bg-white); /* Белая карточка на сером фоне */
    padding: 40px 30px;
    border: 1px solid transparent; /* Убираем рамку, оставляем тень */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Легкая тень для объема */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.card .icon { font-size: 2.2rem; margin-bottom: 20px; display: block; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 15px; color: var(--lilac-dark); }
.card p { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* Блок достижений (Achievements) */
.achievements-card {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid #d1d1d6; /* Чуть темнее линия */
    border-bottom: 1px solid #d1d1d6;
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.stat h3 { font-size: 3rem; color: var(--hero-bg); margin-bottom: 5px; font-weight: 800; }
.stat p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: #666; }


/* 6. TEAM SECTION (WHITE BACKGROUND) */
#team {
    background-color: var(--bg-white);
    /* Добавляем небольшой отступ, чтобы разделить секции визуально */
    position: relative;
    z-index: 1;
}

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

.member { 
    background: var(--bg-white); /* ТЕПЕРЬ БЕЛЫЙ, А НЕ СЕРЫЙ */
    padding: 40px; 
    text-align: center;
    border: 1px solid var(--border); /* Тонкая рамка для структуры */
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Эффект при наведении: карточка чуть всплывает и тень */
.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: transparent; /* Рамка исчезает, остается тень */
}

.avatar-img { 
    width: 140px; 
    height: 140px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 25px; 
    transition: 0.4s ease;
    border: 1px solid var(--border); /* Рамка вокруг фото */
}



.member h3 { 
    margin-bottom: 5px; 
    color: var(--hero-bg); 
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.member .role { 
    color: var(--lilac-dark); 
    font-weight: 600; 
    margin-bottom: 15px; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member .bio { 
    font-size: 0.95rem; 
    color: #666; 
    line-height: 1.6;
}


/* 7. CONTACT & FOOTER (DARK THEME) */
footer#contact { 
    padding: 80px 0; 
    background-color: var(--hero-bg); /* ТЕМНЫЙ ФОН */
    color: var(--bg-white);
}

footer#contact h2 { color: var(--bg-white); margin-bottom: 40px; }
footer#contact .container { max-width: 600px; text-align: center; }

/* Поля ввода на темном фоне */
form input, form textarea {
    display: block; width: 100%; padding: 15px; margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05); /* Полупрозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая рамка */
    border-radius: 4px;
    color: var(--bg-white);
    font-family: inherit; font-size: 1rem;
}

form input:focus, form textarea:focus { 
    border-color: var(--lilac-primary); 
    background: rgba(255, 255, 255, 0.1); 
    outline: none; 
}

form input { height: 55px; }
form textarea { min-height: 150px; resize: vertical; }

form button {
    width: 100%; background: var(--lilac-primary); color: var(--hero-bg);
    padding: 18px; border: none; border-radius: 4px;
    font-weight: 600; cursor: pointer; transition: 0.3s;
}
form button:hover { background: var(--bg-white); color: var(--hero-bg); }

.legal-links { margin: 40px 0 20px; }
.legal-links a { color: rgba(255,255,255, 0.6); text-decoration: none; font-size: 0.8rem; margin: 0 10px; }
.legal-links a:hover { color: var(--lilac-primary); }
.legal { font-size: 0.75rem; opacity: 0.4; color: white; }

/* --- Language Switcher Styles --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: #888;
    padding: 0;
    transition: color 0.3s;
    font-weight: 500;
}

.lang-switch button:hover {
    color: var(--lilac-dark);
}

.lang-switch button.active {
    color: var(--lilac-dark);
    font-weight: 700;
}

.lang-switch .divider {
    color: #e0ddeb;
    font-size: 0.8rem;
}

/* Адаптив для мобильных (чтобы не ехало меню) */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; }
    .nav-right { flex-direction: column; width: 100%; }
    nav ul { margin: 0; padding: 0; }
    nav ul li { margin: 0 10px; }
}
/* 8. RESPONSIVE */
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    #hero h1 { font-size: 2.2rem; }
    .hero-image { display: none; }
    .achievements-card { flex-direction: column; gap: 40px; }
    section { padding: 60px 0; }
}