/* ==========================================================================
   XMobileLab — основные стили
   ========================================================================== */

/* Шрифты (self-hosted, OFL). Вариативные: 400–700. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-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; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/caveat-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/caveat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/caveat-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 {
	--bg: #ffffff;
	--bg-soft: #f5f5f7;
	--bg-card: #f9f9fa;
	--text: #1d1d1f;
	--muted: #6e6e73;
	--line: #e7e7ec;
	--dark: #0e0e10;
	--dark-2: #1c1c1f;
	--accent: #0071e3;
	--green: #1f9d55;
	--star: #f5b301;
	--danger: #d70015;
	--radius: 20px;
	--radius-sm: 14px;
	--shadow: 0 12px 34px rgba(0, 0, 0, .06);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, .12);
	--container: 1200px;
	--gutter: 20px;
	--header-h: 76px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
	color-scheme: light;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: #1d1d1f; color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--dark); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-align: center; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn .icon { flex: none; transition: transform .2s; }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #2a2a2e; color: #fff; }
.btn--outline { background: #fff; border-color: #d2d2d7; color: var(--text); }
.btn--outline:hover { border-color: var(--text); color: var(--text); }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: #ececf0; color: var(--text); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover .icon { transform: translateX(3px); }

.badge { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 14px; border-radius: 999px; background: #ececf0; color: #3a3a3c; font-size: 13px; font-weight: 500; line-height: 1.3; }
.badge--dark { background: rgba(255, 255, 255, .12); color: #fff; }

.icon-box { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.handnote { font-family: var(--font-hand); font-weight: 500; font-size: 22px; line-height: 1.05; color: #4a4a4e; }
.handnote__arrow { display: block; margin-top: 4px; color: #6e6e73; }

/* ---------- Секции ---------- */
.section { padding-block: 44px; }
.section--tight { padding-block: 24px; }
.section--flush-top { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.section-title { font-size: clamp(24px, 2.6vw, 30px); }
.section-subtitle { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, .04); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark { flex: none; width: 52px; height: 52px; object-fit: contain; }
.logo--footer .logo__mark { width: 64px; height: 64px; }
.logo--drawer .logo__mark { width: 44px; height: 44px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.logo__tagline { margin-top: 2px; font-size: 12px; color: var(--muted); }

.nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 38px); }
.nav__list a { position: relative; display: block; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--text); }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-phone { display: flex; align-items: center; gap: 10px; color: var(--text); }
.header-phone:hover { color: var(--text); }
.header-phone__text { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone__text strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.header-phone__text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-soft); }
.lang-switch__item { display: grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-switch__item:hover { color: var(--text); }
.lang-switch__item.is-active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.burger { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--bg-soft); color: var(--text); }
/* Мобильное меню: панель справа на ~84% ширины и всю высоту экрана. */
.drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 12, .45); opacity: 0; transition: opacity .3s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(84vw, 400px); height: 100%; height: 100dvh; background: #fff; box-shadow: -24px 0 60px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .35s cubic-bezier(.32, .72, 0, 1); will-change: transform; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer.is-dragging .drawer__panel { transition: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: var(--header-h); padding: 10px 14px 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.drawer__head .logo__tagline { display: block; }
.drawer__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--bg-soft); color: var(--text); }
.drawer__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px; }
.drawer-nav__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; color: var(--text); }
.drawer-nav__list a::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid #c7c7cc; border-right: 2px solid #c7c7cc; transform: rotate(45deg); }
.drawer-nav__list .current-menu-item > a { color: var(--accent); }
.drawer__foot { display: grid; gap: 12px; flex: none; padding: 16px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fafafa; }
.lang-switch--drawer { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; }
.lang-switch--drawer .lang-switch__item { display: flex; gap: 6px; justify-content: center; height: 40px; font-size: 14px; font-weight: 500; }
.lang-switch--drawer .lang-switch__item b { font-weight: 700; }
.drawer__phone { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); }
.drawer__phone:hover { color: var(--text); }
.drawer__phone-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; }
.drawer__phone strong { display: block; font-size: 17px; line-height: 1.2; }
.drawer__phone small { display: block; color: var(--muted); font-size: 12.5px; }
.drawer__foot .btn { padding-inline: 16px; white-space: nowrap; }
.socials--drawer { justify-content: center; }
@media (max-width: 359px) {
	.drawer__foot .btn .icon { display: none; }
	.drawer__foot .btn { font-size: 14px; }
}
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fafafa 0%, #f3f3f5 100%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 560px; }
.hero__content { position: relative; z-index: 2; padding-block: 48px; }
.hero__title { margin-top: 22px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.07; letter-spacing: -.03em; }
.hero__subtitle { margin-top: 14px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.01em; }
.hero__text { max-width: 470px; margin-top: 16px; color: #515154; font-size: 16px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__rating { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.hero__rating-text p { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.hero__rating-text .muted { font-size: 13px; }
.avatars { display: flex; }
.avatars img, .avatars span { width: 40px; height: 40px; margin-left: -10px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.avatars > :first-child { margin-left: 0; }
.avatars span { display: grid; place-items: center; background: var(--c, #e5e5ea); font-size: 14px; font-weight: 700; color: #3a3a3c; }

.hero__media { position: relative; align-self: stretch; min-height: 420px; }
.hero__image { position: absolute; top: 0; bottom: 0; left: -20px; right: calc(-1 * ((100vw - min(100vw, var(--container) + var(--gutter) * 2)) / 2 + var(--gutter))); display: flex; align-items: flex-end; justify-content: flex-end; }
.hero__image img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.hero__note { position: absolute; top: 34px; left: 0; z-index: 2; max-width: 160px; transform: rotate(-9deg); }
.hero__features { position: absolute; right: 0; bottom: 34px; z-index: 2; display: grid; gap: 4px; width: 260px; padding: 12px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero__features li { display: flex; align-items: center; gap: 12px; padding: 7px 6px; font-size: 13px; line-height: 1.3; }
.hero__features li + li { border-top: 1px solid rgba(0, 0, 0, .06); }
.hero__features strong { display: block; font-weight: 600; }
.hero__features small { display: block; color: var(--muted); font-size: 12px; }

.stars { display: inline-flex; gap: 1px; color: var(--star); vertical-align: middle; }
.stars .is-off { color: #d2d2d7; }

/* ---------- Устройства ---------- */
.device-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.device-card { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 18px 12px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s, background-color .25s; }
.device-card:hover { color: var(--text); background: #fff; border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.device-card__media { display: grid; place-items: center; width: 100%; aspect-ratio: 1.15; }
.device-card__media img { width: 82%; height: 100%; object-fit: contain; transition: transform .35s; }
.device-card:hover .device-card__media img { transform: scale(1.05); }
.device-card__title { margin-top: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Популярный ремонт ---------- */
/* ---------- Первый экран: слайдер популярных услуг ---------- */
.promo-hero { padding-block: 24px 12px; background: linear-gradient(180deg, #fafafa 0%, #fff 100%); }

.promo-slider { position: relative; overflow: hidden; border-radius: 24px; background: radial-gradient(120% 100% at 80% 35%, #3a3c42 0%, #141416 55%, #0b0b0c 100%); color: #fff; }
.promo-slider__track { position: relative; }
.promo-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.promo-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.promo-slide__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; max-width: 56%; min-height: 500px; padding: 48px 0 96px 56px; }
.promo-slide__title { margin-top: 18px; color: #fff; font-size: clamp(32px, 4.2vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.promo-slide__text { margin-top: 16px; max-width: 440px; color: rgba(255, 255, 255, .72); font-size: 16px; }
.promo-slide__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.promo-slide__meta { margin-top: auto; padding-top: 28px; }
.promo-slide__price { font-size: 16px; }
.promo-slide__price strong { font-size: 34px; letter-spacing: -.02em; }
.promo-slide__duration { margin-top: 2px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.promo-slide__media { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; }
.promo-slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.promo-slide__media img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
.promo-slider__nav { position: absolute; left: 56px; bottom: 32px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.promo-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: width .25s, background-color .25s; }
.promo-slider__dot.is-active { width: 24px; border-radius: 4px; background: #fff; }
.promo-slider__prev, .promo-slider__next { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: transparent; color: #fff; transition: background-color .2s, border-color .2s; }
.promo-slider__prev { margin-right: 6px; }
.promo-slider__next { margin-left: 6px; }
.promo-slider__prev:hover, .promo-slider__next:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* «Популярный ремонт» — список; на компьютере в две колонки. */
@media (min-width: 1041px) {
	.popular__list .service-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; border-bottom: 1px solid var(--line); }
	.popular__list .service-row { border-top: 1px solid var(--line); border-bottom: 0; }
}

.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 90px; align-items: center; gap: 14px; min-height: 58px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.service-row__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); color: var(--text); }
.service-row__title { font-weight: 500; }
.service-row__title:hover { color: var(--accent); }
.service-row__price { white-space: nowrap; }
.service-row__duration { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.price strong { font-weight: 700; }
.price--request { color: var(--muted); }

/* ---------- Преимущества ---------- */
.advantages__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.advantage { display: flex; align-items: center; gap: 12px; }
.advantage__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-soft); }
.advantage__title { font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.advantage__text { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.advantages .section-title { margin-bottom: 20px; }

/* ---------- Консультация ---------- */
.consult { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) 140px; gap: 32px; overflow: hidden; padding: 40px 0 36px 36px; border-radius: 24px; background: linear-gradient(135deg, #f3f3f5 0%, #ececef 100%); }
.consult__title { font-size: clamp(24px, 2.4vw, 30px); }
.consult__text { margin-top: 12px; max-width: 340px; color: #515154; font-size: 14.5px; }
.consult__image { margin-top: 24px; max-width: 320px; }
.consult__image img { width: 100%; }
.consult__side { position: relative; align-self: stretch; }
.consult__note { position: absolute; top: -8px; left: -20px; font-size: 20px; transform: rotate(-12deg); }
.consult__side img { position: absolute; right: 0; bottom: -36px; width: 150px; }

/* ---------- Форма ---------- */
.lead-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: #3a3a3c; }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #dedee3; border-radius: 12px; background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 106px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a1a1a6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(215, 0, 21, .08); }
.field__select { position: relative; }
.field__select select { padding-right: 40px; cursor: pointer; }
.field__select .icon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field__phone { position: relative; }
.field__phone input { padding-left: 48px; }
.field__prefix { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); pointer-events: none; }
.flag-md { display: block; width: 22px; height: 15px; border-radius: 3px; background: linear-gradient(90deg, #0046ae 0 33.3%, #ffd200 33.3% 66.6%, #cc092f 66.6%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.field--message { grid-row: span 2; }
.lead-form--compact .lead-form__grid { grid-template-columns: 1fr; }
.lead-form--compact .field--message { grid-row: auto; }
.lead-form:not(.lead-form--compact) .lead-form__grid { grid-template-areas: "name phone" "device message" "x message"; }
.lead-form:not(.lead-form--compact) .field:nth-child(1) { grid-area: name; }
.lead-form:not(.lead-form--compact) .field:nth-child(2) { grid-area: phone; }
.lead-form:not(.lead-form--compact) .field:nth-child(3) { grid-area: device; }
.lead-form:not(.lead-form--compact) .field--message { grid-area: message; }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__footer { display: flex; align-items: center; gap: 16px 24px; margin-top: 18px; }
.lead-form--compact .lead-form__footer { flex-direction: column; align-items: stretch; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; padding-block: 4px; font-size: 12px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.checkbox input { flex: none; width: 22px; height: 22px; margin: -2px 0 0; accent-color: var(--dark); cursor: pointer; }
.checkbox a { text-decoration: underline; text-underline-offset: 2px; }
.checkbox.is-invalid { color: var(--danger); }
.lead-form__status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.lead-form__status.is-success { background: #e8f7ee; color: #0f6b35; }
.lead-form__status.is-error { background: #fdecee; color: #a4000f; }

/* ---------- Работы до/после ---------- */
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; }

/* Горизонтальные слайдеры: свайп, перетаскивание мышью, стрелки и точки (main.js → initScroller). */
.is-scroller { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--scroller-pad, 0px); overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.is-scroller::-webkit-scrollbar { display: none; }
.is-scroller > * { scroll-snap-align: start; }
.is-scroller.can-scroll { cursor: grab; }
.is-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.is-scroller.is-animating { scroll-snap-type: none; scroll-behavior: auto; }
.is-scroller img { -webkit-user-drag: none; user-select: none; }
.scroller-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.scroller-nav__btn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid #d2d2d7; border-radius: 50%; background: #fff; color: var(--text); transition: opacity .2s, border-color .2s; }
.scroller-nav__btn:hover { border-color: var(--text); }
.scroller-nav__btn:disabled { opacity: .35; cursor: default; }
.scroller-nav__dots { display: flex; align-items: center; }
.scroller-nav__dot { display: grid; place-items: center; width: 20px; height: 32px; padding: 0; border: 0; background: none; }
.scroller-nav__dot::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 4px; background: #d2d2d7; transition: width .25s, background-color .25s; }
.scroller-nav__dot.is-active { width: 28px; }
.scroller-nav__dot.is-active::before { width: 20px; background: var(--dark); }
.work-card figure { margin: 0; }
.work-card__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-soft); }
.work-card__img { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; }
.work-card__label { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(20, 20, 22, .82); color: #fff; font-size: 12px; font-weight: 600; }
.work-card__caption { margin-top: 10px; font-size: 14px; font-weight: 500; }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #a1a1a6; background: linear-gradient(145deg, #f2f2f4, #e3e3e8); }
.placeholder--before { background: linear-gradient(145deg, #e9e9ec, #cfd0d5); color: #8e8e93; }
.placeholder--after { background: linear-gradient(145deg, #2c2d31, #111214); color: #8e8e93; }

/* ---------- Отзывы ---------- */
.reviews__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.review-card__head { display: flex; align-items: center; gap: 12px; }
.review-card__avatar { flex: none; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: var(--bg-soft); }
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__avatar span { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; color: #3a3a3c; }
.review-card__meta { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.review-card__name { display: block; font-size: 15px; font-weight: 600; }
.review-card__date { font-size: 12.5px; color: var(--muted); }
.review-card__source { flex: none; display: grid; place-items: center; width: 32px; height: 32px; }
.review-card__source.is-facebook { color: #1877f2; }
.review-card__source.is-instagram { color: #d62976; }
.review-card__text { flex: 1 1 auto; font-size: 14px; line-height: 1.55; color: #3a3a3c; }
.review-card__text p + p { margin-top: 8px; }

/* ---------- Статьи ---------- */
.post-grid { display: grid; gap: 20px; }
.post-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.placeholder--post { background: linear-gradient(135deg, #1c1c1f 0%, #3a3b40 100%); color: rgba(255, 255, 255, .5); }
.post-card__body { padding-top: 12px; }
.post-card__title { font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.post-card__title a:hover { color: var(--accent); }
.post-card__date { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

/* ---------- SEO-текст ---------- */
.seo-text__box { position: relative; padding: 32px 36px; border-radius: var(--radius); background: var(--bg-soft); }
.seo-text__box.is-collapsed { max-height: 220px; overflow: hidden; }
.seo-text__box.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(245, 245, 247, 0), var(--bg-soft)); }
.seo-text__toggle { margin-top: 12px; }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .95fr); gap: 28px; align-items: stretch; }
.map { position: relative; min-height: 240px; overflow: hidden; border-radius: var(--radius); background: #e9ecef; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; padding: 16px; border: 0; color: var(--text);
	background-color: #eef0f2;
	background-image:
		linear-gradient(25deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
		linear-gradient(-65deg, transparent 48%, #fff 48%, #fff 51%, transparent 51%),
		linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px),
		linear-gradient(0deg, rgba(0, 0, 0, .035) 1px, transparent 1px),
		radial-gradient(circle at 70% 30%, #dfe8d8 0 14%, transparent 14.5%),
		radial-gradient(circle at 20% 80%, #d7e3ef 0 12%, transparent 12.5%);
	background-size: 100% 100%, 100% 100%, 26px 26px, 26px 26px, 100% 100%, 100% 100%;
}
.map__pin { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; }
.map__pin .icon { color: #e5383b; }
.map__hint { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; transition: background-color .2s; }
.map__hint small { font-size: 12px; font-weight: 400; color: var(--muted); }
.map__placeholder:hover .map__hint { background: #fff; }
.contacts__title { font-size: 22px; }
.contact-list { display: grid; gap: 14px; margin-top: 20px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 14.5px; line-height: 1.45; }
.contact-list .icon { flex: none; margin-top: 1px; }
.contact-list small { color: var(--muted); font-size: 13px; }
.contact-list a:hover { color: var(--accent); }
.schedule { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.schedule li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; }
.schedule li span { color: var(--muted); }
.schedule li strong { font-weight: 600; white-space: nowrap; }

/* Видео «как нас найти» — вертикальный ролик рядом с текстом. */
.route-video { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 260px); justify-content: center; gap: 48px; align-items: center; margin-top: 28px; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.route-video__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.route-video__note { margin-top: 10px; max-width: 46ch; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.route-video__address { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.route-video__text .btn { margin-top: 20px; }
.route-video__player { width: 100%; max-width: 260px; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; object-fit: cover; }

.cta-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px; border-radius: var(--radius); background: var(--dark); color: #fff; }
.cta-card__title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.cta-card__text { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.cta-card__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 32px; border-top: 1px solid var(--line); background: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px 28px; }
.site-footer__brand p { max-width: 300px; margin-top: 16px; color: var(--muted); font-size: 13.5px; }
.site-footer__title { margin-bottom: 14px; font-size: 14px; font-weight: 700; }
.site-footer__col ul { display: grid; gap: 9px; }
.site-footer__col a { color: var(--muted); font-size: 13.5px; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__contacts p:not(.site-footer__title) { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.site-footer__col .socials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; color: var(--text) !important; transition: background-color .2s, border-color .2s, color .2s; }
.socials a:hover { background: var(--dark); border-color: var(--dark); color: #fff !important; }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 28px; color: var(--muted); font-size: 13px; }
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--text); }

.mobile-bar { display: none; }

/* ---------- Модальное окно ---------- */
.modal { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgba(10, 10, 12, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__box { position: relative; padding: 32px 28px 28px; }
.modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--text); }
.modal__close:hover { background: #e8e8ed; }
.modal__title { padding-right: 40px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.modal__text { margin: 8px 0 20px; color: var(--muted); font-size: 14px; }
html.modal-open { overflow: hidden; }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding-block: 28px 40px; background: linear-gradient(180deg, #fafafa 0%, #fff 100%); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 32px; }
.page-hero--media .page-hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.page-hero__title { margin-top: 18px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
.page-hero__text { max-width: 640px; margin-top: 14px; color: #515154; font-size: 17px; }
.page-hero__meta { margin-top: 22px; }
.page-hero__media { display: flex; justify-content: center; }
.page-hero__media > img { max-height: 380px; width: auto; border-radius: var(--radius); object-fit: contain; }
.page-hero__device { display: grid; place-items: center; width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #f0f0f3 70%); }
.page-hero__device img { width: 78%; height: auto; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: #c7c7cc; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text); }

.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { display: flex; flex-direction: column; gap: 2px; min-width: 130px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 15px; }
.facts li > span:first-child { color: var(--muted); font-size: 12px; }
.facts strong { font-size: 17px; }
.facts .duration { font-weight: 600; }

.price-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.price-table__head, .price-table__row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px 150px; align-items: center; gap: 16px; padding: 12px 20px; }
.price-table__head { background: var(--bg-soft); color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.price-table__row { border-top: 1px solid var(--line); font-size: 15px; transition: background-color .2s; }
.price-table__row:hover { background: #fbfbfc; }
.price-table__name { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.price-table__name a:hover { color: var(--accent); }
.price-table__duration { color: var(--muted); font-size: 14px; }
.price-table__action { text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--text); color: var(--text); }

.faq__list { display: grid; gap: 10px; margin-top: 22px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; transition: transform .25s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 20px 18px; color: #515154; font-size: 15px; }

/* Типографика контента */
.content { font-size: 17px; line-height: 1.7; color: #2c2c2e; }
.content > * + * { margin-top: 1.1em; }
.content h2 { margin-top: 1.8em; font-size: clamp(22px, 2.4vw, 28px); color: var(--text); }
.content h3 { margin-top: 1.5em; font-size: 20px; color: var(--text); }
.content h2:first-child, .content h3:first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li + li { margin-top: .4em; }
.content li::marker { color: var(--muted); }
.content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.content img { border-radius: var(--radius-sm); }
.content figure { margin-inline: 0; }
.content figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.content blockquote { margin-inline: 0; padding: 16px 22px; border-left: 3px solid var(--dark); border-radius: 0 12px 12px 0; background: var(--bg-soft); }
.content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.content th, .content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.content__cover { margin: 0 0 28px; }

.page-hero--article { padding-bottom: 24px; }
.article__meta { margin-top: 14px; color: var(--muted); font-size: 14px; }
.article__meta a { text-decoration: underline; text-underline-offset: 3px; }
.article__cover { margin: 0 0 32px; overflow: hidden; border-radius: var(--radius); }
.article__cover img { width: 100%; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding: 28px; border-radius: var(--radius); background: var(--dark); color: #fff; }
.post-cta__title { font-size: 21px; font-weight: 700; }
.post-cta__text { margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.post-cta__buttons { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.pagination .page-numbers.current { background: var(--dark); border-color: var(--dark); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--text); color: var(--text); }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }

.error-404 { padding-block: 72px 40px; text-align: center; }
.error-404 .hero__buttons { justify-content: center; }
.error-404 .page-hero__text { margin-inline: auto; }
.error-404__code { font-size: clamp(80px, 14vw, 150px); font-weight: 700; line-height: 1; letter-spacing: -.05em; background: linear-gradient(180deg, #1d1d1f, #9a9aa0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
	.header-phone__text small { display: none; }
	.nav__list { gap: 20px; }
	.nav__list a { font-size: 14px; }
	.site-header__actions { gap: 12px; }
}

@media (max-width: 1040px) {
	.logo__mark { width: 44px; height: 44px; }
	:root { --header-h: 66px; }
	.nav, .site-header__cta, .header-phone__text, .lang-switch--header { display: none; }
	.burger { display: grid; }
	.site-header__inner { justify-content: space-between; }
	.header-phone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); }

	.hero__inner { grid-template-columns: 1fr; gap: 0; min-height: 0; }
	.hero__content { padding-block: 36px 8px; }
	.hero__media { min-height: 0; display: grid; grid-template-columns: 1fr; }
	.hero__image { position: relative; inset: auto; height: 380px; margin-inline: calc(var(--gutter) * -1); }
	.hero__note { top: 20px; left: 4px; }
	.hero__features { position: relative; right: auto; bottom: auto; width: 100%; margin: -40px 0 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
	.hero__features li + li { border-top: 0; }

	/* Слайдеры на всю ширину экрана, первая карточка — по краю контента. */
	.device-grid, .reviews__track, .carousel__track { margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; --scroller-pad: var(--gutter); }
	.device-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, calc((100% - 48px) / 4)); }

	.promo-slide__content { max-width: 62%; min-height: 440px; padding: 40px 0 92px 40px; }
	.promo-slider__nav { left: 40px; }
	.advantages__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }

	.consult { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
	.consult__image, .consult__side { display: none; }

	.carousel__track { grid-auto-columns: calc((100% - 16px) / 2); }
	.reviews__track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2); }
	.post-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.contacts__grid { grid-template-columns: 1fr 1fr; }
	.map { grid-column: 1 / -1; min-height: 280px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }

	.page-hero--media .page-hero__inner { grid-template-columns: 1fr; }
	.page-hero__media { order: -1; }
	.page-hero__device { max-width: 220px; }
	.price-table__head, .price-table__row { grid-template-columns: minmax(0, 1fr) 130px 110px 130px; }
}

@media (max-width: 720px) {
	.route-video { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
	.route-video__player { max-width: 320px; margin-inline: auto; }

	:root { --gutter: 16px; }
	body { font-size: 15px; padding-bottom: 76px; }
	.section { padding-block: 32px; }
	.section-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
	.hero__buttons .btn { flex: 1 1 100%; }
	.hero__image { height: 300px; }
	.hero__note { font-size: 18px; max-width: 130px; }
	.hero__features { grid-template-columns: 1fr; }
	.hero__features li + li { border-top: 1px solid rgba(0, 0, 0, .06); }

	.promo-hero { padding-block: 16px 4px; }
	.promo-slider { border-radius: 20px; }
	.promo-slide__media { position: relative; width: 100%; height: 220px; }
	.promo-slide__media img { object-position: center; }
	.promo-slide__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 55%); mask-image: linear-gradient(0deg, transparent 0%, #000 55%); }
	.promo-slide__content { max-width: none; min-height: 0; margin-top: -24px; padding: 0 20px 80px; }
	.promo-slide__title { margin-top: 12px; font-size: 28px; }
	.promo-slide__text { font-size: 14.5px; }
	.promo-slide__buttons { width: 100%; margin-top: 20px; }
	.promo-slide__buttons .btn { flex: 1 1 auto; }
	.promo-slide__meta { padding-top: 20px; }
	.promo-slide__price strong { font-size: 28px; }
	.promo-slider__nav { left: 20px; bottom: 22px; }

	.service-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 2px; }
	.service-row__icon { grid-row: span 2; }
	.service-row__title { grid-column: 2; }
	.service-row__price { grid-column: 3; grid-row: 1; }
	.service-row__duration { grid-column: 3; grid-row: 2; }

	.advantages__list { grid-template-columns: 1fr 1fr; }

	.consult { padding: 26px 18px; border-radius: 20px; }
	.lead-form__grid, .lead-form:not(.lead-form--compact) .lead-form__grid { grid-template-columns: 1fr; grid-template-areas: none; }
	.lead-form:not(.lead-form--compact) .field { grid-area: auto !important; }
	.field--message { grid-row: auto; }
	.lead-form__footer { flex-direction: column; align-items: stretch; }
	.lead-form__footer .btn { width: 100%; }

	.device-grid { grid-auto-columns: calc((100% - 24px) / 2.35); gap: 12px; }
	.carousel__track, .reviews__track { grid-auto-columns: 86%; gap: 12px; }
	.modal__box { padding: 28px 18px 20px; }
	.post-grid--4, .post-grid--3 { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
	.post-card__title { font-size: 14px; }

	.seo-text__box { padding: 22px 20px; }
	.contacts__grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
	.site-footer__contacts { grid-column: 1 / -1; }
	.site-footer__bottom { flex-direction: column; }

	.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
	.mobile-bar .btn--light { border-color: #d2d2d7; }
	.mobile-bar .btn { min-width: 0; padding: 0 12px; gap: 8px; font-size: 14px; }
	.mobile-bar .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	html.xmlab-cc-open .mobile-bar { display: none; }

	.page-hero { padding-block: 20px 28px; }
	.page-hero__text { font-size: 15.5px; }
	.price-table { border: 0; border-radius: 0; background: transparent; }
	.price-table__head { display: none; }
	.price-table__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
	.price-table__name { grid-column: 1 / -1; }
	.price-table__action { grid-column: 1 / -1; }
	.price-table__action .btn { width: 100%; }
	.content { font-size: 16px; }
	.post-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
}

@media (max-width: 480px) {
	/* Длинные подписи кнопок переносятся, а не обрезаются. */
	.btn { white-space: normal; padding-block: 10px; line-height: 1.25; }
	.mobile-bar .btn { white-space: nowrap; padding-block: 0; }
	.hero__image { height: 280px; }
	.hero__note { top: 6px; max-width: 110px; font-size: 16px; }
	.hero__note .handnote__arrow { width: 28px; height: 32px; }

	/* Строка услуги: название на всю ширину, цена и срок — строкой ниже. */
	.service-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding: 12px 0; }
	.service-row__icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
	.service-row__title { grid-column: 2 / -1; grid-row: 1; line-height: 1.35; }
	.service-row__price { grid-column: 2; grid-row: 2; }
	.service-row__duration { grid-column: 3; grid-row: 2; }
}

@media (max-width: 359px) {
	.mobile-bar { grid-template-columns: 52px minmax(0, 1fr); }
	.mobile-bar .btn--light { padding: 0; }
	.mobile-bar .btn--light span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hero__note { display: none; }
}

@media (max-width: 400px) {
	.post-grid--4, .post-grid--3 { grid-template-columns: 1fr; }
	.advantages__list { grid-template-columns: 1fr; }
	.logo__tagline { display: none; }
}

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

/* ==========================================================================
   Модели устройств и цены по моделям
   ========================================================================== */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.model-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 14px 40px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.model-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); color: var(--text); transform: translateY(-2px); }
.model-card.is-current { border-color: var(--text); }
.model-card__name { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.model-card__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: 13px; }
.model-card__arrow { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #c7c7cc; transition: transform .2s, color .2s; }
.model-card:hover .model-card__arrow { color: var(--text); transform: translate(3px, -50%); }


.model-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.model-prices li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.model-prices a { font-weight: 500; }
.model-prices a:hover { color: var(--accent); }
.model-prices .price { white-space: nowrap; }

.note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); color: #3a3a3c; font-size: 14.5px; }
.note .icon { flex: none; margin-top: 2px; }
.facts .facts__wide { max-width: 100%; }

@media (max-width: 720px) {
	.model-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.model-card { min-height: 70px; padding: 12px 28px 12px 12px; }
	.model-card__name { font-size: 14.5px; }
	.model-card__arrow { right: 6px; }
	.model-prices { grid-template-columns: 1fr; }
	.model-prices li { grid-template-columns: minmax(0, 1fr) auto; }
	.model-prices .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 359px) {
	.model-grid { grid-template-columns: 1fr; }
}

/* Текстовые блоки на всю ширину контейнера, прижаты влево; строки — удобной для чтения ширины. */
.container--left.content > *, .container--left .faq__list, .container--left > .section-title { max-width: 820px; }
