/* ==== Общие стили ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #2c3e50;
    background: #f9fafc;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==== Шапка ==== */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.infinity-logo {
    width: 60px;
    height: 30px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A3A5F;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 1rem;
    color: #555;
    transition: color 0.2s;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1A3A5F;
    border-bottom-color: #1ABC9C;
}

/* ==== Герой-блок ==== */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f5f2 100%);
}

.hero h1 {
    font-size: 3rem;
    color: #1A3A5F;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #1ABC9C;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #555;
}

/* ==== Карточки направлений ==== */
.directions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.direction-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 6px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.direction-tenders {
    border-top-color: #1A3A5F;
}

.direction-science {
    border-top-color: #1ABC9C;
}

.direction-disabled {
    border-top-color: #2E7D32;
}

.direction-icon {
    font-size: 2.5rem;
}

.direction-card h2 {
    font-size: 1.6rem;
    color: #2c3e50;
}

.direction-card p {
    color: #666;
    flex-grow: 1;
}

.direction-link {
    color: #1ABC9C;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ==== Миссия ==== */
.mission {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.mission h2 {
    font-size: 2rem;
    color: #1A3A5F;
    margin-bottom: 1rem;
}

.mission p {
    font-size: 1.1rem;
    color: #555;
}

/* ==== Подвал ==== */
.site-footer {
    background: #1A3A5F;
    color: #cfd8e3;
    margin-top: 4rem;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-col a,
.footer-col p {
    display: block;
    color: #cfd8e3;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #1ABC9C;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #8a9bb0;
}

/* ==== Адаптив ==== */
@media (max-width: 700px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .main-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
    .site-header {
        padding: 1rem;
    }
}