/* «Мастеровой» — демо-редизайн. Мир: шелкографический плакат, три краски на светлой бумаге. */

/* ---------- Шрифты (локально) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/roboto-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+20BD, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/roboto-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/roboto-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(fonts/robotocond-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+20BD, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(fonts/robotocond-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(fonts/robotocond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  /* краски */
  --blue: #0062AD;        /* фирменный синий — основная краска */
  --blue-deep: #00508E;   /* синий при наведении */
  --navy: #0A2E57;        /* текст, тени оттиска */
  --sun: #FFC400;         /* жёлтая — главная кнопка и плашки */
  --sun-deep: #F0B000;
  --red: #D93A1A;         /* только ночь / авария */
  --paper: #F4F6F7;       /* светлая нейтральная бумага (с зерном даёт ≈ #F1F3F4) */
  --paper-2: #E2E7EA;
  --white: #FFFFFF;
  --error: #B42318;

  --ink: var(--navy);
  --rule: color-mix(in srgb, var(--navy) 22%, transparent);
  --focus: var(--navy);

  /* шрифты */
  --f-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-poster: "Roboto Condensed", "Roboto", "Arial Narrow", sans-serif;

  /* размеры текста */
  --t-sm: 0.9375rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-h2: clamp(2.5rem, 1.5rem + 4.6vw, 5.5rem);

  /* отступы (шаг 4/8) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 16px;
  --wrap: 1240px;
  --section: clamp(56px, 4rem + 4vw, 120px);

  --radius: 3px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; --header-h: 76px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s4);
  scrollbar-color: var(--blue) var(--paper-2);
}
@media (min-width: 1100px) { html { scroll-padding-top: calc(var(--header-h) + var(--s4)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  /* зерно бумаги для шелкографии */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.18 0 0 0 0 0.34 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: clip;
}
@media (min-width: 1280px) { body { font-size: 1.0625rem; } }

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
button { font: inherit; color: inherit; }
a, button, summary { -webkit-tap-highlight-color: rgba(255, 196, 0, .35); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--sun); color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--sun); color: var(--navy); padding: var(--s3) var(--s4); font-weight: 700; }
.skip-link:focus { top: var(--s4); }

.todo { background: #FFF0B3; color: #8A1C00; outline: 1px dashed #8A1C00; padding: 0 .25em; font-weight: 700; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 var(--s5);
  font-family: var(--f-poster); font-weight: 800; font-size: 1.125rem; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.1;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; touch-action: manipulation;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sun); color: var(--navy); border-color: var(--sun); }
.btn-primary:hover { background: var(--sun-deep); border-color: var(--sun-deep); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: #061f3c; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 48px; font-size: 1rem; padding: 0 var(--s4); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary[disabled]:hover { background: var(--sun); border-color: var(--sun); }

.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Демо-плашка и шапка ---------- */
.demo-bar {
  background: var(--navy); color: var(--white);
  font-size: .875rem; line-height: 1.3; text-align: center;
  padding: 6px var(--gutter);
}

.site-header { position: relative; z-index: 40; background: var(--blue); color: var(--white); }
@media (min-width: 1100px) { .site-header { position: sticky; top: 0; } }
.header-row { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { height: 26px; width: auto; }
@media (min-width: 768px) { .logo img { height: 32px; } }

.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--blue); border-top: 2px solid color-mix(in srgb, var(--white) 30%, transparent);
  padding: var(--s2) var(--gutter) var(--s5);
}
.nav a {
  display: flex; align-items: center; min-height: 48px;
  font-family: var(--f-poster); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; color: var(--white);
  border-bottom: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
}
.nav a:hover { color: var(--sun); }

.header-phone {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-width: 44px; min-height: 44px;
  font-family: var(--f-poster); font-weight: 800; font-size: 1.125rem; letter-spacing: .01em;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--sun); }
.header-phone span { display: none; }
@media (min-width: 440px) { .header-phone span { display: inline; } }
@media (min-width: 1280px) { .header-phone { font-size: 1.375rem; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--white); cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.site-header { --focus: var(--sun); }

@media (min-width: 1100px) {
  .nav { display: block; margin-left: auto; }
  .nav ul { display: flex; gap: var(--s5); }
  .nav a { min-height: var(--header-h); font-size: 1.0625rem; border: 0; }
  .header-phone { margin-left: var(--s5); }
  .nav-toggle { display: none; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow-x: clip; padding-bottom: var(--s5); }

.slogan-band {
  display: flex; align-items: center; gap: var(--s4);
  background: var(--navy); color: var(--white);
  font-family: var(--f-poster); font-weight: 800; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
  padding: 9px var(--gutter);
}
.slogan-band span:nth-of-type(3n+2) { color: var(--sun); }
.slogan-band i { flex: none; width: 8px; height: 8px; background: var(--sun); }


.hero-grid { display: grid; gap: var(--s6); padding-top: var(--s6); }
.hero-copy { container-type: inline-size; min-width: 0; }

.hero-title {
  font-family: var(--f-poster); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.125rem, 11.4cqi, 6rem);
  line-height: .9; letter-spacing: -0.012em;
}
.hero-title > span { display: block; }
.ht-1 { color: var(--navy); }
.ht-2 { color: var(--blue); }
.ht-3 { color: var(--navy); margin-top: .08em; }
.ht-field { background: var(--sun); padding: .02em .14em 0; margin-left: -.06em; }

.status {
  display: inline-flex; align-items: flex-start; gap: var(--s2);
  margin-top: var(--s5); padding: 10px var(--s4);
  background: var(--white); color: var(--navy);
  border: 2px solid var(--navy); border-radius: var(--radius);
  font-size: var(--t-base); line-height: 1.4; font-weight: 500;
}
.status .icon { margin-top: 1px; color: var(--blue); }
.is-night .status { background: var(--red); color: var(--white); border-color: var(--red); }
.is-night .status .icon { color: var(--white); }

.hero-phone {
  display: inline-block; margin-top: var(--s5);
  font-family: var(--f-poster); font-weight: 900; font-size: clamp(2rem, 10.4cqi, 3.5rem);
  line-height: 1; letter-spacing: -0.005em; color: var(--blue);
  text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hero-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; }

.hero-actions { display: grid; gap: var(--s2); margin-top: var(--s5); }
@container (min-width: 540px) { .hero-actions { grid-template-columns: auto auto; justify-content: start; gap: var(--s3); } }

/* выпадающий список мессенджеров */
.msg { position: relative; }
.msg > .btn { width: 100%; }
.msg-toggle[aria-expanded="true"] { background: var(--blue); color: var(--white); }
.msg-menu {
  position: absolute; transform-origin: top left; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%;
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(10, 46, 87, .18);
  padding: var(--s1) 0;
  animation: menu-in .18s var(--ease-out);
}
.msg--up .msg-menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom left; }
.msg-menu a {
  display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s4);
  color: var(--navy); text-decoration: none; font-weight: 700; white-space: nowrap;
}
.msg-menu a:hover { background: var(--paper-2); }
.msg-menu .icon { color: var(--blue); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .msg-menu { animation: none; } }

/* три факта доверия — полоса-талон */
.trust-strip { margin-top: var(--s6); border-top: 3px solid var(--navy); }
.trust-strip li { border-bottom: 1px solid var(--rule); }
.trust-strip li > a, .trust-strip li:not(:has(a)) {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: var(--s3);
  padding-block: var(--s3); text-decoration: none;
}
.trust-strip li > a:hover span { text-decoration: underline; }
.trust-strip .num {
  font-family: var(--f-poster); font-weight: 900; font-size: 1.75rem; line-height: 1.05;
  color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.trust-strip span { font-size: var(--t-base); }

/* эмблема: мастер, отпечатанный в три краски */
.hero-grid { position: relative; }
.hero-emblem { position: absolute; z-index: 0; right: -7%; bottom: calc(-1 * var(--s3)); width: 42%; max-width: 230px; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
@media (max-width: 767px) { .trust-strip li { padding-right: 40%; } .hero { padding-bottom: var(--s6); } }
.emblem { position: relative; aspect-ratio: 1086 / 1368; }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.ink-brush { transform: translate(-2.5%, 1.5%) scale(1.04); }
.ink-blue { transform: translate(2px, -1px); }
.is-night .ink-brush { filter: hue-rotate(-40deg) saturate(1.35); }

@media (prefers-reduced-motion: no-preference) {
  .js .ink { animation: pull 1s var(--ease-out) both; }
  .js .ink-brush { animation-duration: 1.1s; }
  .js .ink-paper { animation-delay: .22s; }
  .js .ink-blue { animation-delay: .44s; }
  .js .ink-navy { animation-delay: .66s; }
}
@keyframes pull { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@container (min-width: 520px) {
  .trust-strip { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; border-bottom: 1px solid var(--rule); }
  .trust-strip li { border-bottom: 0; padding-right: var(--s5); }
  .trust-strip li + li { border-left: 1px solid var(--rule); padding-left: var(--s5); }
  .trust-strip li > a, .trust-strip li:not(:has(a)) { flex-direction: column; row-gap: 2px; }
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: end; gap: var(--s4); }
  .hero-emblem { position: relative; right: auto; bottom: auto; width: 100%; max-width: none; justify-self: end; margin-bottom: calc(-1 * var(--s5)); }
}
@media (min-width: 1024px) {
  .hero { padding-bottom: var(--s7); }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s5); padding-top: var(--s7); }
  .hero-emblem { max-width: 540px; margin-bottom: calc(-1 * var(--s7)); }
  .hero-title { font-size: clamp(2.5rem, 11.2cqi, 6rem); }
}


/* ---------- Секции: общее ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: var(--s4); margin-bottom: var(--s6); }
.h2 {
  font-family: var(--f-poster); font-weight: 900; text-transform: uppercase;
  font-size: var(--t-h2); line-height: .9; letter-spacing: -0.01em;
  text-wrap: balance;
  border-top: 6px solid currentColor; padding-top: .22em;
}
.h2 .ink-2 { color: var(--blue); }
.trust .h2 .ink-2, .order .h2 .ink-2 { color: var(--sun); }
.business .h2 .ink-2 { color: var(--blue-deep); }
.h3 { font-family: var(--f-poster); font-weight: 900; text-transform: uppercase; font-size: var(--t-h3); line-height: 1; }
.lead { font-size: var(--t-md); max-width: 46ch; }
.fine { margin-top: var(--s5); font-size: var(--t-sm); max-width: 72ch; color: color-mix(in srgb, var(--navy) 85%, var(--paper)); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr minmax(0, 26rem); align-items: end; gap: var(--s6); margin-bottom: var(--s7); }
}

/* ---------- Услуги ---------- */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 700px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--tall { grid-row: span 2; }
  .svc--wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
}

.svc {
  --svc-fg: var(--navy);
  --svc-accent: var(--blue);
  --svc-disc: var(--sun);
  position: relative; display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s5); color: var(--svc-fg);
  border-radius: var(--radius);
}
.svc--paper { background: var(--white); border: 2px solid var(--navy); }
.svc--blue { background: var(--blue); --svc-fg: var(--white); --svc-accent: var(--sun); --focus: var(--sun); }
.svc--yellow { background: var(--sun); --svc-accent: var(--navy); --svc-disc: var(--white); }

.svc-fig { display: flex; justify-content: flex-start; margin: calc(-1 * var(--s2)) 0 calc(-1 * var(--s4)); position: relative; z-index: 1; }
.svc-master {
  width: 168px; height: auto;
  background: radial-gradient(circle at 50% 58%, var(--svc-disc) 0 42%, transparent 43%);
}
@media (max-width: 399px) { .svc { padding: var(--s5) var(--s4); } .svc .svc-master { width: 144px; } }
.svc-title {
  hyphens: auto; font-family: var(--f-poster); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: .95;
  margin-inline: calc(-1 * var(--s5)); padding: 12px var(--s5) 10px;
  background: var(--band-bg, var(--blue)); color: var(--band-fg, var(--white));
}
.svc--blue { --band-bg: var(--navy); }
.svc--yellow { --band-bg: var(--navy); }
.svc--paper { --band-bg: var(--blue); }
@media (max-width: 399px) { .svc-title { margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); } }
.svc-from { margin-top: calc(-1 * var(--s2)); font-family: var(--f-poster); font-weight: 700; font-size: 1.125rem; }
.svc-from b { font-weight: 900; font-size: 2rem; line-height: 1; color: var(--svc-accent); font-variant-numeric: tabular-nums; }
.svc--paper .svc-from b { color: var(--blue); }

.price-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--svc-fg) 28%, transparent);
}
.price-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--svc-fg) 28%, transparent); }
.price-list span { min-width: 0; }
.price-list b { flex: none; font-family: var(--f-poster); font-weight: 700; font-size: 1.125rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-note { font-size: var(--t-sm); }

.svc-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding-top: var(--s2); }
.svc-order, .svc-more {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--f-poster); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 1.0625rem;
  color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em;
}
.svc-order .icon { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .svc-order:hover .icon { transform: translateX(3px); } }
.svc-more { font-size: .9375rem; font-weight: 700; }
.svc-more .icon { width: 1em; height: 1em; }

@media (min-width: 1100px) {
  .svc--tall .svc-master { width: 210px; }
  .svc--tall .price-list b { font-size: 1.25rem; }
  .svc--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; grid-template-rows: auto auto 1fr; align-items: start; column-gap: var(--s7); }
  .svc--wide .svc-fig, .svc--wide .svc-title, .svc--wide .svc-from { grid-column: 1; }
  .svc--wide .svc-title { margin-right: 0; }
  .svc--wide .price-list { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .svc--wide .svc-foot { grid-column: 3; grid-row: 1 / 4; align-self: center; }
  .svc--wide .svc-foot { margin-top: 0; flex-direction: column; align-items: flex-start; }
}

/* ---------- Почему доверяют: синий плакат ---------- */
.trust { background: var(--blue); color: var(--white); --focus: var(--sun); }
.trust .h2 { margin-bottom: var(--s7); max-width: 14ch; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: start; }
.plate { background: var(--sun); color: var(--navy); padding: var(--s5); border-radius: var(--radius); --focus: var(--navy); }
.plate-num {
  display: block; font-family: var(--f-poster); font-weight: 900; line-height: .9; letter-spacing: -0.01em;
  font-size: clamp(3rem, 2rem + 6vw, 6rem); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plate h3 { margin-top: var(--s4); font-family: var(--f-poster); font-weight: 900; text-transform: uppercase; font-size: var(--t-h3); line-height: 1; }
.plate p { margin-top: var(--s3); max-width: 40ch; }
.plate a { color: var(--navy); font-weight: 700; }
.ledger { border-top: 2px solid var(--white); }
.ledger li {
  display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); column-gap: var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid color-mix(in srgb, var(--white) 38%, transparent);
}
.ledger-num {
  font-family: var(--f-poster); font-weight: 800; text-transform: uppercase;
  font-size: 1.375rem; line-height: 1.1; color: var(--sun); font-variant-numeric: tabular-nums;
}
.ledger h3 { font-size: var(--t-md); line-height: 1.25; font-weight: 700; }
.ledger p { margin-top: 2px; max-width: 52ch; color: color-mix(in srgb, var(--white) 92%, var(--blue)); }
.ledger a { color: var(--white); font-weight: 700; }
@media (min-width: 768px) { .plate { padding: var(--s6); } .ledger li { grid-template-columns: 9.5rem minmax(0, 1fr); } .ledger-num { font-size: 1.75rem; } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); } }

/* ---------- Как работаем ---------- */
.process .h2 { margin-bottom: var(--s7); }
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 3.25rem 1fr; column-gap: var(--s4); row-gap: var(--s1);
  padding: var(--s5) 0; border-top: 3px solid var(--navy);
}
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-family: var(--f-poster); font-weight: 900; font-size: 3.5rem; line-height: .8; color: var(--blue);
}
.steps h3 { font-family: var(--f-poster); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.steps li:nth-child(2) h3 { background: var(--sun); justify-self: start; padding: 0 .15em; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s5); }
  .steps li { grid-template-columns: 1fr; padding-top: var(--s5); }
  .steps li::before { grid-row: auto; font-size: 5rem; margin-bottom: var(--s3); }
}

/* ---------- Работы ---------- */
.works { background: var(--white); border-block: 2px solid var(--navy); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.tab {
  min-height: 48px; padding: 0 var(--s4); cursor: pointer;
  font-family: var(--f-poster); font-weight: 800; text-transform: uppercase; font-size: 1.0625rem; letter-spacing: .02em;
  background: transparent; color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius);
  transition: background-color .16s ease, color .16s ease;
}
.tab:hover { background: var(--paper-2); }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }

.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); border-radius: var(--radius); }
.gallery .g-wide img { aspect-ratio: 16 / 9; }
.gallery--pairs img { aspect-ratio: 3 / 2; }
.gallery figcaption { margin-top: var(--s2); font-size: var(--t-sm); }
/* телефон: лента с прокруткой вместо длинного столбца */
@media (max-width: 639px) {
  .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--s3);
    scroll-padding-inline: var(--gutter);
  }
  .gallery figure { scroll-snap-align: start; }
  .gallery img, .gallery .g-wide img { aspect-ratio: 4 / 3; }
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  .gallery .g-wide { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .gallery:not(.gallery--pairs) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery:not(.gallery--pairs) .g-wide { grid-column: span 2; }
  .gallery:not(.gallery--pairs) .g-wide img { aspect-ratio: auto; height: 100%; max-height: 520px; }
}
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: panel-in .2s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tab-panel:not([hidden]) { animation: none; } }

.more-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); margin-top: var(--s5); }
.more-links a, .rating-link {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  font-weight: 700; color: var(--blue);
}
.more-links .icon, .rating-link .icon { width: 1em; height: 1em; }

/* ---------- Отзывы ---------- */
.reviews .h2 { margin-bottom: var(--s6); }
.reviews-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.rating-num {
  display: block; font-family: var(--f-poster); font-weight: 900;
  font-size: clamp(6rem, 4rem + 9vw, 9rem); line-height: .78; color: var(--blue); letter-spacing: -0.02em;
}
.rating-text { margin-top: var(--s3); font-family: var(--f-poster); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; }
.rating-note { margin-top: var(--s3); max-width: 34ch; }
.rating-link { margin-top: var(--s3); }
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.quote { border-top: 3px solid var(--blue); padding-top: var(--s4); }
.quote p { font-size: var(--t-md); line-height: 1.5; }
.quote p::before { content: "«"; }
.quote p::after { content: "»"; }
.quote footer { margin-top: var(--s3); font-size: var(--t-sm); }
.quote cite { font-style: normal; font-family: var(--f-poster); font-weight: 800; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .02em; }
@media (min-width: 900px) {
  .reviews-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: var(--s8); align-items: start; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s6); }
  .rating { position: sticky; top: calc(var(--header-h) + var(--s5)); }
}

.clients { margin-top: var(--s8); padding-top: var(--s6); border-top: 3px solid var(--navy); }
.clients .lead { margin-top: var(--s2); margin-bottom: var(--s5); }
.client-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.client-grid figure { display: grid; grid-template-columns: 112px 1fr; gap: var(--s3); align-items: start; }
.client-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.client-grid figcaption { font-size: var(--t-sm); line-height: 1.45; }
.js .client-grid:not(.is-open) .is-extra { display: none; }
.show-more { margin-top: var(--s5); }
@media (min-width: 640px) { .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); } }
@media (min-width: 1100px) {
  .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .client-grid figure { grid-template-columns: 1fr; }
}

/* ---------- Юрлицам: жёлтый плакат ---------- */
.business { background: var(--sun); color: var(--navy); }
.business-grid { display: grid; gap: var(--s6); }
.business .lead { margin-top: var(--s4); }
.biz-list { display: grid; gap: var(--s3); }
.biz-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; font-size: var(--t-md); font-weight: 500; }
.biz-list .icon { margin-top: 3px; width: 1.4em; height: 1.4em; stroke-width: 2.6; }
.biz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.biz-phone { font-family: var(--f-poster); font-weight: 900; font-size: 1.75rem; text-decoration: none; white-space: nowrap; }
.biz-phone:hover { text-decoration: underline; }
.biz-side { display: grid; gap: var(--s6); }
@media (min-width: 1024px) {
  .business-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--s8); align-items: end; }
}

/* ---------- География ---------- */
.districts { display: grid; gap: 0; border-top: 3px solid var(--navy); }
.districts > div { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.districts dt { font-family: var(--f-poster); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; color: var(--blue); line-height: 1.1; }
.districts dd { margin-top: var(--s1); }
.districts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
.districts dd { font-size: var(--t-sm); }
.districts dt { font-size: 1.0625rem; hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 640px) { .districts { column-gap: var(--s6); } .districts dd { font-size: var(--t-base); } .districts dt { font-size: 1.25rem; } }
@media (min-width: 1100px) { .districts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.towns { margin-top: var(--s5); border: 2px solid var(--navy); border-radius: var(--radius); background: var(--white); }
.towns summary, .faq summary { list-style: none; cursor: pointer; }
.towns summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.towns summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 56px; padding: var(--s3) var(--s4);
  font-family: var(--f-poster); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; line-height: 1.1;
}
.towns summary .icon, .faq summary .icon { transition: transform .25s var(--ease-out); color: var(--blue); }
.towns[open] summary .icon, .faq details[open] summary .icon { transform: rotate(180deg); }
.towns-body { padding: 0 var(--s4) var(--s5); display: grid; gap: var(--s3); font-size: var(--t-sm); max-width: 110ch; }
.towns-main { font-size: var(--t-base); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s6); }
.faq-list { border-top: 3px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 64px; padding: var(--s3) 0;
  font-weight: 700; font-size: var(--t-md); line-height: 1.3;
}
.faq summary:hover span { color: var(--blue); }
.faq-a { padding-bottom: var(--s5); max-width: 64ch; }
.faq-a ul { margin-top: var(--s2); display: grid; gap: var(--s1); }
.faq-a li { padding-left: 1.1em; position: relative; }
.faq-a li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--sun); outline: 1px solid var(--navy); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: var(--s8); align-items: start; }
  .faq .h2 { position: sticky; top: calc(var(--header-h) + var(--s5)); }
}

/* ---------- Заявка ---------- */
.order { background: var(--navy); color: var(--white); --focus: var(--sun); }
.order-grid { display: grid; gap: var(--s6); }
.order .lead { margin-top: var(--s4); }
.order-phone {
  display: inline-block; margin-top: var(--s3);
  font-family: var(--f-poster); font-weight: 900; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1;
  color: var(--sun); text-decoration: none; white-space: nowrap;
}
.order-phone:hover { text-decoration: underline; }

.form, .form-done {
  background: var(--white); color: var(--navy); --focus: var(--blue);
  padding: var(--s5); border-radius: var(--radius); display: grid; gap: var(--s4);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.req { color: var(--error); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--navy);
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #5B6F86; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--t-sm); font-weight: 500; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: var(--s3); align-items: start; padding-top: var(--s1); }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.consent label { cursor: pointer; line-height: 1.4; }
.consent a, .policy-note a { color: var(--blue); font-weight: 500; }
.policy-note, .form-hint { font-size: var(--t-sm); }
.form-hint { color: #4A5E75; }
.form-done { align-content: start; }
.form-done .icon { width: 44px; height: 44px; color: var(--white); background: var(--blue); border-radius: 50%; padding: 9px; stroke-width: 3; }
.form-done h3 { font-family: var(--f-poster); font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.form-done a { color: var(--blue); font-weight: 700; white-space: nowrap; }
.demo-note { font-size: var(--t-sm); color: #4A5E75; }
.form-done:not([hidden]) { animation: pull .5s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .form-done:not([hidden]) { animation: none; } }
@media (min-width: 900px) {
  .order-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s8); align-items: start; }
  .form, .form-done { padding: var(--s6); grid-column: 2; grid-row: 1; }
}

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; gap: var(--s6); }
.contacts .h2 { margin-bottom: var(--s5); }
.contact-list { display: grid; gap: var(--s3); }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: center; font-size: var(--t-md); }
.contact-list .icon { color: var(--blue); }
.contact-big { font-family: var(--f-poster); font-weight: 900; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1; color: var(--blue); text-decoration: none; white-space: nowrap; }
.contact-big:hover { text-decoration: underline; }
.messengers { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.messengers a {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s4);
  border: 2px solid var(--blue); border-radius: var(--radius); color: var(--blue);
  font-weight: 700; text-decoration: none; transition: background-color .16s ease, color .16s ease;
}
.messengers a:hover { background: var(--blue); color: var(--white); }
.requisites { margin-top: var(--s5); font-size: var(--t-sm); line-height: 1.6; }

.map { position: relative; min-height: 320px; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--paper-2); overflow: hidden; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s4); padding: var(--s5); text-align: center; }
.map-placeholder p { max-width: 34ch; }
.map-placeholder a { display: inline-flex; align-items: center; gap: var(--s2); color: var(--blue); font-weight: 700; min-height: 44px; }
.map-placeholder a .icon { width: 1em; height: 1em; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .contacts-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s8); }
  .map { min-height: 440px; }
}

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: var(--s7) 0 var(--s6); --focus: var(--sun); }
.footer-grid { display: grid; gap: var(--s4); font-size: var(--t-sm); }
.footer-logo { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 44px; }
.footer-demo { color: #D3E2F4; }

/* ---------- Липкая панель (телефон) ---------- */
.dock {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2);
  padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 2px solid var(--navy);
}
.dock .btn { width: 100%; min-height: 52px; padding: 0 var(--s3); }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .dock { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 60; left: var(--s3); right: var(--s3); bottom: calc(80px + env(safe-area-inset-bottom));
  max-width: 560px; padding: var(--s4);
  background: var(--white); color: var(--navy);
  border: 2px solid var(--navy); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(10, 46, 87, .22);
  display: grid; gap: var(--s3); font-size: var(--t-sm);
  animation: menu-in .3s var(--ease-out);
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--blue); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cookie-actions .btn { flex: 1 1 130px; min-height: 44px; }
@media (max-width: 767px) { .cookie { padding: var(--s3); gap: var(--s2); } }
@media (min-width: 768px) { .cookie { bottom: var(--s5); right: var(--s5); left: auto; } }
@media (prefers-reduced-motion: reduce) { .cookie { animation: none; } }

/* ---------- Юридические страницы ---------- */
.doc { padding-block: var(--s7) var(--s9); }
.doc .wrap { max-width: 760px; }
.doc-warning { background: #FFF0B3; border: 2px dashed #8A1C00; color: #8A1C00; padding: var(--s3) var(--s4); font-weight: 700; margin-bottom: var(--s6); border-radius: var(--radius); }
.doc h1 { font-family: var(--f-poster); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem); line-height: .95; margin-bottom: var(--s5); }
.doc h2 { font-family: var(--f-poster); font-weight: 800; text-transform: uppercase; font-size: 1.375rem; margin: var(--s6) 0 var(--s3); }
.doc p, .doc li { margin-bottom: var(--s3); max-width: 70ch; }
.doc ul { list-style: disc; padding-left: 1.25em; }
.doc a { color: var(--blue); }
.doc-back { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin-bottom: var(--s5); color: var(--blue); font-weight: 700; }
.doc-back .icon { transform: rotate(180deg); }
body.doc-page { padding-bottom: 0; }
.doc-page .header-phone span { display: inline; }
