/* ===== mobile-first, шаблон boo =====
   Палитра (WCAG AA): main #0077bb, green #02D15C, purple #8C4FE8, red #d32f2f,
   teal #1a7fa8, текст #151515/#4e4e4e, бордер #e0e0e0. Шрифт Manrope (self-hosted). */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('/fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --main: #0077bb;
    --green: #02D15C;
    --purple: #8C4FE8;
    --red: #d32f2f;
    --teal: #1a7fa8;
    --text: #151515;
    --text-soft: #4e4e4e;
    --muted: #757575;
    --border: #e0e0e0;
    --bg-soft: #F5F5F5;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
body { font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif; margin: 0; background: #fff; color: var(--text); font-size: 16px; line-height: 1.45; overflow-x: clip; }
a { color: var(--text-soft); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 12px; }

/* --- шапка --- */
header.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 7px; font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo .logo-mark { display: block; flex: none; }
.header-spacer { flex-grow: 1; }
.btn-add { display: none; background: var(--main); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn-add:hover { background: #005f96; }

.menu-toggle { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; cursor: pointer; color: var(--text); padding: 8px; background: none; border: 0; font-family: inherit; }
.menu-toggle .mt-ico { font-size: 22px; line-height: 1; }

/* --- поиск: на мобиле отдельной строкой под шапкой --- */
/* одна поисковая форма: на мобайле — отдельной строкой (order+wrap), на десктопе — инлайн */
.header-search { display: flex; width: 100%; order: 10; }
.header-search input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-right: 0; border-radius: 8px 0 0 8px; font-size: 15px; font-family: inherit; background: #fff; color: var(--text); }
.header-search input:focus { outline: none; border-color: var(--main); }
.header-search button, .search-form button { background: var(--main); color: #fff; border: 0; border-radius: 0 8px 8px 0; padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.header-search button:hover, .search-form button:hover { background: #005f96; }
.search-form { display: flex; margin: 12px 0; }
.search-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-right: 0; border-radius: 8px 0 0 8px; font-size: 15px; font-family: inherit; }
.search-form input:focus { outline: none; border-color: var(--main); }

/* --- меню/фильтры (мобильное: по бургеру) --- */
nav.main-menu { display: none; background: #fff; border-top: 1px solid var(--border); }
nav.main-menu.open { display: block; animation: menuDrop .18s ease; }
@keyframes menuDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
nav.main-menu ul { list-style: none; margin: 0; padding: 6px 12px; }
nav.main-menu > ul > li { border-bottom: 1px solid #f0f0f0; }
nav.main-menu > ul > li:last-child { border-bottom: 0; }
nav.main-menu a { text-decoration: none; color: var(--text); }
nav.main-menu > ul > li > a, nav.main-menu summary { display: block; padding: 11px 4px; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
nav.main-menu summary::-webkit-details-marker { display: none; }
nav.main-menu summary:after { content: '▾'; float: right; color: var(--muted); font-size: 12px; }
nav.main-menu details[open] summary:after { content: '▴'; }
nav.main-menu .drop { columns: 2; padding: 0 0 8px 10px; }
nav.main-menu .drop li { break-inside: avoid; }
nav.main-menu .drop a { display: block; padding: 5px 4px; font-size: 14px; color: var(--text-soft); }
nav.main-menu .drop a:hover { color: var(--main); }
nav.main-menu .drop li.drop-group { padding: 6px 4px 3px; font-size: 14px; color: var(--muted); border-top: 1px solid #f0f0f0; margin-top: 4px; break-inside: avoid; }
nav.main-menu .drop li.drop-group:first-child { border-top: 0; margin-top: 0; }
nav.main-menu .drop li.drop-group b { font-weight: 700; color: var(--text); }

main { padding: 14px 0 34px; min-height: 40vh; }

h1 { font-size: 22px; font-weight: 800; margin: 8px 0 12px; line-height: 1.25; }
.total-count { margin: -6px 0 12px; color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); font-size: 14px; }

/* --- крошки --- */
.breadcrumbs { font-size: 13px; color: #999; margin: 24px 0 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .bc-sep { margin: 0 6px; color: #ccc; }

/* --- подкатегории-пилюли --- */
.subnav { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { display: inline-block; padding: 7px 14px; border-radius: 18px; text-decoration: none; background: var(--bg-soft); color: var(--text); font-size: 14px; }
.subnav a.active { background: var(--main); color: #fff; font-weight: 700; }

/* --- быстрые фильтры на мобильном --- */
.quick-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 12px; scrollbar-width: thin; }
.quick-filters a { flex: 0 0 auto; padding: 7px 14px; border-radius: 18px; text-decoration: none; background: var(--bg-soft); color: var(--text); font-size: 14px; white-space: nowrap; }
.quick-filters a:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }

/* --- карточки анкет --- */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.article { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; transition: box-shadow .2s ease, transform .2s ease; content-visibility: auto; contain-intrinsic-size: auto 500px; }
.article-foto { position: relative; }
.article-foto a { display: block; position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); }
.article-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-foto img.ph-hover { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.no-photo { width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--bg-soft); font-size: 13px; }
.foto-watermark { position: absolute; left: 10px; bottom: 8px; z-index: 2; color: #fff; font-size: 17px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); pointer-events: none; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
.badge { color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.b-verified { background: #0D853C; } /* тёмнее var(--green): контраст с белым текстом 4.7:1 (WCAG AA) */
.b-new { background: var(--main); }
.badge-video-corner { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; }
.article-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex-grow: 1; }
.article .head { display: flex; align-items: center; gap: 6px; }
.article .h4 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* вся карточка кликабельна: ссылка имени растянута на всю карточку */
.article .h4 > a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.article .h4 > a { color: var(--teal); text-decoration: none; font-weight: 800; }
.article .h4 > a:hover { text-decoration: underline; }
.article .card-age { color: var(--muted); font-size: 14px; font-weight: 600; }
.article-phone-row { display: flex; align-items: center; gap: 7px; position: relative; z-index: 2; }
.article-phone { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.article-phone:hover { color: var(--main); }
.msg-ico { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2; text-decoration: none; }
.article-price { margin-left: auto; color: var(--text-soft); font-weight: 700; font-size: 14px; white-space: nowrap; }
.article-geo { display: flex; align-items: flex-start; gap: 6px; color: var(--text-soft); font-size: 14px; }
.geo-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--main); margin-top: 5px; }
.article-hours { font-size: 14px; color: var(--muted); font-weight: 600; }

/* --- страница анкеты --- */
.anketa-grid { display: flex; flex-direction: column; gap: 0; }
.anketa-info { min-width: 0; order: 1; }
.anketa-gallery { order: 2; min-width: 0; margin-top: 10px; }
.pay-warning { order: 3; }
.prices { order: 4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-soft); border-radius: 8px; padding: 9px 14px; font-size: 14px; color: var(--text-soft); }
.chip b { color: var(--text); font-weight: 700; }
.anketa h1 { margin: 0 0 8px; font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.anketa-id { font-size: 15px; color: var(--text-soft); font-weight: 700; }
.verified-check { display: inline-flex; }
.badge-verified-line { margin: 0 0 6px; }
.badge-video { display: inline-block; background: var(--purple); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.anketa-activity { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.anketa-activity b { color: var(--text-soft); }
.anketa-phone-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.anketa-phone { font-size: 21px; font-weight: 800; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.anketa-phone:hover { color: var(--main); }
.msg-max { display: inline-flex; align-items: center; font-weight: 800; font-size: 14px; color: var(--purple); text-decoration: none; }
.anketa-geo { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 15px; margin: 4px 0 2px; }
.anketa-geo a { color: inherit; text-decoration: none; }
.anketa-geo a:hover { color: var(--main); text-decoration: underline; }

/* галерея анкеты: свайп-лента + синие стрелки */
.gallery-title { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.gallery-wrap { position: relative; }
.photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: flex-start; border-radius: var(--radius); }
.photos::-webkit-scrollbar { display: none; }
.photos .ph { flex: 0 0 82%; scroll-snap-align: center; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--main); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .95; }
.gal-arrow:hover { background: #005f96; }
.gal-prev { left: 8px; }
.gal-next { right: 8px; }
.gallery-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; }
.anketa-gallery video { display: block; max-width: 100%; width: auto; max-height: 70vh; margin: 12px auto 0; border-radius: var(--radius); }

/* блоки анкеты */
.anketa-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 14px 0; }
.anketa-block .h2, .prices .h2 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.similar { margin-top: 26px; }
.similar .h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }

/* цены двумя колонками */
.price-cols { display: grid; grid-template-columns: 1fr; gap: 10px; }
.price-col { background: var(--bg-soft); border-radius: var(--radius); padding: 10px 14px; }
.price-col-head { font-weight: 800; font-size: 14px; color: var(--purple); padding: 4px 0 8px; }
.price-col:first-child .price-col-head { color: var(--red); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.price-label { color: var(--text-soft); }
.price-value { font-weight: 700; color: var(--text); white-space: nowrap; }

table.params-table { border-collapse: collapse; width: 100%; font-size: 14px; }
table.params-table td, table.params-table th { border-bottom: 1px solid #f0f0f2; padding: 9px 8px; text-align: left; }
table.params-table tr:last-child td, table.params-table tr:last-child th { border-bottom: 0; }
table.params-table th { width: 45%; color: var(--muted); font-weight: 600; }
.services-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.services-grid div { background: var(--bg-soft); border-radius: 14px; padding: 6px 12px; font-size: 14px; }
.services-grid a { color: inherit; text-decoration: none; }
.services-grid a:hover { color: var(--main); text-decoration: underline; }
.services-grid .svc-comment { display: block; color: var(--muted); font-size: 13px; }
.about-text { font-size: 14px; line-height: 1.55; color: var(--text-soft); }

/* --- лайтбокс --- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 200; display: flex; align-items: center; justify-content: center; touch-action: none; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lb-btn { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; font-size: 26px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }

/* --- липкая панель звонка (мобильная) --- */
.cta-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.14); padding: 8px 12px; display: flex; gap: 10px; align-items: center; z-index: 90; }
.cta-bar .btn-call { flex: 1; margin-top: 0; padding: 12px 0; font-size: 16px; }
.cta-bar .cta-msg { display: inline-flex; align-items: center; flex-shrink: 0; }
.btn-call { display: block; text-align: center; background: var(--main); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 0; border-radius: 10px; }
.btn-call:hover { background: #005f96; }
body.has-cta main { padding-bottom: 72px; }

/* --- страницы «Все метро» / «Все районы» --- */
.geo-index { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.geo-letter { font-weight: 800; font-size: 17px; color: var(--text); margin: 12px 0 4px; }
.geo-letter:first-child { margin-top: 0; }
.geo-list { list-style: none; margin: 0; padding: 0; columns: 2; }
.geo-list li { break-inside: avoid; padding: 3px 0; }
.geo-list a { text-decoration: none; color: var(--text-soft); }
.geo-list a:hover { color: var(--main); text-decoration: underline; }
.geo-count { color: var(--muted); font-size: 13px; }

/* --- пагинация --- */
.pagination { margin: 22px 0; text-align: center; }
.pagination-desktop { display: none; }
.pgn { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pgn-btn { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.pgn-cur { background: var(--main); color: #fff; }
.pgn-dis { opacity: .45; }
.btn-more { display: block; text-align: center; background: var(--main); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 0; border-radius: 10px; margin: 20px 0; }
.btn-more:hover { background: #005f96; }

/* --- футер --- */
footer.site-footer { background: #fff; border-top: 1px solid var(--border); color: var(--text-soft); padding: 26px 0 18px; font-size: 14px; }
.footer-logo { display: inline-flex; align-items: center; gap: 7px; font-size: 19px; font-weight: 800; color: var(--text); text-decoration: none; }
.footer-city { color: var(--muted); margin: 4px 0 16px; }
footer.site-footer a { color: var(--text-soft); text-decoration: none; }
footer.site-footer a:hover { color: var(--main); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 18px 40px; }
.footer-col { min-width: 140px; }
.footer-col .f-head { color: var(--text); font-weight: 800; margin-bottom: 8px; font-size: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 5px; }
.footer-bottom { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* --- жалоба (предупреждение + модалка) --- */
.pay-warning { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fdecec; border: 1px solid #f3c2c2; border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.pay-warning p { flex: 1 1 260px; margin: 0; font-size: 14px; color: #8a1c1c; line-height: 1.45; }
.pay-warning .complaint-ok { color: #1c6e1c; font-weight: 700; }
.btn-complaint { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-complaint:hover { background: #b71c1c; }
.complaint-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 16px; }
.complaint-modal[hidden] { display: none; }
.cm-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cm-box { position: relative; background: #fff; border-radius: var(--radius); padding: 20px; width: 100%; max-width: 460px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.cm-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #777; }
.cm-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.cm-info { font-size: 13px; color: var(--text-soft); line-height: 1.45; margin: 0 0 12px; }
.cm-box textarea { width: 100%; min-height: 110px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 14px; font-family: inherit; resize: vertical; }
.cm-box textarea:focus { outline: none; border-color: var(--main); }
.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm-file { display: block; font-size: 13px; color: var(--text-soft); margin: 10px 0; }
.cm-file input { display: block; margin-top: 4px; font-size: 13px; }
.cm-error { color: var(--red); font-size: 13px; margin: 8px 0 0; }
.cm-submit { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 10px 20px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; width: 100%; }
.cm-submit:hover { background: #b71c1c; }
.cm-captcha { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.cm-captcha img { height: 44px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; flex: none; }
.cm-captcha input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.cm-captcha input:focus { outline: none; border-color: var(--main); }

/* --- faq --- */
.faq-section-title { margin: 22px 0 10px; font-size: 20px; font-weight: 800; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.faq-item summary { padding: 12px 40px 12px 14px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: '▾'; position: absolute; right: 14px; top: 12px; color: var(--muted); }
.faq-item[open] summary:after { content: '▴'; }
.faq-answer { padding: 0 14px 12px; line-height: 1.55; color: var(--text-soft); }

/* --- SEO-текст --- */
.seo-text { max-width: 760px; color: var(--text-soft); margin-top: 26px; font-size: 14px; line-height: 1.55; }
.seo-text h2 { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 12px; line-height: 1.3; }
.seo-text h3 { font-size: 16px; font-weight: 800; color: var(--text); margin: 22px 0 8px; line-height: 1.3; }
.seo-text h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 18px 0 6px; }
.seo-text p { margin: 0 0 12px; }
.seo-text ul, .seo-text ol { margin: 0 0 12px; padding-left: 22px; }
.seo-text li { margin: 0 0 6px; }
.seo-text a { color: var(--main); text-decoration: underline; }
.seo-text a:hover { text-decoration: none; }
.seo-text strong, .seo-text b { color: var(--text); }

/* --- 404 --- */
.e404 { text-align: center; padding: 48px 16px 64px; }
.e404-code { font-size: 72px; font-weight: 800; color: var(--main); line-height: 1; }
.e404-h { font-size: 24px; margin: 12px 0 8px; }
.e404-t { color: var(--muted); margin: 0 0 24px; }
.e404-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.e404-actions .btn-cta { background: var(--main); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 10px; }
.e404-actions .btn-ghost { background: #fff; color: var(--text); text-decoration: none; padding: 12px 22px; border-radius: 10px; border: 1px solid var(--border); }

/* ===== планшет ===== */
@media (min-width: 768px) {
    .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .price-cols { grid-template-columns: 1fr 1fr; }
    .pagination-desktop { display: block; }
    .btn-more { display: none; }
    .quick-filters { display: none; }
    .geo-list { columns: 3; }
    .cta-bar { display: none; }
    body.has-cta main { padding-bottom: 34px; }
    .anketa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; grid-template-areas: "info gallery" "warning gallery" "prices gallery"; align-items: start; }
    .anketa-info { grid-area: info; }
    .pay-warning { grid-area: warning; }
    .prices { grid-area: prices; }
    .anketa-gallery { grid-area: gallery; margin-top: 0; }
}

/* ===== десктоп ===== */
@media (min-width: 1024px) {
    .header-search { order: 0; width: auto; max-width: 520px; flex: 1; }
    .btn-add { display: inline-block; }
    .menu-toggle { display: none; }
    nav.main-menu { display: block; }
    nav.main-menu > ul { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 0 12px; max-width: 1180px; margin: 0 auto; }
    nav.main-menu > ul > li { border-bottom: 0; position: relative; }
    nav.main-menu > ul > li > a, nav.main-menu summary { padding: 10px 4px; font-size: 14px; }
    nav.main-menu summary:after { float: none; margin-left: 4px; }
    nav.main-menu details .drop { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 20px rgba(0,0,0,.15); columns: 1; z-index: 40; padding: 6px 0; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
    nav.main-menu > ul > li:last-child .drop,
    nav.main-menu > ul > li:nth-last-child(2) .drop { left: auto; right: 0; }
    .cards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .geo-list { columns: 4; }
}

/* ховер-эффект только на устройствах с мышью */
@media (hover: hover) {
    .article:hover .article-foto img.ph-hover { opacity: 1; }
    .article:hover { box-shadow: 0 8px 22px rgba(0,0,0,.14); transform: translateY(-2px); }
}

/* --- тач-таргеты минимум 44px на сенсорных устройствах --- */
@media (pointer: coarse) {
    nav.main-menu > ul > li > a, nav.main-menu summary { padding: 13px 4px; }
    nav.main-menu .drop a { padding: 11px 4px; }
    .msg-ico { min-width: 32px; min-height: 32px; }
    .geo-list li { padding: 0; }
    .geo-list a { display: block; padding: 11px 4px; }
    footer.site-footer .footer-col a { display: inline-block; padding: 7px 0; }
    .btn-more { padding: 16px 0; }
}

/* Длинные неразрывные строки не ломают вёрстку */
.services-grid div, .about-text, .anketa-phone, .geo-list a, nav.main-menu .drop a, h1 {
    overflow-wrap: anywhere;
}

/* Инлайн-ссылки в контенте — подчёркивание */
main p a, .about-text a { text-decoration: underline; text-underline-offset: 2px; }

/* Явные focus-состояния */
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--main); outline-offset: 2px; border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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