.container {
    max-width: 1400px; /* Было 1200px, сделали шире */
    margin: 0 auto;
    padding: 0 20px;
}

.vks-section {
    padding: 60px 0;
    background-color: #f4f6f9;
    font-family: inherit;
}
.vks-container {
    max-width: 1400px; /* Было 1200px, сделали шире */
    margin: 0 auto;
    padding: 0 20px;
}
.vks-header {
    text-align: center;
    margin-bottom: 50px;
}
/*.vks-header h2 {
    font-size: 36px;
    color: rgb(67, 67, 67);
    font-weight: 700;
    margin-bottom: 16px;
}*/
.vks-header p {
    font-size: 18px;
    color: #6e7781;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}
.vks-layout {
    display: flex;
    gap: 40px;
    align-items: stretch; /* Заставляет обе колонки быть строго одной высоты */
}
.vks-sidebar {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vks-btn {
    background: #ffffff;
    border: 1px solid transparent; /* Толстая прозрачная рамка по умолчанию */
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.vks-btn h4 {
    font-size: 18px;
    color: #2c3338;
    margin: 0 0 8px 0;
    font-weight: 700;
}
.vks-btn p {
    font-size: 14px;
    color: #6e7781;
    margin: 0;
    line-height: 1.5;
}
.vks-btn:not(.vks-active):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.vks-btn.vks-active {
    border-color: #f08c1d; /* Фирменный оранжевый */
    background-color: #fff9f2;
}
.vks-content {
    width: 55%;
    background: #ffffff;
    border-radius: 20px;
    padding:18px 30px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Убрали фиксированную высоту, теперь блок тянется */
}

/* Жесткое скрытие неактивных элементов */
.vks-title, .vks-img {
    display: none !important;
    width: 100%;
    text-align: center;
}
.vks-title.vks-active, .vks-img.vks-active {
    display: block !important;
    animation: vksFadeIn 0.4s ease forwards;
}

.vks-title h3 {
    font-size: 24px;
    color: #2c3338;
    margin: 0 0 20px 0;
}
.vks-img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}
.vks-dots {
    display: flex;
    gap: 8px;
    margin-top: auto; /* Жестко прижимает точки к самому низу блока */
    justify-content: center;
}
.vks-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background 0.3s;
}
.vks-dot.vks-active {
    background-color: #f08c1d;
}

@keyframes vksFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптив для мобильных со свайпом (как договаривались) */
@media (max-width: 991px) {
    .vks-layout {
        flex-direction: column;
    }
    .vks-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .vks-sidebar::-webkit-scrollbar {
        display: none;
    }
    .vks-btn {
        flex: 0 0 auto;
        padding: 12px 20px;
        border-width: 2px;
    }
    .vks-btn p { display: none; }
    .vks-btn h4 { margin: 0; font-size: 12px; white-space: nowrap; }
    .vks-content { width: 100%; padding: 20px; }
}
@media (max-width: 767.98px) {
    .vks-header h2 {
        font: 700 24px / 28px "Rubik", arial, sans-serif;
        margin-bottom: 1.5rem;
    }
    .vks-header p {
        font-size: 16px;

    }
}


.schools {
    padding: 2.5rem 0 3rem 0;
    background-color: #f7f7fa;
}

.schools .h3 {
    text-align: center;
}

.school-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
    .school-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 1rem 0;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .school-row::-webkit-scrollbar {
        display: none;
    }

    .school-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

.school-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s ease;
    gap: 1rem;
    min-width: 240px;
    max-width: 240px;
}

.school-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.school-name {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    text-align: left;
}

/* Стили для меню сервисов */
@media (max-width: 767.98px) {
    .services__links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0 1rem 1rem 1rem;
        margin: 0 -1rem;
    }

    .services__links::-webkit-scrollbar {
        display: none;
    }

    .services__links .tabs__link {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        scroll-snap-align: start;
        min-width: auto;
    }
}

/* Фиксированная высота блоков сервисов */
.services__card {
    height: 70px !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1rem !important;
}

.services__card-image {
    width: 120px !important;
    height: 50px !important;
    object-fit: contain !important;
    flex-shrink: 0;
}
/*
.services__card-link {
  display: none;
}*/
.main1.h1 {
    margin-bottom: 4rem;
    text-align: center;
}
