/* Общие стили */
body {
    margin: 0;
    padding: 0;
    background: #eaf4fb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}


/* company-section */
.company-section {
    background: linear-gradient(120deg, #68b8f6 0%, #015ea6 100%);
    padding: 80px 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: #eaf4fb;
    position: relative;
    overflow: hidden;
}

.company-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,135,192,0.15), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.company-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    justify-content: space-between;
}

.company-text-wrapper {
    flex: 1;
    max-width: 600px;
}

.company-text {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #fff;
}

.company-info {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #e7f5ff;
    border-left: 3px solid #008cb7;
    padding-left: 20px;
}

.company-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(40, 103, 180, 0.20);
}

.services-list {
    margin-top: 60px;
}

.services-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.services-items li {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
    background: linear-gradient(135deg, #eaf4fb 60%, #b6e4fa 110%);
    border: 1.5px solid #66bff5;
    border-radius: 18px;
    padding: 28px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #125385;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.services-items li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #61c2fd4d 80%, transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.services-items li:hover::before {
    left: 100%;
}

.services-items li:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #019ae9;
    box-shadow: 0 20px 40px #61c2fd40;
}

/* Стили для ссылки внутри li */
.services-items li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
    position: relative;
    z-index: 2;
}

.services-items li a:hover {
    text-decoration: none;
    color: inherit;
}

/* Адаптивность */
@media (max-width: 768px) {
    .company-section {
        padding: 0;
    }

    .company-content {
        flex-direction: column;
        gap: 30px;
    }

    .company-image {
        flex: 1;
        max-width: 100%;
    }

    .services-items li {
        flex: 1 1 100%;
    }
}

/* company-way */
.company-way {
    background: linear-gradient(120deg, #fafdff 70%, #cbe2f8 100%);
    padding: 70px 0 80px 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: #135088;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #155ca3;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.subsection-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: #319be3;
    margin-bottom: 40px;
}

/* Timeline layout */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 34px;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #67b9f5 0%, #015ea6 100%);
    border-radius: 2px;
    z-index: 0;
}

/* maindirections */
.directions-section {
    padding: 40px 0;
    background: #ffffff;
}

.directions-header h2 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 26px;
    text-align: center;
    margin-bottom: 30px;
    color: #003366;
    position: relative;
}

.directions-header h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: #e31e24;
    margin: 8px auto 0;
}

.directions-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.directions-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #e9f4ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.directions-icon {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.directions-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #003366;
}

/* ======== АДАПТИВ ======== */

/* Планшеты: уменьшаем шрифт заголовка и отступы */
@media (max-width: 992px) {
    .directions-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .directions-header h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .directions-item {
        padding: 12px 14px;
    }

    .directions-text {
        font-size: 13px;
    }
}

/* Мобильные: одна колонка, элементы повыше, чтобы легче тапать */
@media (max-width: 768px) {
    .directions-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .directions-item {
        padding: 12px 12px;
    }

    .directions-icon {
        flex: 0 0 32px;
        height: 32px;
        font-size: 20px;
    }

    .directions-header h2 {
        font-size: 20px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .directions-section {
        padding: 24px 0;
    }

    .directions-header h2 {
        font-size: 18px;
    }

    .directions-item {
        gap: 10px;
    }

    .directions-text {
        font-size: 12px;
    }
}


/* Milestone */
.milestone {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.year {
    flex: 0 0 68px;
    min-width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #68b8f6 60%, #015ea6 110%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 16px 0 #68b8f62b;
    margin-right: 30px;
    margin-top: 0;
    border: 3px solid #eaf4fb;
    transition: background 0.2s;
}

.milestone:hover .year {
    background: linear-gradient(135deg, #21a3fe 50%, #015ea6 120%);
}

.description {
    padding: 18px 26px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px 0 #73b3db19;
    color: #196ba6;
    font-size: 1.08rem;
    font-weight: 500;
    border-left: 4px solid #68b8f6;
    line-height: 1.58;
    min-width: 0;
    max-width: 600px;
    transition: box-shadow 0.2s;
}

.milestone:hover .description {
    box-shadow: 0 6px 32px 0 #81cafa28;
    border-left: 4px solid #21a3fe;
}

@media (max-width: 900px) {
    .timeline {
        max-width: 98vw;
    }
    .year {
        margin-right: 20px;
        font-size: 1.08rem;
    }
    .description {
        padding: 16px 14px;
        font-size: 1em;
        max-width: 92vw;
    }
}


/* city-stats-section */
/* Секция с географией и статистикой */
.city-stats-section {
    background: linear-gradient(120deg, #fafdff 70%, #d9ecfa 100%);
    padding: 80px 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: #145488;
    position: relative;
    overflow: hidden;
}


/* Заголовки */
.section-subtitle {
    text-align: center;
    margin-bottom: 22px;
    font-weight: 700;
    color: #166bb6;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}


.facts-title {
    font-size: 2.1rem;
    margin-top: 0;
}


.geography-title {
    font-size: 1.4rem;
    color: #3aa1e4;
    margin-bottom: 50px;
}


/* Изображения карты и города */
.section-image {
    display: block;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(46, 123, 197, 0.18);
}


.city-image {
    display: block;
    margin: 40px auto 0;
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(54, 133, 199, 0.18);
}


/* Список городов - Цветные бейджи с иконкой */
.cities-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 40px auto 20px;
    max-width: 900px;
    gap: 14px;
}

.cities-items li {
    background: linear-gradient(135deg, #166bb6 0%, #3aa1e4 100%);
    border-radius: 20px;
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px 10px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(22, 107, 182, 0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cities-items li::before {
    content: '📍';
    margin-right: 6px;
    font-size: 0.9rem;
}

.cities-items li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cities-items li:hover::after {
    opacity: 1;
}

.cities-items li:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(22, 107, 182, 0.35);
}



/* Блоки статистики */
.stats-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 70px;
    text-align: center;
}


.stats-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(22, 93, 164, 0.05);
    padding: 36px 26px;
    border-top: 4px solid #5ab6f6;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.stats-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(22, 93, 164, 0.15);
}


.stats-title {
    font-size: 1.3rem;
    color: #1763ad;
    font-weight: 700;
    margin-bottom: 20px;
}


/* Внутренняя сетка */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* всегда 2 колонки */
    gap: 28px 40px;
    justify-items: center;
}



.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.stat-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}


.stat-item:hover .stat-icon img {
    transform: scale(1.1);
}


.stat-value {
    font-size: 1.6rem;
    color: #037dd4;
    font-weight: 700;
    margin-bottom: 5px;
}


.stat-text {
    font-size: 1rem;
    color: #234f73;
    font-weight: 500;
    line-height: 1.4;
}


/* Адаптивность */
@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1.6rem;
    }


    .geography-title {
        font-size: 1.2rem;
    }


    .stats-grid {
        gap: 18px;
    }


    .city-image {
        max-width: 300px;
    }


    .facts-title {
        font-size: 1.8rem;
    }
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    color: #1261b3;
    font-weight: 800;
    margin-bottom: 48px;
}

/* Баннер набора (как куки — внизу экрана) */
.recruitment-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #015ea6 0%, #1261b3 100%);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(1, 94, 166, 0.35);
    padding: 14px 20px;
    font-family: 'Montserrat', 'Raleway', sans-serif;
}

.recruitment-banner.recruitment-banner--hidden {
    display: none;
}

.recruitment-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.recruitment-banner__text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
}

.recruitment-banner__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: #015ea6;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.recruitment-banner__link:hover {
    background: #eaf4fb;
    color: #014a85;
}

.recruitment-banner__close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.recruitment-banner__close:hover {
    background: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
    .recruitment-banner__inner {
        padding-right: 48px;
        justify-content: flex-start;
    }
    .recruitment-banner__text {
        font-size: 0.95rem;
    }
    .recruitment-banner__link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}