/* Construcciones Kornilenko — стили сайта
   Цвета акцентов сняты с оригинального логотипа; 85–90% интерфейса — белый/графит. */
/* Основной шрифт: Montserrat (SIL OFL 1.1, static/fonts/Montserrat-OFL.txt). Раздаётся с сайта, а не с Google Fonts:
   так IP посетителя не уходит в Google (RGPD) и шрифт не блокирует отрисовку чужим сервером. */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/montserrat-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/montserrat-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;
}
/* Шрифт заголовков: Literata (SIL OFL 1.1, лицензия — static/fonts/Literata-OFL.txt).
   Вариативный: насыщенность 400–700 и оптический размер — крупные заголовки рисуются изящнее. */
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2116, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/literata-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  --red: #E9183A;
  --red-dark: #C40F2D;
  --yellow: #FCC200;
  --cyan: #0599B2;
  --green: #25D366;
  --ink: #17212A;
  --ink-2: #2B3640;
  --muted: #56616B;
  --text-2: #46525C;
  --line: #E6E9EC;
  --soft: #F6F8F9;
  --sand: #8E6B45;
  --white: #fff;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", Arial, Helvetica, sans-serif;
  --max: 1280px;
  --gutter: 32px;
  --header: 100px;
  --radius: 3px;
  --shadow: 0 10px 30px rgba(15, 25, 35, .06);
  --shadow-lg: 0 18px 50px rgba(15, 25, 35, .10);
  /* вертикальный ритм: секция / плотная секция / заголовок секции → контент */
  --sp-section: 104px;
  --sp-tight: 72px;
  --sp-head: 44px;
  /* единая шкала заголовков */
  --h2: clamp(34px, 3.3vw, 46px);
  --h3-card: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--serif); font-optical-sizing: auto; letter-spacing: -.01em; padding-bottom: .06em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.ic { width: 22px; height: 22px; flex: 0 0 auto; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark); margin: 0 0 14px; }
.h3 { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 38px); line-height: 1.16; margin-bottom: 10px; }

/* ---------- Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: var(--radius); font-weight: 600; font-size: 15px; line-height: 1.2; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 8px 22px rgba(233, 24, 58, .25); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ghost { background: #fff; color: var(--ink); border-color: #C7CED3; }
.btn--ghost:hover { background: var(--soft); border-color: var(--ink); box-shadow: none; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--soft); border-color: var(--soft); box-shadow: none; }
.btn--wa { background: #1FA855; border-color: #1FA855; }
.btn--wa:hover { background: #178A45; border-color: #178A45; box-shadow: 0 8px 22px rgba(31, 168, 85, .25); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.text-link .ic { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover .ic { transform: translateX(4px); }
.text-link--red { color: var(--red-dark); }
.round-link { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid #C2C9CE; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: background .2s, border-color .2s, color .2s; }
.round-link .ic { width: 18px; height: 18px; }
.round-link:hover, a:hover > .round-link, .pcard:hover .round-link { background: var(--red); border-color: var(--red); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn { min-height: 56px; padding: 15px 28px; font-size: 16px; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header); background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(15, 25, 35, .05); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.logo img { height: 86px; width: auto; }
.logo__name { font-family: var(--sans); font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.menu { display: flex; gap: 30px; margin-left: auto; height: 100%; }
.menu > a { position: relative; display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.menu > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.menu > a:hover::after, .menu > a.is-active::after { transform: scaleX(1); }
.menu > a.is-active { color: var(--ink); font-weight: 600; }
.menu__mobile-extra { display: none; }
.header__actions { display: flex; align-items: center; gap: 18px; margin-left: 12px; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; min-height: 40px; }
.lang__btn .ic { width: 16px; height: 16px; }
.lang__list { position: absolute; right: 0; top: 100%; margin: 6px 0 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); min-width: 170px; }
.lang__list span { display: block; padding: 10px 16px; font-size: 14px; }
.lang__list a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; font-size: 14px; color: var(--ink, #1d232a); text-decoration: none; }
.lang__list a b { width: 24px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.lang__list a:hover, .lang__list a:focus-visible { background: #f4f1ec; }
.lang__list .is-current { font-weight: 600; color: var(--red); }
.lang__list .is-current b { color: var(--red); }
.lang__list .is-soon { color: var(--muted); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; background: #fff; }
.hero--compact { min-height: 420px; }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; background: center / cover no-repeat; }
/* мягкий край только по кромке фото, под текстом — чистый белый */
.hero__fade { position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, #fff 47.5%, rgba(255, 255, 255, .85) 49.5%, rgba(255, 255, 255, .5) 51.5%, rgba(255, 255, 255, .2) 53.5%, rgba(255, 255, 255, .05) 55.5%, rgba(255, 255, 255, 0) 57%); }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: min(560px, calc(48vw - var(--gutter) - 32px)); padding: 64px 0 72px; }
.hero h1 { font-size: clamp(42px, 4.4vw, 64px); line-height: 1.06; margin-bottom: 26px; color: #0F1820; }
.hero h1 .accent { display: block; color: var(--sand); font-style: normal; }
.lead { font-size: 19px; color: #36424C; max-width: 540px; line-height: 1.6; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--red); }
.crumbs--light { color: rgba(255, 255, 255, .85); }
.hero__tag { position: absolute; z-index: 3; right: -64px; top: 50%; width: 224px; height: 224px; transform: translateY(-50%) rotate(45deg); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-lg); }
/* ромб уходит за правый край на 64 px — текст держим в видимой части (подобрано под Literata на 4 языках) */
.hero__tag-in { position: absolute; inset: 0; transform: rotate(-45deg); display: flex; flex-direction: column; justify-content: center; padding: 0 92px 0 34px; font-family: var(--serif); font-size: 16.5px; line-height: 1.22; }
.hero__tag-in .ic { margin-top: 12px; width: 26px; }
.geo { display: block; pointer-events: none; }
.hero__geo { position: absolute; right: 0; bottom: 0; width: 200px; z-index: 2; }
.hero__left-geo { position: absolute; left: 0; top: 46%; width: 30px; z-index: 2; }

/* ---------- Полоса преимуществ ---------- */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__grid--4 { grid-template-columns: repeat(4, 1fr); }
.strip__grid--5 { grid-template-columns: repeat(5, 1fr); }
.strip__item { display: flex; align-items: center; gap: 16px; padding: 32px 24px; font-size: 17.5px; font-weight: 500; line-height: 1.35; color: var(--ink); border-left: 1px solid var(--line); }
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__item .ic { width: 34px; height: 34px; stroke-width: 1.5; }
.strip__item small { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.strip__item--link:hover { color: var(--red); }

/* ---------- Секции ---------- */
.section { padding: var(--sp-section) 0; }
.section--tight { padding: var(--sp-tight) 0; }
/* две белые секции подряд не удваивают отступ */
.section:not(.section--soft) + .section:not(.section--soft) { padding-top: 0; }
.section--soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: var(--sp-head); }
.section-head h2, .split h2, .office h2, .contact h2, .about h2, .inquiry h2, .cta h2 { font-size: var(--h2); line-height: 1.16; font-weight: 500; }
.split h2, .office h2, .contact h2, .inquiry h2, .cta h2, .featured h2, .pdetail h2 { margin-bottom: 20px; }
.section-head .muted { margin: 16px 0 0; }
.section-head > .muted { max-width: 400px; margin: 0; font-size: 16px; }
.section-head--split { align-items: flex-start; }
.section-head--split .muted { margin-top: 12px; }
.section-head__aside { max-width: 440px; border-left: 1px solid var(--line); padding-left: 28px; font-size: 16px; color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Статусы ---------- */
.badge { display: inline-flex; align-items: center; padding: 7px 12px; font-size: 13px; font-weight: 600; line-height: 1; border-radius: var(--radius); background: var(--ink); color: #fff; }
.badge--red { background: var(--red); }
.badge--yellow { background: var(--yellow); color: var(--ink); }
.badge--cyan { background: var(--cyan); }
.badge--ink { background: var(--ink); }
.badge--light { background: rgba(255, 255, 255, .94); color: var(--ink); }

/* ---------- Карточка проекта ---------- */
.pcard { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pcard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3.1; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .pcard__img { transform: scale(1.04); }
.pcard__badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard__head { display: flex; justify-content: space-between; gap: 12px; }
.pcard h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.pcard__loc { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.pcard__loc .ic { width: 16px; height: 16px; }
.pcard__text { font-size: 16px; color: var(--muted); margin: 14px 0 0; }
.pcard__facts { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: auto; padding-top: 18px; }
.nw { white-space: nowrap; }
.fact { display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.fact .ic { width: 22px; height: 22px; color: var(--ink-2); }
.pcard--lg h3 { font-size: 32px; }
.pcard--lg .pcard__media { aspect-ratio: 16 / 10; }
.pcard--lg .pcard__facts { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; gap: 10px 26px; }
.pcard--lg .pcard__facts { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.pcard--lg .pcard__facts .fact { font-size: 16.5px; }
.pcard__price { margin: 14px 0 0; font-size: 16px; color: var(--muted); }
.pcard__price strong { color: var(--ink); font-size: 20px; }

/* ---------- Split-блок (фото + текст + факты) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr auto; align-items: center; gap: 0; background: var(--soft); }
.split__media { position: relative; height: 100%; min-height: 540px; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__geo { position: absolute; right: 0; bottom: 0; width: 180px; }
.split__geo--cluster { width: 140px; right: 24px; bottom: 24px; }
.split__copy { padding: 64px 56px; max-width: 640px; }
.split__copy p { color: #36424C; font-size: 18.5px; line-height: 1.6; }
.split__copy .btn, .cta .btn { min-height: 58px; padding: 16px 30px; font-size: 16.5px; }
.split__copy .btn .ic, .cta .btn .ic { width: 20px; height: 20px; }
.split__copy .muted { color: var(--muted); }
.split__facts, .split__points { list-style: none; margin: 0; padding: 0 56px 0 40px; border-left: 1px solid #D9DEE2; display: grid; gap: 26px; align-self: center; }
.split__facts strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; }
.split__facts span { font-size: 15px; color: var(--muted); }
.split__points li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; max-width: 230px; }
.split__points .ic { width: 30px; height: 30px; }
/* главная: короткий блок «О компании» без фото — подробности на странице about.
   Факты строками «значение — подпись»: колонка значений по ширине самого длинного («4 languages») */
.intro { padding: 72px 0; background: var(--soft); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.intro h2 { font-size: var(--h2); line-height: 1.16; font-weight: 500; margin-bottom: 18px; }
.intro__copy p:not(.eyebrow) { color: #36424C; font-size: 18px; line-height: 1.6; margin-bottom: 22px; max-width: 600px; }
.intro__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; }
.intro__facts li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 18px 0; border-top: 1px solid #D9DEE2; }
.intro__facts li:last-child { border-bottom: 1px solid #D9DEE2; }
.intro__facts strong { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.intro__facts span { font-size: 15.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 960px) {
  .intro { padding: 56px 0; }
  .intro__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .intro { padding: 48px 0; }
  .intro__copy p:not(.eyebrow) { font-size: 17px; }
  .intro__facts { column-gap: 18px; }
  .intro__facts li { padding: 14px 0; }
  .intro__facts strong { font-size: 26px; }
  .intro__facts span { font-size: 15px; }
}
.split--reverse { grid-template-columns: 1.05fr 1fr auto; }

/* ---------- Услуги: короткие карточки ---------- */
.scard, .svc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.scard:hover, .svc:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.scard__media, .svc__media { position: relative; aspect-ratio: 16 / 10; background: var(--line); }
.scard__media img, .svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* единственный акцент — небольшой фирменный уголок, текст и фото он не перекрывает */
.scard__media::after, .svc__media::after { content: ""; position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; background: linear-gradient(135deg, transparent 50%, var(--yellow) 50%); }
.scard__icon, .svc__icon { position: absolute; left: 20px; bottom: -26px; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.scard__icon .ic, .svc__icon .ic { width: 26px; height: 26px; }
.scard__copy, .svc__copy { display: flex; flex-direction: column; flex: 1; padding: 40px 22px 22px; }
.scard h3 { font-family: var(--serif); font-size: var(--h3-card); font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.scard p { font-size: 16px; color: var(--text-2); margin: 0 0 20px; }
.scard--row { display: grid; grid-template-columns: 44% 1fr; }
.scard--row .scard__media { aspect-ratio: auto; min-height: 260px; }
.scard--row .scard__icon { top: 16px; left: 16px; bottom: auto; }
.scard--row .scard__copy { padding: 30px 30px 26px; }
.scard--row h3 { font-size: 26px; }
.scard--row p { font-size: 17px; }
.scard .text-link, .svc .text-link { margin-top: auto; width: 100%; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); color: var(--red); font-size: 16px; font-weight: 600; }
/* главная: плитки услуг (макет: фото 16:9, цветная черта, название, стрелка) */
.svc-tiles { gap: 28px; }
.svc-tile { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 24, 32, .08); transition: box-shadow .25s, transform .25s; }
.svc-tile:hover { box-shadow: 0 16px 40px rgba(15, 24, 32, .14); transform: translateY(-3px); }
.svc-tile__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.svc-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-tile:hover .svc-tile__media img { transform: scale(1.03); }
.svc-tile__body { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 46px 32px 30px; }
.svc-tile__body::before { content: ""; position: absolute; left: 32px; top: 26px; width: 46px; height: 4px; border-radius: 2px; background: var(--red); }
.svc-tile--yellow .svc-tile__body::before { background: var(--yellow); }
.svc-tile--cyan .svc-tile__body::before { background: var(--cyan); }
.svc-tile h3 { font-family: var(--sans); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0; }
.svc-tile__body .ic { flex: none; width: 24px; height: 24px; color: var(--ink); transition: transform .25s, color .25s; }
.svc-tile:hover .svc-tile__body .ic { transform: translateX(4px); color: var(--red); }
@media (min-width: 641px) and (max-width: 960px) {
  .grid.svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .svc-tile__body { padding: 38px 22px 24px; }
  .svc-tile__body::before { left: 22px; top: 20px; }
  .svc-tile h3 { font-size: 19px; }
}
@media (max-width: 640px) {
  .svc-tiles { gap: 18px; }
  .svc-tile__body { padding: 36px 20px 22px; }
  .svc-tile__body::before { left: 20px; top: 18px; width: 36px; }
  .svc-tile h3 { font-size: 18px; }
}
.scard .text-link .ic, .svc .text-link .ic { width: 22px; height: 22px; stroke-width: 2; }
.scard:hover .text-link, .svc:hover .text-link { color: var(--red-dark); }
.svc { scroll-margin-top: 110px; }
.svc:target { outline: 2px solid var(--red); }
.svc__copy { padding: 42px 26px 24px; }
.svc__num { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 10px; background: rgba(255, 255, 255, .94); font-size: 14px; font-weight: 600; color: var(--sand); }
.svc h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.22; margin-bottom: 12px; }
.svc p { font-size: 16.5px; color: var(--text-2); margin: 0 0 22px; }

/* ---------- Услуги: основные направления и сопутствующие ---------- */
.svc-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.svc--main .svc__media { aspect-ratio: 16 / 9; }
.svc--main .svc__num { color: var(--red); }
.svc--main .svc__copy { padding: 46px 34px 30px; }
.svc--main h3 { font-size: 36px; line-height: 1.15; color: #0F1820; margin-bottom: 16px; }
.svc--main p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: 8px; }
.svc--main .ticks { margin: 16px 0 26px; padding: 16px 20px; gap: 10px; background: var(--soft); border-left: 3px solid var(--red); }
.svc--main .ticks li { font-size: 16.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.svc--main .ticks .ic { width: 22px; height: 22px; stroke-width: 2.2; margin-top: 2px; }
.svc--main .btn { align-self: flex-start; margin-top: auto; min-height: 56px; padding: 15px 28px; font-size: 16px; }
.svc-sub__title { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 72px 0 26px; }
.svc-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.svc-mini h3 { min-height: 0 !important; }
.svc-mini { position: relative; display: flex; flex-direction: column; padding: 32px 28px 26px; transition: box-shadow .25s, transform .25s; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 120px; }
.svc-mini:target { outline: 2px solid var(--red); }
.svc-mini:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.svc-mini::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line); transition: background .25s; }
.svc-mini:hover::before { background: var(--red); }
.svc-mini__icon { position: relative; width: 68px; height: 68px; display: grid; place-items: center; background: var(--soft); margin-bottom: 24px; }
.svc-mini__icon::after { content: ""; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; background: linear-gradient(135deg, transparent 50%, var(--yellow) 50%); }
.svc-mini__icon .ic { width: 34px; height: 34px; stroke-width: 1.5; }
.svc-mini h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.22; color: #0F1820; margin-bottom: 12px; min-height: 2.44em; text-wrap: balance; }
.svc-mini p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 26px; }
.svc-mini .text-link { margin-top: auto; width: 100%; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16.5px; }
.svc-mini .text-link .ic { width: 40px; height: 40px; padding: 9px; border: 1px solid #C2C9CE; border-radius: 50%; transition: background .2s, border-color .2s, color .2s; }
.svc-mini:hover .text-link .ic { background: var(--red); border-color: var(--red); color: #fff; transform: none; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 6px; background: var(--soft); border: 1px solid var(--line); }
.tabs__btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 26px; font-size: 17px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.tabs__btn .ic { width: 22px; height: 22px; }
.tabs__btn:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.tabs__btn.is-active { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.tabs__btn.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.tabs__more { margin: 26px 0 0; }

/* ---------- Процесс ---------- */
/* 2×2: строки описаний 40–50 символов вместо ~22 в четырёх узких колонках */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.steps .step { padding: 30px 32px 30px; }
.steps .step__body { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
.steps .step__body > .ic { grid-row: span 2; width: 40px; height: 40px; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 22px; padding: 28px 26px 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step__num { width: 44px; height: 44px; display: grid; place-items: center; transform: rotate(45deg); background: var(--red); }
.step__num span { transform: rotate(-45deg); font-size: 14px; font-weight: 600; color: #fff; }
.step__num--yellow { background: var(--yellow); } .step__num--yellow span { color: var(--ink); }
.step__num--cyan { background: var(--cyan); } .step__num--cyan span { color: var(--ink); }
.step__line { align-self: center; height: 1px; background: #B9C1C7; position: relative; }
.step__line::after { content: ""; position: absolute; right: 0; top: -4px; border: 4.5px solid transparent; border-left: 7px solid #B9C1C7; border-right: 0; }
.step__body { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
.step__body > .ic { width: 36px; height: 36px; }
.step h3 { font-family: var(--serif); font-size: var(--h3-card); font-weight: 500; line-height: 1.25; margin-bottom: 8px; }
.step p { font-size: 16.5px; line-height: 1.6; color: var(--text-2); margin: 0; }

/* ---------- Ценности, статы ---------- */
.values { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.value { grid-column: span 2; padding: 32px 30px 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
/* 3 карточки сверху (по 2 колонки) и 2 широкие снизу (по 3) — ровно на всю ширину */
.value:nth-child(n+4) { grid-column: span 3; }
.value .ic { width: 40px; height: 40px; margin-bottom: 20px; }
.value h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.2; color: #0F1820; margin-bottom: 12px; }
.value p { font-size: 17px; color: var(--ink-2); margin: 0; }
.stats { list-style: none; padding: 26px 0 0; margin: 30px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.stats li { padding: 0 18px; border-left: 1px solid var(--line); text-align: center; }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.1; }
.stats span { font-size: 14.5px; color: var(--muted); }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-head) 56px; }
.about__head { grid-column: 1 / -1; }
.about__media { position: relative; min-height: 540px; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__geo { position: absolute; left: -22px; bottom: -22px; width: 120px; }
.about__copy { align-self: center; color: #45525C; }
.legal-card { display: flex; gap: 48px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); box-shadow: var(--shadow); }
.legal-card h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; color: #0F1820; }
.legal-card dl { display: grid; grid-template-columns: repeat(3, auto); gap: 30px; margin: 0; }
.legal-card dt { font-size: 13.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .1em; }
.legal-card dd { margin: 6px 0 0; font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--ink); max-width: 320px; }

/* ---------- О компании: текст, принципы, реализованный объект, контроль качества, команда ---------- */
.about__copy p { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.about__copy .btn { margin-top: 8px; }
.value { display: flex; flex-direction: column; }
.value p { font-size: 17.5px; line-height: 1.65; color: var(--ink-2); }
.value__proof { display: flex; gap: 8px; align-items: flex-start; margin: auto 0 0 !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px !important; line-height: 1.5 !important; font-weight: 600; color: var(--ink) !important; }
.value p:not(.value__proof) { margin-bottom: 16px; }
.value__proof .ic { width: 20px !important; height: 20px !important; margin: 2px 0 0 !important; color: var(--red); }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.case__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.case__gallery figure { position: relative; margin: 0; overflow: hidden; background: var(--line); }
.case__gallery img { width: 100%; height: 100%; object-fit: cover; }
.case__main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.case__before, .case__after { aspect-ratio: 4 / 3; }
.case__gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; background: rgba(255, 255, 255, .94); font-size: 14px; font-weight: 600; }
.case__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge--soft { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.case h3 { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.15; }
.case__copy > p:not(.pcard__loc) { font-size: 17.5px; line-height: 1.65; color: var(--ink-2); margin: 18px 0 0; }
.case .pcard__facts { margin: 22px 0 28px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.steps--quality { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.steps--quality .step { padding: 32px 34px 30px; }
.steps--quality .step__body { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
.steps--quality .step__body > .ic { grid-row: span 2; width: 40px; height: 40px; }
.steps--quality h3 { font-size: 25px; }
.steps--quality .step p { font-size: 17.5px; line-height: 1.65; }
.steps--quality .step__proof { grid-column: 2; font-size: 16px; }
.step__proof { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--red); }
.step__proof .ic { width: 18px; height: 18px; }
.step__proof:hover span { text-decoration: underline; }
.person { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding-bottom: 22px; }
.person__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px; }
.person h3, .person p { padding: 0 20px; }
.person h3 { font-family: var(--serif); font-size: var(--h3-card); font-weight: 500; }
.person__role { color: var(--red); font-weight: 600; font-size: 15px; margin: 4px 0 10px; }

/* ---------- Плитки ---------- */
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.tile__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
.tile:hover .tile__img { transform: scale(1.04); }
.tile__body { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.tile h3 { font-family: var(--serif); font-size: var(--h3-card); font-weight: 500; line-height: 1.25; }
.tile p { font-size: 15.5px; color: var(--muted); margin: 4px 0 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; min-height: 330px; display: flex; align-items: center; background: #EEF2F4; }
.cta__media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; background: center / cover no-repeat; }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__fade { position: absolute; inset: 0; background: linear-gradient(90deg, #F5F7F8 0%, #F5F7F8 38%, rgba(245, 247, 248, .6) 46%, rgba(245, 247, 248, 0) 56%); }
.cta__geo { position: absolute; left: 50%; bottom: -54px; width: 190px; z-index: 1; }
.cta__inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.cta__copy { max-width: 560px; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: #36424C; margin: 0; font-size: 18.5px; line-height: 1.6; }
.cta--dark { background: #142231; color: #fff; }
.cta--dark .cta__media { width: 100%; }
.cta--dark .cta__fade { background: linear-gradient(90deg, rgba(14, 26, 38, .92) 0%, rgba(14, 26, 38, .72) 45%, rgba(14, 26, 38, .45) 100%); }
.cta--dark p { color: rgba(255, 255, 255, .85); }
.cta--dark .eyebrow { color: #fff; opacity: .85; }
.cta--dark .cta__geo { left: auto; right: 260px; }
.cta__points { list-style: none; margin: 0; padding: 28px 32px; display: grid; gap: 22px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-lg); }
.cta--dark .cta__points { padding: 0 0 0 30px; background: none; box-shadow: none; border-left: 1px solid rgba(255, 255, 255, .3); }
.cta__points li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.cta__points .ic { width: 30px; height: 30px; }

/* ---------- Фильтры ---------- */
.filters { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 500; border-radius: var(--radius); box-shadow: var(--shadow); transition: background .2s, color .2s, border-color .2s; }
.chip .ic { width: 20px; height: 20px; }
.chip:hover { border-color: #B9C1C7; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-blog .chip.is-active { background: var(--red); border-color: var(--red); }
.search { display: flex; align-items: center; gap: 10px; flex: 0 0 280px; min-height: 48px; padding: 0 16px; border: 1px solid #D5DBDF; background: #fff; box-shadow: var(--shadow); }
.search:focus-within { border-color: var(--ink); }
.search .ic { width: 18px; height: 18px; color: var(--muted); }
.search input { border: 0; outline: 0; flex: 1; min-height: 46px; font-size: 16px; background: none; min-width: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.blog-grid { row-gap: 32px; }
.more { display: flex; justify-content: center; margin-top: 40px; }
.btn-more { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 280px; min-height: 54px; padding: 12px 28px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius); font-size: 16px; font-weight: 600; transition: background .2s, color .2s; }
.btn-more [data-more-count] { color: var(--muted); font-weight: 500; }
.btn-more .ic { width: 20px; height: 20px; transition: transform .2s; }
.btn-more:hover { background: var(--ink); color: #fff; }
.btn-more:hover [data-more-count] { color: rgba(255, 255, 255, .75); }
.btn-more:hover .ic { transform: translateY(2px); }
.is-hidden { display: none !important; }

/* ---------- Блог ---------- */
.acard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .25s; }
.acard:hover { box-shadow: var(--shadow-lg); }
.acard__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.acard:hover .acard__media img { transform: scale(1.04); }
.acard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 20px; }
.acard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.acard__cat { color: var(--red-dark); font-weight: 600; }
.acard h3 { font-family: var(--serif); font-size: var(--h3-card); font-weight: 500; line-height: 1.28; margin-bottom: 10px; }
.acard h3 a:hover { color: var(--red); }
/* заголовок — до 3 строк, анонс — до 3 строк; полный текст внутри статьи */
.acard h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard__text { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px; }
.acard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; font-size: 14px; }
.featured { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.featured__media { overflow: hidden; aspect-ratio: 16 / 9.5; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.18; margin-bottom: 16px; }
.featured h2 a:hover { color: var(--red); }
.featured__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 16px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.featured__meta time { display: inline-flex; align-items: center; gap: 8px; }
.featured__meta .ic { width: 18px; height: 18px; color: var(--red); }
.featured__cat { padding: 6px 12px; background: var(--red); color: #fff; font-size: 14px; font-weight: 600; border-radius: var(--radius); }
.featured__body { position: relative; z-index: 1; padding-bottom: 40px; }
.featured__geo { position: absolute; right: 0; bottom: -56px; width: 140px; }

/* ---------- Статья ---------- */
.post__head { max-width: 900px; padding-top: 48px; }
.post h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; margin: 4px 0 18px; }
.post__lead { font-size: 20px; color: #45525C; max-width: 760px; }
.post__cover { max-width: 1180px; margin-top: 26px; }
.post__cover img { width: 100%; aspect-ratio: 16 / 7.5; object-fit: cover; }
.post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 80px; max-width: 1180px; }
.post__layout--single { grid-template-columns: minmax(0, 760px); }
.prose { font-size: 18px; line-height: 1.75; color: #2D3943; }
.prose h2 { font-size: 30px; line-height: 1.2; margin: 44px 0 16px; color: var(--ink); }
.prose h3 { font-size: 20px; font-weight: 600; margin: 30px 0 12px; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 26px 0; padding: 18px 24px; border-left: 3px solid var(--red); background: var(--soft); font-family: var(--serif); font-size: 19px; }
.panel { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px; }
.panel h3 { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.panel .btn { margin-top: 10px; }
.panel--sticky { position: sticky; top: calc(var(--header) + 24px); }
.panel--lg { padding: 32px; }
.panel--lg h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; }

/* ---------- Страница проекта ---------- */
.phero { position: relative; overflow: hidden; min-height: min(720px, 82vh); display: flex; align-items: flex-end; color: #fff; background: var(--ink); }
.phero__media { position: absolute; inset: 0; background: center / cover no-repeat; }
.phero__fade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 20, 28, .8) 0%, rgba(12, 20, 28, .3) 40%, rgba(12, 20, 28, 0) 64%); }
.phero__inner { position: relative; z-index: 2; padding-bottom: 64px; }
.phero h1 { font-size: clamp(46px, 7vw, 92px); line-height: 1; margin: 16px 0 14px; }
.phero__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.phero__loc { display: flex; align-items: center; gap: 8px; font-size: 17px; opacity: .92; margin: 0; }
.phero__geo { position: absolute; right: 0; bottom: 0; width: 220px; z-index: 2; }
.factbar { border-bottom: 1px solid var(--line); }
.factbar__grid { display: flex; flex-wrap: wrap; }
.factbar__item { display: flex; align-items: center; gap: 12px; padding: 24px 28px; border-left: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.factbar__item:first-child { border-left: 0; padding-left: 0; }
.factbar__item .ic { width: 26px; height: 26px; }
.factbar__item--price { margin-left: auto; flex-direction: column; align-items: flex-end; gap: 0; }
.factbar__item--price small { font-size: 14px; color: var(--muted); }
.factbar__item--price strong { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--red); }
.pdetail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
.pdetail h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; margin-bottom: 20px; }
.pdetail__lead { font-size: 18px; color: #3D4953; }
.pdetail__side { display: grid; gap: 20px; align-content: start; }
.pdetail__address { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.pdetail__address .ic { width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.inquiry .map + .text-link { margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { width: 20px; height: 20px; color: var(--red); margin-top: 3px; }
.ticks--sm li { font-size: 16px; }
.dist { list-style: none; margin: 0; padding: 0; }
.dist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.dist li:last-child { border-bottom: 0; }
.dist span { color: var(--muted); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); font-size: 15.5px; transition: border-color .2s, color .2s; }
.docs a span { flex: 1; }
.docs a .ic:last-child { width: 18px; height: 18px; color: var(--muted); }
.docs a:hover { border-color: var(--red); color: var(--red); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 10px; }
.gallery__item { overflow: hidden; position: relative; display: block; background: var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item--extra { display: none; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 25, 35, .55); color: #fff; font-family: var(--serif); font-size: 28px; }
.units__filters { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); background: #fff; }
.seg button { min-height: 46px; padding: 8px 18px; font-size: 15px; font-weight: 500; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button.is-active { background: var(--ink); color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 860px; }
th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--soft); padding: 14px 16px; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--line); white-space: nowrap; }
tbody tr:hover { background: #FBFCFC; }
.inquiry { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.inquiry .map { margin-top: 26px; height: 300px; }

/* ---------- Формы ---------- */
.card-form { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 36px; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin: 26px 0 26px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.field b { color: var(--red-dark); font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select, .phone-input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #D5DBDF; background: #fff; border-radius: var(--radius); font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus, .phone-input:focus-within { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 33, 42, .08); }
.phone-input { display: flex; padding: 0; overflow: hidden; }
.phone-input select { width: auto; min-height: 48px; border: 0; border-right: 1px solid #D5DBDF; border-radius: 0; padding: 0 8px 0 12px; background: var(--soft); }
.phone-input input { border: 0; min-height: 48px; box-shadow: none !important; }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select--sm select { min-height: 46px; padding: 8px 40px 8px 14px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.field__err { display: none; color: var(--red); font-size: 13.5px; font-weight: 500; }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid .phone-input { border-color: var(--red); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--red); flex: 0 0 auto; }
.check span { color: var(--ink-2); }
.check a { color: var(--red-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.check b { color: var(--red-dark); }
.check.is-invalid { border-color: var(--red); }
.check.is-invalid span { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form__service { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 12px 14px; background: var(--soft); border-left: 3px solid var(--red); font-size: 16px; }
.lead-form__service > .ic { width: 20px; height: 20px; color: var(--red); }
.lead-form__service span { flex: 1; }
.lead-form__service button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.lead-form__service button:hover { color: var(--red); }
.lead-form__service button .ic { width: 18px; height: 18px; }
.lead-form__done { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 18px; background: #F1FAF5; border: 1px solid #BFE3CE; }
.lead-form__done > .ic { width: 28px; height: 28px; color: #17905A; }
.lead-form__done strong { display: block; margin-bottom: 4px; }
.lead-form__done p { font-size: 15.5px; color: var(--muted); margin: 0 0 12px; }
.lead-form__alt { display: flex; flex-wrap: wrap; gap: 10px; }
.lead-form.is-sent .lead-form__grid, .lead-form.is-sent > .btn, .lead-form.is-sent .lead-form__submit > .btn { display: none; }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: start; }
.contact > * { min-width: 0; }
.contact__info > .muted { margin: 0 0 var(--sp-head); max-width: 460px; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.clist li { display: flex; gap: 20px; align-items: flex-start; }
.clist .clist__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.clist .clist__ic .ic { width: 22px; height: 22px; }
.clist .clist__ic--mono { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.clist__ic--red { background: var(--red); } .clist__ic--cyan { background: var(--cyan); } .clist__ic--yellow { background: var(--yellow); }
.clist__ic--ink { background: var(--ink); } .clist__ic--green { background: var(--green); }
.clist strong { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.clist span, .clist a { display: block; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.clist a { padding: 8px 0; }
.clist a:hover { color: var(--red); }
.clist .text-link--red { color: var(--red-dark); display: inline-flex; }
.clist .text-link--wa { color: #128C4A; display: inline-flex; font-weight: 600; }
.office { display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; align-items: center; }
.office__copy .muted { margin: 0 0 28px; }
.office__route { display: inline-flex; gap: 14px; align-items: center; padding: 16px 20px; background: var(--soft); border: 1px solid var(--line); }
.office__route .ic { width: 28px; height: 28px; }
.office__route { font-size: 17px; }
.office__note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; font-size: 16.5px; color: var(--ink-2); }
.office__note .ic { width: 20px; height: 20px; margin-top: 3px; color: var(--red); }
.office__route small { display: block; color: var(--muted); font-size: 14.5px; }
.office__route:hover { border-color: var(--red); }
.map { position: relative; height: 380px; background: #E4ECEE; overflow: hidden; }
.map--lg { height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; background:
  radial-gradient(circle at 70% 40%, rgba(5, 153, 178, .18), transparent 40%),
  repeating-linear-gradient(35deg, transparent 0 46px, rgba(255, 255, 255, .7) 46px 49px),
  repeating-linear-gradient(-55deg, transparent 0 70px, rgba(255, 255, 255, .6) 70px 72px), #E3EAEC; }
.map__consent .ic { width: 42px; height: 42px; color: var(--red); }
.map__consent span { font-weight: 600; font-size: 16px; background: #fff; padding: 10px 16px; box-shadow: var(--shadow); }
.map__consent small { color: var(--ink-2); font-size: 14px; }
.map__consent:hover span { color: var(--red); }

/* ---------- Подвал ---------- */
.mini-map__pin { flex: 1; display: grid; place-items: center; color: var(--red); }
.mini-map__pin .ic { width: 30px; height: 30px; }
.mini-map__label { display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; padding: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.mini-map__label .ic { width: 15px; height: 15px; color: var(--red); }

/* ---------- Плавающие элементы ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .35); transition: transform .2s; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.cookie { position: fixed; left: 22px; bottom: 22px; z-index: 60; max-width: 440px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 20px; font-size: 14.5px; }
.cookie p { color: var(--muted); }
.cookie a { text-decoration: underline; }
.cookie div { display: flex; gap: 10px; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 22, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 88vw); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: 15px; text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; color: #fff; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; } .lightbox__next { right: 18px; }
.notfound { text-align: center; padding: 8px 0 88px; background: #fff; }
/* в ролике сверху и снизу белые поля — подрезаем их (на белом фоне это незаметно) */
.notfound__art { margin: 12px auto 18px; max-width: 760px; aspect-ratio: 1280 / 640; overflow: hidden; }
.notfound__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; mix-blend-mode: multiply; background: transparent; }
.notfound .eyebrow { margin-bottom: 14px; }
.notfound__title { max-width: 820px; margin: 0 auto 18px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18; font-weight: 500; text-wrap: balance; }
.notfound__title span { display: block; margin-top: 6px; color: var(--sand); font-style: italic; font-weight: 400; }
.notfound__text { max-width: 560px; margin: 0 auto 28px; color: var(--muted); font-size: 17px; }
.notfound .actions { justify-content: center; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .notfound { padding: 0 0 56px; }
  .notfound__art { margin: 4px -8px 12px; }
  .notfound__title { font-size: 26px; }
  .notfound__text { font-size: 15.5px; margin-bottom: 22px; }
  .notfound .actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Анимация появления ---------- */
.js .reveal { transform: translateY(14px); transition: transform .7s ease; }
.js .reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .menu { gap: 20px; }
  .strip__grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__grid--5 .strip__item:nth-child(4) { border-left: 0; padding-left: 0; }
  .strip__grid--5 .strip__item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .header__cta { display: none; }
  .header__inner { gap: 20px; }
  .logo__name { font-size: 13px; letter-spacing: .1em; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value, .value:nth-child(n+4) { grid-column: auto; }
  .value:last-child { grid-column: 1 / -1; }
  .split, .split--reverse { grid-template-columns: 1fr 1fr; }
  .split__facts, .split__points { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid #D9DEE2; padding: 28px 56px 40px; }
  .split__points { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .hero__tag { display: none; }
}
@media (max-width: 960px) {
  :root { --header: 80px; --sp-section: 80px; --sp-tight: 60px; --sp-head: 32px; }
  .logo img { height: 68px; }
  .logo__name { font-size: 13px; }
  .burger { display: block; }
  .header__cta { display: none; }
  /* выбор языка на телефоне — в шапке рядом с бургером, а не в меню */
  .header__actions { margin-left: auto; gap: 8px; }
  .lang__btn { min-width: 44px; min-height: 44px; justify-content: center; padding: 0 10px; border: 1px solid var(--line); font-size: 14px; letter-spacing: .04em; }
  .lang__btn[aria-expanded="true"] { border-color: var(--ink); }
  .lang__list { z-index: 120; }
  .filters { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .menu { position: fixed; top: var(--header); left: 0; right: 0; bottom: 0; height: auto; flex-direction: column; gap: 0; padding: 12px var(--gutter) 30px; background: #fff; transform: translateX(100%); transition: transform .3s; overflow-y: auto; margin: 0; }
  .menu.is-open { transform: none; }
  .menu > a { padding: 16px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .menu > a::after { display: none; }
  .menu > a.is-active { color: var(--red); }
  .menu__mobile-extra { display: grid; gap: 16px; margin-top: 26px; }
  .menu__phone { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-size: 17px; font-weight: 600; }
  html.menu-lock { overflow: hidden; }
  /* hero: фото над текстом, без белой вуали */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; order: -1; }
  .hero__fade { display: none; }
  .hero__copy { padding: 34px 0 52px; max-width: none; }
  .hero__media { width: 100%; }
  .hero__geo { width: 120px; top: calc(100vw * .625 - 96px); bottom: auto; }
  .hero__left-geo { display: none; }
  .strip__grid, .strip__grid--4, .strip__grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .strip__item > span { min-width: 0; overflow-wrap: normal; hyphens: auto; }
  .strip__item { border-left: 0; padding: 16px 0; }
  .strip__item:first-child { padding-left: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .scard--row { grid-template-columns: 40% 1fr; }
  .svc-main { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; margin-top: 20px; }
  .strip__item { padding: 22px 0; font-size: 16.5px; }
  .tabs__btn { flex: 1 1 auto; justify-content: center; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head__aside { border-left: 0; padding-left: 0; }
  .about, .contact, .office, .inquiry, .pdetail, .featured, .post__layout, .case { grid-template-columns: 1fr; }
  .contact, .office, .inquiry, .pdetail { gap: 40px; }
  .steps, .steps--quality { grid-template-columns: 1fr; }
  .about__media { min-height: 0; aspect-ratio: 4 / 3; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split__media { min-height: 0; aspect-ratio: 4 / 3; }
  .split__copy { padding: 44px var(--gutter) 8px; max-width: none; }
  .split__facts, .split__points { padding: 26px var(--gutter) 44px; }
  .cta__media { width: 100%; opacity: .35; }
  .cta--dark .cta__media { opacity: 1; }
  .cta__fade { background: linear-gradient(90deg, rgba(245, 247, 248, .95), rgba(245, 247, 248, .82)); }
  .cta--dark .cta__fade { background: linear-gradient(180deg, rgba(14, 26, 38, .9), rgba(14, 26, 38, .75)); }
  .cta__inner { flex-direction: column; align-items: flex-start; padding-top: 60px; padding-bottom: 60px; }
  .cta__points { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 24px; }
  .cta--dark .cta__points { border-left: 0; padding-left: 0; }
  .cta__geo { width: 130px; left: auto; right: -20px; bottom: -40px; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .phero { min-height: 520px; }
  .factbar__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factbar__item { min-width: 0; }
  .factbar__item .nw { white-space: normal; }
  .factbar__item { padding: 16px 16px 16px 0; border-left: 0; }
  .factbar__item--price { grid-column: 1 / -1; margin-left: 0; align-items: flex-start; border-top: 1px solid var(--line); }
  .post__aside { order: 2; }
  .panel--sticky { position: static; }
  .legal-card dl { grid-template-columns: 1fr; gap: 14px; }
}
/* планшет: три статьи в двух колонках дают «висящую» карточку — показываем две */
@media (min-width: 641px) and (max-width: 960px) {
  .grid-3:not(.blog-grid) > .acard:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --sp-section: 64px; --sp-tight: 48px; --sp-head: 26px; }
  body { font-size: 16px; }
  .logo img { height: 62px; }
  .logo { gap: 10px; }
  .logo__name { font-size: 12.5px; letter-spacing: .1em; }
  .lang__btn { padding: 0 8px; gap: 2px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .hero__geo { width: 90px; top: calc(100vw * .625 - 72px); }
  .actions .btn { flex: 1 1 100%; }
  :root { --h2: 32px; --h3-card: 21px; }
  .strip__item { font-size: 14.5px; gap: 10px; line-height: 1.35; }
  .strip__item .ic { width: 24px; height: 24px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* телефон: услуги на главной — компактные строки с фото слева, а не полноэкранные карточки */
  .scard--row { grid-template-columns: 112px 1fr; }
  .svc-sub { grid-template-columns: 1fr; }
  .svc--main h3 { font-size: 26px; }
  .svc--main .svc__copy { padding: 40px 22px 24px; }
  .svc-sub__title { margin-top: 48px; font-size: 26px; }
  .tabs__btn { padding: 10px 12px; font-size: 15.5px; min-height: 52px; gap: 8px; }
  .svc--main h3 { font-size: 28px; }
  .svc--main .btn { align-self: stretch; }
  .svc-mini h3 { font-size: 23px; }
  .strip__item { padding: 18px 0; font-size: 15.5px; }
  .strip__item .ic { width: 28px; height: 28px; }
  .scard--row .scard__media { aspect-ratio: auto; min-height: 100%; }
  .scard--row .scard__media::after { width: 24px; height: 24px; }
  .scard--row .scard__icon { top: 8px; left: 8px; width: 34px; height: 34px; }
  .scard--row .scard__icon .ic { width: 18px; height: 18px; }
  .scard--row h3 { font-size: 20px; margin-bottom: 6px; }
  .scard--row p { font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
  .scard--row .scard__copy { padding: 16px 16px 14px; }
  .scard--row .text-link { padding-top: 10px; font-size: 15px; min-height: 0; }
  .split__copy p, .cta p { font-size: 17px; }
  .grid { gap: 20px; }
  .steps, .steps--quality { grid-template-columns: 1fr; gap: 16px; }
  .steps .step, .steps--quality .step { padding: 26px 22px; }
  .steps .step__body, .steps--quality .step__body { display: flex; flex-direction: column; }
  .legal-card { padding: 28px 22px; }
  .legal-card h3 { font-size: 26px; }
  .step { padding: 24px 22px 26px; }
  .pcard--lg .pcard__facts { gap: 10px 20px; }
  .values { grid-template-columns: 1fr; gap: 16px; }
  .value { padding: 26px 22px; }
  .value h3 { font-size: 23px; }
  .split__facts, .split__points, .stats { grid-template-columns: 1fr; gap: 18px; }
  .split__facts strong { font-size: 34px; }
  .stats li { border-left: 0; text-align: left; padding: 0; }
  .cta__points { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .chip { flex: 0 0 auto; }
  .search { min-width: 0; flex: 0 0 auto; width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .card-form { padding: 26px 20px; }
  .lead-form__grid { grid-template-columns: 1fr; }
  .pcard h3 { font-size: 26px; }
  .pcard--lg h3 { font-size: 28px; }
  .phero { min-height: 460px; }
  .phero h1 { font-size: 46px; }
  .factbar__item { font-size: 16px; }
  .prose { font-size: 17px; }
  .post__lead { font-size: 18px; }
  .clist li { gap: 16px; }
  .clist .clist__ic { width: 46px; height: 46px; }
  .clist span, .clist a { font-size: 16.5px; overflow-wrap: anywhere; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); }
}

/* очень узкие телефоны (320–380 px): длинные слова переносятся, фото в карточках услуг уже */
.scard h3, .scard p, .intro__facts span, .cta .eyebrow { overflow-wrap: break-word; hyphens: auto; }
.card-form, .lead-form, .field, .prose, .clist, .clist > li { min-width: 0; }
.prose, .clist { overflow-wrap: anywhere; }
.field select, .field input, .field textarea { max-width: 100%; min-width: 0; }
@media (max-width: 380px) {
  .logo img { height: 50px; }
  .logo { gap: 8px; }
  .logo__name { font-size: 11px; letter-spacing: .06em; }
  .scard--row { grid-template-columns: 84px 1fr; }
  .scard--row .scard__icon { display: none; }
  .scard--row .scard__copy { padding: 14px 12px 12px; }
  .scard--row h3 { font-size: 18px; }
  .intro__facts strong { font-size: 22px; }
  .btn { white-space: normal; text-align: center; padding-left: 18px; padding-right: 18px; }
  .pcard__facts .nw { white-space: normal; }
  .clist .text-link { white-space: normal; }
}
/* самые узкие телефоны: логотип, язык и бургер в одну строку */
@media (max-width: 360px) {
  .logo img { height: 42px; }
  .logo { gap: 6px; }
  .logo__name { font-size: 10.5px; letter-spacing: .04em; }
  .lang__btn { padding: 0 6px; }
}
@media (max-width: 340px) {
  .lang__btn { padding: 0; }
  .lang__btn .ic { display: none; }
}
/* Literata шире Playfair: на самых узких экранах крупные заголовки меньше и переносятся по слогам */
@media (max-width: 380px) {
  h1, h2, h3, .h3 { overflow-wrap: anywhere; hyphens: auto; }
  .featured > *, .pdetail > *, .case > * { min-width: 0; }
  .hero h1, .page-hero h1, main h1 { font-size: 32px; }
  .section-head h2, .split h2, .intro h2, .cta h2, .contact h2, .about h2, .office h2, .inquiry h2 { font-size: 27px; }
  .svc h3, .svc--main h3, .acard h3, .case h3 { font-size: 22px; }
  .featured__meta, .acard__meta { flex-wrap: wrap; row-gap: 6px; }
}

/* ===== Телефоны: без прокрутки вбок, без наложений, плотнее ===== */
@media (max-width: 960px) {
  /* закрытое меню за правым краем не должно расширять страницу */
  .menu { visibility: hidden; transition: transform .3s, visibility 0s linear .3s; }
  .menu.is-open { visibility: visible; transition: transform .3s; }
}
@media (max-width: 640px) {
  /* фильтры: строка кнопок листается внутри себя и не шире экрана */
  .filters { display: block; }
  .filters > * + * { margin-top: 12px; }
  .filters__chips { width: auto; max-width: none; }
  /* текст с неразрывными пробелами может переноситься, если не помещается */
  .fact .nw, .strip__item .nw { white-space: normal; }
  .fact > span { overflow-wrap: anywhere; }
  .strip__item > span { overflow-wrap: normal; hyphens: auto; }

  /* этапы работы: номер слева, текст справа — без стрелки и иконки */
  .step, .steps .step, .steps--quality .step { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; column-gap: 18px; row-gap: 0; padding: 18px 18px 20px; align-items: start; }
  .step__line, .step__body > .ic, .steps .step__body > .ic, .steps--quality .step__body > .ic { display: none; }
  .step__num { width: 34px; height: 34px; margin: 6px 4px 0; }
  .step__num span { font-size: 12.5px; }
  .step__body, .steps .step__body, .steps--quality .step__body { grid-column: 2; grid-row: 1; display: block; }
  .step h3, .steps--quality h3 { font-size: 20px; margin-bottom: 4px; }
  .step p, .steps--quality .step p { font-size: 15.5px; line-height: 1.5; }
  .steps--quality .step__proof { font-size: 14.5px; margin-top: 6px; }
  .steps, .steps--quality { gap: 12px; }

  /* подвал: компактнее, без дублирующего списка проектов */
}
/* 320–380 px: длинные слова и ссылки переносятся, характеристики и форма помещаются в свои колонки */
.tabs__more .text-link, .pdetail__main a, .prose a { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .lead-form__grid { grid-template-columns: minmax(0, 1fr); }
  .lead-form__grid > *, .lead-form .field > * { min-width: 0; max-width: 100%; }
  .factbar__item { gap: 8px; font-size: 15px; padding-right: 8px; }
  .factbar__item .ic { width: 20px; height: 20px; flex: none; }
  .factbar__item > span { min-width: 0; overflow-wrap: anywhere; }
}
/* подвал на телефоне: ещё плотнее */
@media (max-width: 640px) {
  /* кнопка WhatsApp висит справа внизу — оставляем ей место справа, а не снизу */
}
/* телефон: плотнее карточки услуг, ценностей и статей */
@media (max-width: 640px) {
  /* услуги (страница «Услуги»): иконка слева, текст справа */
  .svc-mini { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px 18px 16px; }
  .svc-mini__icon { width: 44px; height: 44px; margin: 2px 0 0; grid-row: span 3; }
  .svc-mini__icon::after { width: 12px; height: 12px; }
  .svc-mini__icon .ic { width: 24px; height: 24px; }
  .svc-mini h3 { font-size: 20px; margin-bottom: 6px; }
  .svc-mini p { font-size: 15.5px; line-height: 1.55; margin-bottom: 10px; }
  .svc-mini .text-link { grid-column: 2; padding-top: 8px; font-size: 15px; min-height: 40px; }
  .svc-mini .text-link .ic { width: 32px; height: 32px; padding: 7px; }
  .svc--main .svc__copy { padding: 36px 20px 22px; }
  .svc--main h3 { font-size: 26px; margin-bottom: 10px; }
  .svc--main p { font-size: 16px; line-height: 1.55; }
  .svc--main .ticks { margin: 12px 0 18px; padding: 12px 14px; gap: 6px; }
  .svc--main .ticks li { font-size: 15px; }
  /* ценности («О компании») */
  .value { padding: 20px 18px; }
  .value .ic { width: 30px; height: 30px; margin-bottom: 10px; }
  .value h3 { font-size: 21px; margin-bottom: 6px; }
  .value p { font-size: 15.5px; line-height: 1.55; }
  .values { gap: 12px; }
  /* статьи блога: без анонса — заголовок, рубрика и дата */
  .acard__text { display: none; }
  .acard h3 { font-size: 20px; }
}

/* ---------- Страница «Контакты»: одна компактная секция ---------- */
.cpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "quick form" "office form"; gap: 28px 48px; align-items: start; }
.cpage > * { min-width: 0; }
.cpage__quick { grid-area: quick; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cpage__form { grid-area: form; padding: 30px 32px; }
.cpage__form .lead-form__grid { margin: 20px 0; gap: 18px 16px; }
.cpage__office { grid-area: office; padding: 26px 28px; background: var(--soft); border: 1px solid var(--line); }
.cpage__office h2.h3 { font-size: 26px; margin-bottom: 14px; }
.qc { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.qc:hover { border-color: var(--red); box-shadow: var(--shadow-lg); }
.qc > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.qc small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.qc__ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.qc__ic .ic, .qc__ic svg { width: 20px; height: 20px; }
.qc--wa .qc__ic { background: var(--green); border-color: var(--green); color: #fff; }
.qc--wide { grid-column: 1 / -1; }
.qc--phones a { display: block; color: var(--ink); padding: 2px 0; }
.qc--phones a:hover { color: var(--red); }
.qc > span:last-child { overflow-wrap: normal; word-break: normal; }
.qc--wide > span:last-child { overflow-wrap: normal; }
@media (max-width: 640px) { .qc--wide { font-size: 14px; font-weight: 500; letter-spacing: -.01em; } }
.cpage__facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.cpage__facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cpage__facts .ic { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--red); }
.cpage__map { height: 230px; }
.cpage__route { margin-top: 10px; color: var(--ink); }
.cpage__route .ic:first-child { color: var(--red); }
@media (max-width: 960px) {
  .cpage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "quick" "form" "office"; gap: 20px; }
}
@media (max-width: 640px) {
  .cpage__quick { gap: 10px; }
  .qc { min-height: 64px; padding: 10px 12px; gap: 10px; font-size: 14.5px; }
  .qc__ic { width: 36px; height: 36px; }
  .qc__ic .ic, .qc__ic svg { width: 18px; height: 18px; }
  .qc small { font-size: 12px; }
  .cpage__form { padding: 22px 18px; }
  .cpage__office { padding: 20px 18px; }
  .cpage__office h2.h3 { font-size: 22px; }
  .cpage__facts li { font-size: 15px; }
  .cpage__map { height: 200px; }
}
@media (max-width: 359px) {
  .cpage__quick { grid-template-columns: minmax(0, 1fr); }
  .qc--wide { grid-column: auto; }
}
/* номера телефонов никогда не рвутся; на телефоне плитки контактов — в один столбец, номера в строку */
.qc--phones a { white-space: nowrap; }
@media (max-width: 640px) {
  .cpage__quick { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .qc { min-height: 58px; }
  .qc--phones > span:last-child { display: flex; flex-wrap: wrap; column-gap: 16px; }
  .qc--phones small { flex-basis: 100%; }
  .qc--phones a { padding: 0; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .cpage__quick { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .qc--phones > span:last-child { display: flex; flex-wrap: wrap; column-gap: 16px; }
  .qc--phones small { flex-basis: 100%; }
}
/* главная: плитки услуг — все четыре в один ряд на компьютере, 2×2 на планшете и телефоне */
.grid.svc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.svc-tile__media { aspect-ratio: 16 / 10; }
.svc-tile__body { align-items: flex-end; padding: 34px 20px 20px; flex: 1; }
.svc-tile__body::before { left: 20px; top: 18px; width: 36px; height: 3px; }
.svc-tile h3 { font-size: 18px; line-height: 1.3; }
.svc-tile__body .ic { width: 20px; height: 20px; margin-bottom: 2px; }
@media (max-width: 1099px) {
  .grid.svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .svc-tile__media { aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
  .grid.svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .svc-tile { border-radius: 10px; }
  .svc-tile__media { aspect-ratio: 4 / 3; }
  .svc-tile__body { padding: 24px 12px 14px; gap: 6px; }
  .svc-tile__body::before { left: 12px; top: 12px; width: 26px; }
  .svc-tile h3 { font-size: 14.5px; line-height: 1.3; hyphens: auto; overflow-wrap: break-word; }
  .svc-tile__body .ic { width: 16px; height: 16px; }
}
@media (max-width: 390px) {
  .svc-tile h3 { font-size: 13.5px; letter-spacing: -.01em; }
  .svc-tile__body { padding: 22px 10px 12px; gap: 4px; }
  .svc-tile__body::before { left: 10px; }
  .svc-tile__body .ic { display: none; }
}
@media (max-width: 340px) {
  .svc-tile h3 { font-size: 12.5px; overflow-wrap: anywhere; }
}
/* телефон: фильтры проектов и блога — компактные кнопки в несколько строк, а не обрезанная лента за край экрана */
@media (max-width: 640px) {
  .filters__chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 8px; width: auto; }
  .chip { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; gap: 6px; font-size: 14.5px; box-shadow: none; }
  .chip .ic { display: none; }
}
/* текст только для программ экранного чтения (заголовки разделов без видимого заголовка) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===================== Анимации ===================== */
/* 1. Логотип (вектор) собирается: каждый треугольник прилетает со своей стороны — один раз за визит */
.logo__mark { display: block; flex: none; }
.logo__svg { display: block; height: 64px; width: auto; overflow: visible; }
.logo.is-assembling .lp { animation: logo-tri .75s cubic-bezier(.2, .85, .25, 1.1) both; animation-delay: calc(var(--i) * 45ms); transform-box: fill-box; transform-origin: center; }
@keyframes logo-tri { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(-60deg) scale(.4); } to { opacity: 1; transform: none; } }
.logo.is-assembling .logo__text { animation: logo-name .5s .85s ease both; }
.logo.is-assembling .logo__name { animation: logo-name .5s .9s ease both; }
@keyframes logo-name { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .logo__svg { height: 50px; } }
@media (max-width: 640px) { .logo__svg { height: 46px; } }
@media (max-width: 380px) { .logo__svg { height: 37px; } }
@media (max-width: 360px) { .logo__svg { height: 31px; } }

/* 2. Декоративные ромбы и треугольники собираются, когда попадают на экран */
.js .geo path { transform-box: fill-box; transform-origin: center; transition: transform .7s cubic-bezier(.2, .9, .25, 1.15), opacity .5s ease; }
.js .geo:not(.is-in) path { transform: scale(0) rotate(-45deg); opacity: 0; }
.js .geo path:nth-child(2) { transition-delay: .12s; }
.js .geo path:nth-child(3) { transition-delay: .24s; }
.js .geo path:nth-child(4) { transition-delay: .36s; }

/* 4. Кот у формы: спит → смотрит, пока заполняют → радуется отправке */
.lead-form__submit { position: relative; padding-top: 46px; }
/* пол кота — 56 из 86 по высоте: при ширине 108 это 45.8 px = отступ сверху 46 */
.kcat { position: absolute; right: 18px; top: 0; width: 108px; pointer-events: none; z-index: 1; }
.kcat__svg { display: block; width: 100%; height: auto; overflow: visible; }
.kcat__body { transform-box: fill-box; transform-origin: 50% 100%; animation: kcat-breathe 3.2s ease-in-out infinite; }
@keyframes kcat-breathe { 50% { transform: scaleY(1.06); } }
.kcat__tail { transform-box: fill-box; transform-origin: 20% 0%; }
.kcat__eyes--open { opacity: 0; transition: opacity .2s; }
.kcat__eyes--closed { transition: opacity .2s; }
.kcat__z { position: absolute; left: 6px; top: -14px; font: 600 13px/1 var(--sans); color: #8A99A6; }
.kcat__z i { position: absolute; font-style: normal; opacity: 0; animation: kcat-z 3.6s ease-in infinite; }
.kcat__z i:nth-child(2) { animation-delay: 1.2s; font-size: 11px; }
.kcat__z i:nth-child(3) { animation-delay: 2.4s; font-size: 9px; }
@keyframes kcat-z { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-14px, -26px); } }
.kcat__bubble { position: absolute; right: 84px; top: -22px; padding: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow); font: 600 13px/1.3 var(--sans); color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .3s, transform .3s; }
/* заполняют форму — кот открыл глаза и помахивает хвостом */
.lead-form:focus-within .kcat__eyes--open, .lead-form.is-sent .kcat__eyes--open { opacity: 1; }
.lead-form:focus-within .kcat__eyes--closed, .lead-form.is-sent .kcat__eyes--closed { opacity: 0; }
.lead-form:focus-within .kcat__z, .lead-form.is-sent .kcat__z { display: none; }
.lead-form:focus-within .kcat__tail { animation: kcat-tail 1.6s ease-in-out infinite; }
@keyframes kcat-tail { 50% { transform: rotate(10deg); } }
/* отправили — подпрыгнул, машет хвостом, говорит «Мяу!» */
.lead-form.is-sent .kcat__svg { animation: kcat-hop .6s ease both; }
.lead-form.is-sent .lead-form__done { margin-top: 0; }

.lead-form.is-sent .kcat__tail { animation: kcat-wag .45s ease-in-out infinite; }
.lead-form.is-sent .kcat__bubble { opacity: 1; transform: none; transition-delay: .35s; }
@keyframes kcat-hop { 30% { transform: translateY(-12px); } 55% { transform: translateY(0); } 70% { transform: translateY(-4px); } }
@keyframes kcat-wag { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(16deg); } }
/* телефон: ширина 92 → пол на 39 px, отступ сверху 40 */
@media (max-width: 640px) { .kcat { width: 92px; right: 12px; top: 1px; } .lead-form__submit { padding-top: 40px; } }

/* «Меньше анимации» в системе — всё статично: логотип сразу целый, ромбы на месте, кот просто спит */
@media (prefers-reduced-motion: reduce) {
  .logo.is-assembling .lp, .logo.is-assembling .logo__text, .logo.is-assembling .logo__name { animation: none !important; }
  .js .geo:not(.is-in) path { transform: none; opacity: 1; }
  .kcat__body, .kcat__tail, .kcat__z i, .lead-form.is-sent .kcat__svg, .lead-form.is-sent .kcat__tail { animation: none !important; }
  .kcat__z i { opacity: .7; } .kcat__z i:nth-child(2) { transform: translate(-7px, -10px); } .kcat__z i:nth-child(3) { transform: translate(-13px, -20px); }
}
/* самые узкие телефоны: кот поменьше (ширина 76 → пол на 33 px), облачко в две строки */
@media (max-width: 380px) {
  .kcat { width: 76px; right: 4px; top: 0; }
  .lead-form__submit { padding-top: 33px; }
  .kcat__bubble { right: 58px; top: -30px; white-space: normal; width: max-content; max-width: 150px; font-size: 12px; text-align: center; }
}
@media (max-width: 360px) {
  .lead-form__submit > .btn { justify-content: flex-start; padding-left: 16px; padding-right: 36px; white-space: nowrap; font-size: 15px; }
}
@media (max-width: 340px) { .lead-form__submit > .btn { font-size: 14px; padding-left: 14px; padding-right: 28px; gap: 6px; } }

/* 5. Кот-пасхалка: из-за белой панели карточки над краем фото выглядывает хвост (раз за визит) */
.ktail { position: absolute; right: 30px; bottom: 0; width: 40px; height: 88px; z-index: 2; cursor: pointer; transform: translateY(105%); transition: transform .7s cubic-bezier(.3, 1.2, .5, 1); background: none; border: 0; padding: 0; }
.ktail svg { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; overflow: visible; }
.ktail.is-up { transform: translateY(6%); }
.ktail.is-up svg { animation: ktail-sway 2.4s ease-in-out infinite; }
@keyframes ktail-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
.ktail.is-found svg { animation: ktail-wag .3s ease-in-out 4; }
@keyframes ktail-wag { 50% { transform: rotate(14deg); } }
.ktail__bubble { position: absolute; right: 82px; bottom: 70px; z-index: 3; padding: 8px 12px; background: #fff; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow-lg); font: 600 13px/1.3 var(--sans); color: var(--ink); white-space: normal; width: max-content; max-width: calc(100% - 104px); pointer-events: none; animation: ktail-bubble 2.4s ease both; }
@keyframes ktail-bubble { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

/* 6. Блик по красным кнопкам — раз в несколько секунд, у каждой кнопки со своей задержкой */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(.btn--ghost):not(.btn--light)::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .42) 50%, transparent 100%); transform: skewX(-20deg); animation: btn-glint 6.5s ease-in-out infinite; animation-delay: var(--glint-delay, 2s); pointer-events: none; }
@keyframes btn-glint { 0% { left: -60%; } 16%, 100% { left: 130%; } }
.btn:disabled::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ktail { display: none; }
  .btn::after { animation: none !important; display: none; }
}
@media (max-width: 640px) {
  .ktail { right: 22px; width: 36px; height: 79px; }
  .ktail__bubble { right: 66px; bottom: 44px; white-space: normal; width: max-content; max-width: calc(100% - 86px); font-size: 12.5px; }
}
@media (max-width: 380px) { .ktail__bubble { bottom: 14px; } }

/* 10. Плавные переходы между страницами (в т.ч. смена языка) — встроенные View Transitions браузера; шапка остаётся на месте */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
/* браузеры без View Transitions: мягкое затухание при смене языка (JS) */
body.is-leaving { opacity: 0; transition: opacity .18s ease; }
body.is-arriving { animation: page-in .3s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* 11. Ромб «Наверх» в цветах логотипа (слева внизу — справа чат) */
.totop { position: fixed; left: 20px; bottom: 22px; z-index: 60; width: 50px; height: 50px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 6px 14px rgba(15, 24, 32, .22)); opacity: 0; transform: translateY(12px) rotate(45deg) scale(.8); transition: opacity .3s, transform .3s; }
.totop svg { display: block; width: 100%; height: 100%; transform: rotate(-45deg); }
.totop.is-shown { opacity: 1; transform: rotate(45deg); }
.totop.is-shown:hover { transform: rotate(45deg) scale(1.08); }
.totop svg { transform: rotate(-45deg); }
.totop:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 640px) { .totop { left: 14px; bottom: 18px; width: 44px; height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  body.is-arriving { animation: none; }
  .totop { transition: none; }
}
/* пока открыт баннер cookies (тот же угол) — ромб «Наверх» не показываем */
body:has(#cookie:not([hidden])) .totop { display: none; }

/* 12. «Здание строится»: фото объекта поднимается снизу вверх в три этапа (фундамент → этажи → крыша),
       по растущему краю идёт жёлтая линия уровня. Один раз за визит на страницу объекта. */
.phero__level { display: none; }
.phero.is-building .phero__media { animation: build-up 2.1s cubic-bezier(.45, 0, .2, 1) both; }
.phero.is-building .phero__level { display: block; position: absolute; left: 0; right: 0; height: 2px; z-index: 1; background: var(--yellow); box-shadow: 0 0 12px 2px rgba(252, 194, 0, .65); animation: build-level 2.1s cubic-bezier(.45, 0, .2, 1) both; pointer-events: none; }
@keyframes build-up {
  0% { clip-path: inset(100% 0 0 0); }
  26%, 36% { clip-path: inset(66% 0 0 0); }
  62%, 72% { clip-path: inset(28% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes build-level {
  0% { bottom: 0; opacity: 1; }
  26%, 36% { bottom: 34%; }
  62%, 72% { bottom: 72%; }
  94% { bottom: 100%; opacity: 1; }
  100% { bottom: 100%; opacity: 0; }
}

/* 13. Фото раскрываются треугольником из левого нижнего угла (как грань ромба логотипа), когда блок появляется на экране */
.js .reveal:is(.pcard, .acard, .svc-tile, .svc, .tile, .featured, .case) img,
.js .reveal:is(.split__media, .about__media) img {
  clip-path: polygon(0 100%, 0 -100%, 200% 100%);
  transition: clip-path 1s cubic-bezier(.5, 0, .2, 1), transform .6s;
}
.js .reveal:not(.is-in):is(.pcard, .acard, .svc-tile, .svc, .tile, .featured, .case) img,
.js .reveal:not(.is-in):is(.split__media, .about__media) img { clip-path: polygon(0 100%, 0 100%, 0 100%); }
/* в рядах карточки раскрываются по очереди */
.js .grid > .reveal:nth-child(3n+2) img { transition-delay: .12s; }
.js .grid > .reveal:nth-child(3n+3) img { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .phero.is-building .phero__media, .phero.is-building .phero__level { animation: none; display: none; }
  .phero.is-building .phero__media { display: block; }
  .js .reveal img { clip-path: none !important; transition: none !important; }
}

/* 14. Лента «Сейчас строим»: объекты медленно бегут справа налево, при наведении — пауза */
.ticker { display: flex; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.ticker__track { display: flex; width: max-content; animation: ticker-run 48s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__list { display: flex; margin: 0; padding: 0 0 0 26px; list-style: none; }
.ticker__list li { display: flex; align-items: center; }
.ticker__list li::after { content: ""; width: 8px; height: 8px; margin: 0 26px; background: var(--red); transform: rotate(45deg); }
.ticker__list li:nth-child(3n+2)::after { background: var(--yellow); }
.ticker__list li:nth-child(3n+3)::after { background: var(--cyan); }
.ticker__list a { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; white-space: nowrap; font-size: 15px; color: var(--ink-2); }
.ticker__list b { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); }
.ticker__list a:hover b { color: var(--red); }
@media (max-width: 640px) {
  .ticker__list a { padding: 12px 0; font-size: 14px; } .ticker__list b { font-size: 16px; }
  .ticker__list li::after { margin: 0 18px; }
  .ticker__track { animation-duration: 36s; }
}

/* 15. Цветной уголок в углу фото карточек: при наведении растёт */
.pcard__media::after, .acard__media::after, .svc-tile__media::after { content: ""; position: absolute; right: 0; bottom: 0; z-index: 1; width: 26px; height: 26px; background: linear-gradient(135deg, transparent 50%, var(--corner, var(--yellow)) 50%); transition: width .45s cubic-bezier(.3, 1.3, .5, 1), height .45s cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; }
.acard__media { position: relative; }
.acard__media::after { --corner: var(--cyan); }
.svc-tile--red .svc-tile__media::after { --corner: var(--red); }
.svc-tile--cyan .svc-tile__media::after { --corner: var(--cyan); }
.scard__media::after, .svc__media::after { transition: width .45s cubic-bezier(.3, 1.3, .5, 1), height .45s cubic-bezier(.3, 1.3, .5, 1); }
@media (hover: hover) {
  .pcard:hover .pcard__media::after, .acard:hover .acard__media::after, .svc-tile:hover .svc-tile__media::after { width: 72px; height: 72px; }
  .svc:hover .svc__media::after, .scard:hover .scard__media::after { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; } .ticker__list[aria-hidden] { display: none; } .ticker__viewport { overflow-x: auto; }
}

@media (max-width: 640px) {
  .strip__item { font-size: 14.5px; gap: 10px; }
}
/* полоса преимуществ на телефоне: иконка над текстом — длинным словам («Сопровождение», «Acompañamiento») хватает ширины */
@media (max-width: 640px) {
  .strip__item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 0; }
  .strip__item .ic { width: 24px; height: 24px; }
}

/* 16. Пасхалка: «ящик инструментов» в телефоне (кнопка в подвале — только на сенсорных устройствах) */
.level-btn { display: none; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.level-btn svg { width: 28px; height: 28px; }
@media (hover: none) and (pointer: coarse) { .level-btn:not([hidden]) { display: inline-flex; } }
.lvl { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12, 20, 28, .72); }
.lvl__card { position: relative; width: min(420px, 100%); max-height: 100%; overflow: auto; padding: 18px 18px 20px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); text-align: center; }
.lvl__close { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.lvl__title { font-family: var(--serif); font-size: 21px; margin: 2px 0 12px; }
.lvl__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 0 18px; padding: 4px; background: var(--bg-soft, #F2F4F6); border-radius: 12px; }
.lvl__tab { min-height: 38px; padding: 4px 2px; border: 0; border-radius: 9px; background: none; font: 600 13px/1.15 var(--sans); color: var(--muted); cursor: pointer; overflow-wrap: anywhere; }
.lvl__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.lvl__panel { display: none; min-height: 236px; }
.lvl[data-tool="level"] .lvl__panel--level, .lvl[data-tool="angle"] .lvl__panel--angle, .lvl[data-tool="compass"] .lvl__panel--compass, .lvl[data-tool="plumb"] .lvl__panel--plumb { display: block; }
.lvl__tube { position: relative; height: 46px; margin: 4px 6px 20px; border-radius: 23px; background: linear-gradient(180deg, #E9F7C9, #C8EA7E 55%, #B3DD5E); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18), 0 0 0 4px #17212A; overflow: hidden; }
.lvl__tube::before, .lvl__tube::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 2px; background: rgba(23, 33, 42, .7); }
.lvl__tube::before { left: calc(50% - 22px); } .lvl__tube::after { left: calc(50% + 20px); }
.lvl__bubble { position: absolute; top: 50%; left: 50%; width: 38px; height: 26px; margin: -13px 0 0 -19px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, .25)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); transition: transform .08s linear; }
.lvl__eye { position: relative; width: 160px; height: 160px; margin: 0 auto 8px; border-radius: 50%; background: radial-gradient(circle, #E9F7C9, #B3DD5E); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .2), 0 0 0 4px #17212A; }
.lvl__eye::before { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 2px solid rgba(23, 33, 42, .7); border-radius: 50%; }
.lvl__eye .lvl__bubble { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.lvl[data-mode="flat"] .lvl__tube, .lvl[data-mode="edge"] .lvl__eye { opacity: .3; }
.lvl__arc { display: block; width: 100%; max-width: 300px; margin: 6px auto 0; }
.lvl__needle { transition: transform .08s linear; }
.lvl__dial { position: relative; width: 210px; margin: 0 auto; padding-top: 14px; }
.lvl__rose { display: block; width: 100%; transition: transform .12s linear; }
.lvl__rose text { font: 700 20px var(--sans); fill: #17212A; }
.lvl__rose .lvl__n { fill: #D7262E; }
.lvl__pointer { position: absolute; left: 50%; top: 0; margin-left: -9px; border: 9px solid transparent; border-top: 14px solid #FCC200; border-bottom: 0; }
.lvl__plumb { display: block; width: 100%; max-width: 220px; height: 230px; margin: 0 auto; }
.lvl__deg { margin-top: 8px; font: 600 32px/1.1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.lvl__state { min-height: 22px; margin: 6px 0 8px; font-weight: 700; color: var(--ink-2); }
.lvl.is-ok .lvl__state, .lvl.is-ok .lvl__deg { color: #17905A; }
.lvl.is-ok .lvl__tube, .lvl.is-ok .lvl__eye { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18), 0 0 0 4px #17905A; }
.lvl__hint { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-height: 640px) { .lvl__panel { min-height: 0; } .lvl__eye { width: 120px; height: 120px; } .lvl__dial { width: 160px; } .lvl__plumb { height: 170px; } }

/* 20. Встряхни телефон: шапка вздрагивает, кот на форме просыпается, внизу всплывает надпись */
.header.is-quake { animation: ck-quake .6s cubic-bezier(.36, .07, .19, .97); }
@keyframes ck-quake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px) rotate(-.4deg); } 40%, 60% { transform: translateX(7px) rotate(.4deg); } }
.lead-form.is-shaken .kcat__eyes--open { opacity: 1; }
.lead-form.is-shaken .kcat__eyes--closed, .lead-form.is-shaken .kcat__z { opacity: 0; }
.lead-form.is-shaken .kcat__svg { animation: kcat-startle .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes kcat-startle { 30% { transform: translateY(-14px) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }
.cktoast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2147483001; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font: 600 15px/1.35 var(--sans); text-align: center; box-shadow: var(--shadow-lg); transform: translateX(-50%); animation: ck-toast 3.4s ease both; pointer-events: none; }
@keyframes ck-toast { 0% { opacity: 0; transform: translate(-50%, 16px); } 8%, 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .header.is-quake, .lead-form.is-shaken .kcat__svg, .cktoast { animation: none; } }

/* 17. Пасхалка: кот на 404 «разговаривает» — облачко с репликой под роликом */
.notfound__art[data-phrases] { cursor: pointer; -webkit-tap-highlight-color: transparent; outline-offset: 6px; border-radius: 12px; }
.notfound__says { display: flex; justify-content: center; min-height: 54px; margin: -6px auto 18px; padding: 0 var(--gutter); }
.notfound__says span { position: relative; max-width: 520px; padding: 10px 18px; border-radius: 14px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.notfound__says.is-talking span { background: var(--ink); color: #fff; font-family: var(--serif); font-size: 18px; font-style: italic; box-shadow: var(--shadow); animation: cat-say .38s cubic-bezier(.3, 1.4, .5, 1) both; }
.notfound__says.is-talking span::before { content: ""; position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
@keyframes cat-say { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .notfound__says { margin: -2px auto 14px; } .notfound__says.is-talking span { font-size: 16.5px; } }
@media (prefers-reduced-motion: reduce) { .notfound__says.is-talking span { animation: none; } }

/* 18. Новогодний колпак: только с классом .is-xmas на <html> (декабрь–январь) */
.kcat__hat { display: none; }
.is-xmas .kcat__hat { display: inline; }

/* 21. Домик чтения в статьях: справа под шапкой, части появляются по мере чтения */
.rhouse { position: fixed; right: 18px; top: calc(var(--header) + 14px); z-index: 40; width: 56px; height: 56px; padding: 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.rhouse.is-shown { opacity: 1; transform: none; }
.rhouse svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rhouse__p { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.rhouse__p.is-on { transform: none; opacity: 1; }
.rhouse.is-done .rhouse__flag path:last-child { transform-box: fill-box; transform-origin: 0 50%; animation: rhouse-flag 1s ease-in-out infinite; }
@keyframes rhouse-flag { 50% { transform: scaleX(.7) skewY(-8deg); } }
@media (max-width: 640px) { .rhouse { right: 10px; top: calc(var(--header) + 10px); width: 46px; height: 46px; border-radius: 12px; } }

/* 22. Кирпичная кладка в подвале */
.kbrick-wrap { position: relative; display: inline-block; vertical-align: middle; margin-left: 6px; }
.kbrick { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .75; transition: opacity .2s, transform .15s; }
.kbrick:hover, .kbrick:focus-visible { opacity: 1; }
.kbrick:active { transform: translateY(2px); }
.kbrick svg { width: 20px; height: 11px; }
.kwall { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30; width: 220px; margin-left: -110px; padding: 12px 12px 10px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); text-align: center; }
.kwall__wall { position: relative; width: 126px; height: 44px; margin: 0 auto; border-bottom: 2px solid #8A949E; }
.kwall__brick { position: absolute; width: 26px; height: 12px; border-radius: 2px; background: #C65A3A; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .2); animation: brick-drop .35s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes brick-drop { from { transform: translateY(-26px); opacity: 0; } to { transform: none; opacity: 1; } }
.kwall__done { margin: 10px 0 0; font-size: 14px; line-height: 1.35; color: var(--ink); font-weight: 600; }
.kwall__done span { display: block; margin-bottom: 8px; }
.kwall__done .btn { min-height: 38px; padding: 8px 16px; font-size: 14px; }

/* 23. Кран поднимает страницу */
.crane { position: fixed; top: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); pointer-events: none; }
.crane::before { content: ""; width: 26px; height: 7px; background: #FCC200; border: 1.5px solid #17212A; border-top: 0; border-radius: 0 0 3px 3px; }
.crane__cable { display: block; width: 2px; height: 0; background: #17212A; }
.crane__hook { display: block; width: 20px; height: 26px; margin-top: -1px; }
.totop.is-hooked { transition: none; }

@media (prefers-reduced-motion: reduce) { .rhouse__p, .rhouse { transition: none; } .rhouse.is-done .rhouse__flag path:last-child, .kwall__brick { animation: none; } }

/* пока видна фраза «встряхни телефон» — прячем кнопку ассистента GenAgent (виджет вставляет её в body без класса, со встроенными стилями) */
.is-toasting body > button:not([class])[style*="position: fixed"] { opacity: 0 !important; transform: scale(.6) !important; pointer-events: none !important; transition: opacity .25s, transform .25s !important; }
body > button:not([class])[style*="position: fixed"] { transition: opacity .25s, transform .25s !important; }

/* 16б. Ящик инструментов: рулетка и дальномер, вкладки в 2 ряда по 3 */
.lvl__tabs { grid-template-columns: repeat(3, 1fr); }
.lvl[data-tool="ruler"] .lvl__panel--ruler, .lvl[data-tool="range"] .lvl__panel--range { display: block; }
.lvl[data-tool="ruler"] :is(.lvl__deg, .lvl__state, .lvl__hint), .lvl[data-tool="range"] :is(.lvl__deg, .lvl__state, .lvl__hint) { display: none; }
.lvl__panel--ruler, .lvl__panel--range { min-height: 0; text-align: left; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.lvl__status { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #FFF4CC; font-weight: 700; color: var(--ink); }
.lvl__status.is-ok { background: #E3F5EC; color: #17905A; }
.lvl__sub { margin: 10px 0 4px; font-weight: 700; color: var(--ink); }
.lvl__steps { margin: 0; padding-left: 20px; }
.lvl__steps li { margin: 0 0 6px; }
.lvl__text { margin: 0; }
.lvl__text--muted { margin-top: 10px; font-size: 13px; color: var(--muted); }
.lvl__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lvl__btns .btn { flex: 1 1 140px; min-height: 44px; padding: 10px 14px; white-space: normal; text-align: center; }
.lvl__stepper { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 12px; }
.lvl__stepper button { width: 44px; height: 40px; border: 0; background: none; font-size: 22px; color: var(--ink); cursor: pointer; }
.lvl__stepper output { min-width: 76px; text-align: center; font: 700 17px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }

.lvl-full { position: fixed; inset: 0; z-index: 2; background: #fff; text-align: left; }
.lvl-full__btns { display: flex; gap: 8px; }
.lvl-full__btns .btn { min-height: 44px; padding: 10px 16px; flex: 1 1 auto; }
/* настройка по карте: рамка в левом верхнем углу экрана, управление — под ней */
.lvl-cal__card { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; justify-content: center; padding: 16px; border: 2px solid #17212A; border-radius: 14px; background: repeating-linear-gradient(135deg, #FFF8DB 0 10px, #FFF1B8 10px 20px); box-sizing: border-box; text-align: center; font-weight: 600; color: var(--ink); }
.lvl-cal__card p { margin: 0; font-size: 15px; line-height: 1.4; }
.lvl-cal__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.lvl-cal__bar input { flex: 1; min-width: 0; accent-color: var(--red); }
.lvl-cal__step { flex: none; }
.lvl-cal__done { flex: none; min-height: 40px; padding: 8px 14px; }
.lvl-cal__step { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 22px; color: var(--ink); cursor: pointer; }
/* линейка во весь экран */
.lvl-ruler { background: #FFFDF4; touch-action: none; user-select: none; -webkit-user-select: none; }
.lvl-ruler__scale { position: absolute; left: 0; top: 0; }
.lvl-ruler__scale line { stroke: #17212A; stroke-width: 1; }
.lvl-ruler__scale text { font: 600 14px var(--sans); fill: #17212A; }
.lvl-ruler__scale .lvl-ruler__zero { stroke: #FCC200; stroke-width: 4; }
.lvl-ruler__mark { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.lvl-ruler__mark i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #E8233B; }
.lvl-ruler__mark i::after { content: ""; position: absolute; right: 18px; top: -13px; width: 28px; height: 28px; border-radius: 50%; background: #E8233B; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.lvl-ruler__out { position: absolute; right: 16px; top: 38%; text-align: right; color: var(--ink); }
.lvl-ruler__out b { display: block; font: 700 40px/1 var(--sans); font-variant-numeric: tabular-nums; }
.lvl-ruler__out span { font-size: 16px; color: var(--muted); }
.lvl-ruler__hint { position: absolute; left: 86px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); margin: 0; font-size: 14px; color: var(--muted); }
.lvl-ruler .lvl-full__btns { position: absolute; left: 86px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
/* дальномер: видоискатель */
.lvl-range { background: #10171E; color: #fff; }
.lvl-range__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lvl-range.is-nocam .lvl-range__video { display: none; }
.lvl-range__cross { position: absolute; left: 50%; top: 42%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 2px solid #FCC200; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.lvl-range__cross::before, .lvl-range__cross::after { content: ""; position: absolute; background: #FCC200; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.lvl-range__cross::before { left: 50%; top: -18px; bottom: -18px; width: 2px; margin-left: -1px; }
.lvl-range__cross::after { top: 50%; left: -18px; right: -18px; height: 2px; margin-top: -1px; }
.lvl-range__panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); background: rgba(16, 23, 30, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lvl-range__live { font: 700 30px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.lvl-range__res { min-height: 22px; margin-top: 6px; font-weight: 700; color: #FCC200; }
.lvl-range__note { margin: 6px 0 12px; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.lvl-range .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

/* правки после аудита */
.totop:not(.is-shown) { visibility: hidden; pointer-events: none; transition: opacity .3s, transform .3s, visibility 0s .3s; }
.footer__cookies { margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 640px) { .footer__cookies { font-size: 14px; min-height: 40px; text-align: left; } }
.lead-form__noscript { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #FFF4CC; }
.check .field__err { display: none; grid-column: 1 / -1; }
.check.is-invalid .field__err { display: block; }

/* первый экран: на телефонах — облегчённая картинка */
.hero__media { background-image: var(--bg); }
@media (max-width: 640px) { .hero__media { background-image: var(--bg-sm, var(--bg)); } }
.anchor { display: block; position: relative; top: calc(-1 * var(--header) - 12px); visibility: hidden; }

/* кнопка чата и плавающие элементы не перекрывают окна, меню и баннер */
body.menu-open > button:not([class])[style*="position: fixed"],
body:has(.lvl) > button:not([class])[style*="position: fixed"],
body:has(#lightbox:not([hidden])) > button:not([class])[style*="position: fixed"],
body:has(#cookie:not([hidden])) > button:not([class])[style*="position: fixed"] { opacity: 0 !important; pointer-events: none !important; }
body.menu-open #cookie, body.menu-open .totop, body.menu-open .cktoast { display: none !important; }

/* печать: без шапки-липучки, баннеров и пасхалок */
@media print {
  .header, .footer, .cookie, .totop, .lvl, .cktoast, .kwall, .ticker, .rhouse, .crane, .lead-form, .map, body > button, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: inherit; text-decoration: underline; }
  .reveal, .js .reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero, .phero { min-height: 0 !important; }
}

/* ===== правки второго аудита ===== */
/* кран: поднимаемый ромб не исчезает по пути */
.totop.is-hooked { opacity: 1 !important; visibility: visible !important; transition: none !important; }
/* текст ошибки согласия — строкой под галочкой */
.check { flex-wrap: wrap; }
.check .field__err { flex-basis: 100%; padding-left: 38px; color: var(--red-dark); }
/* фон первого экрана задаётся прямо в разметке (см. macros.hero) */
.hero__media { background-image: none; }
/* кнопка чата прячется под cookie-баннером только на телефоне, где они пересекаются; скрытая — не в порядке Tab */
body:has(#cookie:not([hidden])) > button:not([class])[style*="fixed"] { opacity: 1 !important; pointer-events: auto !important; }
@media (max-width: 640px) { body:has(#cookie:not([hidden])) > button:not([class])[style*="fixed"] { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; } }
body.menu-open > button:not([class])[style*="fixed"], body:has(.lvl) > button:not([class])[style*="fixed"],
body:has(#lightbox:not([hidden])) > button:not([class])[style*="fixed"], .is-toasting body > button:not([class])[style*="fixed"] { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }
/* рамка фокуса на кнопке карты не обрезается */
.map__consent:focus-visible { outline-offset: -4px; }
/* меню: прокрутка до конца не прокручивает страницу (и не закрывает меню) */
.menu { overscroll-behavior: contain; }
/* якоря: отступ под шапку задаёт html { scroll-padding-top } — без двойного сдвига */
.svc, .svc-mini { scroll-margin-top: 0; }
/* блик кнопок — через transform, без перерасчёта раскладки */
.btn:not(.btn--ghost):not(.btn--light)::after { left: 0; transform: translateX(-150%); }
@keyframes btn-glint { 0% { transform: translateX(-150%); } 16%, 100% { transform: translateX(330%); } }
/* лента на паузе по касанию */
.ticker.is-paused .ticker__track { animation-play-state: paused; }
/* «залипающие» эффекты наведения на сенсорных экранах */
@media (hover: none) {
  .pcard:hover, .svc:hover, .svc-tile:hover, .svc-mini:hover { transform: none; box-shadow: var(--shadow); }
  .pcard:hover .pcard__img, .tile:hover .tile__img, .acard:hover .acard__media img { transform: none; }
  .totop.is-shown:hover { transform: rotate(45deg); }
}
a, button { -webkit-tap-highlight-color: rgba(23, 33, 42, .08); }
/* экраны высотой с телефон в горизонтальном положении */
.lightbox img { max-height: 82vh; max-height: 82dvh; }
@media (orientation: landscape) and (max-height: 500px) { .phero { min-height: 100vh; min-height: 100svh; } }
/* цели нажатия ≥ 24 px: хлебные крошки и телефоны */
.crumbs a { display: inline-block; padding: 3px 0; }
.qc a[href^="tel:"] { display: inline-block; padding: 3px 0; }
.lead-form__call { margin: 10px 0 0; font-size: 14.5px; }
.gallery__note { margin: 14px 0 0; }
/* печать: заголовок объекта читаем на белом */
@media print {
  .phero, .phero *, .crumbs--light, .crumbs--light * { color: #000 !important; }
  .phero__media, .phero__fade, .phero__level, .card-form, .gallery__more { display: none !important; }
}

main:focus { outline: none; }

/* первый слой информации о защите данных под формой */
.lead-form__gdpr { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lead-form__gdpr summary { cursor: pointer; font-weight: 600; color: var(--ink-2); min-height: 28px; display: flex; align-items: center; }
.lead-form__gdpr p { margin: 6px 0 0; }
.lead-form.is-sent .lead-form__gdpr { display: none; }

/* 16в. Ящик инструментов: шуточный раздел «в разработке» */
.lvl__tabs { grid-template-columns: repeat(3, 1fr) 46px; }
.lvl__tab--soon { display: grid; place-items: center; padding: 0; border: 1.5px dashed #C3CBD2; color: var(--ink-2); }
.lvl__tab--soon svg { width: 22px; height: 22px; }
.lvl__tab--soon[aria-pressed="true"] { border-color: var(--ink); }
.lvl[data-tool="soon"] .lvl__panel--soon { display: block; }
.lvl[data-tool="soon"] :is(.lvl__deg, .lvl__state, .lvl__hint) { display: none; }
.lvl__panel--soon { min-height: 0; text-align: center; }
.lvl__soon-img { display: block; width: 100%; height: auto; margin: 2px 0 14px; }
.lvl__soon-img.is-buzz { animation: soon-buzz .55s linear; }
@keyframes soon-buzz { 10%, 30%, 50%, 70% { transform: translate(-2px, 1px) rotate(-.6deg); } 20%, 40%, 60%, 80% { transform: translate(2px, -1px) rotate(.6deg); } 100% { transform: none; } }
.lvl__soon-title { margin: 0 0 10px; font: 800 24px/1.15 var(--sans); color: var(--ink); }
.lvl__soon-text { margin: 0 0 10px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.lvl__soon-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
@media (max-width: 360px) { .lvl__tabs { grid-template-columns: repeat(3, 1fr) 40px; } .lvl__soon-title { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .lvl__soon-img.is-buzz { animation: none; } }
/* вкладки ящика: длинные названия («Дальномер», «Rangefinder») — без разрыва посреди слова */
.lvl__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; gap: 3px; padding: 3px; }
.lvl__tab { font-size: 12.5px; letter-spacing: -.01em; padding: 4px 2px; overflow-wrap: normal; word-break: normal; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 380px) { .lvl__tab { font-size: 12px; } .lvl__tabs { gap: 4px; } }

/* 24. Погода: у вас и у нас */
html:not(.js) .js-only { display: none; }
.weather__form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; max-width: 560px; }
.weather__form .field { flex: 1 1 240px; margin: 0; }
.weather__form .btn { flex: none; }
.weather__out { margin-top: 26px; }
.weather__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.weather__card { position: relative; padding: 22px 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.weather__card--here { background: linear-gradient(160deg, #FFF8DB, #fff 55%); border-color: #F3D777; }
.weather__icon { position: absolute; right: 18px; top: 16px; width: 52px; height: 52px; }
.weather__city { margin: 0 64px 6px 0; font-weight: 700; color: var(--ink); }
.weather__temp { margin: 0; font: 600 52px/1 var(--serif); color: var(--ink); }
.weather__desc { margin: 6px 0 0; color: var(--muted); }
.weather__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.weather__stats dt { font-size: 12.5px; color: var(--muted); }
.weather__stats dd { margin: 2px 0 0; font: 700 22px/1.1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.weather__line { margin: 18px 0 14px; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.weather__msg { margin: 12px 0 0; }
.weather__src { margin: 6px 0 0; }
@media (max-width: 640px) { .weather__cards { grid-template-columns: 1fr; } .weather__temp { font-size: 44px; } .weather__line { font-size: 19px; } }

/* 25. Солнце на вашей террасе */
.sunbox__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 36px; align-items: start; }
.sunbox__dial svg { display: block; width: 100%; height: auto; }
.sunbox__dial text { font: 700 14px var(--sans); fill: #17212A; }
.sunbox__dial .sunbox__n { fill: #D7262E; }
.sunbox__sun, .sunbox__ray { transition: opacity .2s; }
.sunbox__label { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.sunbox__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sunbox__chips .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sunbox__range { width: 100%; margin: 0 0 18px; accent-color: #E9A800; }
.sunbox__faces { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.sunbox__faces button { min-height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 700 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.sunbox__faces button[aria-pressed="true"] { background: #FCC200; border-color: #E0AC00; color: #17212A; }
.sunbox__out p { margin: 0 0 6px; color: var(--ink-2); }
.sunbox__state { font: 700 20px/1.2 var(--sans); color: var(--muted) !important; }
.sunbox__state.is-on { color: #B37F00 !important; }
.sunbox__day { font-size: 14px; color: var(--muted) !important; }
.sunbox__note { margin: 18px 0 0; }
@media (max-width: 860px) { .sunbox__grid { grid-template-columns: 1fr; gap: 20px; } .sunbox__dial { max-width: 320px; margin: 0 auto; } }
@media (max-width: 400px) { .sunbox__faces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.weather__stats--one { grid-template-columns: 1fr; }
.weather__line2 { display: inline-block; margin-top: 4px; font-family: var(--sans); font-size: 16px; color: var(--muted); }

/* 26. «Живой» первый экран: свет по солнцу над Финестратом и статус менеджера */
.hero__media::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease, background 1.2s ease; pointer-events: none; }
.hero[data-phase="dawn"] .hero__media::after { opacity: 1; background: linear-gradient(to top, rgba(255, 150, 90, .22), rgba(255, 214, 170, .12) 60%, rgba(160, 180, 255, .10)); }
.hero[data-phase="golden"] .hero__media::after { opacity: 1; background: linear-gradient(to top, rgba(255, 128, 32, .28), rgba(255, 186, 80, .16) 55%, rgba(255, 220, 150, .06)); }
.hero[data-phase="dusk"] .hero__media::after { opacity: 1; background: linear-gradient(to top, rgba(240, 110, 60, .30), rgba(110, 70, 150, .32) 60%, rgba(40, 40, 110, .38)); }
.hero[data-phase="night"] .hero__media::after { opacity: 1; background: linear-gradient(to top, rgba(10, 18, 40, .45), rgba(8, 14, 40, .62)); }
.hero[data-phase="night"] .hero__media { filter: saturate(.75) brightness(.8); }
.hero__media { transition: filter 1.2s ease; }
.hero__lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
.hero[data-phase="night"] .hero__lights { opacity: 1; }
.hero__lights i { position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #FFD27A; box-shadow: 0 0 8px 3px rgba(255, 196, 90, .55); animation: hero-twinkle 3.6s ease-in-out infinite; }
@keyframes hero-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.hero__status { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.hero__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA6B0; flex: none; }
.hero__status.is-on::before { background: #1FA463; box-shadow: 0 0 0 0 rgba(31, 164, 99, .5); animation: status-pulse 2s ease-out infinite; }
@keyframes status-pulse { 70% { box-shadow: 0 0 0 7px rgba(31, 164, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 164, 99, 0); } }
@media (max-width: 640px) { .hero__status { font-size: 13px; margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { .hero__lights i, .hero__status.is-on::before { animation: none; } .hero__media::after, .hero__media { transition: none; } }

/* 27. Калькулятор расходов на покупку */
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.calc__form { display: grid; gap: 16px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.calc__form .field { margin: 0; }
.calc__form .field input { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__set { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.calc__set legend { margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.calc__opt, .calc__check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--soft); }
.calc__opt input, .calc__check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.calc__opt:has(input:checked), .calc__check:has(input:checked) { border-color: var(--ink); background: #fff; }
.calc__check small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.calc__check[hidden] { display: none; }
.calc__result { position: sticky; top: calc(var(--header) + 20px); padding: 26px; background: var(--ink); color: #fff; border-radius: 16px; }
.calc__result .muted { color: rgba(255, 255, 255, .7); }
.calc__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.calc__row span { color: rgba(255, 255, 255, .88); }
.calc__row em { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.calc__row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__total { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; margin: 16px 0 20px; }
.calc__total span { font-weight: 700; }
.calc__total b { font: 700 30px/1.1 var(--sans); color: #FCC200; font-variant-numeric: tabular-nums; }
.calc__total small { grid-column: 1 / -1; color: rgba(255, 255, 255, .7); }
.calc__notes { margin-top: 40px; }
.calc__notes h2 { font-size: 26px; margin-bottom: 14px; }
.calc__notes ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); }
.calc__notes li { margin-bottom: 8px; }
@media (max-width: 860px) { .calc__grid { grid-template-columns: 1fr; } .calc__result { position: static; } }
@media (max-width: 640px) { .calc__form, .calc__result { padding: 20px; } .calc__total b { font-size: 26px; } .calc__row { font-size: 14.5px; } }

/* 27б. Калькулятор: четыре типа объекта и ситуация покупателя (единый справочник с ботом) */
.calc__set--kinds { grid-template-columns: 1fr 1fr; }
.calc__set--kinds legend { grid-column: 1 / -1; }
.calc__set[hidden] { display: none; }
.calc__why { margin: 14px 0 18px; padding: 0 0 0 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 480px) { .calc__set--kinds { grid-template-columns: 1fr; } }

/* 27в. Калькулятор: объект сверху, четыре вкладки (покупка, ипотека, владение, аренда) */
.calc__object { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px 32px; align-items: start; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.calc__object .field { margin: 0; }
.calc__object .field input { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__object .calc__set[data-sit] { grid-column: 2; }
.calc__tabs { margin: 28px 0 22px; }
.calc__tabs .tabs__btn { min-height: 48px; padding: 10px 20px; font-size: 16px; }
.calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__pair[hidden], .calc__range[hidden] { display: none; }
.calc__form .field select, .calc__form .field input { font-size: 16px; font-weight: 500; }
.calc__form .field small { font-weight: 400; font-size: 13px; }
.calc__range { display: grid; gap: 8px; font-weight: 600; color: var(--ink); }
.calc__range span { display: flex; justify-content: space-between; gap: 12px; }
.calc__range output { font-variant-numeric: tabular-nums; color: var(--red-dark); }
.calc__range input { width: 100%; accent-color: var(--red); }
.calc__result .calc__total + .calc__row { border-top: 1px solid rgba(255, 255, 255, .14); }
.calc__result .calc__why { color: rgba(255, 255, 255, .78); }
.calc__result [data-mortgage] .calc__total:first-child b { color: #fff; }
@media (max-width: 900px) {
  .calc__object { grid-template-columns: 1fr; }
  .calc__object .calc__set[data-sit] { grid-column: auto; }
}
@media (max-width: 640px) {
  .calc__object { padding: 18px; }
  .calc__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .calc__tabs .tabs__btn { justify-content: center; padding: 10px 12px; }
  .calc__pair { grid-template-columns: 1fr; }
}
.calc__grid > *, .calc__object > *, .calc__pair > * { min-width: 0; }
@media (max-width: 900px) { .calc__grid { grid-template-columns: minmax(0, 1fr); } }

/* 28. Пасхалка: бетономешалка и фундамент под футером */
.footer { position: relative; overflow-x: clip; }
.footer.has-found { padding-bottom: 18px; }
.kfound { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; overflow: hidden; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(23, 33, 42, .12) 46px 48px), #E3E6E9; }
.kfound__fill { position: absolute; top: 0; bottom: 0; right: 0; width: 0; background: radial-gradient(circle at 20% 40%, rgba(255, 255, 255, .25) 0 1px, transparent 1.5px) 0 0 / 9px 7px, radial-gradient(circle at 70% 70%, rgba(0, 0, 0, .12) 0 1px, transparent 1.5px) 0 0 / 11px 9px, linear-gradient(#7E868D, #6B737A); transition: width 2.6s cubic-bezier(.3, .6, .4, 1), filter 2s ease; }
.kfound.is-full .kfound__fill { width: 100%; }
.kfound.is-set .kfound__fill { background-color: #A9AFB5; background-image: radial-gradient(circle at 20% 40%, rgba(255, 255, 255, .35) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 70%, rgba(0, 0, 0, .1) 0 1px, transparent 1.5px), linear-gradient(#B9BEC3, #A3A9AF); background-size: 9px 7px, 11px 9px, auto; }
.kfound__mark { position: absolute; top: 1px; width: 16px; height: 16px; margin-left: -8px; color: #8E959C; opacity: 0; transform: scale(.4) rotate(-12deg); transition: opacity .4s, transform .5s cubic-bezier(.2, 1.4, .4, 1); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .55)); }
.kfound__mark svg { display: block; width: 100%; height: 100%; }
.kfound.is-set .kfound__mark { opacity: 1; transform: scale(1) rotate(-12deg); transition-delay: .6s; }
.kfound__date { position: absolute; left: 12px; top: 0; line-height: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: #5F676E; opacity: 0; transition: opacity .6s 1s; white-space: nowrap; }
.kfound.is-set .kfound__date { opacity: 1; }
.kmix { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 172px; pointer-events: none; transform: translateX(calc(100% + 40px)); transition: transform 1.6s cubic-bezier(.25, .8, .3, 1); }
.kmix svg { display: block; width: 100%; height: auto; overflow: visible; }
.kmix.is-in { transform: translateX(0); }
.kmix.is-out { transform: translateX(calc(100% + 40px)); transition: transform 1.8s cubic-bezier(.6, 0, .8, .4); }
.kmix__wheel { transform-box: fill-box; transform-origin: center; }
.kmix.is-in:not(.is-pouring):not(.is-out) .kmix__wheel { animation: kmix-roll .5s linear 3; }
.kmix.is-out .kmix__wheel { animation: kmix-roll .45s linear infinite reverse; }
.kmix__stripes { animation: kmix-drum 1.1s linear infinite; }
.kmix.is-pouring .kmix__stripes { animation-duration: .45s; }
.kmix__stream { transform-box: fill-box; transform-origin: top; transform: scaleY(0); transition: transform .3s; }
.kmix.is-pouring .kmix__stream { transform: scaleY(1); animation: kmix-flow .25s linear infinite; }
@keyframes kmix-roll { to { transform: rotate(-360deg); } }
@keyframes kmix-drum { to { transform: translateX(-24px); } }
@keyframes kmix-flow { 50% { fill: #9AA1A7; } }
@media (max-width: 640px) { .kmix { width: 130px; right: 10px; } .kfound__date { font-size: 9.5px; left: 8px; } }
@media (prefers-reduced-motion: reduce) { .kfound__fill, .kfound__mark, .kfound__date { transition: none; } }
@media print { .kfound, .kmix { display: none; } .footer.has-found { padding-bottom: 0; } }

/* 29. Пасхалка: чертёж-рентген (Shift+B, двойной тап двумя пальцами) */
.is-bp { filter: url(#ck-bp); }
.bp { position: absolute; z-index: 1; pointer-events: none; overflow: hidden; animation: bp-in .5s ease both; }
.bp__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; }
.bp__dims { position: absolute; inset: 0; overflow: visible; }
.bp__stamp { position: absolute; right: 10px; bottom: 8px; padding: 3px 7px; border: 1px solid rgba(255, 255, 255, .85); font: 600 9.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: #fff; background: rgba(18, 63, 140, .55); white-space: nowrap; }
.bp::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(160, 205, 255, .55), transparent); animation: bp-scan .9s ease-out both; }
@keyframes bp-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bp-scan { to { left: 110%; } }
.is-blueprint .gallery__item:hover img, .is-blueprint .pcard:hover .pcard__img, .is-blueprint .svc-tile:hover img { transform: none; }
@media (max-width: 640px) { .bp__stamp { font-size: 8.5px; right: 6px; bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .bp, .bp::after { animation: none; } .bp::after { display: none; } }
@media print { .bp { display: none; } .is-bp { filter: none; } }

/* 30. План покупки (checklist.html) */
.plan__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.plan__grid > * { min-width: 0; }
.plan__form { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.plan__form legend { display: flex; align-items: center; gap: 10px; }
.plan__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; flex: none; }
.plan__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.plan__head h2 { margin: 0; font-size: 30px; }
.plan__time { flex-basis: 100%; order: 3; margin: 0; padding: 10px 14px; border-left: 3px solid var(--red); background: var(--soft); color: var(--ink-2); }
.plan__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.plan__actions .ic { width: 18px; height: 18px; }
.plan__steps { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: none; display: grid; gap: 14px; }
.plan__step { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; break-inside: avoid; }
.plan__stephead { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.plan__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; flex: none; }
.plan__stephead h3 { margin: 2px 0 2px; font-size: 19px; line-height: 1.3; }
.plan__when { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.plan__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan__items label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.5; color: var(--ink-2); }
.plan__items input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--red); }
.plan__items input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.plan__note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #FFF7E0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.plan__step .text-link { display: inline-block; margin-top: 10px; }
@media (max-width: 900px) { .plan__grid { grid-template-columns: minmax(0, 1fr); } .plan__form { position: static; } }
@media print {
  .header, .footer, .hero, .plan__form, .plan__actions, .cktoast, .cookie, .cmpbar { display: none !important; }
  .plan__grid { display: block; } .plan__step { border-color: #bbb; } .section { padding: 0; }
}

/* «Дорога на машине» на странице проекта */
.trip { list-style: none; margin: 0 0 10px; padding: 0; }
.trip li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trip li:last-child { border-bottom: 0; }
.trip .ic { width: 20px; height: 20px; color: var(--red); }
.trip b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.trip small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.trip strong { text-align: right; white-space: nowrap; font-size: 16px; }
.pdetail__cmp { margin-top: 14px; }
.pdetail__cmp .ic, .pcard__cmp .ic { width: 18px; height: 18px; }

/* 31. Сравнение проектов */
.pcard__cmp { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 14px/1 var(--sans); color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pcard__cmp:hover { border-color: var(--ink); }
.pcard__cmp.is-on, .pdetail__cmp.is-on, .cmp__pick .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cmpbar { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: var(--ink); color: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; animation: bp-in .3s ease both; }
.cmpbar .btn { background: #fff; color: var(--ink); }
.cmpbar__x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; cursor: pointer; }
.cmp__empty { padding: 26px; border: 1px dashed var(--line); border-radius: 16px; background: var(--soft); }
.cmp__empty p { margin: 0 0 14px; }
.cmp__pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cmp__table { width: max(100%, calc(150px + var(--n, 2) * 230px)); table-layout: fixed; border-collapse: collapse; font-size: 15px; }
.cmp__table th:first-child { width: 150px; }
.cmp__table th, .cmp__table td { white-space: normal; overflow-wrap: anywhere; }
.cmp__table th, .cmp__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp__table tbody th { position: sticky; left: 0; z-index: 1; width: 170px; background: #fff; font-weight: 600; color: var(--muted); }
.cmp__table thead th { vertical-align: bottom; }
.cmp__table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
.cmp__card { display: grid; gap: 8px; color: var(--ink); text-decoration: none; }
.cmp__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--line); }
.cmp__card b { font-size: 17px; }
.cmp__rm { margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.cmp__table ul { margin: 0; padding-left: 18px; }
.cmp__table td small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cmp__table td.is-best b { color: #1A7F4B; }
.cmp__table td.is-best b::after { content: " ★"; }
.cmp__group th { background: var(--soft) !important; color: var(--ink) !important; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.cmp__src { margin-top: 14px; }
@media (max-width: 640px) { .cmpbar { left: 10px; right: auto; max-width: calc(100vw - 90px); } .cmp__table { width: max(100%, calc(118px + var(--n, 2) * 190px)); font-size: 14px; } .cmp__table th:first-child { width: 118px; } }
@media print { .cmpbar { display: none; } }

/* 32. «Что рядом» на странице проекта */
.nearby__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.nearby__grid > * { min-width: 0; }
.nearby__map { height: 460px; border-radius: 16px; z-index: 0; }
.nearby__map.is-loading .map__consent { opacity: .6; pointer-events: none; }
.nearby__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nearby__cat button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.nearby__cat button:hover { border-color: var(--c); }
.nearby__cat button[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 4px 0 0 var(--c); }
.nearby__cat .ic { width: 20px; height: 20px; color: var(--c); }
.nearby__lbl b { display: block; font-size: 15.5px; font-weight: 600; }
.nearby__lbl small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby__n { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 700; text-align: center; color: var(--ink-2); }
.nearby__cat.is-empty button { cursor: default; opacity: .6; }
.nearby__home span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transform: rotate(-45deg); }
.nearby .leaflet-popup-content { font: 14px/1.4 var(--sans); }
@media (max-width: 900px) { .nearby__grid { grid-template-columns: minmax(0, 1fr); } .nearby__map { height: 360px; } }
@media print { .nearby__map { display: none; } }

/* 33. Солнечная станция */
.solar__bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 150px; align-items: end; margin: 6px 0 14px; }
.solar__bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.solar__bar::before { content: ""; display: block; height: calc(var(--h) * .78); min-height: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(#FCC200, #F59E0B); }
.solar__bar i { order: -1; font-style: normal; font-size: 9.5px; text-align: center; color: rgba(255, 255, 255, .7); margin-bottom: 2px; }
.solar__bar b { font-size: 10.5px; font-weight: 600; text-align: center; color: rgba(255, 255, 255, .75); margin-top: 4px; text-transform: capitalize; }
.solar__notes, .towns__notes { margin: 18px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* 34. Где жить: таблица городов и «Год у моря» */
.towns h2 { margin-bottom: 18px; }
.towns__name { font: 700 19px/1.2 var(--serif, inherit); color: var(--ink); }
.towns__table ul { list-style: none; padding: 0; }
.towns__table td small { display: inline; margin: 0 0 0 4px; }
.year__facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.year__facts li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.year__facts .ic { width: 22px; height: 22px; color: var(--red); flex: none; }
.year__tabs { margin: 0 0 16px; }
.year__tabs .tabs__btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.year__chart { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.year__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); }
.year__key::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; background: var(--k); }
.year__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 240px; }
.year__col { display: flex; flex-direction: column; min-width: 0; }
.year__bars { flex: 1; display: flex; gap: 2px; align-items: flex-end; }
.year__bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.year__bar::before { content: ""; display: block; order: 2; height: calc(var(--h) * .82); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--k); }
.year__bar i { order: 1; font-style: normal; font-size: 10.5px; text-align: center; color: var(--ink-2); margin-bottom: 2px; overflow: hidden; }
.year__col > b { margin-top: 6px; font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); text-transform: capitalize; }
.year__key--a, .year__bar--a { --k: #E9183A; } .year__key--b, .year__bar--b { --k: #7AA7D9; } .year__key--c, .year__bar--c { --k: #0B84D8; }
.year__key--d, .year__bar--d { --k: #FCC200; } .year__key--e, .year__bar--e { --k: #64748B; } .year__key--f, .year__bar--f { --k: #17212A; }
@media (max-width: 900px) { .year__facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .year__cols { gap: 3px; height: 200px; } .year__bar i { font-size: 8.5px; } .year__col > b { font-size: 10px; } .year__chart { padding: 14px 10px; } .year__facts { grid-template-columns: 1fr; } }

/* 35. ВНЖ */
.res__verdict { margin: 16px 0 18px; padding: 14px 16px; border-radius: 12px; background: rgba(233, 24, 58, .18); }
.res__verdict.is-ok { background: rgba(34, 197, 94, .2); }
.res__verdict b { display: block; font-size: 17px; color: #fff; }
.res__verdict p { margin: 4px 0 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.res__info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 40px; }
.res__info h2 { font-size: 24px; margin-bottom: 12px; }
.res__how { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.res__note { grid-column: 1 / -1; padding: 18px 20px; border-radius: 14px; background: #FFF7E0; }
.res__note h3 { margin: 0 0 8px; font-size: 18px; }
.res__note ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.res__info > p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 900px) { .res__info { grid-template-columns: 1fr; } }

/* 36. Приложение и уведомления */
.pdetail__push { margin-top: 14px; }
.pdetail__push[hidden] { display: none; }
.pdetail__push.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.offline__box { max-width: 720px; text-align: center; }
.offline__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0; }

/* одинаковые колонки графиков: ширину не растягивают подписи и числа */
.solar__bars { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.solar__bar { min-width: 0; }
.solar__bar i, .solar__bar b { overflow: hidden; white-space: nowrap; text-overflow: clip; }
.year__col > b, .year__bar i { white-space: nowrap; overflow: hidden; }
@media (max-width: 480px) {
  .solar__bars { gap: 3px; height: 140px; }
  .solar__bar i { font-size: 8px; letter-spacing: -.02em; }
  .solar__bar b { font-size: 9.5px; }
  .year__cols { gap: 2px; }
  .year__bar i { font-size: 7.5px; letter-spacing: -.02em; }
}

/* 37. Прямые рейсы */
.fly__form { max-width: 420px; }
.fly__out { display: grid; gap: 10px; margin: 16px 0; }
.fly__hit { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid #1A7F4B; border-radius: 12px; background: #fff; }
.fly__hit b { display: block; font-size: 16px; margin-bottom: 4px; }
.fly__hit span { color: var(--ink-2); font-size: 14.5px; }
.fly__hit--no { border-left-color: var(--red); }
.fly__drive { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.fly__all { margin: 18px 0 12px; }
.fly__all summary { cursor: pointer; font-weight: 600; }
.fly__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 24px; margin-top: 14px; font-size: 14.5px; }
.fly__list b { display: block; margin-bottom: 2px; }
.fly__list span { color: var(--ink-2); }

/* подсказки (установка, встряхивание) — поверх кнопки ассистента; саму кнопку на это время прячем */
.cktoast { z-index: 2147483647; }
.is-toasting #genagent-launcher, body.menu-open #genagent-launcher { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }
.cktoast--tap { pointer-events: auto; cursor: pointer; }

/* 39. «Интернет на объекте»: варианты связи слева, схема неба Starlink справа */
.inet__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.inet__grid > * { min-width: 0; }
.inet__opts { display: grid; gap: 14px; }
.inet__opt { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.inet__opt p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.inet__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inet__head .ic { width: 24px; height: 24px; color: var(--red); flex-shrink: 0; }
.inet__head h3 { margin: 0; font-size: 18px; flex: 1 1 auto; }
.inet__chip { font: 600 12px/1 var(--sans); letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.inet__chip.is-ok { background: #E8F7EE; color: #11703A; border-color: #BFE6CD; }
.inet__sky { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.inet__sky h3 { margin: 0 0 12px; font-size: 18px; }
.inet__live { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 12px; margin-bottom: 10px; }
.inet__live b { grid-row: span 2; font: 700 44px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.inet__live span { font-size: 14.5px; color: var(--text-2); line-height: 1.35; }
.inet__live em { font-style: normal; font-weight: 700; font-size: 14px; color: #11703A; }
.inet__live small { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
.inet__plot { display: block; width: 100%; max-width: 380px; margin: 4px auto 6px; aspect-ratio: 1; }
.inet__low { fill: #E9EDF0; }
.inet__zone { fill: #fff; }
.inet__wedge { fill: rgba(233, 24, 58, .07); }
.inet__ring { fill: none; stroke: #D5DBE0; stroke-width: .6; }
.inet__ring--25 { stroke: #8A949E; stroke-dasharray: 3 3; stroke-width: .8; }
.inet__terrain { fill: #8E6B45; fill-opacity: .55; }
.inet__lbl { font: 700 10px var(--sans); fill: var(--ink); text-anchor: middle; }
.inet__deg { font: 600 7px var(--sans); fill: #6B7680; }
.inet__sats circle { fill: #9AA4AD; }
.inet__sats circle.is-on { fill: var(--red); }
@media (prefers-reduced-motion: no-preference) { .inet__sats circle.is-on { animation: inet-pulse 2.4s ease-in-out infinite; } }
@keyframes inet-pulse { 50% { opacity: .55; } }
.inet__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 6px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.inet__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; }
.inet__legend .is-sat { background: var(--red); } .inet__legend .is-low { background: #9AA4AD; }
.inet__legend .is-terrain { background: rgba(142, 107, 69, .55); border-radius: 2px; } .inet__legend .is-wedge { background: rgba(233, 24, 58, .14); border-radius: 2px; }
.inet__tips-h { margin-top: 18px !important; }
.inet__tips { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 960px) { .inet__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .inet__sky { padding: 16px; } .inet__opt { padding: 16px; } .inet__live b { font-size: 38px; } }

/* 40. «Солнце над объектом»: сводка за год слева, таблица дат справа */
.sunrel__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 24px; align-items: start; margin-bottom: 12px; }
.sunrel__grid > * { min-width: 0; }
.sunrel__sum { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.sunrel__pct { display: block; font: 700 46px/1 var(--sans); color: #C88A00; font-variant-numeric: tabular-nums; }
.sunrel__sum p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.sunrel__verdict { color: var(--ink) !important; font-weight: 600; }
.sunrel__tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sunrel__tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.sunrel__tbl th, .sunrel__tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.sunrel__tbl thead th { font: 600 12px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--soft); white-space: normal; }
.sunrel__tbl tbody th { font-weight: 600; }
.sunrel__tbl tr:last-child > * { border-bottom: 0; }
.sunrel__tbl td small { display: block; color: #B26A00; font-size: 12.5px; }
.sunrel__tbl td:nth-child(2), .sunrel__tbl td:nth-child(5) { color: var(--muted); }
@media (max-width: 960px) { .sunrel__grid { grid-template-columns: 1fr; } }
/* калькулятор, открытый с карточки объекта */
.calc__for { grid-column: 1 / -1; margin: 0 0 4px; padding: 10px 14px; border-left: 3px solid var(--red); background: var(--soft); font-weight: 600; }

/* 41. «Поликлиника и школы» по адресу объекта */
.svc-addr__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.svc-addr__card { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.svc-addr__card .small { margin: 14px 0 0; line-height: 1.5; }
.svc-addr__dl { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 10px 16px; margin: 14px 0 0; }
.svc-addr__dl dt { font: 600 12px/1.6 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.svc-addr__dl dd { margin: 0; min-width: 0; font-size: 15px; line-height: 1.45; }
.svc-addr__dl dd small { display: block; color: var(--muted); font-size: 13.5px; }
.svc-addr__list { margin: 12px 0 0; padding: 0; list-style: none; }
.svc-addr__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.svc-addr__list li:last-child { border-bottom: 0; }
.svc-addr__list b { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .svc-addr__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .svc-addr__dl { grid-template-columns: 1fr; gap: 2px; } .svc-addr__dl dd { margin-bottom: 8px; } .svc-addr__card { padding: 16px; } }

/* ===== Подвал: тёмный фирменный (графит --ink), сверху трёхцветная линия в цветах логотипа =====
   Компьютер — бренд · Компания · Покупателю · Проекты · Контакты; планшет — бренд строкой и 4 колонки;
   телефон — бренд, две колонки ссылок, контакты. Логотипы Kit Digital / ЕС — на белой полосе в самом низу (официальные цвета).
   Запас снизу — под плавающие «Наверх» (слева) и чат (справа). */
.footer { position: relative; border-top: 0; background: var(--ink); color: rgba(255, 255, 255, .74); padding-top: 0; }
.footer__tri { height: 5px; background: linear-gradient(90deg, var(--red) 0 33.4%, #FCC200 33.4% 66.7%, #0599B2 66.7% 100%); }
.footer__top { display: grid; grid-template-columns: minmax(230px, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.85fr); gap: 36px; padding-top: 60px; }
.footer__top > * { min-width: 0; }
.footer .footer__title { margin: 0 0 14px; padding: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #FCC200; }
.footer__col a, .footer__contacts p { display: block; margin: 0; padding: 5px 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .74); transition: color .2s; }
.footer__col a:hover, .footer__col a:focus-visible { color: #fff; }
.logo--footer { display: inline-flex; margin-bottom: 16px; }
.footer .logo--footer .logo__svg { height: 84px; }
.footer .logo--footer .logo__name { font-size: 13px; color: #fff; }
/* на тёмном фоне надпись внутри знака (между фигурами) — белая */
.footer .logo__text { fill: #fff; }
/* в подвале — только знак, без надписи рядом (надпись есть внутри знака) */
.footer__slogan { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .74); }
.footer__social { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.footer__social a { display: inline-flex; }
.footer__social a, .footer__social .level-btn { align-items: center; justify-content: center; width: 42px; height: 42px; min-width: 0; min-height: 0; padding: 0; margin: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff; transition: background .2s, border-color .2s; }
.footer__social a:hover, .footer__social .level-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.footer__social .ic, .footer__social svg { width: 20px; height: 20px; }
.footer__contacts a, .footer__contacts p { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts .ic { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: #FCC200; }
.footer__contacts a[href^="tel:"] { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: .01em; }
.footer__contacts a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer .footer__maplink { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 0; font-size: 14px; font-weight: 600; white-space: nowrap; color: #FCC200; }
.footer .footer__maplink:hover { color: #fff; }
.footer .footer__maplink .ic { width: 14px; height: 14px; margin: 0; color: currentColor; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.footer__bottom nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.footer__bottom a, .footer .footer__cookies { display: inline-block; padding: 4px 0; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.footer__bottom a:hover, .footer .footer__cookies:hover { color: #fff; }
.footer__eu-band { background: #fff; border-top: 1px solid var(--line); }
.footer__eu { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 18px; }
.footer__eu img { height: 36px; width: auto; }
.footer__eu span { max-width: 560px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 1400px) { .footer__eu { padding-bottom: 84px; } }
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.45fr); gap: 36px 28px; padding-top: 44px; }
  .footer__brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .footer__brand .logo--footer { margin: 0; }
  .footer__slogan { max-width: 40ch; }
  .footer__social { margin: 0 0 0 auto; }
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 26px 16px; padding-top: 30px; }
  .footer__projects { display: none; }
  .footer__contacts { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .footer__brand { gap: 14px 12px; padding-bottom: 22px; }
  .footer .logo--footer .logo__svg { height: 60px; }
  .footer .logo--footer .logo__name { font-size: 11.5px; }
  .footer__slogan { order: 3; flex-basis: 100%; max-width: none; font-size: 14.5px; }
  .footer__brand { flex-wrap: wrap; }
  .footer__brand .logo--footer { flex: 0 1 auto; min-width: 0; }
  .footer__social { gap: 6px; flex-shrink: 0; }
  .footer__social a, .footer__social .level-btn { width: 38px; height: 38px; }
  .footer__social .ic, .footer__social svg { width: 18px; height: 18px; }
  .footer .footer__title { margin-bottom: 6px; }
  .footer__col a { display: flex; align-items: center; min-height: 38px; padding: 0; font-size: 15px; }
  .footer__contacts p { padding: 2px 0 6px; font-size: 15px; }
  .footer__contacts a { min-height: 40px; align-items: center; }
  .footer__contacts a .ic { margin-top: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 26px; padding-top: 14px; padding-bottom: 14px; font-size: 13px; }
  .footer__bottom nav { gap: 0 18px; }
  .footer__bottom a, .footer .footer__cookies { display: inline-flex; align-items: center; min-height: 40px; }
  .footer__eu { gap: 10px 14px; padding-top: 14px; padding-bottom: 96px; }
  .footer__eu img { height: 28px; }
  .footer__eu span { font-size: 11.5px; }
}

/* ===== Шапка на телефоне и планшете: «RU ⌄ | ⋮⋮⋮» — язык без рамки, тонкий разделитель, меню — сетка из 9 точек.
   Открытое меню — точки гаснут, появляется крестик (из тех же трёх полосок). ===== */
@media (max-width: 960px) {
  .header__actions { gap: 0; }
  .lang__btn, .lang__btn[aria-expanded="true"] { min-width: 0; min-height: 44px; padding: 0 12px 0 8px; gap: 6px; border: 0; background: none; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
  .lang__btn .ic { display: inline-block; width: 14px; height: 14px; transition: transform .2s; }
  .lang__btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .burger { position: relative; width: 48px; height: 44px; margin-left: 12px; padding: 0; border: 0; background: none; cursor: pointer; }
  .burger::after { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 1px; background: #C9D0D6; }
  .burger::before { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
    background: radial-gradient(circle, var(--ink) 0 2px, transparent 2.4px) 0 0 / 8px 8px; transition: opacity .2s, transform .2s; }
  .burger span { left: 14px; right: 14px; top: 21px !important; opacity: 0; }
  .burger[aria-expanded="true"]::before { opacity: 0; transform: scale(.6); }
  .burger[aria-expanded="true"] span:nth-child(1) { opacity: 1; transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(3) { opacity: 1; transform: rotate(-45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
}
@media (max-width: 360px) {
  .lang__btn, .lang__btn[aria-expanded="true"] { padding: 0 8px 0 4px; gap: 4px; }
  .burger { margin-left: 8px; width: 44px; }
  .burger::after { left: -8px; }
}

/* 42. «Машина времени»: два слоя аэрофото IGN (Leaflet), верхний (год) обрезается по шторке */
.tm__years { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tm__wrap { position: relative; overflow: hidden; border-radius: var(--radius); }
.tm__map { height: 460px; border-radius: var(--radius); overflow: hidden; }
.tm__lbl { position: absolute; top: 12px; z-index: 500; padding: 5px 10px; border-radius: 999px; background: rgba(23, 33, 42, .82); color: #fff; font: 700 13px/1 var(--sans); letter-spacing: .04em; pointer-events: none; }
.tm__lbl--l { left: 12px; } .tm__lbl--r { right: 12px; }
.tm__line { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 499; width: 0; pointer-events: none; display: none; }
.tm__line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .45); }
.tm__line i { position: absolute; top: 50%; left: -21px; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.tm__line i::before, .tm__line i::after { content: ""; position: absolute; top: 15px; border: 6px solid transparent; }
.tm__line i::before { left: 4px; border-right-color: var(--ink); } .tm__line i::after { right: 4px; border-left-color: var(--ink); }
.tm__wrap.is-live .tm__line { display: block; }
.tm__range { position: absolute; inset: 0; z-index: 501; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; outline: none; }
.tm__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 460px; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 0; cursor: ew-resize; pointer-events: auto; }
.tm__range::-moz-range-thumb { width: 44px; height: 460px; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 0; cursor: ew-resize; pointer-events: auto; }
.tm__range::-webkit-slider-runnable-track { background: transparent; }
.tm__range:focus-visible + .tm__line i, .tm__wrap:focus-within .tm__line i { outline: 3px solid #FCC200; }
@media (max-width: 640px) { .tm__map { height: 380px; } .tm__range::-webkit-slider-thumb { height: 380px; } .tm__range::-moz-range-thumb { height: 380px; } }
/* 43. «Полёт к дому»: 3D-карта MapLibre с рельефом, грузится по кнопке */
.flight__box { position: relative; height: 520px; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 90% at 70% 20%, #2B4A63 0%, #17212A 70%); color: #fff; }
.flight__box .flight__map { position: absolute; inset: 0; width: 100%; height: 100%; }   /* .maplibregl-map ставит position: relative — без этого высота 0 */
.flight__start { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.flight__start p { margin: 0; font-weight: 600; font-size: 16px; }
.flight__start small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.flight__go { min-height: 54px; padding: 14px 30px; font-size: 16px; }
.flight__go .ic { width: 22px; height: 22px; }
.flight__box.is-loading .flight__go { opacity: .6; pointer-events: none; }
.flight__box.is-live .flight__start { display: none; }
.flight__hud { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border-radius: 12px; background: rgba(23, 33, 42, .82); backdrop-filter: blur(6px); font-size: 14px; }
.flight__hud b { font-size: 15px; }
.flight__hud span[data-fl-progress] { color: #FCC200; font-weight: 600; font-variant-numeric: tabular-nums; }
.flight__btns { margin-left: auto; display: flex; gap: 6px; }
.flight__btns .chip { background: #fff; color: var(--ink); }
.flight__pinwrap { width: 34px; height: 44px; display: flex; justify-content: center; }   /* обёртку двигает MapLibre, поворачиваем только каплю внутри */
.flight__pin { display: block; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.flight__ap { padding: 4px 8px; border-radius: 6px; background: #fff; color: var(--ink); font: 700 12px/1 var(--sans); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.flight .maplibregl-ctrl-attrib { font-size: 10.5px; }
@media (max-width: 640px) { .flight__box { height: 440px; } .flight__btns { margin-left: 0; } }

/* «Время в пути» — в основной колонке под описанием проекта: сетка карточек (на компьютере по 2 в ряд), правая колонка короче */
.ptravel { margin-top: 36px; }
.ptravel h3 { margin: 0 0 14px; font-size: 20px; }
.trip--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.trip--grid li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.trip--grid li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .trip--grid { grid-template-columns: 1fr; gap: 8px; } .trip--grid li { padding: 12px 14px; } }
/* правая колонка карточки проекта на компьютере «едет» рядом с описанием — без пустоты под ней */
@media (min-width: 961px) { .pdetail__side { position: sticky; top: calc(var(--header) + 20px); align-self: start; } }

/* ---------- 46. Вкладки «Подробнее об объекте» ---------- */
.ftabs { padding-bottom: 0; }
.ftabs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ftab { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 40px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: 600 15px/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s, color .2s; }
.ftab:hover { border-color: #cfd5da; box-shadow: var(--shadow); }
.ftab__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--red-dark); transition: background .2s, color .2s; }
.ftab__ic .ic { width: 22px; height: 22px; }
.ftab__lbl { min-width: 0; }
.ftab__chev { position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .45; transform: rotate(45deg); transition: transform .25s, opacity .2s; }
.ftab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow); }
.ftab.is-active .ftab__ic { background: var(--red); color: #fff; }
.ftab.is-active .ftab__chev { opacity: 1; margin-top: -1px; transform: rotate(-135deg); }
.ftab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
html.has-ftabs section[data-fold]:not(.is-open) { display: none; }
html.has-ftabs section[data-fold] { scroll-margin-top: calc(var(--header) + 12px); padding-top: 40px; }
html.has-ftabs .ftabs { padding-bottom: 24px; }
@media (max-width: 1100px) { .ftabs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ftabs__grid { gap: 8px; }
  .ftab { gap: 10px; min-height: 60px; padding: 10px 12px; font-size: 13.5px; line-height: 1.25; hyphens: auto; }
  .ftab__ic { width: 34px; height: 34px; }
  .ftab__ic .ic { width: 18px; height: 18px; }
  .ftab__chev { display: none; }
  html.has-ftabs section[data-fold] { padding-top: 32px; }
}
/* ---------- 47. Вкладка «Солнце»: три части в одном блоке ---------- */
.sunall__part + .sunall__part { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.sunall__h { margin: 0 0 6px; font: 600 22px/1.25 var(--sans); color: var(--ink); }
.sunall__lead { margin: 0 0 20px; max-width: 720px; }

/* ---------- 48. Климат этой точки ---------- */
.clim__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.clim__facts li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.clim__facts span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dark); }
.clim__facts b { font: 700 28px/1.1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.clim__facts b small { font-size: 18px; color: var(--muted); font-weight: 600; }
.clim__facts em { font-style: normal; font-size: 14px; color: var(--muted); }
.clim__vs { margin: 0 0 22px; font-size: 17px; color: var(--ink-2); }
.clim__chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; padding: 30px 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.clim__m { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.clim__col { position: relative; width: 100%; height: 200px; }
.clim__bar { position: absolute; left: 50%; width: 16px; margin-left: -8px; bottom: var(--lo); height: calc(var(--hi) - var(--lo)); border-radius: 8px; background: linear-gradient(#F59E0B, #FCD34D 55%, #7CC4D6); }
.clim__col b, .clim__col i { position: absolute; left: 0; right: 0; text-align: center; font: 700 12.5px/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; }
.clim__col b { bottom: calc(var(--hi) + 6px); color: #B45309; }
.clim__col i { top: calc(100% - var(--lo) + 6px); color: #0E7490; }
.clim__sea { margin-top: 6px; padding: 2px 6px; border-radius: 999px; background: #DDF1F5; color: #0E6E80; font: 700 12px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.clim__m small { margin-top: 24px; font-size: 12px; font-weight: 600; color: var(--muted); }
.clim__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.clim__legend li { display: flex; align-items: center; gap: 8px; }
.clim__legend i { display: inline-block; width: 12px; height: 22px; border-radius: 6px; background: linear-gradient(#F59E0B, #FCD34D 55%, #7CC4D6); }
.clim__legend .clim__sea { margin: 0; }

/* ---------- 49. Тишина и шум ---------- */
.noise__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.noise__verdict { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 16px; border-radius: 999px; background: #FFF4E5; color: #9A4D00; font-weight: 700; }
.noise__verdict.is-ok { background: #E8F6EE; color: #146C3A; }
.noise__verdict .ic { width: 20px; height: 20px; }
.noise__sum > p:not(.noise__verdict) { margin: 0 0 18px; color: var(--ink-2); }
.noise__dl { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.noise__dl dt, .noise__dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.noise__dl dt { padding-right: 18px; font-size: 14px; color: var(--muted); }
.noise__dl dd b { display: block; color: var(--ink); }
.noise__dl dd small { display: block; font-size: 13px; color: var(--muted); }
.noise__map { height: 380px; border-radius: 16px; z-index: 0; }
.noise__map.is-loading .map__consent { opacity: .6; pointer-events: none; }
.noise__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.noise__legend li { display: flex; align-items: center; gap: 6px; }
.noise__legend i { width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.noise__h { margin: 32px 0 12px; font: 600 20px/1.25 var(--sans); }
.noise__roads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.noise__roads li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.noise__roads span { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--ink); }
.noise__roads .ic { flex: none; width: 18px; height: 18px; color: var(--muted); }
.noise__roads b { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (max-width: 960px) {
  .clim__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noise__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sunall__part + .sunall__part { margin-top: 32px; padding-top: 28px; }
  .sunall__h { font-size: 19px; }
  .clim__facts { gap: 8px; }
  .clim__facts li { padding: 12px 14px; }
  .clim__facts b { font-size: 22px; }
  .clim__facts b small { font-size: 15px; }
  .clim__facts em { font-size: 13px; }
  .clim__vs { font-size: 15px; }
  .clim__chart { gap: 2px; padding: 26px 6px 10px; }
  .clim__col { height: 170px; }
  .clim__bar { width: 10px; margin-left: -5px; }
  .clim__col b, .clim__col i { font-size: 10.5px; }
  .clim__sea { padding: 1px 3px; font-size: 10px; }
  .clim__m small { font-size: 10px; margin-top: 20px; }
  .noise__map { height: 300px; }
}
