/* Единый каркас страниц на шаблонах (resources/views/groomerlab/templates/*): отступ от шапки до начала контента одинаков на всех страницах.
   Замер до унификации (27.10.2026, 132 страницы): от шапки до первого текста 0-104 px на компьютере (главная 28, породы 18, услуги 8 или 65, блог 40, хабы 64-74, о нас 70, мастера 104).
   Целевая величина (заказчик 27.10.2026: 44 px было велико): 20 px на компьютере (от 1161), 16 px до 1160, 14 px на телефоне (до 700); главная - 12 px (gl-home.css). Шапка фиксированная, высоту под неё
   даёт body{padding-top:var(--hdr-h)} из дизайна: у main своего верхнего отступа быть не должно. Первый блок страницы помечен классом gl-first. */
:root { --gl-top: 20px; }
@media (max-width: 1160px) { :root { --gl-top: 16px; } }
@media (max-width: 700px) { :root { --gl-top: 14px; } }
@media (width >= 1600px) {
  .gl-main--course .teacher--6 {
    max-width: 1540px;
    margin-inline: auto;
  }
  .gl-main--breed :is(.v2-box--white, .v2-box--soft) > p {
    max-width: var(--gl-measure, 70ch);
  }
}
main.gl-main { padding-top: 0 !important; margin-top: 0 !important; }
main.gl-main > .gl-first { padding-top: var(--gl-top) !important; margin-top: 0 !important; }

/* Видимые хлебные крошки (GlCrumbs, nav.gl-crumbs между шапкой и main). Первый блок страницы после них получает меньший верхний отступ. */
.gl-crumbs { padding: calc(var(--gl-top) - 4px) 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted, #7a7a76); }
.gl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.gl-crumbs li { display: inline-flex; align-items: center; }
.gl-crumbs li + li::before { content: '›'; margin: 0 8px; opacity: .6; }
.gl-crumbs a { color: inherit; text-decoration: none; padding: 6px 0; display: inline-block; }
.gl-crumbs a:hover { color: var(--bronze-dk, #a87c50); text-decoration: underline; text-underline-offset: 3px; }
.gl-crumbs [aria-current="page"] span { color: var(--ink, #16253c); }
.gl-crumbs + main.gl-main > .gl-first { padding-top: 10px !important; }
.gl-crumbs ~ main.gl-main--home > .hero.gl-first { padding-top: var(--gl-hero-pt, 12px) !important; }
@media (max-width: 700px) { .gl-crumbs { font-size: 13px; } .gl-crumbs li:not(:last-child):not(:first-child) { display: none; } .gl-crumbs li:nth-last-child(2) { display: inline-flex; } }

/* Единые зазоры между блоками на всех шаблонах (заказчик 27.10.2026: кнопки карточек и абзац слипались, «Где сделать» липло к блоку записи) */
:root { --gl-block-gap: 56px; }
@media (max-width: 1160px) { :root { --gl-block-gap: 48px; } }
@media (max-width: 700px) { :root { --gl-block-gap: 36px; } }
main.gl-main .gl-where,
main.gl-main .gl-sec + .gl-sec { margin-top: var(--gl-block-gap) !important; }
main.gl-main .gl-where { padding-top: 0; padding-bottom: 0; }
main.gl-main .dcats + .gl-lead,
main.gl-main .dcats + .gl-ghost,
main.gl-main .v2-bcs + .gl-lead { margin-top: 32px !important; }
main.gl-main .gl-lead + .gl-ghost { margin-top: 20px !important; }
main.gl-main .gl-ghost + .gl-sec { margin-top: var(--gl-block-gap) !important; }
main.gl-main .gl-lead { margin-top: 32px !important; }
main.gl-main .gl-lead + .gl-ghost { margin-top: 20px !important; }

/* Контейнеры шаблонов используют ту же ширину, что и шапка. */
main.gl-main .v2-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--gl-shell-max) !important;
  margin-inline: auto;
  padding-inline: var(--gl-shell-gutter) !important;
}
main.gl-main .v2-wrap .sec-wide { padding-inline: 0 !important; }

/* SEO-блоки: «Коротко» под первым экраном и «Смотрите также» (перелинковка) */
main.gl-main .gl-short-block { margin-top: 28px !important; }
main.gl-main > .gl-short-block { max-width: var(--gl-shell-max); margin-inline: auto; padding: 0 var(--gl-shell-gutter); box-sizing: border-box; }
main.gl-main .gl-short-lead { margin: 0; max-width: 920px; }
.gl-related { padding: 0; }
main.gl-main :is(.sec-wide, .wrap, .rn, .mk-wrap, .job-wrap, .sc-wrap, .art, .blg) .gl-related > .sec-wide { padding-inline: 0; }
.gl-related__h { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 500; color: var(--ink, #16253c); }
.gl-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.gl-related__col { background: #fff; border: 1px solid rgba(22,37,60,.1); border-radius: 20px; padding: 22px 24px; }
.gl-related__t { margin: 0 0 10px; font-size: 18px; line-height: 1.25; font-weight: 600; color: var(--ink, #16253c); }
.gl-related__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.gl-related__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--bronze-dk, #a87c50); text-decoration: underline; text-underline-offset: 3px; font-size: 16px; line-height: 1.35; }
.gl-related__col a:hover { color: var(--ink, #16253c); }
main.gl-main .gl-related { margin-top: var(--gl-block-gap) !important; }

/* Дата публикации и обновления статьи */
.art-dates { margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: #6f6a62; }

/* Реквизиты: список «подпись - значение», номера не переносятся внутри цифр */
.req__lead { max-width: 760px; margin: 0 0 20px; font-size: 18px; line-height: 1.55; color: #4d4d4d; }
.req__g { margin: 0 0 16px; padding: 0; }
.req__g h2 { margin: 18px 0 10px; font-size: 20px; }
.req__dl { margin: 0; background: #fff; border: 1px solid rgba(22,37,60,.1); border-radius: 24px; padding: 8px 28px; }
.req__row { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid rgba(22,37,60,.08); }
.req__row:last-child { border-bottom: 0; }
.req__row dt { color: #6f6a62; font-size: 15px; }
.req__row dd { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink, #16253c); overflow-wrap: anywhere; }
.req__nb { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .req__row { grid-template-columns: 1fr; } .req__dl { padding: 4px 18px; border-radius: 20px; } }
.gl-main--requisites .req__lead { margin-bottom: 8px; }
.gl-main--requisites .req__g { margin-top: 0; }
.gl-main--requisites .req__g h2 { margin-top: 24px; }

/* Кнопка со стрелкой внутри (App\Support\GlButtons): круг-стрелка отдельно от кнопки убран */
a.has-arr { display: inline-flex !important; align-items: center; justify-content: center; gap: 12px; }
a.has-arr .gl-btn__arr { flex: none; width: 20px; height: 20px; transition: transform .18s; }
a.has-arr:hover .gl-btn__arr { transform: translate(2px, -2px); }

/* Отзывы Яндекс Карт (виджет): две карточки, по салону на карточку */
.gl-yrev__h { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 500; }
.gl-yrev__lead { margin: 0 0 20px; max-width: 760px; color: #4d4d4d; line-height: 1.5; }
.gl-yrev__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gl-yrev__grid--1 { grid-template-columns: minmax(0, 720px); }
.gl-yrev__card { background: #fff; border: 1px solid rgba(22,37,60,.1); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.gl-yrev__city { margin: 0; font-size: 20px; font-weight: 600; }
.gl-yrev__frame { width: 100%; height: 640px; border: 0; border-radius: 16px; background: #f6f3ef; }
.gl-yrev__more { align-self: flex-start; color: var(--bronze-dk, #a87c50); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 900px) { .gl-yrev__grid { grid-template-columns: 1fr; } .gl-yrev__frame { height: 560px; } }

/* Карточка «Поделиться» внизу страницы (App\Support\GlShare): OG-обложка + кнопки */
.gl-shr { margin: var(--gl-block-gap, 56px) 0 0; }
.gl-shr__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; background: #fff; border: 1px solid rgba(22,37,60,.1); border-radius: 28px; padding: 18px; }
.gl-shr__fig { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1200 / 630; background: #f3efeb; }
.gl-shr__fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gl-shr__tx { padding: 8px 14px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.gl-shr__k { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-dk, #a87c50); }
.gl-shr__t { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; font-weight: 600; color: var(--ink, #16253c); text-wrap: balance; }
.gl-shr__d { margin: 0; font-size: 16px; line-height: 1.5; color: #5d5d5d; }
.gl-shr__b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.gl-shr__btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(188,147,109,.6); background: #fff; color: var(--ink, #16253c); font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 18px 0 14px; border-radius: 100px; text-decoration: none; transition: background .18s, color .18s; }
.gl-shr__btn svg { flex: none; }
.gl-shr__btn:hover, .gl-shr__btn:focus-visible { background: var(--bronze, #bc936d); color: #fff; }
.gl-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #16253c; color: #fff; padding: 12px 22px; border-radius: 100px; font-size: 15px; line-height: 1.3; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100vw - 32px); text-align: center; }
.gl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 800px) { .gl-shr__in { grid-template-columns: 1fr; gap: 16px; padding: 12px; border-radius: 22px; } .gl-shr__tx { padding: 4px 8px 8px; } .gl-shr__btn { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 0 12px; } }

/* Нижний SEO-текст (блок gl-seo-text) */
.gl-seo-text { margin-top: var(--gl-block-gap, 56px) !important; }
.gl-seo-text__card { background: #fff; border: 1px solid rgba(22,37,60,.1); border-radius: 28px; padding: 32px 36px; }
.gl-seo-text__h { margin: 0 0 16px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 600; color: var(--ink, #16253c); text-wrap: balance; }
.gl-seo-text__body p { margin: 0 0 14px; max-width: 880px; font-size: 17px; line-height: 1.6; color: #3f3f3f; }
.gl-seo-text__body p:last-child { margin-bottom: 0; }
.gl-seo-text__body.is-clamped { max-height: 230px; overflow: hidden; position: relative; }
.gl-seo-text__body.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.gl-seo-text__more { margin-top: 12px; appearance: none; border: 0; background: none; padding: 0; min-height: 44px; font: inherit; font-weight: 600; color: var(--bronze-dk, #a87c50); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gl-seo-text__also { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(22,37,60,.08); }
.gl-seo-text__k { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-dk, #a87c50); }
.gl-seo-text__also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gl-seo-text__also a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 100px; background: #f3efeb; color: var(--ink, #16253c); text-decoration: none; font-size: 15px; transition: background .18s; }
.gl-seo-text__also a:hover { background: #e8d9c8; }
@media (max-width: 700px) { .gl-seo-text__card { padding: 22px 18px; border-radius: 22px; } .gl-seo-text__body p { font-size: 16px; } }

/* SEO-блок: воздух между подписью «Часто ищут» и бейджами-ссылками (заказчик 27.10.2026) */
html:not(#_) main .gl-seo-text__also { margin-top: 24px; padding-top: 24px; }
html:not(#_) main .gl-seo-text__also .gl-seo-text__k { margin: 0 0 16px !important; line-height: 1.3; }
html:not(#_) main .gl-seo-text__also ul { gap: 10px 12px; }

/* Услуги: «Почему опасно» и «Как проходит» плитками рядом, фото-полоса крупными плитками (заказчик 27.10.2026) */
.gl-text-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: var(--gl-block-gap, 56px); }
html:not(#_) main .gl-text-grid > .gl-text { margin: 0 !important; padding: 28px 30px; background: #fff; border: 1px solid rgba(22,37,60,.1); border-radius: 24px; }
html:not(#_) main .gl-text-grid .gl-text__p { max-width: none; }
html:not(#_) main .gl-text-grid .v2-h2 { font-size: clamp(22px, 2.2vw, 30px); }
@media (max-width: 800px) { .gl-text-grid { grid-template-columns: 1fr; gap: 14px; } html:not(#_) main .gl-text-grid > .gl-text { padding: 22px 20px; border-radius: 20px; } }
html:not(#_) main .v2-strip { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
html:not(#_) main .v2-strip > * { width: 100% !important; max-width: none !important; margin: 0 !important; }
html:not(#_) main .v2-strip img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; }
/* «Где сделать»: воздух между вводной строкой и карточками салонов */
html:not(#_) main .gl-where__lead { margin: 0 0 24px !important; }
html:not(#_) main .gl-where__h { margin-bottom: 12px; }

/* Нижний SEO-блок с фото страницы: текст слева, фото справа; «Часто ищут» на всю ширину под ними */
.gl-seo-text__card.has-img { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
.gl-seo-text__card.has-img .gl-seo-text__also { grid-column: 1 / -1; }
.gl-seo-text__fig { margin: 0; border-radius: 20px; overflow: hidden; align-self: stretch; min-height: 220px; }
.gl-seo-text__fig img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
@media (max-width: 900px) { .gl-seo-text__card.has-img { grid-template-columns: 1fr; } .gl-seo-text__fig { order: -1; margin-bottom: 18px; min-height: 0; } .gl-seo-text__fig img { height: auto; aspect-ratio: 16 / 10; } }
main.gl-main .v2-book + .gl-sec, main.gl-main .v2-book + .gl-seo-text, main.gl-main .gl-fresh { margin-top: var(--gl-block-gap, 56px) !important; }

/* Фото в нижнем SEO-блоке: фиксированные пропорции, не растягивает карточку (заказчик 27.10.2026: проблема с масштабом) */
html:not(#_) main .gl-seo-text__fig { align-self: start; aspect-ratio: 4 / 3; min-height: 0; max-height: 380px; width: 100%; background: #f1e8de; position: relative; }
html:not(#_) main .gl-seo-text__fig img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 20%; }
@media (max-width: 900px) { html:not(#_) main .gl-seo-text__fig { max-height: 300px; aspect-ratio: 16 / 10; } html:not(#_) main .gl-seo-text__fig img { position: absolute; aspect-ratio: auto; } }

/* Заголовки: слова с дефисом не рвутся (App\Support\GlHeadings); H1 услуг компактнее, подпись города не ломается на много строк */
.nb { white-space: nowrap; }
html:not(#_) main.gl-main--service .v2-h1, html:not(#_) main.gl-main--service-index .v2-h1, html:not(#_) main.gl-main--cat-index .v2-h1 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.08; text-wrap: balance; }
html:not(#_) main.gl-main--service .v2-h1 .v2-hand, html:not(#_) main.gl-main--service .v2-hand { font-size: .72em; white-space: normal; }
html:not(#_) main.gl-main--service .v2-h1.v2-h1--xl { font-size: clamp(30px, 2.9vw, 44px) !important; line-height: 1.08; }
html:not(#_) main.gl-main--service .v2-hs__l .v2-h1 { text-wrap: balance; }

/* Нижний SEO-блок тремя плитками с H3 (заказчик 27.10.2026): H2, три плитки в ряд, под ними «Часто ищут» */
html:not(#_) main .gl-seo-text__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-top: 20px; }
html:not(#_) main .gl-seo-text__tile { background: #faf7f3; border: 1px solid rgba(22,37,60,.1); border-radius: 22px; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
html:not(#_) main .gl-seo-text__h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--ink, #16253c); text-wrap: balance; }
html:not(#_) main .gl-seo-text__tile p { margin: 0; max-width: none; font-size: 16px; line-height: 1.6; color: #3f3f3f; }
@media (max-width: 1100px) { html:not(#_) main .gl-seo-text__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } html:not(#_) main .gl-seo-text__tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { html:not(#_) main .gl-seo-text__tiles { grid-template-columns: 1fr; gap: 14px; } html:not(#_) main .gl-seo-text__tile { padding: 20px 18px; border-radius: 18px; } html:not(#_) main .gl-seo-text__tile:last-child { grid-column: auto; } html:not(#_) main .gl-seo-text__h3 { font-size: 18px; } }
html:not(#_) main.gl-main--service, html:not(#_) main.gl-main--service-index, html:not(#_) main.gl-main--cat-index { --gl-h1: clamp(30px, 3vw, 44px); }
html:not(#_) main .v2-hs__l .v2-h1 { max-width: none; width: 100%; }

/* Рукописная подпись в H1 (город): одной строкой под основной, всего две строки (заказчик 27.10.2026) */
@media (min-width: 701px) {
  html:not(#_) main .v2-h1 .v2-hand, html:not(#_) main .v2-h1 .hand { display: block; white-space: nowrap !important; margin: .08em 0 0 0 !important; padding-left: 0 !important; max-width: none; }
}
@media (min-width: 701px) {
  html:not(#_) main.gl-main--service .v2-hand, html:not(#_) main.gl-main--service .v2-hand--in { display: block; white-space: nowrap !important; margin: .1em 0 0 0 !important; padding-left: 0 !important; max-width: none !important; font-size: clamp(24px, 2.3vw, 34px) !important; line-height: 1.15; }
  html:not(#_) main.gl-main--service .v2-hand .v2-heart { display: inline-block; vertical-align: middle; margin-left: 8px; }
}
@media (max-width: 700px) {
  html:not(#_) main.gl-main--service .v2-hand, html:not(#_) main.gl-main--service .v2-hand--in { font-size: clamp(17px, 5vw, 22px) !important; white-space: nowrap; margin-top: .1em !important; line-height: 1.2; }
}

/* О нас: в первом экране два крупных видео, фото основательницы ниже и целиком (без обрезки фона и собак), заказчик 27.10.2026 */
html:not(#_) main.gl-main--about .shero__grid.utp-split__ph { grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
html:not(#_) main.gl-main--about .shero__vid video { width: 100%; height: auto; aspect-ratio: 277 / 380; object-fit: cover; display: block; }
.about-founder { margin: var(--gl-block-gap, 56px) 0 0; border-radius: 24px; overflow: hidden; background: #fff; }
html:not(#_) main .about-founder img { display: block; width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain; }
html:not(#_) main.gl-main--about .utp-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
html:not(#_) main.gl-main--about .shero__vid { margin: 0; }
html:not(#_) main.gl-main--about .shero__vid video { aspect-ratio: 3 / 4 !important; height: auto !important; max-height: calc(100vh / var(--gl-z, 1) - 230px); }
html:not(#_) main.gl-main--about .utp-more { margin-top: 28px; }
@media (max-width: 900px) { html:not(#_) main.gl-main--about .utp-split { grid-template-columns: 1fr; } html:not(#_) main.gl-main--about .shero__vid video { max-height: none; } }
html:not(#_) main.gl-main--about .utp-split .shero__grid.utp-split__ph { height: auto !important; max-height: none !important; grid-template-rows: none !important; }
html:not(#_) main.gl-main--about .utp-split .shero__grid .shero__vid { height: auto !important; aspect-ratio: 3 / 4; position: relative; }
html:not(#_) main.gl-main--about .utp-split .shero__grid .shero__vid video { position: absolute; inset: 0; width: 100%; height: 100% !important; max-height: none !important; aspect-ratio: auto !important; object-fit: cover; }

/* О нас: под видео слева «Коротко» и описание с переходом в каталог, справа на высоту блоков фото основательницы с собаками */
.about-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: stretch; margin-top: var(--gl-block-gap, 56px); }
.about-split__l { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
html:not(#_) main.gl-main--about .about-split__l .gl-short-block { margin: 0 !important; }
html:not(#_) main.gl-main--about .about-split__l .utp-more { margin: 0; }
html:not(#_) main .about-split .about-founder { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; position: relative; min-height: 360px; }
html:not(#_) main .about-split .about-founder img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center 35%; aspect-ratio: auto !important; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 24px; } html:not(#_) main .about-split .about-founder { min-height: 0; } html:not(#_) main .about-split .about-founder img { position: static; height: auto !important; object-fit: contain; } }
/* О нас: фото слева, текст справа, кнопка каталога прижата к правому краю (заказчик 27.10.2026) */
@media (min-width: 901px) {
  html:not(#_) main.gl-main--about .about-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  html:not(#_) main.gl-main--about .about-split .about-founder { order: 1; }
  html:not(#_) main.gl-main--about .about-split .about-split__l { order: 2; }
  html:not(#_) main.gl-main--about .about-split__l .gl-cta, html:not(#_) main.gl-main--about .about-split__l .shero__cta { display: flex; justify-content: flex-end; margin-top: 8px; }
}
@media (max-width: 900px) { html:not(#_) main.gl-main--about .about-split__l .gl-cta { display: flex; justify-content: flex-end; } }

/* «Что пора сделать хвостику?»: при переключении вкладок блок не меняет размер, подпись всегда две строки, собаки одной высоты (заказчик 27.10.2026) */
html:not(#_) main .dhero .dh-note { min-height: 2.7em; line-height: 1.3 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html:not(#_) main .dhero .dh-note[hidden] { display: none !important; }
html:not(#_) main .dhero .dh-card img.dh-pudel { width: auto !important; max-width: none !important; height: clamp(150px, 44vw, 200px) !important; right: 12px !important; bottom: 0 !important; object-fit: contain; object-position: right bottom; }
@media (min-width: 901px) { html:not(#_) main .dhero .dh-card img.dh-pudel { height: clamp(230px, 20vw, 290px) !important; } }

/* «До / После» на iPhone: горизонтальное перетягивание шторки забирает скрипт, а не Safari (иначе страница уезжает вправо); вертикальная прокрутка сохраняется */
html:not(#_) .bas { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html:not(#_) .bas-grid { overscroll-behavior-x: contain; touch-action: pan-y; }
html:not(#_) .bas__range { touch-action: pan-y; }
@media (max-width: 700px) {
  html:not(#_) main .dhero .dh-note { font-size: 19px !important; max-width: calc(100% - 128px) !important; -webkit-line-clamp: 3; }
}

/* ПРАВИЛО (заказчик 27.10.2026): на мобильной раскладке отступы между блоками вдвое меньше, на всех страницах.
   Было 44 + 44 (поля секции) + 36 (зазор) = 124 px, стало 22 + 22 + 18 = 62 px. */
@media (max-width: 700px) {
  :root { --gl-block-gap: 18px; --gl-svc-gap: 18px; }
  section { padding-block: 22px; }
}

/* Мастера и сотрудники на телефоне везде лентой со свайпом (заказчик 27.10.2026); без вертикального дрейфа и обрезки скруглений (Android),
   без «ухода» блока вниз при листании (iPhone): overflow-y hidden, overscroll contain, карточки без reveal-анимации внутри ленты */
@media (max-width: 700px) {
  html:not(#_) .slt__grid { display: flex !important; gap: 12px !important; overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; overscroll-behavior-y: auto; margin-right: -12px; padding: 2px 12px 4px 0; margin-top: 24px; }
  html:not(#_) .slt__grid::-webkit-scrollbar { display: none; }
  html:not(#_) .slt__grid > .slt__c { flex: 0 0 42%; scroll-snap-align: start; transform: none !important; opacity: 1 !important; transition: none !important; animation: none !important; }
  html:not(#_) .slt__grid > .slt__c img { display: block; width: 100%; height: auto; border-radius: 24px; transform: translateZ(0); }
  html:not(#_) .slt--all .slt__grid { grid-template-columns: none; row-gap: 0; }
}
/* ленты .team (сотрудники на главной и в обучении): те же защиты от дрейфа по Y */
html:not(#_) .team, html:not(#_) .grads { overflow-y: hidden !important; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
html:not(#_) .team > *, html:not(#_) .grads > * { transform: none; }

/* «Трансформации»: зона перетаскивания шторки у линии 56 px с touch-action: none (iPhone не отдаёт жест прокрутке), остальное фото pan-y */
html:not(#_) .bas__line { pointer-events: auto; touch-action: none; }
html:not(#_) .bas__line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 56px; margin-left: -28px; touch-action: none; }
html:not(#_) .bas__line i { touch-action: none; }

/* Блок записи на iPhone: Safari не раскрывает проценты высоты у абсолютных картинок внутри aspect-ratio и подставляет натуральный размер
   (правая часть обрезается; на Android нормально). На телефоне вырезанные фото (не bk--photo) рисуем обычным потоком: контейнер flex, картинка по высоте рамки. */
@media (max-width: 700px) {
  html:not(#_) .v2-book__media.bk:not(.bk--photo) { display: flex; align-items: flex-end; justify-content: center; overflow: hidden !important; }
  html:not(#_) .v2-book__media.bk:not(.bk--photo) .bk__f { position: relative !important; inset: auto !important; left: auto !important; top: auto !important; width: 100% !important; height: 100% !important; display: flex; align-items: flex-end; justify-content: center; }
  html:not(#_) .v2-book__media.bk:not(.bk--photo) .bk__f img { position: static !important; left: auto !important; top: auto !important; transform: none !important; width: auto !important; height: 100% !important; max-width: 100% !important; object-fit: contain !important; margin: 0 auto; }
  html:not(#_) .v2-book__media.bk--photo .bk__f img { object-fit: cover !important; width: 100% !important; height: 100% !important; }
}

/* Услуги на телефоне: меньше воздуха между шапкой и хлебными крошками; подпись города крупнее, второй строкой, сердце крупнее и выше (заказчик 27.10.2026) */
@media (max-width: 700px) {
  html:not(#_) .gl-crumbs { padding-top: 12px; }
  html:not(#_) main.gl-main--service .v2-hand, html:not(#_) main.gl-main--service .v2-hand--in { display: block !important; font-size: clamp(23px, 6.7vw, 30px) !important; line-height: 1.1; margin: 4px 0 0 !important; white-space: nowrap; }
  html:not(#_) main.gl-main--service .v2-hand .v2-heart, html:not(#_) main.gl-main--service .v2-hand--in .v2-heart { width: 1.3em !important; height: 1.3em !important; margin: 0 0 0 .2em !important; vertical-align: .38em; display: inline-block; }
}

@media (max-width: 420px) { :root { --hdr-h: 88px; } }

/* Услуги на телефоне: декор-ножницы у заголовка этапов не налезает на текст; все содержательные фото ниже цен с одинаковым скруглением */
@media (max-width: 700px) {
  html:not(#_) main.gl-main--service svg.v2-num__deco { display: none !important; }
  html:not(#_) main.gl-main--service .v2-sec figure, html:not(#_) main.gl-main--service .v2-works > *, html:not(#_) main.gl-main--service .v2-strip > *, html:not(#_) main.gl-main--service .v2-svc__ph, html:not(#_) main.gl-main--service .dcat__ph { border-radius: 22px; overflow: hidden; }
  html:not(#_) main.gl-main--service .v2-sec figure img, html:not(#_) main.gl-main--service .v2-works img, html:not(#_) main.gl-main--service .v2-strip img { border-radius: 22px; }
}

/* «Кто преподаёт» (мастер-классы): синяя подложка по высоте равна блоку текста, фото вписано внутрь целиком (заказчик 27.10.2026) */
@media (min-width: 901px) {
  html:not(#_) main.gl-main--edu-mk .mk-teach { display: grid; grid-template-columns: minmax(0, 356px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 56px; align-items: stretch; }
  html:not(#_) main.gl-main--edu-mk .mk-teach__l { display: contents; }
  html:not(#_) main.gl-main--edu-mk .mk-teach .mk-h2 { grid-column: 1 / -1; grid-row: 1; margin-bottom: 24px; }
  html:not(#_) main.gl-main--edu-mk .mk-teach__plate { grid-column: 1; grid-row: 2; position: relative; overflow: hidden; border-radius: 28px; min-height: 360px; height: auto !important; }
  html:not(#_) main.gl-main--edu-mk .mk-teach__r { grid-column: 2; grid-row: 2; align-self: stretch; margin-top: 0 !important; padding-top: 0 !important; display: flex; flex-direction: column; justify-content: center; }
  html:not(#_) main.gl-main--edu-mk .mk-teach__ph { position: absolute !important; inset: 0 !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; }
  html:not(#_) main.gl-main--edu-mk .mk-teach__ph img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain; object-position: center bottom; }
}
@media (min-width: 901px) { html:not(#_) main.gl-main--edu-mk .mk-teach__plate { margin-top: 0 !important; margin-bottom: 0 !important; align-self: stretch; } }

/* ПРАВИЛО (заказчик 27.10.2026): на десктопе отступы между блоками на 24% меньше: поля секций 64 -> 49, зазор 56 -> 43 (планшет 48 -> 36) */
@media (min-width: 701px) {
  :root { --gl-block-gap: 36px; --gl-svc-gap: 36px; }
  section { padding-block: 49px; }
}
@media (min-width: 1161px) { :root { --gl-block-gap: 43px; --gl-svc-gap: 43px; } }

/* ОБУЧЕНИЕ и САЛОНЫ после отката УТП (27.10.2026): зазор «крошки - H1» не больше 10-12 px как на утверждённых страницах, длинный H1 хабов не налезает на лид и метку */
html:not(#_) main .ehero { margin-top: 0 !important; padding-top: 0 !important; }
html:not(#_) main .ehero__h1 { margin-top: 0 !important; }
html:not(#_) main .mk-hero { padding-top: 0 !important; }
html:not(#_) main .job-hero { padding-top: 0 !important; }
html:not(#_) main .job-hero .job-h1 { margin-top: 0 !important; }
html:not(#_) main .rn-h1 { margin-top: 0 !important; }
html:not(#_) main .chero { padding-top: 0 !important; }
html:not(#_) main .chero__left { align-self: start !important; }
html:not(#_) main .slh__h1 { margin-top: 0; }
@media (min-width: 981px) {
  html:not(#_) main .slh .slh__h1 .slh__t { white-space: normal !important; font-size: min(80px, 11.2cqw) !important; line-height: 1.04 !important; text-wrap: balance; max-width: 100%; }
  html:not(#_) main .slh__l, html:not(#_) main .slh__r { min-width: 0; }
}
@media (max-width: 980px) { html:not(#_) main .slh__t { white-space: normal !important; font-size: min(14.7cqw, 64px) !important; } }
/* FAQ мастеров (details.fq): тот же зазор между вопросами, что у остальных FAQ */
html:not(#_) main .fqs { gap: 12px 40px; }
html:not(#_) main details.fq { margin: 0; }

/* «Коротко» не слипается со следующим блоком (контакты и др.): зазор по токену */
html:not(#_) main .gl-short-block + :not(.gl-sec), html:not(#_) main p.tldr + :not(.gl-sec), html:not(#_) main .rn-short + :not(.gl-sec) { margin-top: var(--gl-block-gap) !important; }
/* рукописные подписи под H1 не заходят на заголовок (мастер-классы, хабы салонов) */
html:not(#_) main .mk-hand { margin-top: 8px !important; }
html:not(#_) main .slh .slh__hand { margin-top: 8px !important; }
/* H1 на телефоне чуть крупнее (30 -> 34 px) на всех внутренних страницах */
@media (max-width: 700px) {
  html:not(#_) main.gl-main:not(.gl-main--home) { --gl-h1: 34px; }
  html:not(#_) main.gl-main.gl-main--service, html:not(#_) main.gl-main.gl-main--service-index, html:not(#_) main.gl-main.gl-main--cat-index { --gl-h1: 34px; }
  html:not(#_) main.gl-main--service .v2-h1, html:not(#_) main.gl-main--service-index .v2-h1, html:not(#_) main.gl-main--cat-index .v2-h1,
  html:not(#_) main.gl-main--service .v2-h1.v2-h1--xl { font-size: 34px !important; line-height: 1.1; }
}
/* футер на телефоне: раскрытые пункты - столбцом на всю ширину, а не в строку подряд */
@media (max-width: 700px) {
  html:not(#_) .ftr-cols a { display: flex !important; width: 100%; white-space: normal; }
  html:not(#_) .ftr-cols > div { display: block; }
  html:not(#_) .ftr-cols .ftr-acc { display: none; }
  html:not(#_) .ftr-cols h2.ftr-h.is-open + .ftr-acc { display: block; }
}
/* Ширина блоков = ширине шапки (1160 px контента при 1440): правки по общему замеру */
/* "Коротко" - рамка на всю ширину контента, а не по мерe строки */
html:not(#_) main.gl-main .tldr.gl-short, html:not(#_) main.gl-main .gl-short-lead, html:not(#_) main.gl-main p.tldr, html:not(#_) main.gl-main .tldr.gl-tldr { max-width: none !important; width: 100%; box-sizing: border-box; }
html:not(#_) main.gl-main > .gl-short-block { max-width: var(--gl-shell-max); }
html:not(#_) main.gl-main--service .gl-short { max-width: none; }

/* Useful page introductions: visible text, soft surface and ordinary readable typography. */
html:not(#_) main.gl-main .gl-summary {
  background: #f7f4ef;
  color: #35423d;
  border: 1px solid #e2dfd7;
  border-left: 3px solid #b28e69;
  border-radius: 12px !important;
  padding: 20px 24px;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.65;
}
html:not(#_) main.gl-main .gl-summary .gl-summary__label {
  display: block;
  margin: 0 0 8px !important;
  color: #243c32;
  font-family: inherit;
  font-size: 18px !important;
  font-weight: 650;
  line-height: 1.4;
  text-wrap: pretty;
  text-transform: none;
}
html:not(#_) main.gl-main .gl-summary .art-short__list { margin: 8px 0 0; padding-left: 20px; }
html:not(#_) main.gl-main .gl-summary .art-short__list li { color: #35423d; font-size: 16px; line-height: 1.65; }
html:not(#_) main.gl-main .gl-summary .art-short__list li + li { margin-top: 8px; }
html:not(#_) main.gl-main .gl-summary a { color: #285b47 !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  html:not(#_) main.gl-main .gl-summary { padding: 16px 18px; }
  html:not(#_) main.gl-main .gl-summary .gl-summary__label { font-size: 17px !important; }
}
/* Основные контейнеры обучения, районов и юридических страниц. */
html:not(#_) main.gl-main :is(.mk-wrap, .job-wrap, .rn, .wrap.legal) {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--gl-shell-max) !important;
  margin-inline: auto !important;
  padding-inline: var(--gl-shell-gutter) !important;
}
html:not(#_) main.gl-main--edu-reviews .ou-revs, html:not(#_) main.gl-main--edu-reviews .ou-fb, html:not(#_) main.gl-main .ou-revs, html:not(#_) main.gl-main .ou-fb { margin-left: 0 !important; margin-right: 0 !important; }
/* единственная карточка в неполном последнем ряду сетки занимает ряд целиком */
html:not(#_) .v2-svcs.v2-c3 > :last-child:nth-child(3n+1), html:not(#_) .v2-svcs:not(.v2-c2):not(.v2-c3):not(.v2-svcs--32) > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
html:not(#_) .v2-svcs.v2-c2 > :last-child:nth-child(2n+1) { grid-column: 1 / -1; }
/* Юридические страницы: «Документ», дата редакции, содержание слева, нумерованные разделы (структура как у страницы «Правовая информация») */
.lgl__eb { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-dk, #a87c50); }
.lgl__rev { margin: 10px 0 0; font-size: 15px; color: #6f6a62; }
.lgl__lead { max-width: 760px; margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: #4d4d4d; }
.lgl__grid { margin-top: 34px; display: block; }
.lgl__grid--toc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.lgl__toc ol { list-style: none; margin: 0; padding: 20px 22px; background: #fff; border: 1px solid rgba(22,37,60,.1); border-radius: 24px; position: sticky; top: 110px; display: grid; gap: 4px; }
.lgl__toc a { display: block; padding: 7px 0; font-size: 15px; line-height: 1.35; color: var(--ink, #16253c); text-decoration: none; }
.lgl__toc a:hover { color: var(--bronze-dk, #a87c50); }
.lgl__body { max-width: 760px; min-width: 0; }
.lgl__sec { scroll-margin-top: 110px; }
.lgl__sec + .lgl__sec { margin-top: 34px; }
.lgl__sec h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; }
.lgl__sec p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: #4d4d4d; overflow-wrap: anywhere; }
.lgl__links, .lgl__li { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 10px; }
.lgl__links li, .lgl__li li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.55; color: #4d4d4d; overflow-wrap: anywhere; }
.lgl__links li::before, .lgl__li li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--bronze, #bc936d); }
.lgl__links a { color: var(--ink, #16253c); text-decoration: underline; text-underline-offset: 3px; }
.lgl__links a:hover { color: var(--bronze-dk, #a87c50); }
@media (max-width: 980px) { .lgl__grid--toc { display: block; } .lgl__toc { display: none; } }
@media (max-width: 700px) { .lgl__lead { font-size: 17px; } .lgl__sec h2 { font-size: 21px; } .lgl__sec p, .lgl__links li, .lgl__li li { font-size: 16px; } }
html:not(#_) main.gl-main--legal .lgl__sec { margin: 0; padding: 0; }
html:not(#_) main.gl-main--legal .lgl__sec + .lgl__sec { margin-top: 34px; }
html:not(#_) main.gl-main--legal .lgl__toc a { font-weight: 500; color: var(--ink, #16253c); text-decoration: none; padding: 5px 0; }
html:not(#_) main.gl-main--legal .lgl__toc a:hover { color: var(--bronze-dk, #a87c50); }
html:not(#_) main.gl-main--legal .lgl__links a { font-weight: 500; color: var(--ink, #16253c); text-decoration: underline; text-underline-offset: 3px; }
html:not(#_) main.gl-main--legal .lgl__links a:hover { color: var(--bronze-dk, #a87c50); }
/* страницы районов: колонки на всю ширину шапки (в архиве заданы фиксированными px, не добирали 64 px справа) */
@media (min-width: 861px) {
  html:not(#_) main .rn .rn-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(#_) main .rn .rn-where { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); }
  html:not(#_) main .rn .rn-book { grid-template-columns: minmax(0, 1fr) 386px; }
}
/* блог (список): секции уже в контейнере по ширине шапки, внутренние поля 24 px сужали карточки "SEO-текст" и "Поделиться" */
html:not(#_) main.gl-main--blog-index .gl-seo-text .sec-wide, html:not(#_) main.gl-main--blog-index .gl-shr .sec-wide { padding-left: 0; padding-right: 0; }
/* отзывы об обучении: панель записи без лишних полей 12 px */
@media (min-width: 701px) { html:not(#_) main.gl-main--edu-reviews .v2-book.ou-book { padding-left: 0; padding-right: 0; } }
/* подвал на планшете (701-1160 px): ссылки столбцом, а не слитно в строку */
@media (min-width: 701px) { html:not(#_) .ftr-cols a, html:not(#_) .ftr-cols span { display: block; } }
/* подвал: пункты без ссылок (Сельмаш, Щепкин) оформлены как ссылки; нижняя строка на планшете - в столбец заголовка и ряд ссылок */
html:not(#_) .ftr-cols span { color: rgb(223, 227, 233); font-size: 15px; }
@media (min-width: 701px) and (max-width: 1160px) {
  html:not(#_) .ftr .bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  html:not(#_) .ftr .bottom .fl { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
}

/* подпись разработчика в правом нижнем углу подвала */
html:not(#_) .ftr .ftr-dev { text-align: right; margin-top: 10px; padding-bottom: 14px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.72); }
html:not(#_) .ftr .ftr-dev a { color: inherit; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
html:not(#_) .ftr .ftr-dev a:hover { color: #fff; }

/* Сердце после рукописной подписи на страницах услуг: маленькое, справа-вверху от конца строки, как в эталоне заказчика (27.10.2026) */
html:not(#_) main.gl-main--service .v2-hand .v2-heart, html:not(#_) main.gl-main--service .v2-hand--in .v2-heart { position: relative !important; right: auto !important; top: auto !important; display: inline-block !important; width: .36em !important; height: .36em !important; min-width: 11px; min-height: 11px; margin: 0 0 0 .34em !important; vertical-align: .46em !important; transform: rotate(12deg) !important; }

/* Плюсики подсказок у фото в ванне: левые сдвинуты правее, на край ванны, как правый (заказчик 27.10.2026) */
@media (max-width: 860px) {
  html:not(#_) .dhero .hot--1 { left: 21% !important; }
  html:not(#_) .dhero .hot--3 { left: 24% !important; }
}

@media (max-width: 339px) {
  .gl-main--service-index .dhero:not(.dhero--cat) .dh-board .dh-say { font-size: 26px !important; }
}

/* На широком экране сохраняем зазор над ванной и держим подсказки у её края. */
@media (width > 1440px) {
  .gl-main--service-index .dhero:not(.dhero--cat) .dh-board .dh-dog { width: min(97%, 442px) !important; }
  .gl-main--service-index .dhero:not(.dhero--cat) .dh-board .hot--1 { left: max(15.68%, calc(50% - 156px)) !important; }
  .gl-main--service-index .dhero:not(.dhero--cat) .dh-board .hot--2 { left: min(73.41%, calc(50% + 106px)) !important; }
  .gl-main--service-index .dhero:not(.dhero--cat) .dh-board .hot--3 { left: max(18.64%, calc(50% - 143px)) !important; }
}

/* Полоса «работы» на услугах: кроп-рамки .crt из архива рассчитаны на другую раскладку; показываем фото целиком по рамке 4:3 (иначе справа пустая полоса и снизу срез) */
@media (max-width: 700px) {
html:not(#_) main .v2-strip .crt { aspect-ratio: 4 / 3 !important; border-radius: 20px; }
html:not(#_) main .v2-strip .crt > img { position: absolute !important; inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover !important; transform: none !important; }
}

/* Страницы пород и услуг на телефоне (замечания Эммы 27.10.2026): без горизонтального ухода в Safari, картинка главного блока в своей рамке, собака в блоке записи крупнее, телефон убран из главного блока услуг */
@media (max-width: 700px) {
  html:not(#_) .gl-main--breed .v2-hb { grid-template-columns: minmax(0, 1fr) !important; }
  html:not(#_) .gl-main--breed .v2-hb > * { min-width: 0 !important; max-width: 100% !important; }
  html:not(#_) .gl-main--breed .v2-hb .v2-btns { flex-wrap: wrap; }
  html:not(#_) .gl-main--breed .hb21 .v2-hb__media { height: auto !important; aspect-ratio: 1 / 1 !important; overflow: hidden !important; border-radius: 28px !important; position: relative; }
  html:not(#_) .gl-main--breed .hb21 .v2-hb__media > .bk__f { position: absolute !important; inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; overflow: hidden !important; clip-path: none !important; }
  html:not(#_) .gl-main--breed .hb21 .v2-hb__media > .bk__f img { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain !important; object-position: 50% 100% !important; transform: none !important; translate: none !important; }
  html:not(#_) .gl-main--breed .hb21 .v2-hb__media .hot--1 { left: 17% !important; top: 22% !important; }
  html:not(#_) .gl-main--breed .hb21 .v2-hb__media .hot--2 { left: 30% !important; top: 80% !important; }
  html:not(#_) .v2-book__media.bk:not(.bk--photo) .bk__f img:not([src*="cta-poodle"]) { transform: scale(1.22) !important; transform-origin: 50% 100% !important; }
  html:not(#_) .v2-hs__card .v2-hs__tel { display: none !important; }
  html:not(#_) .v2-hc__ban { width: 100% !important; max-width: 100% !important; height: 150px !important; object-fit: cover !important; object-position: 50% 85% !important; }
  html:not(#_) main h2:has(> em + .v2-hand) { font-size: clamp(23px, 6.4vw, 27px) !important; line-height: 1.2 !important; }
}

/* Длинные названия пород в заголовке и фото в блоке записи не раздвигают страницу на телефоне (Safari) */
@media (max-width: 700px) {
  html:not(#_) .gl-main--breed .v2-h1 .hb21-l, html:not(#_) .gl-main--breed .v2-h1 .nb { white-space: normal !important; overflow-wrap: anywhere; }
  html:not(#_) .v2-book__panel > *, html:not(#_) .v2-book > * { min-width: 0; max-width: 100%; }
  html:not(#_) .v2-book__media.bk { overflow: hidden !important; max-width: 100%; }
}
@media (max-width: 700px) {
  html:not(#_) main .nb { white-space: normal !important; overflow-wrap: anywhere; }
}

/* Кот в «спа-дне» на телефоне: смещён к середине (замечание Эммы 27.10.2026) */
@media (max-width: 860px) {
  html:not(#_) .dhero--cat .dh-dog { translate: -22px 0; }
}

/* Фото кота помещается между подписью и знаком «Хорошее место». */
.gl-main--cat-index .dhero--cat .dh-board .dh-dog {
  width: auto !important;
  height: auto !important;
  max-width: 96% !important;
  max-height: 75% !important;
}

@media (width > 900px) {
  .gl-main--cat-index .dhero--cat .dh-board .dh-dog {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 700px) {
  .gl-main--cat-index .dhero--cat .dh-board .dh-dog { bottom: 13.5% !important; }
}

@media (max-width: 339px) {
  .gl-main--cat-index .dhero--cat .dh-board .dh-say {
    font-size: 26px !important;
    top: 8px !important;
  }
}

@media (width > 1440px) {
  html body main.gl-main--cat-index .dhero--cat .dh-board .hot--1 {
    left: calc(50% - 88px) !important;
    top: 30% !important;
  }
  .gl-main--cat-index .dhero--cat .dh-board .hot--2 {
    left: calc(50% + 103px) !important;
    top: 47% !important;
  }
  .gl-main--cat-index .dhero--cat .dh-board .hot--3 {
    left: calc(50% - 125px) !important;
    top: 66% !important;
  }
}

/* Услуги: главный блок и тёмный список компактнее на телефоне, заголовок рукописью крупнее (замечания Эммы 27.10.2026) */
@media (max-width: 700px) {
  html:not(#_) .v2-hs__r.v2-dark { padding: 24px 22px 24px !important; }
  html:not(#_) .v2-hs__r .v2-card-hand { font-size: 28px !important; line-height: 1.15 !important; }
  html:not(#_) .v2-hs__r .v2-rule { margin: 12px 0 14px !important; }
  html:not(#_) .v2-hs__r .v2-cbx { gap: 4px !important; row-gap: 4px !important; }
  html:not(#_) .v2-hs__r .v2-cbx li { margin: 0 !important; min-height: 0 !important; line-height: 1.25 !important; font-size: 15px !important; }
  html:not(#_) .v2-hs__r .v2-cbx li svg { width: 24px !important; height: 24px !important; }
  html:not(#_) .v2-hs__card { padding-top: 22px !important; }
  html:not(#_) .v2-hs__pet.hs-photo { height: 250px !important; }
}

/* Карточки «Что ещё делаем»: кнопки «Подробнее» одной ширины; «по породам» крупнее и ближе к названию, сердце мельче и выше; кошки в записи без растяжения (замечания Эммы 27.10.2026) */
@media (max-width: 700px) {
  html:not(#_) .v2-oth .v2-btn--sm, html:not(#_) .v2-othp__row .v2-btn--sm { width: 128px !important; min-width: 128px !important; max-width: 128px !important; padding-left: 0 !important; padding-right: 0 !important; flex: 0 0 128px !important; justify-content: center !important; text-align: center; flex: none !important; white-space: nowrap; }
  html:not(#_) .v2-hc .v2-hand--inline { font-size: clamp(26px, 7.4vw, 32px) !important; margin-left: .2em !important; }
  html:not(#_) .v2-hc .v2-hand--inline .v2-heart { position: relative !important; right: auto !important; top: auto !important; display: inline-block !important; width: .34em !important; height: .34em !important; margin: 0 0 0 .3em !important; vertical-align: .5em !important; transform: rotate(12deg) !important; }
  html:not(#_) .v2-book__media.bk:not(.bk--photo) .bk__f img[src*="page25_06"], html:not(#_) .v2-book__media.bk:not(.bk--photo) .bk__f img[src*="/cats/"] { transform: none !important; }
}

/* Породы кошек: кошка в записи без увеличения (не обрезать голову), в главном блоке крупнее; фото работ без архивного кропа (замечания Эммы 27.10.2026) */
@media (max-width: 700px) {
  html:not(#_) .gl-main--breed.pgcat .v2-book__media.bk .bk__f img { transform: none !important; }
  html:not(#_) .gl-main--breed.pgcat .hb21 .v2-hb__media > .bk__f img { transform: scale(1.22) !important; transform-origin: 50% 100% !important; }
  html:not(#_) .v2-works .crt { overflow: hidden; }
  html:not(#_) .v2-works .crt > img { position: absolute !important; inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; object-position: 50% 30% !important; transform: none !important; }
}
@media (max-width: 700px) {
  html:not(#_) .gl-main--breed.pgcat.cat-bengalskaya .hb21 .v2-hb__media > .bk__f img { transform: translateX(9%) !important; transform-origin: 50% 100% !important; }
}

/* Цены, главный блок на телефоне: без повторной ссылки «Записаться», плашка Яндекса под собакой, собака с кругом выше (замечания Эммы 27.10.2026) */
@media (max-width: 700px) {
  html:not(#_) .phero { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 0 !important; }
  html:not(#_) .phero__left { display: contents; }
  html:not(#_) .phero__link { display: none !important; }
  html:not(#_) .phero__right { order: 1; margin-top: 26px !important; }
  html:not(#_) .phero__ya { order: 2; margin: 14px auto 0 !important; }
}

/* Обучение на телефоне: рукописная строка в заголовке крупнее, «О преподавателе курсов» над фотографиями (замечания Эммы 27.10.2026) */
@media (max-width: 700px) {
  html:not(#_) .edu-h1 .hand { font-size: 34px !important; line-height: 1.15 !important; display: inline-block; margin-top: 6px; }
  html:not(#_) .teacher { display: flex !important; flex-direction: column; gap: 14px; }
  html:not(#_) .teacher__text { display: contents !important; }
  html:not(#_) .teacher__text > h2 { order: 0; margin: 0; }
  html:not(#_) .teacher__photos { order: 1; }
  html:not(#_) .teacher__text > :not(h2) { order: 2; }
}

/* Обучение: фото в кроп-рамках целиком по рамке, без среза лица (замечание Эммы 27.10.2026) */
@media (max-width: 700px) {
  html:not(#_) body[data-pg^="/education/"] .crt { overflow: hidden; }
  html:not(#_) body[data-pg^="/education/"] .crt > img { position: absolute !important; inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; object-position: 50% 30% !important; transform: none !important; }
}

/* Обучение: карусель выпускников ровнее (фото целиком по рамке), фото преподавателя в своей рамке */
@media (max-width: 700px) {
  html:not(#_) body[data-pg^="/education/"] .grad { overflow: hidden; border-radius: 22px; }
  html:not(#_) body[data-pg^="/education/"] .grad img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 25% !important; transform: none !important; }
  html:not(#_) .teacher__photos img { width: 100% !important; height: auto !important; object-fit: cover !important; transform: none !important; }
}
@media (max-width: 700px) {
  html:not(#_) .teacher--6 .teacher__photos { height: auto !important; aspect-ratio: auto !important; align-self: start; }
  html:not(#_) .teacher--6 .teacher__photos > * { height: auto !important; aspect-ratio: auto !important; }
}
@media (max-width: 700px) {
  html:not(#_) .v2-book__media.bk .bk__f img[src*="cta-poodle"] { transform: scale(.9) !important; transform-origin: 50% 100% !important; }
}

/* Замечания Эммы 27.10.2026 (вечер): салоны, О нас, команда, отзывы, блог */
.gl-teamtabs { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.gl-teamtabs button { font: inherit; font-size: 16px; padding: 10px 20px; border-radius: 100px; border: 1px solid #bc936d; background: #fff; color: #16253c; cursor: pointer; min-height: 44px; }
.gl-teamtabs button.is-on { background: #bc936d; color: #fff; }
html:not(#_) .ssec.slt[hidden] { display: none !important; }
@media (max-width: 700px) {
  html:not(#_) .slh__h1 { font-size: 30px !important; line-height: 1.12 !important; }
  html:not(#_) .slh__hand { font-size: 24px !important; }
  html:not(#_) .sl-about__h1 .hand { display: inline-block; font-size: 32px !important; line-height: 1.1 !important; margin-top: 10px; color: #bc936d !important; }
  html:not(#_) .sl-about__h1 .hand::after { content: ""; display: inline-block; width: 15px; height: 15px; margin: 0 0 14px 8px; background: url("/assets/img/hero-heart.png") center / contain no-repeat; transform: rotate(12deg); }
  html:not(#_) .slr__hand { font-size: 28px !important; line-height: 1.15 !important; }
  html:not(#_) .slr__hand .sl-heart, html:not(#_) .slh__hand .sl-heart { width: 11px !important; height: 11px !important; }
  html:not(#_) .blg-h1__heart { width: 12px !important; height: 12px !important; }
  html:not(#_) .blg-h1__hand { font-size: 28px !important; }
  html:not(#_) .blg-hero { background-size: cover !important; background-position: 50% 50% !important; }
}
@media (max-width: 700px) {
  html:not(#_) main .slh .slh__h1 .slh__t { font-size: 34px !important; line-height: 1.1 !important; letter-spacing: -.02em; }
}
@media (max-width: 700px) { html:not(#_) .job-grades__photo { max-width: 100% !important; height: auto !important; } }
/* Индекс пород собак: хлебные крошки, заголовок и фото расположены, отстоят и набраны как на странице услуги
   (крошки, затем заголовок с рукописной строкой, затем фото). Само фото и плашка не менялись. */
html:not(#_) main.pgd-porody .v2-hc { display: flex; flex-direction: column; }
html:not(#_) main.pgd-porody .v2-hc > .v2-crumb { order: 1; }
html:not(#_) main.pgd-porody .v2-hc > .v2-hc__row { order: 2; margin-top: 0 !important; align-items: flex-start; }
html:not(#_) main.pgd-porody .v2-hc > .v2-hc__ban { order: 3; }
html:not(#_) main.pgd-porody .v2-hc .v2-h1.v2-h1--xl { font-size: clamp(30px, 2.9vw, 44px) !important; line-height: 1.08; letter-spacing: 0; margin-bottom: 14px; }
html:not(#_) main.pgd-porody .v2-hc .v2-hand--inline { display: block !important; white-space: nowrap; margin: .1em 0 0 0 !important; padding-left: 0 !important; font-size: clamp(24px, 2.3vw, 34px) !important; line-height: 1.15; }
html:not(#_) main.pgd-porody .v2-hc .v2-hand--inline .v2-heart { position: relative !important; right: auto !important; top: auto !important; display: inline-block !important; width: .36em !important; height: .36em !important; min-width: 11px; min-height: 11px; margin: 0 0 0 .34em !important; vertical-align: .46em !important; transform: rotate(12deg) !important; }
@media (max-width: 700px) {
  html:not(#_) main.pgd-porody .v2-hc { display: flex; flex-direction: column; }
  html:not(#_) main.pgd-porody .v2-hc .v2-h1.v2-h1--xl { font-size: 34px !important; line-height: 1.1; }
  html:not(#_) main.pgd-porody .v2-hc .v2-hand--inline { font-size: clamp(23px, 6.7vw, 30px) !important; line-height: 1.1; margin: 4px 0 0 !important; }
  html:not(#_) main.pgd-porody .v2-hc > .v2-hc__row { flex-direction: column; gap: 14px; }
}
@media (min-width: 701px) { html:not(#_) main.pgd-porody .v2-hc > .v2-hc__ban { margin-top: 28px !important; } }
@media (max-width: 700px) {
  html:not(#_) main.pgd-porody .v2-hc > .v2-hc__ban { margin-top: 18px !important; }
  html:not(#_) main.pgd-porody .v2-hc > .v2-hc__row { gap: 12px; }
}
