/* Учебная площадка. Только #education-location. */
#education-location {
    scroll-margin-top: 112px;
}

.edu-loc,
.edu-loc *,
.edu-loc *::before,
.edu-loc *::after {
    box-sizing: border-box;
}

.edu-loc {
    margin: 0;
    padding: 56px 0;
    background: #ffffff;
    color: #292929;
    font-family: inherit;
}

.edu-loc__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.edu-loc__eyebrow {
    margin: 0;
    color: #856438;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.edu-loc__title {
    margin: 12px 0 0;
    max-width: 16em;
    color: #292929;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}

.edu-loc__lead {
    margin: 14px 0 0;
    max-width: 42rem;
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

.edu-loc__layout {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.edu-loc__card {
    min-width: 0;
    padding: 24px;
    border-radius: 24px;
    background: #f5f1ea;
}

.edu-loc__name {
    margin: 0;
    color: #292929;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.edu-loc__facts {
    display: grid;
    gap: 16px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.edu-loc__fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.edu-loc__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #856438;
}

.edu-loc__icon svg,
.edu-loc__contact-title svg {
    width: 22px;
    height: 22px;
}

.edu-loc__label {
    display: block;
    color: #292929;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.edu-loc__value {
    display: block;
    margin-top: 4px;
    color: #555555;
    font-size: 16px;
    line-height: 1.45;
}

.edu-loc__contact {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.edu-loc__contact-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #292929;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.edu-loc__contact-title svg {
    flex: 0 0 auto;
    color: #856438;
}

.edu-loc__primary,
.edu-loc__secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.edu-loc__primary {
    border: 0;
    background: #856438;
    color: #ffffff;
}

.edu-loc__primary:hover {
    background: #6d502c;
    color: #ffffff;
}

.edu-loc__secondary {
    border: 1px solid #856438;
    background: transparent;
    color: #856438;
}

.edu-loc__secondary:hover {
    background: #ffffff;
    color: #6d502c;
}

.edu-loc__map {
    position: relative;
    min-width: 0;
    height: 300px;
    overflow: hidden;
    border: 1px solid #e6dfd4;
    border-radius: 16px;
    background: #faf8f3;
}

.edu-loc__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.edu-loc__map.is-live .edu-loc__frame {
    pointer-events: auto;
}

.edu-loc__map-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    min-height: 44px;
    max-width: calc(100% - 32px);
    padding: 0 16px;
    border: 1px solid #e6dfd4;
    border-radius: 12px;
    background: #ffffff;
    color: #292929;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
}

.edu-loc__map-lock[hidden] {
    display: none;
}

.edu-loc__map-fallback {
    margin: 0;
    padding: 24px;
    color: #555555;
    font-size: 16px;
    line-height: 1.5;
}

.edu-loc__photos {
    display: grid;
    gap: 16px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.edu-loc__shot {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f1ea;
    cursor: pointer;
}

.edu-loc__shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.edu-loc__caption {
    margin: 8px 0 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.4;
}

.edu-loc__note {
    margin: 20px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

.edu-loc__primary:focus-visible,
.edu-loc__secondary:focus-visible,
.edu-loc__map-lock:focus-visible,
.edu-loc__shot:focus-visible,
.edu-loc__close:focus-visible,
.edu-loc__nav:focus-visible {
    outline: 2px solid #292929;
    outline-offset: 3px;
}

.edu-loc__dialog[hidden] {
    display: none;
}

.edu-loc__dialog {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 64px 16px 20px;
    background: #292929;
    color: #ffffff;
}

.edu-loc__close,
.edu-loc__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.edu-loc__close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.edu-loc__close svg,
.edu-loc__nav svg {
    width: 22px;
    height: 22px;
}

.edu-loc__close:focus-visible,
.edu-loc__nav:focus-visible {
    outline-color: #ffffff;
}

.edu-loc__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(960px, 100%);
    max-height: calc(100vh - 180px);
}

.edu-loc__view {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
}

.edu-loc__dialog-caption,
.edu-loc__count {
    margin: 0;
    color: #ffffff;
    text-align: center;
}

.edu-loc__dialog-caption {
    max-width: 40rem;
    font-size: 16px;
    line-height: 1.45;
}

.edu-loc__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.edu-loc__count {
    min-width: 5.5em;
    font-size: 14px;
}

.edu-loc__nav[hidden] {
    display: none;
}

@media (min-width: 768px) {
    .edu-loc {
        padding: 72px 0 80px;
    }

    .edu-loc__inner {
        width: min(1180px, calc(100% - 48px));
    }

    .edu-loc__title {
        font-size: 36px;
    }

    .edu-loc__lead {
        font-size: 17px;
    }

    .edu-loc__card {
        padding: 32px;
    }

    .edu-loc__name {
        font-size: 28px;
    }

    .edu-loc__map {
        height: 380px;
    }

    .edu-loc__primary,
    .edu-loc__secondary {
        min-height: 56px;
    }

    .edu-loc__photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .edu-loc__caption,
    .edu-loc__note {
        font-size: 16px;
    }
}

@media (min-width: 1100px) {
    .edu-loc__title {
        font-size: 40px;
    }

    .edu-loc__layout {
        grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
        gap: 32px;
        align-items: start;
    }

    .edu-loc__map {
        height: 480px;
    }

    .edu-loc__photos--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .edu-loc {
        padding: 88px 0 96px;
    }

    .edu-loc__title {
        font-size: 44px;
    }

    .edu-loc__lead {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .edu-loc,
    .edu-loc * {
        scroll-behavior: auto;
    }
}
