/* ===== Общие сбросы и настройки ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== Шапка (header) ===== */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

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

.nav a {
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.nav a:hover {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.nav a.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

/* ===== Главный контент ===== */
main {
    flex: 1;
}

/* --- Секция-герой (для about) --- */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* --- Блок "О нас" --- */
.about-content {
    padding: 60px 0;
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #1a73e8;
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #555;
}

.values-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.values-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
}

.values-list li:last-child {
    border-bottom: none;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    object-fit: cover;
}

/* --- Секция команды --- */
.team {
    padding: 60px 0;
    background-color: #f1f4f9;
}

.team h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 250px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid #eef2f7;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #1a73e8;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== СТРАНИЦА 404 ===== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 0;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: #1a73e8;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    opacity: 0.15;
    user-select: none;
}

.error-content h1 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: #2c3e50;
}

.error-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 12px;
}

.error-link {
    color: #1a73e8;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.error-link:hover {
    border-bottom-color: #1a73e8;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #1a73e8;
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0d47a1;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #1a73e8;
}

/* ===== Подвал (footer) ===== */
.footer {
    background-color: #2c3e50;
    color: #cfd8e3;
    padding: 24px 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 14px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .team-cards {
        grid-template-columns: 1fr 1fr;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .team-cards {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}