/* ==========================================================================
   design-v2 / production.css
   Дополнения к макетным стилям (styles.css, profile.css, pages.css) для работы
   нового дизайна на реальных данных сайта: ссылки-фильтры, модалка локаций,
   пагинация, отзывы, карты, формы. Подключается последним.
   ========================================================================== */

.u-hidden-schema,
.loc-data {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- шапка ---------- */
.desktop-nav a,
.mobile-menu a,
.quick-filter,
.site-footer nav a {
    text-decoration: none;
}

.quick-filter {
    display: inline-flex;
    align-items: center;
}

.utility-bar__location strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions .button {
    white-space: nowrap;
}

/* ---------- хлебные крошки / заголовки ---------- */
.page-breadcrumbs {
    flex-wrap: wrap;
    row-gap: 2px;
}

.page-breadcrumbs span {
    color: #c3bcc6;
}

/* ---------- hero: SEO-текст из базы ---------- */
.hero__seo-copy p {
    margin: 0 0 8px;
}

.hero__seo-copy p:last-child {
    margin-bottom: 0;
}

.hero__seo-copy ul,
.hero__seo-copy ol {
    margin: 0 0 8px;
    padding-left: 18px;
}

.hero__seo-copy.is-collapsible {
    position: relative;
    max-height: 132px;
    overflow: hidden;
}

.hero__seo-copy.is-collapsible::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.hero__seo-copy.is-expanded {
    max-height: none;
}

.hero__seo-copy.is-expanded::after {
    display: none;
}

.hero__seo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    color: #c52d6b;
    border: 0;
    background: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.reference-top .hero h1 {
    font-size: clamp(24px, 2.2vw, 33px);
    line-height: 1.08;
}

/* ---------- верхний блок: панорама ----------
   Блок в одну колонку на любой ширине. Фон всего блока — одна панорама-фотография набережной
   Петербурга с разведённым мостом на рассвете: сверху небо (на нём метка каталога, заголовок и три цифры,
   тёмным шрифтом, без подложек), ниже — полоса города, которую ничего не перекрывает,
   ещё ниже вода, которая под лентой анкет уходит в белый. Под панорамой — лента
   «Анкеты рядом» во всю ширину и лид-текст с кнопкой «Читать полностью».
   Картинка привязана к нижнему краю шапки (.hero): линия воды всегда чуть выше него,
   мост стоит на --pano-x ширины блока. Разметка — tovars-v2.php (ветка $v2HeroSpb).
   Прошлые варианты (фото-постер слева, фото фоном, ночной) — в бэкапах
   pm-backup-hero-pano5-20261116 (пастельная панорама), pm-backup-hero-pano4-20261116,
   pm-backup-hero-poster-20261116, pm-backup-hero-night-20261116. */
.reference-top--pano {
    --pano-w: max(1977px, 103vw);     /* ширина панорамы на экране */
    --pano-x: 62%;                    /* где в блоке стоит мост */
    --pano-shift: -61.51%, -92.58%;    /* точка картинки «мост / чуть ниже линии воды» */
    --pano-gap: calc(var(--pano-w) * .079 + 14px);    /* место под полосу города под текстом */
    display: block;
    padding: 0;
    border-radius: 24px;
    /* под картинкой — тот же тон неба: пока она грузится, блок не белый */
    background: linear-gradient(to bottom, #bfd2e8, #fff 240px);
    isolation: isolate;
}

.reference-top--pano .hero {
    position: relative;
    order: 0;
    display: block;
    min-height: 0;
    padding: 26px 28px var(--pano-gap);
    overflow: visible;
    border: 0;
    background: none;
}

.reference-top--pano .hero__pano img {
    position: absolute;
    z-index: -1;
    top: 100%;
    left: var(--pano-x);
    display: block;
    width: var(--pano-w);
    max-width: none;
    height: auto;
    transform: translate(var(--pano-shift));
    pointer-events: none;
    user-select: none;
}

.reference-top--pano .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "eyebrow meta"
        "title   meta";
    align-items: start;
    gap: 0 32px;
    height: auto;
}

.reference-top--pano .hero .eyebrow {
    grid-area: eyebrow;
    justify-self: start;
    margin: 0;
}

.reference-top--pano .hero h1 {
    grid-area: title;
    max-width: 50vw;
    margin: 12px 0 0;
    color: #1d2433;
    font-size: clamp(25px, 2.15vw, 38px);
    line-height: 1.1;
}

/* слова через дефис («Санкт-Петербурга») не рвём по дефису */
.reference-top--pano .hero h1 .nb {
    white-space: nowrap;
}

.design-v2 .reference-top--pano .hero__meta {
    grid-area: meta;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.design-v2 .reference-top--pano .hero__meta div {
    min-width: 104px;
    padding: 11px 16px 10px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 14px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 6px 18px rgba(120, 82, 128, .08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.reference-top--pano .hero__meta strong {
    color: #1d2433;
    font-size: 18px;
    line-height: 1.15;
}

.reference-top--pano .hero__meta span {
    color: #6d6475;
    font-size: 9px;
}

/* --- лента анкет --- */
.reference-top--pano .profile-slider {
    order: 0;
    display: block;
    min-height: 0;
    padding: 0 28px;
    background: none;
}

.reference-top--pano .profile-slider__head {
    margin-bottom: 12px;
}

.reference-top--pano .profile-slider__viewport {
    grid-auto-columns: calc((100% - 60px) / 7);
    gap: 10px;
    height: auto;
    min-height: 0;
}

.reference-top--pano .slider-card {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(32, 42, 61, .12);
}

.reference-top--pano .slider-card span {
    padding: 0;
}

.reference-top--pano .slider-card strong {
    font-size: 12px;
}

.reference-top--pano .slider-card small {
    font-size: 9px;
}

/* --- лид --- */
.reference-top--pano .hero__lead {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px 28px;
    margin: 16px 28px 0;
    padding: 14px 0 20px;
    border-top: 1px solid #efecf2;
}

.reference-top--pano .profile-slider:last-child {
    padding-bottom: 20px;
}

.reference-top--pano .hero__seo-copy {
    flex: 1 1 0;
    min-width: 0;
    max-width: 1100px;
    color: #6a6370;
    font-size: 12px;
    line-height: 1.62;
}

/* свёрнутый лид — три строки (порог для кнопки — в site.js) */
.reference-top--pano .hero__seo-copy.is-collapsible {
    max-height: 58px;
}

.reference-top--pano .hero__seo-copy.is-collapsible::after {
    height: 30px;
}

.reference-top--pano .hero__seo-copy.is-expanded {
    max-height: none;
}

.reference-top--pano .hero__seo-toggle {
    flex: none;
    margin: 2px 0 0 auto;
    padding: 9px 15px;
    color: #c52d6b;
    border: 1px solid #f1cfdf;
    border-radius: 999px;
    background: #fff;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.reference-top--pano .hero__seo-toggle:hover {
    color: #fff;
    border-color: #d73278;
    background: #d73278;
}

@media (min-width: 1500px) {
    .reference-top--pano .profile-slider__viewport {
        grid-auto-columns: calc((100% - 70px) / 8);
    }
}

@media (min-width: 1800px) {
    .reference-top--pano .profile-slider__viewport {
        grid-auto-columns: calc((100% - 80px) / 9);
    }
}

/* очень широкие мониторы: карточек больше, чтобы блок не рос в высоту */
@media (min-width: 2200px) {
    .reference-top--pano .profile-slider__viewport {
        grid-auto-columns: calc((100% - 100px) / 11);
    }
}

@media (max-width: 1499px) {
    .reference-top--pano {
        --pano-w: 1750px;
    }
}

@media (max-width: 1149px) {
    .reference-top--pano {
        --pano-w: 1500px;
        /* здесь цифры стоят над мостом: текст целиком выше разведённых крыльев */
        --pano-gap: calc(var(--pano-w) * .0988 + 12px);
    }

    .reference-top--pano .hero {
        padding: 22px 22px var(--pano-gap);
    }

    .reference-top--pano .hero h1 {
        max-width: 56vw;
        font-size: 24px;
    }

    .design-v2 .reference-top--pano .hero__meta div {
        min-width: 0;
        padding: 10px 12px 9px;
    }

    .reference-top--pano .profile-slider {
        padding: 0 22px;
    }

    .reference-top--pano .profile-slider__viewport {
        grid-auto-columns: calc((100% - 40px) / 5);
    }

    .reference-top--pano .hero__lead {
        flex-direction: column;
        margin: 16px 22px 0;
    }

    .reference-top--pano .hero__seo-copy {
        flex: none;
        width: 100%;
    }

    .reference-top--pano .hero__seo-toggle {
        margin: 0;
    }
}

/* планшеты и телефоны: цифры — под заголовком, текст целиком выше моста */
@media (max-width: 900px) {
    .reference-top--pano {
        --pano-w: 1352px;
        --pano-x: 64%;
    }

    .reference-top--pano .hero__content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "eyebrow"
            "title"
            "meta";
    }

    .reference-top--pano .hero h1 {
        max-width: none;
        font-size: 27px;
    }

    .design-v2 .reference-top--pano .hero__meta {
        justify-self: start;
        margin-top: 14px;
    }

    .design-v2 .reference-top.reference-top--pano .profile-slider__viewport {
        grid-auto-columns: calc((100% - 30px) / 4);
        height: auto;
    }

    .design-v2 .reference-top.reference-top--pano .slider-card {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .reference-top--pano {
        --pano-w: max(430px, 112vw);
        --pano-x: 50%;
        --pano-shift: -50%, -91.56%;
        --pano-gap: calc(var(--pano-w) * .26 + 12px);
        border-radius: 22px;
    }

    .design-v2 .reference-top.reference-top--pano .hero {
        padding: 18px 16px var(--pano-gap);
    }

    .design-v2 .reference-top.reference-top--pano .hero h1 {
        margin-top: 10px;
        font-size: 25px;
        line-height: 1.12;
    }

    .design-v2 .reference-top--pano .hero__meta {
        justify-self: stretch;
    }

    .design-v2 .reference-top--pano .hero__meta div {
        flex: 1 1 auto;
        padding: 9px 8px 8px;
    }

    .reference-top--pano .profile-slider {
        padding: 0 16px;
    }

    .design-v2 .reference-top.reference-top--pano .profile-slider__viewport {
        grid-auto-columns: calc((100% - 20px) / 2.35);
    }

    .reference-top--pano .hero__lead {
        margin: 14px 16px 0;
        padding: 12px 0 16px;
    }
}

/* страницы из кэша со старой разметкой «постера»: фото без своих стилей не показываем */
.hero__photo {
    display: none;
}

/* ---------- слайдер «в ленте» ---------- */
.profile-slider__viewport:empty {
    display: none;
}

/* ---------- search-rail / view-switch ---------- */
.search-rail > button strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 105px;
    min-height: 34px;
    color: #747d8d;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.view-switch a:hover {
    color: #17334e;
    background: rgba(23, 51, 78, .08);
}

/* ---------- модалка фильтров: чипы = SEO-ссылки ---------- */
.filter-chip-list a.filter-chip {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ---------- карточка анкеты (реальные данные) ---------- */
.profile-card__photo {
    background: #2b2430;
}

.profile-card__link {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    border-radius: inherit;
}

.profile-card .card-badge {
    z-index: 3;
}

.profile-card .favorite-button {
    z-index: 5;
    text-decoration: none;
    cursor: pointer;
}

.profile-card .favorite-button.is-active {
    color: #d82d76;
}

.profile-card__title h3 a {
    color: inherit;
    text-decoration: none;
}

.profile-card__photo .animated-video-wrapper,
.profile-card__photo .animated-photo-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.profile-card__photo video,
.profile-card__photo img.animated-photo-video-placeholder,
.profile-card__photo img.profile-card-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-card__photo .grok-logo-overlay {
    display: none;
}

.profile-card__footer .contact-button {
    white-space: nowrap;
}

.profile-grid.is-loading {
    opacity: .75;
}

.load-more[disabled] {
    opacity: .6;
    cursor: default;
}

/* ---------- пагинация (SEO-страницы ?page=N) ---------- */
.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin: 18px 0 4px;
}

.pagination-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    color: #4d4452;
    border: 1px solid #e7e2e8;
    border-radius: 11px;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease;
}

.pagination-nav-link:hover {
    color: #bd2864;
    border-color: #eabbd0;
}

.pagination-nav-state {
    color: #8c8490;
    font-size: 11px;
    font-weight: 700;
}

/* ---------- низ страницы: блок «О каталоге» ----------
   Карточка в том же стиле, что и блок «Выбирайте по району» над ней: слева метка, заголовок
   и цветная черта, справа текст в две колонки; вводная фраза абзаца — подзаголовком. */
.content-guide {
    position: relative;
    grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    margin-top: 14px;
    padding: 48px 55px 50px;
    overflow: hidden;
    border: 1px solid #e7e9ee;
    border-radius: 30px;
    background:
        radial-gradient(circle at 0 100%, rgba(228, 93, 152, .09), transparent 38%),
        radial-gradient(circle at 100% 0, rgba(116, 88, 220, .08), transparent 42%),
        rgba(255, 255, 255, .94);
    box-shadow: 0 20px 60px rgba(62, 49, 107, .13);
}

.content-guide h2 {
    margin: 12px 0 0;
    color: #1d2433;
    font-size: clamp(26px, 1.85vw, 34px);
    line-height: 1.16;
    letter-spacing: -.01em;
}

.content-guide h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 24px;
    border-radius: 3px;
    background: linear-gradient(90deg, #e45d98, #7458dc);
}

.content-guide__text {
    display: block;
    /* первая строка текста — на уровне первой строки заголовка, а не метки над ним */
    padding-top: 33px;
    column-count: 2;
    column-gap: 64px;
    column-rule: 1px solid #ece9f1;
}

.content-guide__text p {
    margin: 0 0 20px;
    color: #5d6676;
    font-size: 13.5px;
    line-height: 1.75;
}

/* абзацы не рвём между колонками; единственный длинный абзац — наоборот, течёт в обе */
.content-guide__text p:not(:only-child) {
    break-inside: avoid;
}

.content-guide__text p:last-child {
    margin-bottom: 0;
}

.content-guide__text strong {
    color: #1d2433;
}

.content-guide__text .content-guide__lead {
    display: block;
    margin-bottom: 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.content-guide__text h3 {
    margin: 0 0 9px;
    color: #1d2433;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    break-after: avoid;
}

.content-guide__text ul,
.content-guide__text ol {
    margin: 0 0 20px;
    padding-left: 18px;
    color: #5d6676;
    font-size: 13.5px;
    line-height: 1.75;
}

.content-guide__text a {
    color: #c52d6b;
}

/* ---------- блок «Выбирайте по району» ---------- */
.location-links a {
    text-decoration: none;
}

.map-card__caption {
    text-decoration: none;
}

/* ---------- модалка локаций (Города / Районы / Метро / Пригороды) ----------
   Одно окно с вкладками: шапка (иконка, заголовок, подпись), переключатель типа,
   поиск и алфавитный список (буква слева, пункты в ряд). На телефоне — «шторка» снизу.
   Базовое позиционирование и появление — в pages.css. */
.design-v2 .location-dialog-overlay {
    position: fixed;
    z-index: 110;
    inset: 0;
    background: rgba(29, 36, 51, .46);
    backdrop-filter: blur(7px);
}

.design-v2 .location-dialog {
    top: clamp(20px, 8vh, 88px);
    display: flex;
    flex-direction: column;
    width: min(860px, calc(100% - 32px));
    max-height: calc(100vh - 2 * clamp(20px, 8vh, 88px));
    padding: 0;
    overflow: hidden;
    color: #1d2433;
    border-radius: 22px;
    outline: 0;
    background:
        radial-gradient(circle at 92% 0, rgba(229, 66, 130, .12), transparent 320px),
        linear-gradient(180deg, #faf7fa 0, #fff 200px) #fff;
    box-shadow: 0 32px 90px rgba(29, 36, 51, .28), 0 0 0 1px rgba(29, 36, 51, .04);
    transform: translate(-50%, 14px) scale(.985);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.design-v2 .location-dialog.is-open {
    transform: translate(-50%, 0) scale(1);
}

/* шапка */
.design-v2 .location-dialog__head {
    display: flex;
    flex: none;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 16px;
}

.design-v2 .location-dialog__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #d73278;
    border: 1px solid rgba(215, 50, 120, .12);
    border-radius: 14px;
    background: linear-gradient(135deg, #fde8f0, #f3ecfd);
}

.design-v2 .location-dialog__icon::before {
    content: "";
    width: 23px;
    height: 23px;
    background: currentColor;
    -webkit-mask: var(--loc-icon) center / contain no-repeat;
    mask: var(--loc-icon) center / contain no-repeat;
}

.design-v2 .location-dialog {
    --loc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-10.5a6.5 6.5 0 0 1 13 0C18.5 15.4 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='10.5' r='2.3'/%3E%3C/svg%3E");
}

.design-v2 .location-dialog[data-location-type="city"] {
    --loc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 20.5h19M4.5 20.5V7l6.5-2.5v16M11 10h6.5a1.5 1.5 0 0 1 1.5 1.5v9M7.7 10.2v.1M7.7 14.2v.1M15 14.2v.1'/%3E%3C/svg%3E");
}

.design-v2 .location-dialog[data-location-type="metro"] {
    --loc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18.5h2.2M18.8 18.5H21M4.8 18.5 8.3 5.5 12 14l3.7-8.5 3.5 13'/%3E%3C/svg%3E");
}

.design-v2 .location-dialog[data-location-type="prigorod"] {
    --loc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11.5 12 4.5l8.5 7M5.5 10v9.5h13V10M10 19.5v-5h4v5'/%3E%3C/svg%3E");
}

.design-v2 .location-dialog__titles {
    flex: 1 1 auto;
    min-width: 0;
}

.design-v2 .location-dialog__titles h2 {
    margin: 0;
    color: #1d2433;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.design-v2 .location-dialog__titles p {
    margin: 4px 0 0;
    overflow: hidden;
    color: #697386;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.design-v2 .location-dialog__close {
    display: grid;
    flex: none;
    place-items: center;
    align-self: flex-start;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #786f7c;
    border: 1px solid #e6e0e8;
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.design-v2 .location-dialog__close:hover {
    color: #bd2864;
    border-color: #eabbd0;
    background: #fff1f6;
}

.design-v2 .location-dialog__close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* вкладки: Города / Районы / Метро / Пригороды */
.design-v2 .location-dialog > .location-dialog__tabs {
    display: grid;
    flex: none;
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 4px;
    margin: 0 24px;
    padding: 4px;
    border: 1px solid #e2e5ec;
    border-radius: 14px;
    background: rgba(255, 255, 255, .84);
}

.design-v2 .location-dialog > .location-dialog__tabs[hidden],
.design-v2 .location-dialog__tabs button[hidden] {
    display: none;
}

.design-v2 .location-dialog__tabs button {
    min-height: 38px;
    padding: 0 8px;
    overflow: hidden;
    color: #5b6475;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: 750 13.5px/1.2 Manrope, Arial, sans-serif;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.design-v2 .location-dialog__tabs button:hover {
    color: #bd2864;
    background: #fff1f6;
}

.design-v2 .location-dialog__tabs button.is-active {
    color: #fff;
    background: linear-gradient(115deg, #e54282, #d82d76);
    box-shadow: 0 5px 13px rgba(213, 45, 115, .2);
}

/* поиск */
.design-v2 .location-dialog__search {
    position: relative;
    display: block;
    flex: none;
    margin: 12px 24px 0;
}

.design-v2 .location-dialog__search::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    width: 17px;
    height: 17px;
    background: #9aa2b1;
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.design-v2 .location-dialog input[type="search"] {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0 14px;
    color: #1d2433;
    border: 1px solid #e3e0e8;
    border-radius: 13px;
    outline: 0;
    background: #fff;
    font: 600 14px/1.2 Manrope, Arial, sans-serif;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.design-v2 .location-dialog__search input[type="search"] {
    padding-left: 42px;
}

.design-v2 .location-dialog input[type="search"]::placeholder {
    color: #9aa2b1;
    font-weight: 500;
}

.design-v2 .location-dialog input[type="search"]:focus {
    border-color: #e5a4bf;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(216, 50, 118, .1);
}

/* список */
.design-v2 .location-dialog > .location-dialog__body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 16px;
    padding: 18px 14px 24px;
    overflow-y: auto;
    border-top: 1px solid #efebf1;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #dcd8e2 transparent;
}

.design-v2 .location-dialog__body .loc-groups {
    display: block;
}

/* группа: буква в левом поле, пункты — сеткой по алфавиту слева направо */
.design-v2 .location-dialog__body .loc-group {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid #f3eff4;
}

.design-v2 .location-dialog__body .loc-group.is-first {
    padding-top: 0;
    border-top: 0;
}

.design-v2 .location-dialog__body .loc-letter {
    margin: 0;
    padding: 0 0 0 10px;
    color: #d73278;
    font: 500 18px/34px Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    text-transform: none;
}

.design-v2 .location-dialog__body .loc-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px 8px;
}

.design-v2 .location-dialog__body .loc-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 6px 10px;
    color: #2f3848;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .16s ease, background .16s ease;
}

.design-v2 .location-dialog__body .loc-item:hover {
    color: #bd2864;
    background: #fff1f6;
}

.design-v2 .location-dialog__body .loc-item:focus-visible,
.design-v2 .location-dialog__tabs button:focus-visible,
.design-v2 .location-dialog__close:focus-visible {
    outline: 2px solid #e5a4bf;
    outline-offset: 1px;
}

/* метро: точка цвета линии (для пересадочных станций — два цвета) */
.design-v2 .location-dialog__body .loc-item[data-line]::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--line-a, #c3c8d2) 50%, var(--line-b, var(--line-a, #c3c8d2)) 50%);
}

/* текущая локация */
.design-v2 .location-dialog__body .loc-item.is-current {
    color: #bd2864;
    background: #fff1f6;
    font-weight: 750;
}

.design-v2 .location-dialog__body .loc-item.is-current::after {
    content: "";
    flex: none;
    width: 15px;
    height: 15px;
    margin-left: auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.design-v2 .location-dialog__empty {
    padding: 34px 12px;
    color: #8a92a1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

/* страницы из 5-минутного кэша прокси со старой разметкой окна (заголовок и поле без обёрток) */
.design-v2 .location-dialog > .page-kicker {
    margin: 22px 24px 0;
}

.design-v2 .location-dialog > h2 {
    margin: 6px 24px 0;
}

.design-v2 .location-dialog > input[type="search"] {
    flex: none;
    width: auto;
    margin: 14px 24px 0;
}

@media (max-width: 820px) {
    /* 16px, чтобы iOS не зумил поле */
    .design-v2 .location-dialog input[type="search"] {
        font-size: 16px;
    }
}

@media (max-width: 720px) {
    .design-v2 .location-dialog__body .loc-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* телефон: шторка снизу на всю ширину */
@media (max-width: 560px) {
    .design-v2 .location-dialog {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: min(84vh, 720px);
        max-height: none;
        border-radius: 22px 22px 0 0;
        transform: translateY(28px);
    }

    .design-v2 .location-dialog.is-open {
        transform: translateY(0);
    }

    .design-v2 .location-dialog::before {
        content: "";
        flex: none;
        align-self: center;
        width: 38px;
        height: 4px;
        margin-top: 8px;
        border-radius: 4px;
        background: #ddd8e2;
    }

    .design-v2 .location-dialog__head {
        gap: 12px;
        padding: 12px 16px 14px;
    }

    .design-v2 .location-dialog__icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .design-v2 .location-dialog__titles h2 {
        font-size: 23px;
    }

    .design-v2 .location-dialog > .location-dialog__tabs {
        margin: 0 16px;
    }

    .design-v2 .location-dialog__tabs button {
        min-height: 40px;
        padding: 0 4px;
        font-size: 13px;
    }

    .design-v2 .location-dialog__search {
        margin: 10px 16px 0;
    }

    .design-v2 .location-dialog > .location-dialog__body {
        margin-top: 14px;
        padding: 14px 6px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .design-v2 .location-dialog__body .loc-group {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 6px 0;
    }

    .design-v2 .location-dialog__body .loc-items {
        gap: 1px 4px;
    }

    .design-v2 .location-dialog__body .loc-item {
        gap: 7px;
        min-height: 40px;
        padding: 7px 6px;
    }

    .design-v2 .location-dialog__body .loc-letter {
        padding-left: 10px;
        line-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .design-v2 .location-dialog {
        transition: none;
    }
}

.location-dialog-overlay[hidden],
.filter-overlay[hidden],
.phone-modal-overlay[hidden],
.profile-overlay[hidden],
.mobile-menu[hidden],
.profile-lightbox[hidden],
.map-popup[hidden] {
    display: none !important;
}

/* ---------- модалка телефона ---------- */
.phone-modal__messengers a,
.phone-modal__messengers button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    color: #504855;
    border: 1px solid #e2dce4;
    border-radius: 11px;
    background: rgba(255, 255, 255, .72);
    font-size: 9px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.phone-modal__actions a,
.phone-modal__actions button {
    text-decoration: none;
}

.phone-modal__number a.is-loading {
    color: #a098a4;
}

.phone-modal__photo img[src=""] {
    visibility: hidden;
}

/* ---------- popover «избранное после регистрации» ---------- */
.favorite-signup-popover {
    position: absolute;
    z-index: 99999;
    width: min(320px, calc(100vw - 24px));
    padding: 16px;
    color: #302a34;
    border: 1px solid #eadfe6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(45, 38, 52, .18);
}

.favorite-signup-popover__close {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #8c8490;
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.favorite-signup-popover__title {
    margin-bottom: 8px;
    padding-right: 24px;
    color: #c52d6b;
    font-weight: 800;
}

.favorite-signup-popover__text {
    margin-bottom: 12px;
    color: #6b636f;
    font-size: 13px;
    line-height: 1.45;
}

.favorite-signup-popover__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.favorite-signup-popover__primary,
.favorite-signup-popover__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.favorite-signup-popover__primary {
    color: #fff;
    background: #c65380;
}

.favorite-signup-popover__secondary {
    color: #bd2864;
    border: 1px solid #eabbd0;
    background: #fff1f6;
}

/* ---------- страница анкеты ---------- */
.profile-breadcrumbs {
    flex-wrap: wrap;
}

.profile-breadcrumbs a,
.profile-anchor-nav a {
    text-decoration: none;
}

.profile-overview__details a,
.profile-about a {
    color: inherit;
    text-decoration: none;
}

.profile-overview__details a:hover {
    color: #bd2864;
}

.profile-messengers a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.profile-gallery-grid video,
.profile-carousel__item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1d1820;
}

.profile-gallery-grid .animated-video-wrapper {
    width: 100%;
    height: 100%;
}

.profile-gallery-grid .animated-video-wrapper video,
.profile-gallery-grid .animated-video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-gallery-grid button .profile-gallery-video-badge,
.profile-carousel__item .profile-gallery-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    color: #fff;
    border-radius: 999px;
    background: rgba(29, 24, 32, .72);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-gallery-grid__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(29, 24, 32, .55);
    font-size: 22px;
    font-weight: 800;
}

.profile-gallery-grid button {
    position: relative;
}

.profile-lightbox video {
    max-width: min(100%, 1000px);
    max-height: calc(100vh - 56px);
    border-radius: 13px;
}

.profile-lightbox__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    font-size: 22px;
    cursor: pointer;
    transform: translateY(-50%);
}

/* специфичность выше, чем у .profile-lightbox button (top: 17px) */
.profile-lightbox .profile-lightbox__nav { top: 50%; border-radius: 50%; }
.profile-lightbox .profile-lightbox__nav--prev { left: 17px; right: auto; }
.profile-lightbox .profile-lightbox__nav--next { right: 17px; }

.profile-about p {
    white-space: pre-line;
}

.profile-rates article.is-muted b {
    color: #b0a8b3;
}

.profile-services-grid {
    align-items: start;
}

.profile-services-grid li a {
    color: inherit;
    text-decoration: none;
}

.profile-services-grid li a:hover {
    color: #bd2864;
}

.profile-map-canvas {
    height: 360px;
}

.profile-map-canvas #map-location {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.profile-map-canvas small {
    z-index: 2;
}

.profile-map-canvas .profile-map-pin,
.profile-map-canvas .profile-map-road {
    display: none;
}

/* отзывы (реальный функционал кабинета) */
.profile-reviews .profile-section-heading a,
.profile-reviews .profile-section-heading button {
    text-decoration: none;
}

.profile-reviews-cta {
    margin: 14px 0 0;
    padding: 13px 15px;
    color: #6b636f;
    border: 1px dashed #e7e2e8;
    border-radius: 12px;
    background: #faf9fb;
    font-size: 11px;
}

.profile-reviews-cta a {
    color: #bd2864;
    font-weight: 800;
    text-decoration: none;
}

.profile-review-form {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e7e2e8;
    border-radius: 14px;
    background: #fff;
}

.profile-review-form-grid {
    display: grid;
    gap: 10px;
}

.profile-review-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b636f;
    font-size: 11px;
    font-weight: 700;
}

.profile-review-select,
.profile-review-textarea,
.profile-client-actions select,
.profile-client-actions textarea {
    width: 100%;
    padding: 10px 12px;
    color: #302a34;
    border: 1px solid #e7e2e8;
    border-radius: 10px;
    background: #faf9fb;
    font: inherit;
    font-size: 12px;
}

.profile-review-select {
    width: auto;
    min-width: 72px;
}

.profile-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-review-submit,
.profile-client-actions button,
.profile-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: #c65380;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.profile-review-delete,
.profile-client-hide-btn {
    color: #6b636f !important;
    border: 1px solid #e7e2e8 !important;
    background: #fff !important;
}

.profile-review-message,
.profile-client-actions-message {
    min-height: 16px;
    color: #13936c;
    font-size: 11px;
}

.profile-reviews-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.profile-review-item {
    padding: 14px 16px;
    border: 1px solid #e7e2e8;
    border-radius: 14px;
    background: #fff;
}

.profile-review-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.profile-review-item-header strong {
    font-size: 13px;
}

.profile-review-client-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.profile-review-client-level,
.profile-review-client-badge {
    padding: 3px 7px;
    color: #7c5a86;
    border-radius: 999px;
    background: #f5eff7;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-review-stars {
    color: #e3a51e;
    font-size: 13px;
    letter-spacing: .08em;
}

.profile-review-item p {
    margin: 10px 0 6px;
    color: #4c4550;
    font-size: 12px;
    line-height: 1.55;
}

.profile-review-item small {
    color: #a098a4;
    font-size: 10px;
}

.profile-reviews-empty {
    margin-top: 14px;
    color: #8c8490;
    font-size: 12px;
}

.profile-client-actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e7e2e8;
    border-radius: 14px;
    background: #faf9fb;
}

.profile-client-actions form {
    display: grid;
    gap: 6px;
}

.profile-client-actions label {
    color: #8c8490;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.profile-client-actions button {
    justify-self: start;
}

/* шапка анкеты: SEO-заголовок длиннее имени из макета */
.profile-overview__identity h1 {
    font-size: clamp(22px, 2.3vw, 32px);
    line-height: 1.1;
}

.profile-overview__facts div:only-child {
    grid-column: 1 / -1;
    border-right: 0;
}

.profile-messengers button {
    cursor: pointer;
}

.profile-messengers button:hover {
    color: #bd2864;
    border-color: #eabbd0;
}

/* реальная сводка отзывов: список справа, форма ниже */
.profile-review-content.is-live {
    align-items: start;
}

.profile-review-content.is-live .profile-reviews-list {
    grid-column: 3;
    margin-top: 0;
}

.profile-review-item-author {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-review-item-author > b {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    color: #fff;
    border-radius: 50%;
    background: #766579;
    font-size: 12px;
}

.profile-reviews .profile-section-heading a {
    color: #c32d6b;
    font-size: 8px;
    font-weight: 800;
}

@media (max-width: 820px) {
    .profile-review-content.is-live .profile-reviews-list {
        grid-column: 1 / -1;
    }
}

/* панель кабинета на анкете */
.profile-client-action > a.profile-client-action__favorite,
.profile-client-action > button.profile-client-action__favorite {
    align-self: start;
    margin-top: 15px;
    padding: 11px 14px;
    color: #fff;
    border: 0;
    border-radius: 9px;
    background: #25394f;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.profile-client-action > .profile-client-action__favorite.is-active {
    background: #c65380;
}

.profile-client-action .profile-client-actions {
    margin-top: 14px;
    padding: 12px;
}

.profile-client-action > div a.profile-client-action__report {
    padding: 8px 10px;
    color: #756d79;
    border: 1px solid #e5dfe6;
    border-radius: 7px;
    background: #fff;
    font-size: 9px;
    text-decoration: none;
}

/* лайтбокс: сцена для фото/видео */
.profile-lightbox__stage {
    display: grid;
    place-items: center;
    max-width: 100%;
    max-height: calc(100vh - 56px);
}

.profile-lightbox__stage img,
.profile-lightbox__stage video {
    max-width: min(100%, 1000px);
    max-height: calc(100vh - 56px);
    border-radius: 13px;
}

.profile-h2-section {
    padding: 0 0 24px;
}

.profile-h2-section h2 {
    margin: 0;
    color: #6b636f;
    font-size: 13px;
    font-weight: 600;
}

/* похожие анкеты — карточки общего вида, 6 в ряд */
.profile-similar .profile-grid {
    margin-top: 16px;
}

.profile-grid--similar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1050px) {
    .profile-grid--similar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .profile-grid--similar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- интим-карта ---------- */
.map-filters a {
    text-decoration: none;
}

.map-workspace {
    grid-template-rows: minmax(0, 1fr);
}

.map-results {
    min-height: 0;
}

.map-results__list {
    min-height: 0;
    overflow-y: auto;
}

.intim-map {
    min-height: 0;
    height: 100%;
}

.intim-map #map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.intim-map .map-caption {
    z-index: 2;
}

.map-results__list article.is-active {
    background: #fff1f6;
}

.map-results__list article img {
    object-fit: cover;
}

.map-results.is-collapsed .map-results__list {
    display: none;
}

.map-results.is-collapsed {
    grid-template-rows: auto;
}

.map-workspace.is-list-collapsed {
    grid-template-columns: 220px minmax(0, 1fr);
}

.map-results__list article[hidden] {
    display: none;
}

.map-results__list article:focus-visible {
    outline: 2px solid #c65380;
    outline-offset: -2px;
}

.map-results__empty {
    padding: 16px;
    color: #8c8490;
    font-size: 11px;
}

.map-results__more {
    display: block;
    width: 100%;
    padding: 12px;
    color: #bd2864;
    border: 0;
    border-top: 1px solid #ece8ed;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.intim-map .map-balloon {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    width: 250px;
    font-family: "Manrope", system-ui, sans-serif;
}

.intim-map .map-balloon img {
    display: block;
    width: 86px;
    height: 110px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
}

.intim-map .map-balloon strong {
    display: block;
    font-size: 15px;
}

.intim-map .map-balloon small {
    display: block;
    color: #8c8490;
    font-size: 11px;
}

.intim-map .map-balloon b {
    display: block;
    margin-top: 6px;
    color: #bd2864;
    font-size: 13px;
}

.intim-map .map-balloon a {
    display: inline-block;
    margin-top: 8px;
    color: #fff;
    border-radius: 8px;
    background: #c65380;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

/* ---------- контакты / простые страницы ---------- */
.contact-captcha__image {
    display: flex;
    gap: 3px;
    justify-content: center;
    padding: 4px;
    background: #fff;
    border: 1px solid #e7e2e8;
}

.contact-captcha__image img {
    display: block;
    height: 44px;
    border-radius: 6px;
}

.contact-geography a {
    text-decoration: none;
}

.contact-topics article a {
    color: inherit;
    text-decoration: none;
}

.simple-page {
    padding: 34px;
}

.simple-page h1 {
    margin: 8px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
}

.simple-page p {
    margin: 0 0 14px;
    color: #5f5864;
    font-size: 14px;
    line-height: 1.6;
}

.simple-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.simple-page__actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    color: #bd2864;
    border: 1px solid #eabbd0;
    border-radius: 10px;
    background: #fff1f6;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.simple-page__actions a:first-child {
    color: #fff;
    border-color: #c65380;
    background: #c65380;
}

.error-form__photo {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

/* ---------- подвал ---------- */
/* Без рамки и подложки: как и шапка, лежит прямо на фоне страницы */
.site-footer {
    margin-top: 0;
    padding: 0 0 26px;
    border-top: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* отступы на 1px больше, чем у карточек выше (у них есть рамка) — содержимое на одной вертикали */
.site-footer__card {
    padding: 44px 56px 0;
}

.site-footer__inner {
    /* первая колонка — той же ширины, что колонка заголовка в блоке «О каталоге» над подвалом */
    grid-template-columns: max(260px, calc((100% - 64px) * .2958)) repeat(3, minmax(0, 1fr));
    gap: 32px 64px;
}

.site-footer__brand p {
    max-width: 300px;
    margin: 16px 0 0;
    color: #697386;
    font-size: 13px;
    line-height: 1.6;
}

/* Ссылки: рубрика с цветной чертой, под ней список с тонкой вертикальной линией.
   Селекторы усилены, чтобы их не перебивали правила подвала из mobile.css */
.design-v2 .site-footer .site-footer__inner nav {
    display: grid;
    align-content: start;
    justify-content: start;
    justify-items: start;
    gap: 0;
}

.design-v2 .site-footer .site-footer__inner nav strong {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #1d2433;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    letter-spacing: .12em;
}

.design-v2 .site-footer .site-footer__inner nav strong::before {
    content: "";
    flex: none;
    width: 14px;
    height: 2px;
    margin-right: 7px;
    border-radius: 2px;
    background: #e45d98;
}

.design-v2 .site-footer .site-footer__inner nav a {
    display: block;
    min-height: 0;
    margin-left: 4px;
    padding: 5px 0 5px 16px;
    border-left: 1px solid #e1e3ea;
    color: #5d6676;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    transition: color .2s ease, border-color .2s ease;
}

.design-v2 .site-footer .site-footer__inner nav a:hover {
    color: #c52d6b;
    border-left-color: #e45d98;
}

.site-footer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(44, 51, 71, .09);
    color: #8b8494;
    font-size: 12px;
    line-height: 1.5;
}

.site-footer__meta a {
    color: #5d6676;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__age {
    flex: none;
    padding: 6px 11px;
    color: #c52d6b;
    border: 1px solid #f1cfdf;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

/* --- низ страницы: адаптив --- */
@media (max-width: 1150px) {
    .content-guide {
        gap: 44px;
        padding: 36px 38px 38px;
    }

    .content-guide__text {
        column-count: 1;
    }

    .site-footer__card {
        padding: 36px 39px 0;
    }

    .site-footer__inner {
        grid-template-columns: max(260px, calc((100% - 44px) * .2958)) repeat(3, minmax(0, 1fr));
        gap: 28px 44px;
    }
}

@media (max-width: 820px) {
    .content-guide {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 28px 24px 30px;
        border-radius: 24px;
    }

    .content-guide h2::after {
        margin-top: 18px;
    }

    .content-guide__text {
        padding-top: 0;
        column-count: 2;
        column-gap: 36px;
    }

    .site-footer__card {
        padding: 30px 25px 0;
    }

    .design-v2 .site-footer .site-footer__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .design-v2 .site-footer .site-footer__inner nav a {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .site-footer__meta {
        align-items: flex-start;
        margin-top: 24px;
        padding-top: 16px;
    }
}

@media (max-width: 560px) {
    .design-v2 .content-guide.content-guide {
        padding: 24px 20px 26px;
        border-radius: 22px;
    }

    .content-guide__text {
        column-count: 1;
    }

    .content-guide__text .content-guide__lead {
        font-size: 17px;
    }

    .site-footer__card {
        padding: 26px 21px 0;
    }

    .design-v2 .site-footer .site-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px 14px;
    }
}

/* ---------- адаптив ---------- */
@media (max-width: 820px) {
    .intim-map {
        min-height: 420px;
    }

    .profile-map-canvas {
        height: 300px;
    }
}

.phone-modal__actions a[data-phone-modal-profile] {
    color: #514855;
    border: 1px solid #dfd9e2;
    background: rgba(255, 255, 255, .76);
}

.phone-modal__actions a[data-phone-modal-profile][hidden] {
    display: none;
}

.phone-modal__call.is-disabled {
    opacity: .6;
    pointer-events: none;
}

a.map-card { display: block; color: inherit; text-decoration: none; }

/* ==========================================================================
   Анкета: читаемые размеры шрифтов.
   В макете подписи были 6–10px. Здесь минимум — 10.5px для подписей капсом
   и 12px для обычного текста; основной текст 14–15px.
   ========================================================================== */

/* ---------- компьютер и широкий планшет ---------- */
@media (min-width: 821px) {
    .profile-page .profile-breadcrumbs {
        font-size: 12.5px;
    }

    .profile-page .profile-anchor-nav a {
        padding: 7px 10px;
        font-size: 12px;
    }

    .profile-page .profile-kicker {
        font-size: 11.5px;
    }

    /* шапка анкеты */
    .profile-page .profile-overview__identity p {
        font-size: 14px;
    }

    .profile-page .profile-overview__identity small {
        margin-top: 14px;
        font-size: 12px;
    }

    .profile-page .profile-overview__facts small,
    .profile-page .profile-overview__details small {
        font-size: 11px;
    }

    .profile-page .profile-overview__facts strong {
        font-size: 15px;
    }

    .profile-page .profile-overview__details div {
        align-items: baseline;
    }

    .profile-page .profile-overview__details small {
        white-space: nowrap;
    }

    .profile-page .profile-overview__details strong {
        font-size: 14px;
        text-align: right;
    }

    .profile-page .profile-direct-contact,
    .profile-page .profile-favorite {
        gap: 11px;
        min-height: 56px;
        padding: 9px 12px;
    }

    .profile-page .profile-direct-contact > span,
    .profile-page .profile-favorite > span {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .profile-page .profile-direct-contact b,
    .profile-page .profile-favorite b {
        gap: 3px;
        font-size: 14px;
    }

    .profile-page .profile-direct-contact small,
    .profile-page .profile-favorite small {
        font-size: 10.5px;
    }

    .profile-page .profile-direct-contact i,
    .profile-page .profile-favorite i {
        font-size: 15px;
    }

    .profile-page .profile-messengers {
        flex-wrap: wrap;
        gap: 6px;
        padding: 4px 2px;
    }

    .profile-page .profile-messengers > small {
        font-size: 11px;
        letter-spacing: .07em;
    }

    .profile-page .profile-messengers button,
    .profile-page .profile-messengers a {
        padding: 7px 11px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
    }

    /* заголовки секций, галерея */
    .profile-page .profile-section-heading > span {
        padding: 8px 13px;
        font-size: 12px;
    }

    .profile-page .profile-section-heading > a,
    .profile-page .profile-reviews .profile-section-heading a,
    .profile-page .profile-reviews .profile-section-heading > button {
        font-size: 13px;
    }

    .profile-page .profile-carousel__badge,
    .profile-page .profile-carousel__counter {
        padding: 7px 11px;
        font-size: 11.5px;
    }

    /* «О себе», цены, блок кабинета */
    .profile-page .profile-about p {
        max-width: 860px;
        font-size: 15px;
        line-height: 1.7;
    }

    .profile-page .profile-client-action p {
        font-size: 14px;
        line-height: 1.6;
    }

    .profile-page .profile-location-chip {
        margin-top: 14px;
        padding: 8px 12px;
        border-radius: 9px;
        font-size: 12.5px;
    }

    .profile-page .profile-rates {
        grid-template-columns: 140px repeat(3, 1fr);
        gap: 9px;
        padding: 15px;
    }

    .profile-page .profile-rates article {
        padding: 13px 14px;
    }

    .profile-page .profile-rates article > strong {
        font-size: 15px;
    }

    .profile-page .profile-rates article span {
        gap: 4px;
    }

    .profile-page .profile-rates small {
        font-size: 10.5px;
        letter-spacing: .05em;
    }

    .profile-page .profile-rates b {
        font-size: 17px;
        white-space: nowrap;
    }

    .profile-page .profile-client-action > .profile-client-action__favorite {
        padding: 12px 17px;
        border-radius: 10px;
        font-size: 13px;
    }

    .profile-page .profile-client-action > div span {
        font-size: 12.5px;
    }

    .profile-page .profile-client-action > div a.profile-client-action__report,
    .profile-page .profile-client-action > div button {
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12.5px;
    }

    /* услуги */
    .profile-page .profile-services-grid article header {
        padding: 13px 14px;
    }

    .profile-page .profile-services-grid article header strong {
        font-size: 12.5px;
        letter-spacing: .04em;
    }

    .profile-page .profile-services-grid article header span {
        padding: 4px 8px;
        font-size: 12px;
    }

    .profile-page .profile-services-grid li {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .profile-page .profile-services-grid li::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .profile-page .profile-services-grid li b {
        padding: 4px 8px;
        font-size: 11px;
    }

    .profile-page .profile-services-legend span,
    .profile-page .profile-services-legend small {
        font-size: 12.5px;
    }

    .profile-page .profile-services-legend i {
        width: 7px;
        height: 7px;
        margin-right: 6px;
    }

    /* карта */
    /* подпись — в правом верхнем углу, чтобы не закрывать логотип Яндекс.Карт внизу */
    .profile-page .profile-map-canvas small {
        top: 14px;
        right: 16px;
        bottom: auto;
        padding: 9px 12px;
        font-size: 12px;
    }

    /* отзывы */
    .profile-page .profile-review-content {
        grid-template-columns: 180px 220px minmax(0, 1fr);
    }

    .profile-page .profile-review-score span {
        font-size: 14px;
    }

    .profile-page .profile-review-score small {
        font-size: 12px;
    }

    .profile-page .profile-review-bars {
        gap: 8px;
    }

    .profile-page .profile-review-bars > div {
        grid-template-columns: 12px 1fr 22px;
        gap: 8px;
        font-size: 12px;
    }

    .profile-page .profile-review-bars small {
        font-size: inherit;
        text-align: right;
    }

    .profile-page .profile-review-bars i {
        height: 5px;
    }

    .profile-page .profile-reviews-cta {
        padding: 15px 18px;
        font-size: 14px;
    }

    .profile-page .profile-reviews-empty {
        font-size: 14px;
    }

    .profile-page .profile-review-item-header strong {
        font-size: 15px;
    }

    .profile-page .profile-review-client-level,
    .profile-page .profile-review-client-badge {
        padding: 4px 8px;
        font-size: 10.5px;
    }

    .profile-page .profile-review-stars {
        font-size: 15px;
    }

    .profile-page .profile-review-item p {
        font-size: 15px;
        line-height: 1.6;
    }

    .profile-page .profile-review-item small {
        font-size: 12px;
    }

    .profile-page .profile-review-item-author > b {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .profile-page .profile-review-label {
        font-size: 13px;
    }

    .profile-page .profile-review-select,
    .profile-page .profile-review-textarea,
    .profile-page .profile-client-actions select,
    .profile-page .profile-client-actions textarea {
        font-size: 14px;
    }

    .profile-page .profile-review-submit,
    .profile-page .profile-client-actions button,
    .profile-page .profile-favorite-btn {
        min-height: 40px;
        font-size: 13px;
    }

    .profile-page .profile-review-message,
    .profile-page .profile-client-actions-message {
        font-size: 13px;
    }

    .profile-page .profile-client-actions label {
        font-size: 11px;
    }

    /* «Похожие девушки» */
    .profile-page .profile-similar .profile-card .location {
        margin: 6px 0 7px;
        font-size: 12px;
    }

    .profile-page .profile-similar .profile-card .profile-tags {
        margin-bottom: 10px;
    }

    .profile-page .profile-similar .profile-card .profile-tags span {
        padding: 5px 8px;
        font-size: 11px;
    }

    .profile-page .profile-similar .profile-card .profile-card__footer small {
        font-size: 11px;
    }

    .profile-page .profile-similar .profile-card .profile-card__footer strong {
        font-size: 15px;
    }

    .profile-page .profile-similar .profile-card .contact-button {
        min-height: 34px;
        padding-inline: 10px;
        font-size: 11.5px;
    }

    .profile-page .profile-similar .profile-card .card-badge {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* ноутбуки: четыре «похожие» анкеты в ряд — в шести узких карточках крупный текст не помещается */
@media (min-width: 1051px) and (max-width: 1499px) {
    .profile-page .profile-grid--similar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-page .profile-grid--similar > .profile-card:nth-child(n+5) {
        display: none;
    }
}

/* цены: на средних экранах подпись «Стоимость» — отдельной строкой, чтобы суммам хватало места */
@media (min-width: 821px) and (max-width: 1200px) {
    .profile-page .profile-rates {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-page .profile-rates__label {
        grid-column: 1 / -1;
    }
}

@media (min-width: 821px) and (max-width: 1000px) {
    .profile-page .profile-rates article > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-page .profile-rates article span,
    .profile-page .profile-rates article span:last-child {
        padding: 0;
        border-right: 0;
    }

    .profile-page .profile-rates article span:last-child {
        padding-top: 8px;
        border-top: 1px solid var(--p-line);
    }
}

/* ---------- телефон и узкий планшет (усиленные селекторы — поверх mobile.css) ---------- */
@media (max-width: 820px) {
    .design-v2.profile-page .profile-breadcrumbs {
        font-size: 12px;
    }

    .design-v2.profile-page .profile-kicker {
        font-size: 11px;
    }

    .design-v2.profile-page .profile-overview__identity p {
        font-size: 13px;
    }

    .design-v2.profile-page .profile-overview__identity small {
        font-size: 11.5px;
    }

    .design-v2.profile-page .profile-overview__facts small,
    .design-v2.profile-page .profile-overview__details small {
        font-size: 10.5px;
    }

    .design-v2.profile-page .profile-overview__facts strong,
    .design-v2.profile-page .profile-overview__details strong,
    .design-v2.profile-page .profile-overview__details a {
        font-size: 14px;
    }

    .design-v2.profile-page .profile-direct-contact b,
    .design-v2.profile-page .profile-favorite b {
        font-size: 14px;
    }

    .design-v2.profile-page .profile-direct-contact small,
    .design-v2.profile-page .profile-favorite small {
        font-size: 10.5px;
    }

    .design-v2.profile-page .profile-messengers > small {
        font-size: 11px;
    }

    .design-v2.profile-page .profile-messengers button,
    .design-v2.profile-page .profile-messengers a {
        font-size: 13px;
    }

    /* длинная ссылка справа от заголовка переносится под него, а не сжимает заголовок */
    .design-v2.profile-page .profile-section-heading {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .design-v2.profile-page .profile-section-heading > span,
    .design-v2.profile-page .profile-section-heading > a,
    .design-v2.profile-page .profile-reviews .profile-section-heading a {
        font-size: 12px;
    }

    .design-v2.profile-page .profile-carousel__badge,
    .design-v2.profile-page .profile-carousel__counter {
        padding: 6px 9px;
        font-size: 11px;
    }

    .design-v2.profile-page .profile-about p {
        font-size: 14px;
        line-height: 1.65;
    }

    .design-v2.profile-page .profile-client-action p {
        font-size: 13px;
    }

    .design-v2.profile-page .profile-location-chip {
        padding: 8px 11px;
        font-size: 12px;
    }

    .design-v2.profile-page .profile-rates article small {
        font-size: 10.5px;
    }

    .design-v2.profile-page .profile-client-action > .profile-client-action__favorite {
        padding: 12px 16px;
        font-size: 13px;
    }

    .design-v2.profile-page .profile-client-action > div span,
    .design-v2.profile-page .profile-client-action > div a.profile-client-action__report,
    .design-v2.profile-page .profile-client-action > div button {
        font-size: 12px;
    }

    .design-v2.profile-page .profile-services-grid article header strong {
        font-size: 12px;
    }

    .design-v2.profile-page .profile-services-grid article header span {
        font-size: 11.5px;
    }

    .design-v2.profile-page .profile-services-grid li,
    .design-v2.profile-page .profile-services-grid li a {
        font-size: 13.5px;
    }

    .design-v2.profile-page .profile-services-grid li b {
        padding: 4px 7px;
        font-size: 10.5px;
    }

    .design-v2.profile-page .profile-services-legend span,
    .design-v2.profile-page .profile-services-legend small {
        font-size: 12px;
    }

    .design-v2.profile-page .profile-map-canvas small {
        top: 12px;
        right: 12px;
        bottom: auto;
        max-width: calc(100% - 70px);
        font-size: 11.5px;
    }

    .design-v2.profile-page .profile-review-score span {
        font-size: 14px;
    }

    .design-v2.profile-page .profile-review-score small {
        font-size: 12px;
    }

    .design-v2.profile-page .profile-review-bars > div {
        grid-template-columns: 12px 1fr 22px;
        gap: 8px;
        font-size: 12px;
    }

    .design-v2.profile-page .profile-review-bars small {
        font-size: inherit;
        text-align: right;
    }

    .design-v2.profile-page .profile-reviews-cta,
    .design-v2.profile-page .profile-reviews-empty {
        font-size: 13px;
    }

    .design-v2.profile-page .profile-review-item p {
        font-size: 14px;
    }

    .design-v2.profile-page .profile-review-item small {
        font-size: 11.5px;
    }

    .design-v2.profile-page .profile-review-client-level,
    .design-v2.profile-page .profile-review-client-badge {
        font-size: 10.5px;
    }

    .design-v2.profile-page .profile-review-label,
    .design-v2.profile-page .profile-review-submit,
    .design-v2.profile-page .profile-client-actions button,
    .design-v2.profile-page .profile-review-message,
    .design-v2.profile-page .profile-client-actions-message {
        font-size: 13px;
    }

    .design-v2.profile-page .profile-client-actions label {
        font-size: 11px;
    }

    /* «Похожие девушки» */
    .design-v2.profile-page .profile-similar .profile-card .location {
        font-size: 11.5px;
    }

    .design-v2.profile-page .profile-similar .profile-card .profile-tags span,
    .design-v2.profile-page .profile-similar .profile-card .profile-card__footer small,
    .design-v2.profile-page .profile-similar .profile-card .card-badge {
        font-size: 10.5px;
    }
}

/* ==========================================================================
   Анкета: шапка (имя, параметры, контакты).
   Слева — статус и имя, рядом — плитки параметров, справа — панель контактов,
   снизу — строка характеристик «подпись над значением».
   ========================================================================== */

/* ---------- общее для всех ширин: цвета, значки, статусы ---------- */
.profile-page .profile-overview__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.profile-page .profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 11px;
    color: #6d6572;
    border: 1px solid #e7e2e8;
    border-radius: 999px;
    background: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-page .profile-status--verified {
    padding-left: 6px;
    color: #0f7f5d;
    border-color: #cdeadf;
    background: #effaf5;
}

.profile-page .profile-status--verified::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #13936c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2.1 2.1L10.2 5' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.profile-page .profile-status--new {
    color: #c52d6b;
    border-color: #f4d3e1;
    background: #fff3f8;
}

.profile-page .profile-overview .profile-overview__identity h1 {
    text-wrap: balance;
}

.profile-page .profile-overview .profile-overview__identity p {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #5f5865;
    font-weight: 500;
}

.profile-page .profile-overview .profile-overview__identity p::before {
    content: "";
    flex: none;
    width: 15px;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d83276' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* главная кнопка — в фирменном розовом, как «Позвонить» в окне контактов */
.profile-page .profile-overview .profile-direct-contact {
    background: linear-gradient(135deg, #e2437f 0%, #c52d6b 100%);
    box-shadow: 0 12px 26px rgba(207, 46, 112, .26), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.profile-page .profile-overview .profile-direct-contact:hover {
    filter: brightness(1.04);
    box-shadow: 0 16px 30px rgba(207, 46, 112, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

.profile-page .profile-overview .profile-direct-contact > span {
    background: rgba(255, 255, 255, .18);
}

.profile-page .profile-overview .profile-direct-contact > span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-page .profile-overview .profile-direct-contact small {
    opacity: .82;
}

.profile-page .profile-overview .profile-favorite {
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.profile-page .profile-overview .profile-favorite:hover {
    color: #c52d6b;
    border-color: #efc3d6;
}

/* подпись «Действие» над «Добавить в избранное» ничего не сообщает */
.profile-page .profile-overview .profile-favorite b small {
    display: none;
}

.profile-page .profile-overview .profile-favorite i {
    color: #b3abb7;
}

.profile-page .profile-overview .profile-favorite.is-active {
    color: #c52d6b;
    border-color: #f1cfdf;
    background: #fff3f8;
}

.profile-page .profile-overview .profile-favorite.is-active > span {
    background: #fff;
}

.profile-page .profile-overview .profile-messengers button,
.profile-page .profile-overview .profile-messengers a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4f4854;
    border-color: #e6e0e7;
    transition: color .18s ease, border-color .18s ease;
}

.profile-page .profile-messengers .messenger-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    color: #fff;
    border-radius: 50%;
}

.profile-page .profile-messengers .messenger-icon svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.profile-page .profile-messengers .messenger-icon--whatsapp { background: #22b968; }
.profile-page .profile-messengers .messenger-icon--telegram { background: #269ed8; }

/* в параметрах сначала крупное значение, под ним подпись */
.profile-page .profile-overview .profile-overview__facts strong {
    order: -1;
}

/* ---------- компьютер и широкий планшет ---------- */
@media (min-width: 821px) {
    .profile-page .profile-overview {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .profile-page .profile-overview .profile-overview__identity {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 26px 24px;
        border-right: 0;
    }

    .profile-page .profile-overview .profile-overview__identity h1 {
        margin: 14px 0 10px;
        font-size: clamp(26px, 2.05vw, 38px);
        line-height: 1.12;
        letter-spacing: -.025em;
    }

    .profile-page .profile-overview .profile-overview__identity p {
        font-size: 14.5px;
    }

    .profile-page .profile-overview .profile-overview__identity small {
        margin-top: 10px;
    }

    /* параметры — плитки, как тарифы ниже */
    .profile-page .profile-overview .profile-overview__facts {
        grid-template-columns: repeat(2, minmax(118px, 1fr));
        gap: 10px;
        align-self: center;
        padding: 22px 24px 22px 0;
    }

    .profile-page .profile-overview .profile-overview__facts div {
        align-content: center;
        gap: 6px;
        min-height: 74px;
        padding: 13px 16px 12px;
        border: 1px solid var(--p-line);
        border-radius: 14px;
        background: #fff;
    }

    .profile-page .profile-overview .profile-overview__facts strong {
        font-size: 19px;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -.01em;
        white-space: nowrap;
    }

    .profile-page .profile-overview .profile-overview__facts small {
        font-size: 10.5px;
        letter-spacing: .08em;
    }

    /* панель контактов */
    .profile-page .profile-overview .profile-overview__actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        align-content: center;
        gap: 10px;
        padding: 18px 24px;
        border-top: 1px solid var(--p-line);
        border-left: 0;
    }

    .profile-page .profile-overview .profile-direct-contact {
        gap: 13px;
        min-height: 62px;
        padding: 10px 16px 10px 12px;
        border-radius: 14px;
    }

    .profile-page .profile-overview .profile-direct-contact > span {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .profile-page .profile-overview .profile-direct-contact b {
        font-size: 16px;
        font-weight: 800;
    }

    .profile-page .profile-overview .profile-direct-contact small {
        letter-spacing: .09em;
    }

    .profile-page .profile-overview .profile-direct-contact i {
        font-size: 17px;
    }

    .profile-page .profile-overview .profile-favorite {
        gap: 12px;
        min-height: 62px;
        padding: 8px 16px 8px 12px;
        border-radius: 14px;
    }

    .profile-page .profile-overview .profile-favorite > span {
        width: 32px;
        height: 32px;
    }

    .profile-page .profile-overview .profile-favorite b {
        font-weight: 700;
    }

    .profile-page .profile-overview .profile-messengers {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr 1fr;
        align-items: center;
        gap: 8px 10px;
        padding: 0;
    }

    .profile-page .profile-overview .profile-messengers > small {
        margin: 0 6px 0 2px;
        color: #a098a3;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .1em;
    }

    .profile-page .profile-overview .profile-messengers button,
    .profile-page .profile-overview .profile-messengers a {
        min-height: 42px;
        padding: 6px 10px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 700;
    }

    /* строка характеристик */
    .profile-page .profile-overview .profile-overview__details {
        grid-template-columns: none;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        background: rgba(250, 248, 251, .72);
    }

    .profile-page .profile-overview .profile-overview__details div {
        display: grid;
        align-content: start;
        justify-items: start;
        gap: 5px;
        padding: 13px 14px 14px;
    }

    .profile-page .profile-overview .profile-overview__details div:first-child {
        padding-left: 24px;
    }

    .profile-page .profile-overview .profile-overview__details small {
        font-size: 10.5px;
        letter-spacing: .08em;
        white-space: normal;
    }

    .profile-page .profile-overview .profile-overview__details strong {
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.3;
        text-align: left;
    }
}

/* ---------- компьютер: три зоны в ряд ---------- */
@media (min-width: 1051px) {
    .profile-page .profile-overview {
        grid-template-columns: minmax(0, 1fr) auto 340px;
    }

    .profile-page .profile-overview .profile-overview__identity {
        padding: 30px 28px 30px 32px;
    }

    .profile-page .profile-overview .profile-overview__facts {
        padding: 24px 28px 24px 0;
    }

    .profile-page .profile-overview .profile-overview__actions {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 22px 24px;
        border-top: 0;
        border-left: 1px solid var(--p-line);
    }

    .profile-page .profile-overview .profile-direct-contact {
        min-height: 60px;
    }

    .profile-page .profile-overview .profile-favorite {
        min-height: 48px;
        border-radius: 13px;
    }

    .profile-page .profile-overview .profile-messengers button,
    .profile-page .profile-overview .profile-messengers a {
        min-height: 40px;
    }

    .profile-page .profile-overview .profile-messengers {
        grid-column: auto;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 2px;
    }

    /* подпись «Написать» — разделителем между кнопками */
    .profile-page .profile-overview .profile-messengers > small {
        display: flex;
        grid-column: 1 / -1;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .profile-page .profile-overview .profile-messengers > small::before,
    .profile-page .profile-overview .profile-messengers > small::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--p-line);
    }

    .profile-page .profile-overview .profile-overview__details div {
        padding: 13px 20px 14px 24px;
    }

    .profile-page .profile-overview .profile-overview__details div:first-child {
        padding-left: 32px;
    }

    .profile-page .profile-overview .profile-overview__details small {
        white-space: nowrap;
    }

    .profile-page .profile-overview .profile-overview__details strong {
        font-size: 14.5px;
    }
}

@media (min-width: 1251px) {
    .profile-page .profile-overview {
        grid-template-columns: minmax(0, 1fr) auto 388px;
    }
}

/* широкий экран: параметры в один ряд */
@media (min-width: 1500px) {
    .profile-page .profile-overview .profile-overview__facts {
        grid-template-columns: none;
        grid-auto-columns: minmax(128px, auto);
        grid-auto-flow: column;
    }

    .profile-page .profile-overview .profile-overview__facts div:only-child {
        grid-column: auto;
    }

    .profile-page .profile-overview .profile-overview__facts div {
        min-height: 78px;
        padding: 14px 18px 13px;
    }
}

/* ---------- телефон и узкий планшет (усиленные селекторы — поверх mobile.css) ---------- */
@media (max-width: 820px) {
    .design-v2.profile-page .profile-overview .profile-overview__identity h1 {
        margin: 12px 0 8px;
    }

    .design-v2.profile-page .profile-overview .profile-direct-contact {
        gap: 12px;
        min-height: 58px;
        padding: 9px 14px 9px 11px;
        border-radius: 14px;
    }

    .design-v2.profile-page .profile-overview .profile-direct-contact > span {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .design-v2.profile-page .profile-overview .profile-direct-contact b {
        font-size: 15px;
    }

    .design-v2.profile-page .profile-overview .profile-favorite {
        gap: 12px;
        min-height: 50px;
        padding: 8px 14px 8px 11px;
        border-radius: 13px;
    }

    .design-v2.profile-page .profile-overview .profile-favorite > span {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .design-v2.profile-page .profile-overview .profile-messengers button,
    .design-v2.profile-page .profile-overview .profile-messengers a {
        min-height: 44px;
        border-radius: 12px;
        font-weight: 700;
    }

    .design-v2.profile-page .profile-overview .profile-overview__facts strong {
        font-size: 15px;
    }
}

/* ==========================================================================
   Хлебные крошки в полосе шапки — между выбором города и правой частью полосы
   (быстрые фильтры в каталоге, разделы на странице анкеты). Все страницы, кроме главной.
   Разметку собирает pmV2CrumbsNav() (includes/design-v2/flag.php), выводит layout.php.
   .profile-crumbs — прежнее имя класса со страницы анкеты.
   ========================================================================== */
.design-v2 .site-crumbs,
.design-v2 .profile-crumbs {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 1px;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
}

/* обёртка пункта нужна только микроразметке */
.design-v2 .site-crumbs__item {
    display: contents;
}

/* если строка не помещается, длинные названия сокращаются многоточием; «Главная» и текущая страница — в последнюю очередь */
.design-v2 .site-crumbs a,
.design-v2 .profile-crumbs a {
    display: block;
    flex: 0 4 auto;
    min-width: 44px;
    padding: 7px 9px;
    overflow: hidden;
    color: #6b7382;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    transition: color .18s ease, background .18s ease;
}

.design-v2 .site-crumbs a.site-crumbs__home,
.design-v2 .profile-crumbs a.profile-crumbs__home {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
}

.design-v2 .site-crumbs a:hover,
.design-v2 .profile-crumbs a:hover {
    color: #bd2864;
    background: #fff1f6;
}

/* домик у «Главной» */
.design-v2 .site-crumbs__home::before,
.design-v2 .profile-crumbs__home::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* разделитель — тонкая стрелка */
.design-v2 .site-crumbs i,
.design-v2 .profile-crumbs i {
    flex: none;
    width: 12px;
    height: 12px;
    background: #b7bdc9;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* текущая страница — светлая «таблетка» */
.design-v2 .site-crumbs strong,
.design-v2 .profile-crumbs strong {
    flex: 0 1 auto;
    min-width: 48px;
    margin-left: 5px;
    padding: 6px 12px;
    overflow: hidden;
    color: #344255;
    border: 1px solid rgba(74, 82, 98, .11);
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    font-weight: 750;
    text-overflow: ellipsis;
}

/* крошки ушли в шапку — первому блоку страницы нужен свой отступ сверху
   (на странице контактов первым в разметке идёт служебный script) */
.design-v2 .site-header--crumbs + main > :first-child,
.design-v2 .site-header--crumbs + main > script:first-child + *,
.profile-page main > .profile-overview:first-child {
    margin-top: 16px;
}

/* когда места мало, сжимаются только крошки: город и быстрые фильтры остаются целыми */
@media (min-width: 821px) {
    .design-v2 .site-header--crumbs .utility-bar > .utility-bar__location,
    .design-v2 .site-header--crumbs .utility-bar > .utility-bar__filters {
        flex-shrink: 0;
    }
}

/* планшеты и небольшие ноутбуки: кнопке города не нужен запас по ширине — место отдаём крошкам */
@media (min-width: 821px) and (max-width: 1250px) {
    .design-v2 .site-header--crumbs .utility-bar > .utility-bar__location,
    .profile-page .utility-bar > .utility-bar__location {
        min-width: 0;
    }
}

/* телефон и узкий планшет: полоса с крошками пристыкована к шапке; город и быстрые фильтры — в меню */
@media (max-width: 820px) {
    .design-v2 .site-header--crumbs .site-header__inner,
    .design-v2.profile-page .site-header__inner {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .design-v2 .site-header--crumbs .utility-bar,
    .design-v2.profile-page .utility-bar {
        display: flex;
        min-height: 0;
        padding: 4px 6px;
        border: 1px solid #e5e8ec;
        border-top: 0;
        border-radius: 0 0 14px 14px;
        background: #fff;
    }

    .design-v2 .site-header--crumbs .utility-bar > .utility-bar__location,
    .design-v2 .site-header--crumbs .utility-bar > .utility-bar__filters,
    .design-v2.profile-page .utility-bar > .utility-bar__location {
        display: none;
    }

    .design-v2 .utility-bar .site-crumbs,
    .design-v2 .utility-bar .profile-crumbs {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    }

    .design-v2 .utility-bar .site-crumbs::-webkit-scrollbar,
    .design-v2 .utility-bar .profile-crumbs::-webkit-scrollbar {
        display: none;
    }

    .design-v2 .utility-bar .site-crumbs a,
    .design-v2 .utility-bar .profile-crumbs a {
        flex: none;
        padding: 8px;
    }

    .design-v2 .utility-bar .site-crumbs strong,
    .design-v2 .utility-bar .profile-crumbs strong {
        flex: none;
        margin-right: 20px;
    }

    .design-v2 .site-header--crumbs + main > :first-child,
    .design-v2 .site-header--crumbs + main > script:first-child + *,
    .design-v2.profile-page main > .profile-overview:first-child {
        margin-top: 10px;
    }
}

/* ==========================================================================
   Карточки анкет в каталоге: читаемый текст.
   Метро, теги, «1 час», цена, кнопка и бейдж были 7–8px. Теперь не мельче 10px.
   Там, где шесть карточек в ряд узкие (ноутбуки) и на телефонах, цена идёт
   строкой («1 час … 10000 ₽»), а кнопка — на всю ширину под ней.
   «Похожие анкеты» на странице анкеты настроены отдельно (.profile-page).
   ========================================================================== */

/* ---------- общее: контраст подписей на фото ---------- */
.design-v2 .catalog-section .profile-card .location {
    color: rgba(255, 255, 255, .84);
    font-weight: 500;
    line-height: 1.3;
}

.design-v2 .catalog-section .profile-card .profile-card__footer small {
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
}

/* теги: если третий не помещается, он скрывается целиком, а не обрезается посередине */
.design-v2 .catalog-section .profile-card .profile-tags {
    flex-wrap: wrap;
    max-height: 26px;
}

.design-v2 .catalog-section .profile-card .profile-tags span {
    padding: 5px 8px;
    font-size: 10.5px;
    line-height: 14px;
}

/* ---------- планшеты и компьютеры ---------- */
@media (min-width: 821px) {
    .design-v2 .catalog-section .profile-card .location {
        margin: 6px 0 9px;
        font-size: 12px;
    }

    .design-v2 .catalog-section .profile-card .profile-card__footer small {
        font-size: 11px;
    }

    .design-v2 .catalog-section .profile-card .profile-card__footer strong {
        font-size: 15px;
    }

    .design-v2 .catalog-section .profile-card .contact-button {
        min-height: 34px;
        padding-inline: 11px;
        border-radius: 10px;
        font-size: 11.5px;
    }

    .design-v2 .catalog-section .profile-card .card-badge {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* большие экраны: цена и кнопка в одну строку, карточка чуть выше — фото видно так же, как раньше */
@media (min-width: 1600px) {
    .design-v2 .catalog-section .profile-card {
        height: 410px;
    }
}

/* ноутбуки: шесть узких карточек в ряд — цена строкой, кнопка на всю ширину */
@media (min-width: 1051px) and (max-width: 1599px) {
    .design-v2 .catalog-section .profile-card {
        height: clamp(364px, 31vw, 400px);
    }

    .design-v2 .catalog-section .profile-card .profile-card__body {
        padding: 14px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags {
        max-height: 24px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags span {
        padding: 4px 7px;
    }

    .design-v2 .catalog-section .profile-card .profile-card__footer {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding-top: 9px;
    }

    .design-v2 .catalog-section .profile-card .profile-card__footer > div {
        display: flex;
        flex: 1 1 100%;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
    }

    .design-v2 .catalog-section .profile-card .contact-button {
        flex: 1 1 100%;
    }
}

@media (min-width: 1051px) and (max-width: 1279px) {
    .design-v2 .catalog-section .profile-card .profile-card__body {
        padding: 12px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags {
        gap: 4px;
        max-height: 22px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags span {
        padding: 3px 5px;
        font-size: 10px;
    }

    .design-v2 .catalog-section .profile-card .contact-button {
        min-height: 32px;
        padding-inline: 8px;
        font-size: 11px;
    }

    .design-v2 .catalog-section .profile-card .card-badge {
        padding: 5px 9px;
        font-size: 10.5px;
    }
}

/* планшеты: две широкие карточки в ряд — места много */
@media (min-width: 821px) and (max-width: 1050px) {
    .design-v2 .catalog-section .profile-card {
        height: 350px;
    }

    .design-v2 .catalog-section .profile-card .location {
        font-size: 12.5px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags {
        max-height: 27px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags span {
        font-size: 11px;
        line-height: 15px;
    }

    .design-v2 .catalog-section .profile-card .profile-card__footer strong {
        font-size: 16px;
    }

    .design-v2 .catalog-section .profile-card .contact-button {
        min-height: 36px;
        padding-inline: 14px;
        font-size: 12px;
    }
}

/* ---------- телефоны ---------- */
@media (max-width: 820px) {
    .design-v2 .catalog-section .profile-card .location {
        margin: 4px 0 8px;
        font-size: 11.5px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags {
        max-height: 24px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags span {
        padding: 4px 7px;
    }

    /* до 560px подвал карточки — сетка (styles.css): одна колонка на всю ширину */
    .design-v2 .catalog-section .profile-card .profile-card__footer {
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
    }

    .design-v2 .catalog-section .profile-card .profile-card__footer > div {
        display: flex;
        flex: 1 1 100%;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
    }

    .design-v2 .catalog-section .profile-card .profile-card__footer small {
        font-size: 11px;
    }

    .design-v2 .catalog-section .profile-card .profile-card__footer strong {
        font-size: 15px;
    }

    .design-v2 .catalog-section .profile-card .contact-button {
        font-size: 12px;
    }

    .design-v2 .catalog-section .profile-card .card-badge {
        padding: 5px 9px;
        font-size: 10.5px;
    }
}

@media (max-width: 359px) {
    .design-v2 .catalog-section .profile-card .profile-card__body {
        padding: 9px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags {
        gap: 3px;
        max-height: 22px;
    }

    .design-v2 .catalog-section .profile-card .profile-tags span {
        padding: 3px 5px;
        font-size: 10px;
    }

    .design-v2 .catalog-section .profile-card .contact-button {
        padding-inline: 6px;
        font-size: 11px;
    }
}

/* ---------- лента «Анкеты рядом»: имя и цена ---------- */
.design-v2 .reference-top .slider-card strong {
    font-size: 13px;
}

.design-v2 .reference-top .slider-card small {
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
}

/* на больших экранах карточки ленты крупнее — подписи тоже */
@media (min-width: 1500px) {
    .design-v2 .reference-top--pano .slider-card > span {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .design-v2 .reference-top--pano .slider-card strong {
        font-size: 14px;
    }

    .design-v2 .reference-top--pano .slider-card small {
        font-size: 12px;
    }
}

/* ==========================================================================
   Шапка: меню разделов, «Войти» / «Добавить анкету» и быстрые фильтры.
   Меню разделов и быстрые фильтры — две одинаковые панели аккуратных кнопок:
   светлая подложка, между кнопками тонкие вертикальные разделители, активная
   кнопка залита розовым. Рядом с активной кнопкой и кнопкой под курсором
   разделители гаснут. Текст 13–14px (был 10–11px).
   На планшете и телефоне «Добавить анкету» и активный фильтр в меню — в той же
   розовой гамме, что и на компьютере.
   Разметка не менялась (includes/design-v2/layout.php).
   ========================================================================== */

/* ---------- компьютеры: меню разделов ---------- */
@media (min-width: 1051px) {
    /* панель меню занимает место между логотипом и кнопками, на широких экранах — по центру */
    .design-v2 .site-header__inner .brand {
        margin-right: 22px;
    }

    .design-v2 .site-header__inner .header-actions {
        margin-left: 16px;
    }

    .design-v2 .site-header__inner .desktop-nav {
        flex: 1 1 auto;
        gap: 9px;
        max-width: 1080px;
        height: auto;
        margin: 0 auto;
        padding: 3px;
        border: 1px solid rgba(74, 82, 98, .1);
        border-radius: 13px;
        background: rgba(255, 255, 255, .62);
    }

    .design-v2 .site-header__inner .desktop-nav a {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        min-height: 34px;
        padding: 0 10px;
        color: #3b4657;
        border: 0;
        border-radius: 10px;
        background: none;
        box-shadow: none;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.2;
        transition: color .18s ease, background .18s ease, box-shadow .18s ease;
    }

    .design-v2 .site-header__inner .desktop-nav a:hover {
        color: #bd2864;
        border: 0;
        background: #fff;
        box-shadow: 0 1px 4px rgba(29, 36, 51, .08);
    }

    .design-v2 .site-header__inner .desktop-nav a.is-active,
    .design-v2 .site-header__inner .desktop-nav a.is-active:hover {
        color: #fff;
        border: 0;
        background: linear-gradient(115deg, #e54282, #d82d76);
        box-shadow: 0 4px 12px rgba(213, 45, 115, .22);
        font-weight: 750;
    }

    .design-v2 .utility-bar > .utility-bar__location > strong {
        font-size: 13px;
    }
}

/* ноутбуки: кнопки меню по ширине текста, а не равные */
@media (min-width: 1051px) and (max-width: 1399px) {
    .design-v2 .site-header__inner .desktop-nav a {
        flex: 1 1 auto;
        font-size: 13.5px;
    }
}

/* ---------- разделители между кнопками (меню и быстрые фильтры): розовые точки ----------
   Точка стоит посередине промежутка между кнопками и при наведении остаётся на месте.
   Рядом с активной (розовой) кнопкой точки нет. */
@media (min-width: 821px) {
    .design-v2 .site-header__inner .desktop-nav a + a::before,
    .design-v2 .utility-bar__filters .quick-filter + .quick-filter::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -6.5px;
        width: 4px;
        height: 4px;
        margin-top: -2px;
        border-radius: 50%;
        /* розовый, как кнопка «Добавить анкету» */
        background: #de3a7c;
        transition: opacity .18s ease;
    }

    .design-v2 .site-header__inner .desktop-nav a.is-active::before,
    .design-v2 .site-header__inner .desktop-nav a.is-active + a::before,
    .design-v2 .utility-bar__filters .quick-filter.is-active::before,
    .design-v2 .utility-bar__filters .quick-filter.is-active + .quick-filter::before {
        opacity: 0;
    }
}

/* ---------- «Войти» и «Добавить анкету» (планшеты и компьютеры) ---------- */
@media (min-width: 821px) {
    .design-v2 .site-header__inner .header-actions {
        gap: 8px;
    }

    .design-v2 .site-header__inner .header-actions .button--ghost,
    .design-v2 .site-header__inner .header-actions .button--primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 42px;
        border-radius: 12px;
        font-size: 13.5px;
        line-height: 1.2;
        transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .design-v2 .site-header__inner .header-actions .button--ghost {
        padding-inline: 14px 16px;
        color: #2f3a4c;
        border: 1px solid #e1e4ea;
        background: rgba(255, 255, 255, .92);
        font-weight: 700;
    }

    .design-v2 .site-header__inner .header-actions .button--ghost:hover {
        color: #bd2864;
        border-color: #efc4d7;
        background: #fff;
    }

    .design-v2 .site-header__inner .header-actions .button--primary {
        padding-inline: 15px 18px;
        border: 0;
        background: linear-gradient(115deg, #e54282, #d82d76);
        box-shadow: 0 6px 16px rgba(213, 45, 115, .24);
        font-weight: 750;
    }

    .design-v2 .site-header__inner .header-actions .button--primary:hover {
        background: linear-gradient(115deg, #dc3a7a, #c9276a);
        box-shadow: 0 8px 20px rgba(213, 45, 115, .3);
        transform: translateY(-1px);
    }

    /* значки: человек у «Войти», плюс у «Добавить анкету» */
    .design-v2 .site-header__inner .header-actions .button--ghost::before,
    .design-v2 .site-header__inner .header-actions .button--primary::before {
        content: "";
        position: static;
        display: block;
        flex: none;
        width: 16px;
        height: 16px;
        border: 0;
        border-radius: 0;
        background: currentColor;
        transform: none;
    }

    .design-v2 .site-header__inner .header-actions .button--ghost::after,
    .design-v2 .site-header__inner .header-actions .button--primary::after {
        display: none;
    }

    .design-v2 .site-header__inner .header-actions .button--ghost::before {
        opacity: .75;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c1.2-3.6 4-5.5 7.5-5.5s6.3 1.9 7.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c1.2-3.6 4-5.5 7.5-5.5s6.3 1.9 7.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .design-v2 .site-header__inner .header-actions .button--primary::before {
        width: 14px;
        height: 14px;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* ---------- быстрые фильтры ---------- */
    .design-v2 .utility-bar .utility-bar__filters {
        gap: 9px;
        padding: 3px;
        border: 1px solid rgba(74, 82, 98, .1);
        border-radius: 13px;
        background: rgba(255, 255, 255, .62);
    }

    .design-v2 .utility-bar__filters .quick-filter {
        position: relative;
        min-height: 34px;
        padding: 0 14px;
        color: #566174;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.2;
        white-space: nowrap;
        transition: color .18s ease, background .18s ease, box-shadow .18s ease;
    }

    .design-v2 .utility-bar__filters .quick-filter:hover {
        color: #bd2864;
        background: #fff;
        box-shadow: 0 1px 4px rgba(29, 36, 51, .08);
    }

    .design-v2 .utility-bar__filters .quick-filter.is-active,
    .design-v2 .utility-bar__filters .quick-filter.is-active:hover {
        color: #fff;
        background: linear-gradient(115deg, #e54282, #d82d76);
        box-shadow: 0 4px 12px rgba(213, 45, 115, .22);
        font-weight: 750;
    }
}

/* самые узкие экраны с меню: без значков у кнопок справа */
@media (min-width: 1051px) and (max-width: 1199px) {
    .design-v2 .site-header__inner .brand {
        margin-right: 12px;
    }

    .design-v2 .site-header__inner .header-actions {
        margin-left: 10px;
    }

    .design-v2 .site-header__inner .desktop-nav {
        gap: 7px;
    }

    .design-v2 .site-header__inner .desktop-nav a {
        padding: 0 7px;
        font-size: 13px;
    }

    .design-v2 .site-header__inner .desktop-nav a + a::before {
        left: -5.5px;
    }

    .design-v2 .site-header__inner .header-actions .button--ghost::before,
    .design-v2 .site-header__inner .header-actions .button--primary::before {
        display: none;
    }

    .design-v2 .site-header__inner .header-actions .button--ghost,
    .design-v2 .site-header__inner .header-actions .button--primary {
        padding-inline: 13px;
        font-size: 13px;
    }
}

@media (min-width: 1051px) and (max-width: 1279px) {
    .design-v2 .utility-bar__filters .quick-filter {
        padding: 0 11px;
        font-size: 12.5px;
    }
}

/* планшеты: рядом ещё город и хлебные крошки — фильтры компактнее */
@media (min-width: 821px) and (max-width: 1050px) {
    .design-v2 .utility-bar .utility-bar__filters {
        gap: 7px;
    }

    .design-v2 .utility-bar__filters .quick-filter {
        min-height: 32px;
        padding: 0 9px;
        font-size: 11.5px;
    }

    .design-v2 .utility-bar__filters .quick-filter + .quick-filter::before {
        left: -5.5px;
    }

    .design-v2 .utility-bar > .utility-bar__location > strong {
        font-size: 12px;
    }
}

/* узкие планшеты, страницы с хлебными крошками: у кнопки города остаётся значок,
   название уступает место крошкам (город есть в меню) */
@media (min-width: 821px) and (max-width: 920px) {
    .design-v2:not(.profile-page) .site-header--crumbs .utility-bar > .utility-bar__location > strong {
        display: none;
    }
}

/* ---------- планшеты и телефоны: «Добавить анкету» — розовая, как на компьютере ---------- */
@media (max-width: 1050px) {
    .design-v2 .site-header__inner .header-actions .button--primary {
        border-radius: 12px;
        background: linear-gradient(115deg, #e54282, #d82d76);
        box-shadow: 0 6px 15px rgba(213, 45, 115, .22);
    }
}

@media (max-width: 820px) {
    /* раньше кнопка была зажата в 105px и текст упирался в края */
    .design-v2 .site-header__inner .header-actions .button--primary {
        max-width: none;
        padding-inline: 13px;
        font-size: 12px;
        font-weight: 750;
    }

    /* активный быстрый фильтр в меню */
    .design-v2 .mobile-menu .mobile-menu__chips a.is-active {
        color: #fff;
        border-color: transparent;
        background: linear-gradient(115deg, #e54282, #d82d76) border-box;
        box-shadow: 0 4px 11px rgba(213, 45, 115, .2);
    }
}

/* небольшие телефоны: кнопка чуть компактнее */
@media (max-width: 389px) {
    .design-v2 .site-header__inner .header-actions {
        gap: 8px;
    }

    .design-v2 .site-header__inner .header-actions .button--primary {
        padding-inline: 11px;
        font-size: 11.5px;
    }
}

@media (max-width: 374px) {
    .design-v2 .site-header__inner .header-actions .button--primary {
        padding-inline: 9px;
        font-size: 11px;
    }
}

/* самые узкие телефоны: «Добавить анкету» в две строки, чтобы не наезжать на логотип */
@media (max-width: 359px) {
    .design-v2 .site-header__inner .header-actions {
        gap: 6px;
    }

    .design-v2 .site-header__inner .header-actions .button--primary {
        max-width: 76px;
        padding-inline: 10px;
        font-size: 11px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }
}

/* ---------- кнопка выбора города: лёгкая подсветка при наведении ----------
   Светлая подложка рисуется псевдоэлементом и не доходит до разделителя справа,
   название города и стрелка становятся розовыми. Только там, где есть курсор. */
@media (min-width: 821px) {
    .design-v2 .utility-bar > .utility-bar__location {
        position: relative;
        cursor: pointer;
    }

    .design-v2 .utility-bar > .utility-bar__location::before {
        content: "";
        position: absolute;
        top: 0;
        right: 8px;
        bottom: 0;
        left: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, .82);
        box-shadow: 0 1px 4px rgba(29, 36, 51, .07);
        opacity: 0;
        transition: opacity .18s ease;
    }

    .design-v2 .utility-bar > .utility-bar__location > strong {
        position: relative;
        transition: color .18s ease;
    }

    .design-v2 .utility-bar > .utility-bar__location > b {
        transition: border-color .18s ease;
    }
}

@media (min-width: 821px) and (max-width: 1050px) {
    .design-v2 .utility-bar > .utility-bar__location::before {
        right: 4px;
    }
}

@media (min-width: 821px) and (hover: hover) {
    .design-v2 .utility-bar > .utility-bar__location:hover::before {
        opacity: 1;
    }

    .design-v2 .utility-bar > .utility-bar__location:hover > strong {
        color: #bd2864;
    }

    .design-v2 .utility-bar > .utility-bar__location:hover > b {
        border-color: #d82d76;
    }
}


/* ---------- страница «Контакты / обратная связь» (и форма «Ошибка в анкете») ----------
   Читаемые размеры текста, светлая палитра сайта вместо тёмной плашки, аккуратная форма.
   Селекторы с .design-v2.contact-page — чтобы перекрыть и pages.css, и mobile.css. */
.design-v2.contact-page .page-kicker {
    color: #c52d6b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.design-v2.contact-page .contact-hero,
.design-v2.contact-page .contact-workspace,
.design-v2.contact-page .contact-geography {
    border: 1px solid #e7e9ee;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 44px rgba(62, 49, 107, .09);
}

/* --- первый экран --- */
.design-v2.contact-page .contact-hero {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 400px);
}

.design-v2.contact-page .contact-hero > div {
    padding: 40px 44px 42px;
    background:
        radial-gradient(circle at 0 100%, rgba(228, 93, 152, .08), transparent 40%),
        radial-gradient(circle at 100% 0, rgba(116, 88, 220, .07), transparent 44%);
}

.design-v2.contact-page .contact-hero h1 {
    max-width: 1100px;
    margin: 12px 0 16px;
    color: #1d2433;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.3vw, 42px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.015em;
}

.design-v2.contact-page .contact-hero > div > p {
    max-width: 780px;
    margin: 0;
    color: #5d6676;
    font-size: 15px;
    line-height: 1.65;
}

.design-v2.contact-page .contact-hero > div > p strong {
    color: #1d2433;
}

.design-v2.contact-page .contact-hero__chips {
    gap: 8px;
    margin-top: 24px;
}

.design-v2.contact-page .contact-hero__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    color: #4d5769;
    border: 1px solid #e3e6ec;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 600;
}

.design-v2.contact-page .contact-hero__chips i {
    width: 7px;
    height: 7px;
    margin-right: 8px;
    background: #14936d;
    box-shadow: 0 0 0 4px rgba(20, 147, 109, .12);
}

.design-v2.contact-page .contact-hero aside {
    gap: 0;
    padding: 36px 36px 38px;
    color: #1d2433;
    border-left: 1px solid #ece9f1;
    background: linear-gradient(160deg, #fff4f8, #f6f3ff);
}

.design-v2.contact-page .contact-hero aside span {
    color: #8a93a3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.design-v2.contact-page .contact-hero aside strong {
    margin-top: 10px;
    color: #1d2433;
    font-size: clamp(32px, 2.4vw, 44px);
    line-height: 1.1;
}

.design-v2.contact-page .contact-hero aside strong::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 18px;
    border-radius: 3px;
    background: linear-gradient(90deg, #e45d98, #7458dc);
}

.design-v2.contact-page .contact-hero aside p {
    margin: 18px 0 0;
    color: #5d6676;
    font-size: 14px;
    line-height: 1.6;
}

/* --- четыре карточки-подсказки --- */
.design-v2.contact-page .contact-topics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.design-v2.contact-page .contact-topics article {
    position: relative;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e7e9ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(62, 49, 107, .06);
}

.design-v2.contact-page .contact-topics article > span {
    width: 46px;
    height: 46px;
    color: #d82d76;
    border-radius: 14px;
    background: #fff1f6;
    font-size: 0;
}

.design-v2.contact-page .contact-topics article > span::before {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--pm-topic-icon) center / contain no-repeat;
    mask: var(--pm-topic-icon) center / contain no-repeat;
}

.design-v2.contact-page .contact-topics article:nth-child(1) > span {
    --pm-topic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
}

.design-v2.contact-page .contact-topics article:nth-child(2) > span {
    --pm-topic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.5'/%3E%3Cpath d='M3.8 7.5 12 13.2l8.2-5.7'/%3E%3C/svg%3E");
}

.design-v2.contact-page .contact-topics article:nth-child(3) > span {
    --pm-topic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 4.5 6.2v5.4c0 4.4 3.1 7.6 7.5 8.9 4.4-1.3 7.5-4.5 7.5-8.9V6.2L12 3.5z'/%3E%3Cpath d='M12 8.6v4.2'/%3E%3Cpath d='M12 15.9v.1'/%3E%3C/svg%3E");
}

.design-v2.contact-page .contact-topics article:nth-child(4) > span {
    --pm-topic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 8.2v7.6M8.2 12h7.6'/%3E%3C/svg%3E");
}

.design-v2.contact-page .contact-topics small {
    display: block;
    color: #8a93a3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.design-v2.contact-page .contact-topics h2 {
    margin: 6px 0 6px;
    color: #1d2433;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.25;
}

.design-v2.contact-page .contact-topics p {
    color: #5d6676;
    font-size: 13.5px;
    line-height: 1.55;
}

/* карточка со ссылкой («Разместить анкету») кликабельна целиком */
.design-v2.contact-page .contact-topics article h2 a {
    color: #bd2864;
    transition: color .18s ease;
}

.design-v2.contact-page .contact-topics article h2 a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
}

.design-v2.contact-page .contact-topics article h2 a::after {
    content: "\2192";
    display: inline-block;
    margin-left: 7px;
    font-weight: 500;
    transition: transform .18s ease;
}

.design-v2.contact-page .contact-topics article h2 a:hover::after {
    transform: translateX(3px);
}

/* --- форма и частые вопросы --- */
.design-v2.contact-page .contact-workspace {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 500px);
    margin-top: 14px;
}

.design-v2.contact-page .contact-form {
    padding: 38px 44px 40px;
}

.design-v2.contact-page .contact-form header h1,
.design-v2.contact-page .contact-form header h2,
.design-v2.contact-page .contact-faq h2,
.design-v2.contact-page .contact-geography h2 {
    margin: 10px 0 8px;
    color: #1d2433;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 1.75vw, 32px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.01em;
}

.design-v2.contact-page .contact-form header p {
    margin: 0;
    color: #697386;
    font-size: 14px;
    line-height: 1.55;
}

.design-v2.contact-page .contact-form__type {
    gap: 8px;
    margin-top: 24px;
}

.design-v2.contact-page .contact-form__type button {
    min-height: 40px;
    padding: 0 17px;
    color: #3b4657;
    border: 1px solid #e1e4ea;
    border-radius: 11px;
    background: #fff;
    font: 650 13.5px/1.2 Manrope, Arial, sans-serif;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.design-v2.contact-page .contact-form__type button:hover {
    color: #bd2864;
    border-color: #efb9cf;
}

.design-v2.contact-page .contact-form__type button.is-active,
.design-v2.contact-page .contact-form__type button.is-active:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(115deg, #e54282, #d82d76) border-box;
    box-shadow: 0 4px 12px rgba(213, 45, 115, .22);
    font-weight: 750;
}

.design-v2.contact-page .contact-form__grid {
    gap: 18px 20px;
    margin-top: 24px;
}

.design-v2.contact-page .contact-form label {
    gap: 8px;
}

.design-v2.contact-page .contact-form label > span,
.design-v2.contact-page .contact-captcha > div > span {
    color: #3b4657;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.design-v2.contact-page .contact-form input,
.design-v2.contact-page .contact-form textarea {
    min-height: 50px;
    padding: 13px 16px;
    color: #1d2433;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    background: #fbfbfd;
    font: 500 15px/1.4 Manrope, Arial, sans-serif;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.design-v2.contact-page .contact-form textarea {
    min-height: 156px;
    line-height: 1.55;
}

.design-v2.contact-page .contact-form input::placeholder,
.design-v2.contact-page .contact-form textarea::placeholder {
    color: #9aa3b2;
    font-weight: 400;
}

.design-v2.contact-page .contact-form input:hover,
.design-v2.contact-page .contact-form textarea:hover {
    border-color: #cfd5df;
}

.design-v2.contact-page .contact-form input:focus,
.design-v2.contact-page .contact-form textarea:focus {
    border-color: #e58bb1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(216, 45, 118, .09);
}

.design-v2.contact-page .contact-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.design-v2.contact-page .contact-captcha > div {
    gap: 8px;
}

.design-v2.contact-page .contact-captcha__image {
    min-height: 50px;
    padding: 3px 14px;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    background: #fff;
}

.design-v2.contact-page .contact-captcha__image img {
    height: 42px;
}

.design-v2.contact-page .contact-captcha > input {
    flex: 0 1 220px;
    width: auto;
    min-width: 150px;
}

.design-v2.contact-page .contact-captcha > button {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    color: #566174;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    background: #fff;
    font-size: 21px;
    line-height: 1;
    transition: color .18s ease, border-color .18s ease;
}

.design-v2.contact-page .contact-captcha > button:hover {
    color: #bd2864;
    border-color: #efb9cf;
}

.design-v2.contact-page .contact-form footer {
    gap: 28px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #ece9f1;
}

.design-v2.contact-page .contact-form footer p {
    max-width: 600px;
    color: #7a8496;
    font-size: 13px;
    line-height: 1.55;
}

.design-v2.contact-page .contact-form footer button {
    flex: 0 0 auto;
    gap: 12px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 13px;
    background: linear-gradient(115deg, #e54282, #d82d76);
    box-shadow: 0 8px 20px rgba(213, 45, 115, .24);
    font: 750 15px/1.2 Manrope, Arial, sans-serif;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.design-v2.contact-page .contact-form footer button span {
    font-size: 17px;
    font-weight: 500;
}

.design-v2.contact-page .contact-form footer button:hover {
    filter: brightness(.94);
    box-shadow: 0 10px 24px rgba(213, 45, 115, .3);
    transform: translateY(-1px);
}

.design-v2.contact-page .error-form__photo {
    margin-top: 22px;
    border-radius: 14px;
}

.design-v2.contact-page .contact-faq {
    padding: 38px 36px 40px;
    border-left: 1px solid #ece9f1;
    background: linear-gradient(160deg, #fffafc, #f9f7ff);
}

.design-v2.contact-page .contact-faq h2 {
    margin-bottom: 14px;
}

.design-v2.contact-page .contact-faq details {
    border-bottom: 1px solid #ece9f1;
}

.design-v2.contact-page .contact-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 0;
    padding: 17px 0;
    color: #1d2433;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
    transition: color .18s ease;
}

.design-v2.contact-page .contact-faq summary::-webkit-details-marker {
    display: none;
}

.design-v2.contact-page .contact-faq summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin: -4px 4px 0 0;
    border-right: 1.6px solid #d82d76;
    border-bottom: 1.6px solid #d82d76;
    transform: rotate(45deg);
    transition: transform .2s ease, margin .2s ease;
}

.design-v2.contact-page .contact-faq details[open] > summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.design-v2.contact-page .contact-faq summary:hover {
    color: #bd2864;
}

.design-v2.contact-page .contact-faq details p {
    margin: -2px 0 18px;
    color: #5d6676;
    font-size: 14px;
    line-height: 1.65;
}

.design-v2.contact-page .contact-faq__notice {
    gap: 14px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid #f0d9ae;
    border-radius: 14px;
    background: #fff8ea;
}

.design-v2.contact-page .contact-faq__notice > b {
    width: 34px;
    height: 34px;
    font-size: 17px;
}

.design-v2.contact-page .contact-faq__notice p {
    gap: 4px;
    line-height: 1.5;
}

.design-v2.contact-page .contact-faq__notice strong {
    color: #1d2433;
    font-size: 14px;
}

.design-v2.contact-page .contact-faq__notice span {
    color: #7a6642;
    font-size: 13px;
    line-height: 1.5;
}

/* --- география --- */
.design-v2.contact-page .contact-geography {
    grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr);
    gap: 48px;
    margin-block: 14px 26px;
    padding: 38px 44px 40px;
}

.design-v2.contact-page .contact-geography p {
    margin: 12px 0 0;
    color: #5d6676;
    font-size: 14px;
    line-height: 1.65;
}

.design-v2.contact-page .contact-geography > div:last-child {
    align-content: flex-start;
    gap: 8px;
}

.design-v2.contact-page .contact-geography a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    color: #4d5769;
    border: 1px solid #e3e6ec;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

/* подписи групп: «Районы города», «Пригороды и область» */
.design-v2.contact-page .contact-geography__label {
    flex: 0 0 100%;
    margin: 4px 0 2px;
    color: #8a93a3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.design-v2.contact-page .contact-geography a + .contact-geography__label {
    margin-top: 18px;
}

.design-v2.contact-page .contact-geography a:hover {
    color: #bd2864;
    border-color: #efb9cf;
    background: #fff7fa;
}

/* имя, телефон и e-mail в одну строку на широких экранах */
@media (min-width: 1280px) {
    .design-v2.contact-page .contact-form__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .design-v2.contact-page .contact-form__grid > .contact-form__wide:nth-child(3) {
        grid-column: auto;
    }
}

@media (max-width: 1279px) {
    .design-v2.contact-page .contact-hero > div,
    .design-v2.contact-page .contact-form,
    .design-v2.contact-page .contact-geography {
        padding-inline: 32px;
    }

    .design-v2.contact-page .contact-hero aside,
    .design-v2.contact-page .contact-faq {
        padding-inline: 28px;
    }

    .design-v2.contact-page .contact-geography {
        gap: 36px;
    }
}

@media (max-width: 1199px) {
    .design-v2.contact-page .contact-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .design-v2.contact-page .contact-form footer {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .design-v2.contact-page .contact-form footer p {
        max-width: none;
    }

    .design-v2.contact-page .contact-form footer button {
        justify-content: center;
    }
}

/* планшет и телефон: всё в одну колонку */
@media (max-width: 960px) {
    .design-v2.contact-page .contact-hero,
    .design-v2.contact-page .contact-workspace,
    .design-v2.contact-page .contact-geography {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .design-v2.contact-page .contact-hero > div,
    .design-v2.contact-page .contact-form,
    .design-v2.contact-page .contact-geography {
        padding: 28px 24px 30px;
    }

    .design-v2.contact-page .contact-hero h1 {
        font-size: clamp(25px, 6.6vw, 32px);
    }

    .design-v2.contact-page .contact-hero > div > p {
        font-size: 14.5px;
    }

    .design-v2.contact-page .contact-hero aside {
        padding: 24px 24px 26px;
        border-top: 1px solid #ece9f1;
        border-left: 0;
    }

    .design-v2.contact-page .contact-hero aside strong {
        font-size: 30px;
    }

    .design-v2.contact-page .contact-hero aside strong::after {
        margin-top: 14px;
    }

    .design-v2.contact-page .contact-hero aside p {
        margin-top: 14px;
    }

    .design-v2.contact-page .contact-topics {
        gap: 10px;
        margin-top: 10px;
    }

    .design-v2.contact-page .contact-workspace {
        margin-top: 10px;
    }

    .design-v2.contact-page .contact-faq {
        padding: 28px 24px 30px;
        border-top: 1px solid #ece9f1;
        border-left: 0;
    }

    .design-v2.contact-page .contact-geography {
        gap: 22px;
        margin-block: 10px 20px;
    }
}

@media (min-width: 641px) and (max-width: 960px) {
    .design-v2.contact-page .contact-form footer {
        align-items: center;
        flex-direction: row;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .design-v2.contact-page .contact-hero > div,
    .design-v2.contact-page .contact-form,
    .design-v2.contact-page .contact-faq,
    .design-v2.contact-page .contact-geography {
        padding: 24px 18px 26px;
    }

    .design-v2.contact-page .contact-hero aside {
        padding: 22px 18px 24px;
    }

    .design-v2.contact-page .contact-hero__chips {
        gap: 6px;
        margin-top: 20px;
    }

    .design-v2.contact-page .contact-hero__chips span {
        padding: 0 12px;
        font-size: 12.5px;
    }

    .design-v2.contact-page .contact-topics {
        grid-template-columns: 1fr;
    }

    .design-v2.contact-page .contact-topics article {
        gap: 14px;
        padding: 18px;
    }

    .design-v2.contact-page .contact-form header h1,
    .design-v2.contact-page .contact-form header h2,
    .design-v2.contact-page .contact-faq h2,
    .design-v2.contact-page .contact-geography h2 {
        font-size: 24px;
    }

    .design-v2.contact-page .contact-form__type {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .design-v2.contact-page .contact-form__type button {
        min-height: 42px;
        padding: 0 10px;
    }

    /* 16px — чтобы iPhone не увеличивал страницу при вводе */
    .design-v2.contact-page .contact-form input,
    .design-v2.contact-page .contact-form textarea {
        font-size: 16px;
    }

    .design-v2.contact-page .contact-captcha > div {
        flex: 1 1 100%;
    }

    .design-v2.contact-page .contact-captcha > input {
        flex: 1 1 0;
        min-width: 0;
    }

    .design-v2.contact-page .contact-form footer button {
        min-height: 52px;
        font-size: 15px;
    }

    .design-v2.contact-page .contact-faq summary {
        font-size: 15px;
    }

    .design-v2.contact-page .contact-geography a {
        min-height: 38px;
    }
}
