body:has(.contacts-page),
body:has(.contacts-page) .site__main,
body:has(.contacts-page) .crumbs {
    background: #fff;
}

.contacts-page {
    color: #515151;
    font-family: Roboto, sans-serif;
    font-weight: 300;
}

.contacts-intro h1 {
    margin: 0 0 24px;
    color: #4c4c4c;
    font-family: var(--font-head);
    font-size: 45px;
    font-weight: 700;
    line-height: 1.15;
}

.contacts-intro__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.contacts-intro__row p {
    max-width: 740px;
    margin: 0;
    font-size: 17px;
    line-height: 20px;
}

.contacts-intro__count {
    flex-shrink: 0;
    padding-bottom: 2px;
    color: #91b975;
    font-size: 21px;
    line-height: 25px;
}

.contacts-stores {
    padding: 50px 0 0;
}

.contacts-stores__modes {
    display: none;
}

.contacts-stores__legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.contacts-stores .contacts-stores__layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
}

.contacts-stores .contacts-stores__list {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #eee;
    list-style: none;
}

.contacts-stores__office + .contacts-stores__office {
    border-top: 1px solid #e7e7e7;
}

.contacts-stores__office.is-active {
    background: #f9f9f9;
}

.contacts-stores .home-stores__item {
    display: flex;
    width: 100%;
    min-height: 98px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px 28px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.contacts-stores .home-stores__item--active {
    min-height: 0;
    padding-bottom: 10px;
}

.contacts-stores .home-stores__address {
    color: #91b975;
    font-size: 21px;
    font-weight: 300;
    line-height: 25px;
    white-space: pre-line;
}

.contacts-stores .home-stores__metro {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 12px;
    line-height: 16px;
}

.contacts-stores .home-stores__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--metro, #91b975);
}

.contacts-stores__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 18px 16px;
}

.contacts-stores__actions button,
.contacts-stores__actions a {
    display: inline-flex;
    min-width: 80px;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 18px;
    background: white;
    color: #aaa;
    font: 300 12px/18px Roboto, sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.contacts-stores__actions button[aria-pressed="true"],
.contacts-stores__actions button:hover,
.contacts-stores__actions a:hover {
    border-color: #e4bd62;
    color: #c8a856;
}

.contacts-stores__display {
    position: relative;
    min-width: 0;
    min-height: 588px;
    background: #f5f5f5;
}

.contacts-stores .contacts-stores__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 588px;
}

.contacts-stores__photo {
    position: absolute;
    inset: 0;
    margin: 0;
}

.contacts-stores__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacts-stores__photo figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 14px 20px;
    background: rgb(255 255 255 / 92%);
    font-size: 15px;
    line-height: 21px;
}

.contacts-stores [hidden] {
    display: none !important;
}

.contacts-stores :is(button, a, input):focus-visible {
    outline: 2px solid #82be48;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .contacts-intro h1 {
        font-size: 36px;
    }

    .contacts-intro__row {
        display: block;
    }

    .contacts-intro__row p {
        max-width: 630px;
        font-size: 16px;
        line-height: 21px;
    }

    .contacts-intro__count {
        display: none;
    }

    .contacts-stores .contacts-stores__layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .contacts-stores .home-stores__item {
        padding-inline: 22px;
    }

    .contacts-stores .home-stores__address {
        font-size: 19px;
        line-height: 24px;
    }

    .contacts-stores__actions {
        gap: 8px;
        padding-inline: 12px;
    }
}

@media (max-width: 650px) {
    .contacts-intro h1 {
        margin-bottom: 28px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
        font-size: 24px;
        line-height: 29px;
    }

    .contacts-intro__row p {
        max-width: none;
        font-size: 17px;
        line-height: 20px;
    }

    .contacts-stores {
        padding-top: 26px;
    }

    .contacts-stores__modes {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin: 0 0 26px;
        padding: 0;
        border: 0;
    }

    .contacts-stores__modes label {
        display: flex;
        align-items: center;
        gap: 18px;
        font-size: 14px;
        line-height: 20px;
        cursor: pointer;
    }

    .contacts-stores__modes input {
        width: 20px;
        height: 20px;
        margin: 0;
        appearance: none;
        border: 1px solid #ccc;
        border-radius: 50%;
        background: #fff;
    }

    .contacts-stores__modes input:checked {
        border: 5px solid white;
        background: #91bc62;
        outline: 1px solid #ddd;
    }

    .contacts-stores .contacts-stores__layout {
        display: block;
    }

    .contacts-stores .contacts-stores__list {
        margin-inline: -16px;
        border-right: 0;
        border-left: 0;
    }

    .contacts-stores .home-stores__item {
        min-height: 84px;
        gap: 9px;
        padding: 20px 34px;
    }

    .contacts-stores .home-stores__address {
        font-size: 18px;
        line-height: 21px;
    }

    .contacts-stores .home-stores__metro {
        font-size: 12px;
        line-height: 17px;
    }

    .contacts-stores__actions {
        justify-content: center;
        padding-inline: 24px;
    }

    .contacts-stores__display {
        min-height: 430px;
        margin-inline: -16px;
    }

    .contacts-stores .contacts-stores__map {
        min-height: 430px;
    }
}
