/* ═══ КТО МЫ ═══ */

@keyframes ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.2; }
    50%       { transform: translate(-50%, -50%) scale(1.1); opacity: 0.42; }
}
@keyframes ring-slow {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.08; }
    50%       { transform: translate(-50%, -50%) scale(1.06); opacity: 0.18; }
}

.about-who-panel {
    padding: 0;
    overflow: hidden;
    margin-bottom: 24px;
}

.about-who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 460px;
}

/* LEFT */
.about-who-left {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #fff 60%, #f4f8ff 100%);
}

.about-who-title {
    font-weight: 900;
    font-size: 40px;
    color: #0d1a3a;
    line-height: 1.1;
    margin-bottom: 20px;
    margin-top: 16px;
}

.about-who-desc {
    font-size: 15px;
    color: #5a7299;
    line-height: 1.8;
    margin-bottom: 36px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #3d5a8a;
    font-weight: 500;
    line-height: 1.4;
}

.about-value-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* RIGHT */
.about-who-right {
    background: linear-gradient(140deg, #051b3f 0%, #0a2860 55%, #103888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 460px;
}

.about-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    pointer-events: none;
}

.about-ring-1 {
    width: 160px;
    height: 160px;
    border: 1.5px solid rgba(96, 165, 250, 0.4);
    animation: ring-pulse 3s ease-in-out infinite;
}

.about-ring-2 {
    width: 280px;
    height: 280px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    animation: ring-pulse 3.4s ease-in-out infinite 0.7s;
}

.about-ring-3 {
    width: 400px;
    height: 400px;
    border: 1px solid rgba(96, 165, 250, 0.1);
    animation: ring-slow 4.5s ease-in-out infinite 1.4s;
}

.about-ring-4 {
    width: 530px;
    height: 530px;
    border: 1px solid rgba(96, 165, 250, 0.05);
    animation: ring-slow 5.5s ease-in-out infinite 2s;
}

.about-who-glow {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 86, 219, 0.2) 0%, transparent 65%);
    pointer-events: none;
}

.about-who-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 48px;
}

.about-who-logo {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.about-who-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.about-who-line {
    height: 1px;
    width: 56px;
    background: rgba(96, 165, 250, 0.35);
}

.about-who-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: rgba(148, 190, 255, 0.65);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

.about-who-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-who-badge {
    background: rgba(26, 86, 219, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    color: rgba(148, 190, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ═══ ЧТО ВЫ ПОЛУЧИТЕ ═══ */

.about-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1.5px solid #e8f0ff;
    border-radius: 20px;
    overflow: hidden;
}

.about-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 44px;
}

.about-benefit-item:nth-child(1),
.about-benefit-item:nth-child(2) {
    border-bottom: 1.5px solid #e8f0ff;
}

.about-benefit-item:nth-child(odd) {
    border-right: 1.5px solid #e8f0ff;
}

.about-benefit-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 58px;
    color: #d6e4f7;
    line-height: 1;
    flex-shrink: 0;
    min-width: 62px;
    user-select: none;
}

.about-benefit-content {
    padding-top: 6px;
}

.about-benefit-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #0d1a3a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.about-benefit-text {
    font-size: 13px;
    color: #5a7299;
    line-height: 1.65;
    margin: 0;
}

/* ═══ КАРУСЕЛЬ (преподаватели + партнёры) ═══ */

.about-carousel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.about-carousel-viewport {
    overflow: hidden;
    flex: none;
    width: calc(220px * 4 + 20px * 3);
}

.about-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    background: #f0f5ff;
    color: #c0d4ff;
}

.about-carousel-btn--active,
.about-carousel-btn:not(:disabled) {
    background: #1a56db;
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.38);
    cursor: pointer;
}

.about-carousel-btn:disabled {
    background: #f0f5ff;
    color: #c0d4ff;
    cursor: not-allowed;
    box-shadow: none;
}

/* ═══ КАРТОЧКИ ПРЕПОДАВАТЕЛЕЙ ═══ */

.about-teacher-card {
    width: 220px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid #e8f0ff;
    background: #fff;
    transition: box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
}

.about-teacher-card:hover {
    box-shadow: 0 12px 32px rgba(10, 25, 100, 0.13);
    border-color: #c0d4ff;
}

.about-teacher-card__photo {
    height: 190px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-teacher-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 18px;
    background: #fff;
    box-sizing: border-box;
}

.about-teacher-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.about-teacher-ph__circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
}

.about-teacher-ph__ini {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-top: 2px;
}

.about-teacher-ph__note {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-teacher-card__body {
    padding: 14px 14px 18px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-teacher-card__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #0d1a3a;
    margin-bottom: 4px;
    line-height: 1.35;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-teacher-card__pos {
    font-size: 11px;
    color: #1a56db;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.about-teacher-card__area {
    font-size: 11px;
    color: #5a7299;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}

.about-teacher-card__exp {
    font-size: 10px;
    color: #7a98c0;
    background: #f0f5ff;
    padding: 3px 8px;
    border-radius: 7px;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    align-self: center;
}

/* ═══ КАРУСЕЛЬ ПАРТНЁРОВ (другие размеры) ═══ */

.about-partner-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.about-partner-carousel-viewport {
    overflow: hidden;
    flex: none;
    width: calc(260px * 3 + 24px * 2);
}

.about-partner-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ ПОДЗАГОЛОВОК ПАРТНЁРОВ ═══ */

.about-partners-subtitle {
    font-size: 13px;
    color: #7a98c0;
    margin-top: 6px;
    margin-bottom: 0;
}

/* ═══ КАРТОЧКИ ПАРТНЁРОВ ═══ */

.about-partner-card {
    width: 260px;
    flex-shrink: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 2px 20px rgba(10, 25, 100, 0.08);
    transition: box-shadow 0.28s, transform 0.28s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 24px;
    text-align: center;
}

.about-partner-card:hover {
    box-shadow: 0 20px 56px rgba(10, 25, 100, 0.16);
    transform: translateY(-6px);
}

.about-partner-card__circle {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    border: 2.5px solid;
    overflow: hidden;
    margin-bottom: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-partner-card__circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.about-partner-card__circle--empty {
    border-style: dashed;
}

.about-partner-card__type-pill {
    font-size: 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    display: inline-block;
}

.about-partner-card__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #0d1a3a;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-partner-card__desc {
    font-size: 12px;
    color: #6b82a8;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.about-partner-card__badge {
    font-size: 11px;
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ═══ MAP BOX ═══ */

.map-box {
    background: linear-gradient(135deg, #f0f5ff, #e8eeff);
    border-radius: 20px;
    border: 2px dashed rgba(26, 86, 219, 0.15);
}

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

@media (max-width: 1100px) {
    .about-carousel-viewport {
        width: calc(220px * 3 + 20px * 2);
    }
    .about-partner-carousel-viewport {
        width: calc(260px * 2 + 24px);
    }
}

@media (max-width: 900px) {
    .about-who-grid {
        grid-template-columns: 1fr;
    }

    .about-who-right {
        min-height: 320px;
    }

    .about-who-left {
        padding: 36px 28px;
    }

    .about-benefits-grid {
        grid-template-columns: 1fr;
    }

    .about-benefit-item:nth-child(odd) {
        border-right: none;
    }

    .about-benefit-item:nth-child(1),
    .about-benefit-item:nth-child(2),
    .about-benefit-item:nth-child(3) {
        border-bottom: 1.5px solid #e8f0ff;
    }

    .about-benefit-item:nth-child(4) {
        border-bottom: none;
    }

    .about-carousel-viewport {
        width: calc(220px * 2 + 20px);
    }

    .about-partner-carousel-viewport {
        width: 260px;
    }
}

@media (max-width: 600px) {
    .about-who-grid {
        display: flex;
        flex-direction: column;
    }

    .about-who-right {
        order: -1;
        min-height: 500px;
    }

    .about-who-content {
        gap: 22px;
        padding: 14px 22px;
    }

    .about-who-logo {
        width: 190px;
    }

    .about-who-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .about-who-badge {
        min-width: 168px;
        text-align: center;
    }

    .about-benefits-grid {
        grid-template-columns: 1fr;
    }

    .about-benefit-item {
        gap: 14px;
        padding: 26px 18px;
    }

    .about-benefit-num {
        font-size: 44px;
        min-width: 52px;
    }

    .about-benefit-title {
        font-size: 14px;
    }

    .about-benefit-text {
        font-size: 12px;
        line-height: 1.55;
    }

    .about-who-title {
        font-size: 30px;
    }

    .about-carousel-wrap {
        gap: 8px;
        justify-content: center;
    }

    .about-carousel-viewport {
        width: 192px;
    }

    .about-teacher-card {
        width: 192px;
    }

    .about-teacher-card__photo {
        height: 236px;
    }

    .about-teacher-card__body {
        padding: 12px 12px 16px;
    }

    .about-teacher-card__name {
        font-size: 11px;
    }

    .about-teacher-card__pos,
    .about-teacher-card__area {
        font-size: 10px;
    }

    .about-teacher-card__exp {
        font-size: 9px;
        padding: 3px 8px;
    }

    .about-partner-carousel-wrap {
        gap: 6px;
        justify-content: center;
        margin-left: -16px;
        margin-right: -16px;
    }

    .about-partner-carousel-wrap .about-carousel-btn {
        width: 36px;
        height: 36px;
        position: relative;
        z-index: 2;
    }

    .about-partner-carousel-viewport {
        width: 242px;
    }

    .about-partner-card {
        width: 242px;
        padding: 28px 18px 22px;
    }

    .about-partner-card__circle {
        width: 112px;
        height: 112px;
    }

    .about-contacts-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .about-contacts-grid .map-box {
        height: 320px !important;
        min-height: 280px;
    }
}

/* ═══ ТЁМНАЯ ТЕМА ═══ */
html.dark .about-who-left { background: linear-gradient(135deg, #121a2e 60%, #0e1730 100%); }
html.dark .about-who-title { color: #e7edf9; }
html.dark .about-who-desc { color: #9fb0cd; }
html.dark .about-value-item { color: #b9c6df; }
html.dark .about-value-icon { background: rgba(110,162,255,0.14); }

html.dark .about-benefits-grid { border-color: rgba(255,255,255,0.08); }
html.dark .about-benefit-item { border-color: rgba(255,255,255,0.08) !important; }
html.dark .about-benefit-num { color: #233350; }
html.dark .about-benefit-title { color: #e7edf9; }
html.dark .about-benefit-text { color: #9fb0cd; }

html.dark .about-carousel-btn { background: #15203a; color: #45597e; }
html.dark .about-carousel-btn:disabled { background: #15203a; color: #45597e; }

html.dark .about-teacher-card,
html.dark .about-partner-card { background: #15203a; box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
html.dark .about-teacher-card { border-color: rgba(255,255,255,0.07); }
html.dark .about-teacher-card:hover { border-color: rgba(110,162,255,0.4); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
html.dark .about-partner-card:hover { box-shadow: 0 20px 56px rgba(0,0,0,0.55); }
html.dark .about-teacher-card__name,
html.dark .about-partner-card__name { color: #e7edf9; }
html.dark .about-teacher-card__area,
html.dark .about-partner-card__desc { color: #9fb0cd; }
html.dark .about-teacher-card__exp { background: #1b2742; color: #8194b4; }
html.dark .about-partners-subtitle { color: #8194b4; }
