/* Базовый сброс стилей (раньше его давал скрипт Tailwind с CDN, теперь он здесь и сайт грузится быстрее) */
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
  html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; -webkit-tap-highlight-color: transparent; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1;
  }
  ::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
  textarea { resize: vertical; }
  button, input:where([type=button], [type=reset], [type=submit]), ::file-selector-button { appearance: button; }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
  summary { display: list-item; }
  [hidden]:where(:not([hidden=until-found])) { display: none !important; }
}

:root {
  --bg: #F2F5F8;
  --surface: #FFFFFF;
  --text: #1D3349;
  --muted: #5A6E84;
  --accent: #3B6FA6;
  --accent-2: #E8B654;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Golos Text", system-ui, sans-serif; font-size: 16px; line-height: 1.6;
}
h1, h2, h3, .logo, .total-num, .facts b, .step-num, .duo-title { font-family: "Tektur", "Golos Text", sans-serif; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

#servis-error {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  background: #B42318; color: #fff; padding: 14px 16px; border-radius: 10px;
  white-space: pre-wrap; font-size: 14px;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font-weight: 700; font-size: 26px; letter-spacing: 0.02em; color: var(--text); }
.logo span { color: var(--accent-2); }
.logo-light { color: #fff; }

.menu { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.menu a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--accent); }
.menu a.is-active { color: var(--accent); border-color: var(--accent-2); }
.menu .menu-quiet { color: var(--muted); font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { font-weight: 600; display: none; }
.header-phone:hover { color: var(--accent); }
@media (min-width: 1280px) { .header-phone { display: inline; } }
.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline; } }

.burger {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text) 15%, transparent); background: var(--surface); color: var(--text);
}
@media (min-width: 1100px) { .burger { display: none; } }
@media (max-width: 1099px) {
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface); padding: 6px 16px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--text) 50%, transparent);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 7%, transparent); }
  .menu a.is-active { border-bottom-color: color-mix(in srgb, var(--text) 7%, transparent); }
}

/* ---------- Кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; cursor: pointer;
  font: 600 15px "Golos Text", sans-serif; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-main { background: var(--accent-2); color: var(--text); }
.btn-main:hover:not(:disabled) { background: color-mix(in srgb, var(--accent-2) 82%, #8a5a00); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: color-mix(in srgb, var(--text) 18%, transparent); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-blue { background: var(--accent); color: #fff; padding: 0 16px; }
.btn-blue:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn-wide { width: 100%; margin-top: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

label, .label-like { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field {
  width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); }
.seg-btn {
  flex: 1; height: 38px; border: 0; border-radius: 9px; cursor: pointer;
  font: 600 15px "Golos Text", sans-serif; background: transparent; color: var(--text);
  transition: background-color .2s, color .2s;
}
.seg-btn.is-on { background: var(--accent); color: #fff; }
.range { width: 100%; height: 28px; accent-color: var(--accent); cursor: pointer; }

/* ---------- Текст ---------- */
h1 {
  margin: 0; font-weight: 700; line-height: 1.06; letter-spacing: -0.01em;
  font-size: clamp(32px, 4.6vw, 54px); max-width: 18ch;
}
.h2 { margin: 0; font-weight: 700; line-height: 1.12; font-size: clamp(28px, 3.4vw, 40px); }
.lead { margin: 16px 0 0; color: var(--muted); font-size: 18px; max-width: 62ch; }

/* ---------- Первый экран ---------- */
.hero { background: var(--surface); border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.hero-grid { display: grid; gap: 36px; padding-top: 44px; padding-bottom: 48px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 52px; } }

.duo { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 600px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card {
  display: flex; flex-direction: column; padding: 20px; border-radius: 20px; background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  transition: border-color .2s, background-color .2s;
}
.duo-card:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.duo-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-2); color: var(--text);
}
.duo-icon svg { width: 22px; height: 22px; }
.duo-title { margin-top: 14px; font-weight: 700; font-size: 22px; line-height: 1.2; }
.duo-card ul { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.duo-card li { padding-left: 14px; position: relative; }
.duo-card li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.duo-more { margin-top: auto; font-weight: 600; color: var(--accent); }

/* Рисунок */
.rig-panel {
  margin: 0; justify-self: center; width: 100%; max-width: 400px;
  padding: 14px 14px 18px; border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  background-color: var(--surface);
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
}
#rig { display: block; width: 100%; height: auto; border-radius: 16px; overflow: hidden; background: var(--surface); }
.rig-controls { margin-top: 14px; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; }
.calc-head label { margin: 0; }
.calc-head output { font: 700 20px "Tektur", sans-serif; color: var(--accent); }
.mode-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

.is-hidden { display: none; }
.soil-1 { fill: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.soil-2 { fill: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.soil-3 { fill: color-mix(in srgb, var(--accent) 19%, var(--surface)); }
.soil-4 { fill: color-mix(in srgb, var(--accent) 26%, var(--surface)); }
.dot { fill: var(--text); opacity: .12; }
.ground { stroke: var(--text); stroke-width: 3; }
.tick { stroke: var(--text); stroke-width: 1; opacity: .55; }
.tick.big { stroke-width: 2; opacity: 1; }
.tick-label { font: 600 11px "Tektur", sans-serif; fill: var(--text); }
.mast { fill: var(--text); }
.lat { stroke: var(--surface); stroke-width: 1.2; opacity: .55; }
.strut { stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
.body { fill: var(--accent-2); }
.glass { fill: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.track { fill: var(--text); }
.wheel { fill: var(--muted); }
.cable { stroke: var(--text); stroke-width: 1.5; }
.pile { fill: #CDD5DE; stroke: #95A2B0; stroke-width: 1; }
.hammer-body { fill: var(--accent-2); stroke: var(--text); stroke-width: 2; }
.hammer-text { font: 700 12px "Tektur", sans-serif; fill: var(--text); }
.depth-line { stroke: var(--accent); stroke-width: 2; }
.depth-text {
  font: 700 14px "Tektur", sans-serif; fill: var(--accent);
  paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round;
}
#hammer.hit { animation: strike .16s ease-out; }
@keyframes strike {
  0% { transform: translateY(0); }
  45% { transform: translateY(-22px); }
  100% { transform: translateY(0); }
}

.support, .beam { fill: var(--text); }
.jack { fill: var(--accent); }
.weight { fill: var(--accent-2); stroke: var(--text); stroke-width: 1.5; }
.weight.drop { animation: drop .25s ease-in; }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.read-label { font: 600 11px "Golos Text", sans-serif; fill: var(--muted); }
.read-num { font: 700 17px "Tektur", sans-serif; fill: var(--text); }
.axis { stroke: var(--text); stroke-width: 1.5; }
.axis-label { font: 600 10px "Golos Text", sans-serif; fill: var(--muted); }
.curve { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Цифры ---------- */
.facts { background: var(--text); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 24px; padding-bottom: 24px; }
@media (min-width: 768px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.facts b { display: block; font-size: 22px; color: var(--accent-2); }
.facts span { font-size: 14px; opacity: .85; }

/* ---------- Блоки ---------- */
.block { padding: 72px 0; scroll-margin-top: 68px; }
.block-tint { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; } }

/* Две услуги рядом */
.pair { display: grid; gap: 22px; margin-top: 36px; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.service {
  display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  scroll-margin-top: 84px;
}
.service-head { display: flex; align-items: center; gap: 12px; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-2); color: var(--text); flex: none; }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { margin: 0; font-size: 26px; line-height: 1.15; }
.service-photo { margin-top: 18px; border-radius: 16px; }
.service-lead { margin: 16px 0 0; color: var(--muted); }

.media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rig-duo { display: grid; grid-template-columns: 3fr 2fr; gap: 8px; }
.rig-duo .media { border-radius: 16px; aspect-ratio: auto; height: 260px; }
.rig-duo .media:only-child { grid-column: 1 / -1; }
.rig-duo .media.tall img { object-position: center 78%; }
@media (max-width: 480px) { .rig-duo .media { height: 200px; } }
.plaque {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  color: var(--accent);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}
.plaque svg { width: 46px; height: 46px; }
.plaque b { font: 600 15px "Golos Text", sans-serif; color: var(--text); }

.passport { margin: 20px 0 0; display: grid; border-top: 2px solid var(--text); }
.passport div {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
@media (max-width: 480px) { .passport div { grid-template-columns: 1fr; gap: 2px; } }
.passport dt { color: var(--muted); font-size: 15px; }
.passport dd { margin: 0; font-weight: 600; }

.test-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; border-top: 2px solid var(--text); }
.test-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.test-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.test-list b { display: block; }
.test-list span { display: block; color: var(--muted); font-size: 15px; }

.mini-form { margin-top: auto; padding-top: 22px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 420px) { .mini-grid { grid-template-columns: 1fr; } }
.calc-total {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--text) 20%, transparent);
}
.total-num { font-weight: 700; font-size: 34px; line-height: 1; }
.total-label { color: var(--muted); font-weight: 600; }

.price-note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px 22px; border-radius: 18px;
  background: color-mix(in srgb, var(--accent-2) 22%, var(--surface));
}
.price-note svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.price-note p { margin: 0; }

/* Шаги по порядку */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(var(--n, 4), 1fr); } }
.step { position: relative; padding: 0 0 28px 64px; }
@media (min-width: 900px) { .step { padding: 64px 20px 0 0; } }
.step::before {
  content: ""; position: absolute; background: color-mix(in srgb, var(--text) 18%, transparent);
  left: 21px; top: 44px; bottom: 0; width: 2px;
}
@media (min-width: 900px) { .step::before { left: 44px; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; } }
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
  background: var(--surface); color: var(--text); border: 2px solid var(--text);
}
.step:last-child .step-num { background: var(--accent-2); border-color: var(--accent-2); }
.step h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; }
.step p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34ch; }
.mt-btn { margin-top: 36px; }

/* Объекты */
.objects {
  margin-top: 32px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 320px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; scrollbar-width: thin;
}
@media (min-width: 1200px) { .objects { padding-left: calc((100vw - 1200px) / 2 + 32px); } }
.object { scroll-snap-align: start; margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.object .media { aspect-ratio: 4 / 5; }
.object figcaption { padding: 14px 16px 16px; }
.object b { display: block; font-size: 16px; line-height: 1.3; }
.object span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.object .load { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--accent-2) 30%, var(--surface)); color: var(--text); }

/* Лицензии */
.licenses { display: grid; gap: 18px; margin-top: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .licenses { grid-template-columns: repeat(4, 1fr); } }
.license-thumb {
  position: relative; padding: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--text) 60%, transparent);
  transition: border-color .2s;
}
.license-thumb:hover { border-color: var(--accent); }
.license-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; }
.license-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-2); color: var(--text);
}
.license-zoom svg { width: 20px; height: 20px; }

.viewer {
  padding: 0; border: 0; border-radius: 16px; max-width: min(920px, 94vw); max-height: 92vh; overflow: auto; background: var(--surface);
}
.viewer::backdrop { background: color-mix(in srgb, var(--text) 75%, transparent); }
.viewer img { display: block; width: 100%; height: auto; }
.viewer-close {
  position: sticky; top: 10px; float: right; margin: 10px 10px -54px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--text); color: #fff;
}
.license {
  position: relative; padding: 26px; border-radius: 20px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-top: 6px solid var(--accent);
}
.license-top { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }
.license-top svg { width: 20px; height: 20px; }
.license h3 { margin: 10px 0 0; font-size: 22px; line-height: 1.2; }
.license-cat {
  display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: color-mix(in srgb, var(--accent-2) 35%, var(--surface));
}
.license-meta { margin: 18px 0 0; display: grid; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.license-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.license-meta dt { color: var(--muted); font-size: 14px; }
.license-meta dd { margin: 0; font-weight: 600; font-size: 15px; }
@media (max-width: 420px) { .license-meta div { grid-template-columns: 1fr; gap: 0; } }
.license-items { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.license-items li { display: flex; gap: 8px; align-items: flex-start; }
.license-items svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }

/* География */
.cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cities li {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
.cities li.is-key { background: var(--text); color: #fff; border-color: var(--text); }
.cities svg { width: 16px; height: 16px; }

/* ---------- Заявка ---------- */
.note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.form-page { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 80px; }
@media (min-width: 900px) { .form-page { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 56px; } }
.form-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.form-card {
  padding: 26px; border-radius: 24px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  box-shadow: 0 24px 50px -36px color-mix(in srgb, var(--text) 55%, transparent);
}
.form-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-row { margin-top: 14px; }
.area { height: auto; padding: 12px; line-height: 1.5; resize: vertical; }
.form-error {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-weight: 600;
  background: #FDECEA; color: #8A1C12;
}
.done { text-align: center; display: grid; justify-items: center; gap: 6px; }
.done-icon { width: 56px; height: 56px; color: var(--accent); }
.done h3 { margin: 8px 0 0; font-size: 26px; }
.done p { margin: 0; color: var(--muted); }
.done .form-contacts { justify-content: center; }

/* ---------- Кабинет ---------- */
.kab { padding-top: 48px; padding-bottom: 80px; }
.kab-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 18px; }
.kab-count { color: var(--muted); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 15px "Golos Text", sans-serif; background: var(--surface); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span { color: var(--muted); font-weight: 400; margin-left: 2px; }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--text); color: #fff; border-color: var(--text); }
.chip.is-on span { color: color-mix(in srgb, #fff 70%, transparent); }
.kab-list { display: grid; gap: 12px; margin-top: 20px; }
.kab-item {
  display: grid; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-left: 6px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.kab-item.status-0 { border-left-color: var(--accent-2); }
.kab-item.status-1 { border-left-color: var(--accent); }
.kab-item.status-2 { border-left-color: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
@media (min-width: 820px) { .kab-item { grid-template-columns: 1fr 300px; align-items: center; } }
.kab-date { color: var(--muted); font-size: 14px; }
.kab-item h3 { margin: 2px 0 2px; font-size: 19px; line-height: 1.25; }
.kab-service { font-weight: 600; }
.kab-item p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.kab-side { display: grid; gap: 8px; }
.kab-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.kab-actions .btn-blue { padding: 0 14px; }
.kab-empty { padding: 32px; text-align: center; border-radius: 18px; background: var(--surface); }
.kab-empty p { margin: 0 0 14px; color: var(--muted); }

/* ---------- Скоро ---------- */
.soon { padding: 96px 16px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.soon-icon { width: 56px; height: 56px; color: var(--accent-2); }
.soon-lead { margin: 0 0 14px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--text); color: #fff; padding: 44px 0; scroll-margin-top: 68px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-text { margin: 12px 0 0; opacity: .8; max-width: 40ch; }
.footer-contacts { display: grid; gap: 12px; }
.footer-contacts a, .footer-contacts span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contacts a:hover { color: var(--accent-2); }
.footer-contacts svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }

/* ---------- Нам доверяют: названия в «срезах свай» (квадрат и четыре стержня арматуры) ---------- */
.trust { display: grid; gap: 36px; margin-top: 36px; }
@media (min-width: 1000px) { .trust { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: start; } }
.piles { min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .piles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.piles li {
  min-width: 0; aspect-ratio: 1; display: grid; place-items: center; padding: 18px 12px; text-align: center;
  font: 700 clamp(14px, 1.7vw, 19px)/1.15 "Tektur", sans-serif; color: var(--text); overflow-wrap: anywhere;
  background-color: var(--surface);
  background-image:
    radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px),
    radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px),
    radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px),
    radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px);
  background-size: 8px 8px; background-repeat: no-repeat;
  background-position: 12px 12px, calc(100% - 12px) 12px, 12px calc(100% - 12px), calc(100% - 12px) calc(100% - 12px);
  border: 2px solid color-mix(in srgb, var(--text) 14%, transparent);
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px color-mix(in srgb, var(--text) 9%, transparent);
}
.piles li.piles-more { background-image: none; background-color: transparent; box-shadow: none; border-style: dashed; color: var(--muted); font: 600 15px "Golos Text", sans-serif; }
.landmarks h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.landmarks ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 2px solid var(--text); }
.landmarks li { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.landmarks b { display: block; }
.landmarks span { display: block; color: var(--muted); font-size: 15px; }
.trust-compact { margin-top: 28px; }
.trust-compact .piles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .trust-compact .piles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- Страницы услуг и городов ---------- */
.burger svg { width: 22px; height: 22px; }
.page-hero { display: grid; gap: 32px; padding-top: 28px; padding-bottom: 44px; }
@media (min-width: 1000px) { .page-hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 52px; } }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.kicker { margin: 0 0 12px; font-weight: 600; font-size: 15px; color: var(--accent); }
.page-photo { margin: 0; border-radius: 24px; }
.text { margin: 16px 0 0; font-size: 17px; max-width: 72ch; }
.text a, .ticks a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 72ch; font-size: 17px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent-2); }
.passport-wide { max-width: 760px; margin-top: 28px; }
.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 860px; }
.faq details { padding: 0 20px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 22px/1 "Tektur", sans-serif; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.city-links { margin-top: 24px; }
.cities a { display: inline-flex; align-items: center; gap: 6px; }
.cities a:hover { color: var(--accent); }
.cities li.is-key a:hover { color: var(--accent-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14px; opacity: .8; max-width: 60ch; }
.footer-links a:hover { color: var(--accent-2); opacity: 1; }
.service-more { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-weight: 600; color: var(--accent); }
.service-more a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
