.teacher-section{position:relative}.teacher-section>.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:25px}.teacher-menu-button{position:absolute;top:10px;left:0;z-index:3;border:0;border-radius:8px;background:#5942e9;color:#fff;font-size:18px;letter-spacing:2px;padding:8px 11px;cursor:pointer}.teacher-menu{position:absolute;top:51px;left:0;z-index:4;width:245px;padding:9px;background:#fff;border:1px solid #e4e1fb;border-radius:12px;box-shadow:0 10px 30px #24205d25;display:none}.teacher-menu.open{display:grid}.teacher-menu a{padding:10px 12px;border-radius:7px;text-decoration:none;color:var(--ink);font-weight:700}.teacher-menu a:hover{background:#f1efff;color:#573fe9}.portfolio-top{display:grid;grid-template-columns:220px 1fr;gap:28px;align-items:center}.profile-photo{width:220px;height:260px;border-radius:18px;background:linear-gradient(145deg,#7a8be8,#f5d7c5 50%,#24365d 51%);position:relative;overflow:hidden}.profile-photo:after{content:'Учитель\A информатики';white-space:pre;position:absolute;bottom:22px;left:22px;color:white;font-size:20px;font-weight:700}.timeline{display:grid;gap:12px;margin-top:18px}.timeline article{border-left:4px solid #5b43ed;padding:9px 15px;background:#f6f5ff;border-radius:0 9px 9px 0}.country-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:24px}.country{min-height:145px;padding:18px;border-radius:15px;color:white;display:flex;align-items:flex-end;font-size:20px;font-weight:800;background:linear-gradient(145deg,#856cf6,#324e9d)}.country:nth-child(2){background:linear-gradient(145deg,#fa996a,#ba3753)}.country:nth-child(3){background:linear-gradient(145deg,#55b9c2,#236577)}.country:nth-child(4){background:linear-gradient(145deg,#eac85c,#ae632d)}.upload-zone{border:2px dashed #a89df2;border-radius:14px;padding:30px;text-align:center;background:#f9f8ff}.upload-zone input{margin-top:12px;max-width:100%}.file-list{display:grid;gap:10px;margin-top:20px}.file-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border-radius:9px;background:#f4f3ff}.file-item button{border:0;background:transparent;color:#583fe8;font-weight:700;cursor:pointer}@media(max-width:700px){.teacher-section>.two-columns{grid-template-columns:1fr;padding-top:42px}.portfolio-top{grid-template-columns:1fr}.profile-photo{width:100%}.country-grid{grid-template-columns:repeat(2,1fr)}}
/* =========================================================
   КОМПАКТНЫЙ БЛОК «ОБ УЧИТЕЛЕ»
========================================================= */

.about-hero {
    min-height: 300px;
    padding: 25px 0 35px;
}

/* уменьшаем внутренний блок */
.about-hero-inner {
    min-height: 300px;
    height: 300px;
    align-items: center;
}

/* левая часть */
.about-intro {
    padding: 10px 0 20px;
}

/* КНОПКА «ВСЕ РАЗДЕЛЫ» — ВЫШЕ */
.sections-button {
    margin-top: -5px;
    margin-bottom: 18px;
}

/* текст немного компактнее */
.about-intro h1 {
    font-size: 48px;
    margin: 0;
}

.about-intro p {
    margin-top: 14px;
    max-width: 520px;
    line-height: 1.6;
}

/* фото немного меньше и выше */
.about-photo-area {
    min-height: 300px;
}

.about-photo {
    width: 390px;
    height: 265px;
}

/* карточка 30 лет */
.experience-card {
    right: 20px;
    bottom: 15px;
    width: 95px;
    min-height: 125px;
}

/* информационная панель */
.teacher-facts {
    margin-top: -22px;
}