

/* Start:/local/templates/tmpl2025/components/bitrix/news.detail/teacher-detail2025/style.css?17906609299810*/
/* The site shell already supplies Golos Text, breadcrumbs and the page width. */
body.page-teachers-detail-php main > section.container.mt-2 > h1.mt-1 {
    display: none;
}

.teacher-profile {
    --teacher-red: var(--tmpl2025-red, #c70012);
    --teacher-black: var(--tmpl2025-black, #0d0b0c);
    --teacher-gray: var(--tmpl2025-gray, #5b5152);
    --teacher-border: rgba(13, 11, 12, 0.1);
    --teacher-ease: cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    overflow-wrap: anywhere;
    color: var(--teacher-black);
}

.teacher-profile *,
.teacher-profile *::before,
.teacher-profile *::after {
    box-sizing: border-box;
}

.teacher-profile__hero {
    position: relative;
    display: grid;
    gap: 28px;
    align-items: center;
    overflow: hidden;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--teacher-border);
    border-radius: 32px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(199, 0, 18, 0.14) 0%, rgba(199, 0, 18, 0) 58%),
        radial-gradient(90% 80% at 100% 100%, rgba(199, 0, 18, 0.06) 0%, rgba(199, 0, 18, 0) 55%),
        linear-gradient(180deg, #ffffff 0%, #f8f5f5 100%);
    box-shadow: 0 22px 44px rgba(13, 11, 12, 0.08);
    animation: teacher-profile-rise 0.7s var(--teacher-ease) both;
}

.teacher-profile__hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: min(48vw, 420px);
    height: min(48vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 0, 18, 0.1) 0%, rgba(199, 0, 18, 0) 70%);
    pointer-events: none;
}

.teacher-profile__hero--photo {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
}

.teacher-profile__portrait {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(145deg, rgba(199, 0, 18, 0.08), rgba(255, 255, 255, 0.4)),
        var(--tmpl2025-surface-alt, #fff8f8);
    border: 1px solid rgba(199, 0, 18, 0.16);
    border-radius: 28px;
    box-shadow:
        0 18px 36px rgba(13, 11, 12, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    animation: teacher-profile-rise 0.85s var(--teacher-ease) 0.08s both;
}

.teacher-profile__portrait::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(13, 11, 12, 0) 0%, rgba(13, 11, 12, 0.18) 100%);
    pointer-events: none;
}

.teacher-profile__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s var(--teacher-ease);
}

.teacher-profile__hero:hover .teacher-profile__portrait img {
    transform: scale(1.03);
}

.teacher-profile__hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.teacher-profile__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(13, 11, 12, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #221d1e !important;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.teacher-profile__back:hover {
    border-color: rgba(199, 0, 18, 0.28);
    color: var(--teacher-red) !important;
    text-decoration: none;
}

.teacher-profile__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--teacher-red);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.teacher-profile__eyebrow::before {
    content: "";
    display: block;
    width: 26px;
    height: 4px;
    background: linear-gradient(90deg, var(--teacher-red) 0%, #eb3847 100%);
    border-radius: 99px;
}

.teacher-profile__name {
    max-width: 850px;
    margin: 0;
    color: var(--teacher-black);
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.teacher-profile__intro {
    max-width: 760px;
    color: #4f4647;
    font-family: "Golos Text", sans-serif;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
}

.teacher-profile__intro p,
.teacher-profile__copy p {
    margin: 0 0 12px;
}

.teacher-profile__intro p:last-child,
.teacher-profile__copy p:last-child {
    margin-bottom: 0;
}

.teacher-profile__main {
    display: grid;
    gap: 16px;
    animation: teacher-profile-rise 0.75s var(--teacher-ease) 0.12s both;
}

.teacher-profile__section {
    position: relative;
    padding: clamp(20px, 2.4vw, 28px);
    overflow: hidden;
    border: 1px solid var(--teacher-border);
    border-radius: 24px;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(199, 0, 18, 0.05) 0%, rgba(199, 0, 18, 0) 50%),
        linear-gradient(180deg, #ffffff 0%, #fbf9f9 100%);
    box-shadow: 0 14px 30px rgba(13, 11, 12, 0.05);
}

.teacher-profile__section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--teacher-red) 0%, rgba(199, 0, 18, 0.25) 100%);
}

.teacher-profile__section h2,
.teacher-profile__question h2,
.teacher-profile__dream h2 {
    margin: 0 0 12px;
    color: var(--teacher-black);
    font-family: "Manrope", sans-serif;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.teacher-profile__copy {
    max-width: 920px;
    color: var(--teacher-gray);
    font-family: "Golos Text", sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.teacher-profile__copy ul,
.teacher-profile__copy ol {
    padding-left: 24px;
    margin: 0 0 12px;
}

.teacher-profile__copy li + li {
    margin-top: 6px;
}

.teacher-profile__value + .teacher-profile__value {
    margin-top: 12px;
}

.teacher-profile__questions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    animation: teacher-profile-rise 0.75s var(--teacher-ease) 0.18s both;
}

.teacher-profile__question {
    position: relative;
    padding: clamp(20px, 2.2vw, 26px);
    border: 1px solid var(--teacher-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(13, 11, 12, 0.05);
    transition: transform 0.25s var(--teacher-ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.teacher-profile__question:hover {
    border-color: rgba(199, 0, 18, 0.22);
    box-shadow: 0 18px 34px rgba(13, 11, 12, 0.08);
    transform: translateY(-2px);
}

.teacher-profile__question h2 {
    color: var(--teacher-red);
    font-size: clamp(18px, 1.8vw, 20px);
}

.teacher-profile__question::before {
    content: "“";
    position: absolute;
    top: 10px;
    right: 18px;
    color: rgba(199, 0, 18, 0.12);
    font-family: "Manrope", sans-serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.teacher-profile__dream {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(199, 0, 18, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(199, 0, 18, 0.14) 0%, rgba(199, 0, 18, 0) 55%),
        linear-gradient(135deg, #fff8f8 0%, #ffffff 48%, #faf6f6 100%);
    box-shadow: 0 18px 36px rgba(199, 0, 18, 0.08);
    animation: teacher-profile-rise 0.8s var(--teacher-ease) 0.24s both;
}

.teacher-profile__dream::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--teacher-red) 0%, #eb3847 100%);
}

.teacher-profile__dream h2 {
    color: var(--teacher-red);
}

.teacher-profile__dream .teacher-profile__copy {
    max-width: 920px;
    color: #3f3839;
    font-size: clamp(16px, 1.5vw, 18px);
}

@keyframes teacher-profile-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .teacher-profile {
        gap: 16px;
    }

    .teacher-profile__hero,
    .teacher-profile__hero--photo {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        border-radius: 24px;
        padding: 20px;
    }

    .teacher-profile__portrait {
        max-width: 280px;
        border-radius: 22px;
    }

    .teacher-profile__name {
        font-size: clamp(28px, 8vw, 36px);
    }

    .teacher-profile__intro {
        font-size: 16px;
    }

    .teacher-profile__section,
    .teacher-profile__question,
    .teacher-profile__dream {
        border-radius: 20px;
        padding: 20px;
    }

    .teacher-profile__questions {
        grid-template-columns: minmax(0, 1fr);
    }

    .teacher-profile__question:hover {
        transform: none;
    }

    .teacher-profile__question::before {
        font-size: 56px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-profile__hero,
    .teacher-profile__portrait,
    .teacher-profile__main,
    .teacher-profile__questions,
    .teacher-profile__dream,
    .teacher-profile__portrait img,
    .teacher-profile__question {
        animation: none;
        transition: none;
    }

    .teacher-profile__hero:hover .teacher-profile__portrait img,
    .teacher-profile__question:hover {
        transform: none;
    }
}

/* End */
/* /local/templates/tmpl2025/components/bitrix/news.detail/teacher-detail2025/style.css?17906609299810 */
