/* Горизонт — грунтовая лаборатория. Общие стили сайта. */
:root {
  --green-900: #0e1a14;
  --green-800: #173126;
  --green-700: #1f5238;
  --green-500: #2f7a52;
  --ink: #1f2421;
  --ink-soft: #373636;
  --muted: #8a8f8b;
  --line: #e3e5e2;
  --bg: #ffffff;
  --bg-soft: #f6f7f5;
  --coral: #e5574c;
  --coral-dark: #c94338;
  --black: #090b0a;
  --font: "Exo 2", "Segoe UI", Arial, sans-serif;
  --font-num: "Inter", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  gap: 16px;
}
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav--right { justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-700); }
.nav .pill {
  background: var(--coral);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav .pill:hover { background: var(--coral-dark); color: #fff; }
.logo img { height: 44px; width: auto; }
.header__phone {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 15px;
  color: var(--green-800);
  text-decoration: none;
  white-space: nowrap;
}
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
.mobile-nav { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  font: 600 13px/1 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #c8ccc8; }
.btn--ghost:hover { border-color: var(--green-700); color: var(--green-700); }
.btn--light { background: #fff; color: var(--green-800); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ---------- Заголовки секций ---------- */
.section { padding-block: 96px; }
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -.01em;
}
.section-title em { font-style: normal; color: var(--muted); }
.section--dark .section-title em { color: #9aa79f; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 640px;
  gap: 40px;
  padding-block: 56px;
}
.hero__title {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 300;
  letter-spacing: -.02em;
}
.hero__title b { font-weight: 700; }
.hero__title span { display: block; color: var(--muted); }
.hero__lead { margin-top: 22px; max-width: 460px; color: var(--ink-soft); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__formulas { position: relative; height: 120px; margin-top: 36px; font: 300 22px/1 var(--font-num); color: #c9cfca; pointer-events: none; }
.hero__formulas span { position: absolute; white-space: nowrap; }
.stats { display: flex; gap: 48px; margin-top: 8px; }
.stat__num { font: 700 34px/1 var(--font-num); letter-spacing: -1px; color: var(--ink); }
.stat__label { margin-top: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero__art { position: relative; justify-self: center; width: min(100%, 560px); }
.hero__art img { width: 100%; height: auto; }
.hero__tag {
  position: absolute;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(55, 54, 54, .85);
  color: #fff;
  padding: 5px 10px;
}

/* ---------- Блок «Когда точность решает всё» ---------- */
.section--dark { background: var(--black); color: #fff; }
.precision__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.precision__head p { color: #c3c9c5; max-width: 520px; }
.precision__head p b { color: #fff; }
.directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid #263029;
}
.direction { padding: 36px 40px 40px 0; border-bottom: 1px solid #263029; }
.direction:nth-child(even) { padding: 36px 0 40px 40px; border-left: 1px solid #263029; }
.direction__head { display: flex; align-items: center; gap: 16px; }
.direction__num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--green-700);
  font: 700 17px/1 var(--font-num);
}
.direction__title { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.direction p { margin-top: 18px; color: #b7beb9; font-size: 15px; }

/* ---------- Объекты ---------- */
.objects { background: var(--green-800); color: #fff; padding-block: 72px; }
.objects__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.objects__ctrl { display: flex; gap: 10px; }
.objects__ctrl button {
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; cursor: pointer; font-size: 18px;
}
.objects__ctrl button:hover { background: rgba(255,255,255,.1); }
.objects__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 18px;
  margin-top: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.objects__track::-webkit-scrollbar { display: none; }
.object {
  position: relative;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--green-900);
}
.object img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.object:hover img { transform: scale(1.04); }
.object__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 48px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
}
.object__name { font-size: 13px; font-weight: 600; text-transform: uppercase; line-height: 1.3; }
.object__city { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #d5dbd7; }
.object__city::before { content: ""; width: 7px; height: 7px; background: #fff; }

/* ---------- Партнёры и документы ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logos__item { display: grid; place-items: center; background: #fff; padding: 28px; min-height: 120px; }
.logos__item img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logos__item:hover img { filter: none; opacity: 1; }

.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.doc { display: block; text-decoration: none; border: 1px solid var(--line); background: var(--bg-soft); transition: border-color .2s; }
.doc:hover { border-color: var(--green-700); }
.doc img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.doc__cap { padding: 14px 16px; font-size: 14px; font-weight: 600; }
.doc__cap small { display: block; margin-top: 4px; font-weight: 400; color: var(--muted); }

/* ---------- Контакты и форма ---------- */
.contacts { background: var(--black); color: #fff; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.contact-list { display: grid; gap: 28px; }
.contact-list dt { font-size: 13px; font-weight: 600; color: #9aa79f; }
.contact-list dd { margin: 6px 0 0; font-size: 22px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: #9fd8b5; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: #b7beb9; }
.form input, .form textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font);
  padding: 14px 16px;
  border: 1px solid #2b332e;
  background: #121614;
  color: #fff;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #6d756f; }
.file {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px dashed #3a443e;
  color: #b7beb9; font-size: 14px; cursor: pointer;
}
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file:hover { border-color: #9fd8b5; color: #fff; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-size: 13px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-500); flex: none; }
.consent a { color: #ff8a7f; }
.form__note { font-size: 13px; color: #8a938d; }
.form__status { font-size: 14px; min-height: 20px; }
.form__status.ok { color: #9fd8b5; }
.form__status.err { color: #ff8a7f; }
.form .btn { justify-self: start; }

/* ---------- Подвал ---------- */
.footer { background: var(--black); color: #9aa79f; border-top: 1px solid #1c231f; padding-block: 36px; font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer a { color: #c3c9c5; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__logo img { height: 40px; width: auto; opacity: .8; }

/* ---------- Внутренние страницы ---------- */
.page-head { padding-block: 72px 40px; }
.page-head .back { display: inline-block; margin-bottom: 28px; font-size: 26px; color: var(--ink-soft); text-decoration: none; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 52px); text-transform: uppercase; font-weight: 500; }
.page-head h1 em { font-style: normal; color: var(--muted); }
.page-head p { margin-top: 18px; max-width: 680px; color: var(--ink-soft); font-size: 17px; }

/* ---------- Анимация появления ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-hidden { opacity: 0; transform: translateY(24px); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .nav, .header__phone { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; }
  .burger { display: block; justify-self: end; grid-column: 3; }
  .header__call { display: inline-flex; justify-self: end; }
  .mobile-nav.is-open {
    display: grid; gap: 4px;
    padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .mobile-nav a { padding: 12px 0; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--line); }
  .mobile-nav .pill { color: var(--coral); font-weight: 600; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 56px; }
  .hero__art { order: -1; width: min(80%, 420px); }
  .precision__head, .contacts__grid { grid-template-columns: 1fr; gap: 28px; }
  .directions { grid-template-columns: 1fr; }
  .direction, .direction:nth-child(even) { padding: 28px 0; border-left: 0; }
  .section { padding-block: 64px; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .hero__formulas { display: none; }
  .contact-list dd { font-size: 19px; }
  .header__call span { display: none; }
}
@media (min-width: 981px) { .header__call { display: none; } }

/* ---------- Страница услуг ---------- */
.svc-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; padding-block: 48px; border-bottom: 1px solid var(--line); }
.svc__head { display: flex; gap: 18px; align-items: flex-start; }
.svc__mark { flex: none; width: 44px; height: 44px; background: var(--green-700); }
.svc__title { font-size: 21px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.svc__intro { color: var(--ink-soft); margin-bottom: 18px; }
.svc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc__list li { position: relative; padding-left: 30px; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 1px; background: var(--ink-soft); }
.svc__list li small { color: var(--muted); font-family: var(--font-num); font-size: 13px; margin-left: 6px; white-space: nowrap; }
.cta-band { background: var(--green-800); color: #fff; padding-block: 56px; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 500; }
.cta-band p { margin-top: 8px; color: #c3c9c5; }

/* ---------- Оборудование ---------- */
.equip { display: grid; gap: 0; border-top: 1px solid var(--line); }
.equip__item { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding-block: 40px; border-bottom: 1px solid var(--line); }
.equip__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-soft); }
.equip__item h2 { font-size: 21px; font-weight: 500; line-height: 1.3; }
.equip__item p { margin-top: 14px; color: var(--ink-soft); }
.equip__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.equip__meta span { font-size: 12px; letter-spacing: .04em; padding: 5px 10px; background: var(--bg-soft); border: 1px solid var(--line); }

/* ---------- Акции ---------- */
.promo { display: grid; grid-template-columns: 72px 200px minmax(0, 1fr) 160px auto; align-items: center; gap: 24px; padding-block: 36px; border-top: 1px solid #aeb7b1; border-bottom: 1px solid #aeb7b1; }
.promo__num { font: 300 30px/1 var(--font-num); color: var(--muted); }
.promo__benefit { font: 700 40px/1 var(--font-num); color: var(--coral); }
.promo__benefit small { display: block; margin-top: 8px; font: 600 11px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.promo h2 { font-size: 22px; font-weight: 500; }
.promo p { color: var(--ink-soft); margin-top: 6px; }
.promo__term { font-size: 14px; color: var(--ink-soft); }
.promo__term b { display: block; color: var(--ink); font-family: var(--font-num); }

/* ---------- Документы-сканы ---------- */
.scans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.scans a { display: block; border: 1px solid var(--line); background: #fff; }
.scans img { width: 100%; height: auto; }
.scope-table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; }
.scope-table th, .scope-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.scope-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 820px; padding-bottom: 96px; color: var(--ink-soft); }
.prose h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 40px 0 12px; }
.prose p, .prose li { margin: 0 0 10px; }

@media (max-width: 980px) {
  .svc, .equip__item { grid-template-columns: 1fr; gap: 20px; }
  .equip__item img { max-width: 360px; }
  .promo { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Иллюстрации ---------- */
.hero__ellipse { position: absolute; inset: 6% -4% auto auto; width: 96%; opacity: .5; pointer-events: none; }
.hero__slides { position: relative; aspect-ratio: 1100 / 1500; max-height: 600px; margin-inline: auto; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 2s ease-in-out; }
.hero__slides img.is-active { opacity: 1; }
.precision__head { position: relative; }
.precision__art { position: absolute; right: -40px; top: -150px; width: 220px; opacity: .35; pointer-events: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 40px; }
.gallery a { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }
.logos__item img { max-width: 100%; object-fit: contain; }
@media (max-width: 980px) { .precision__art { display: none; } .hero__slides { max-height: 380px; } }

/* ---------- Правки после первого просмотра ---------- */
.object { margin: 0; }
.objects__track { grid-auto-columns: clamp(260px, 30vw, 380px); }
.logos { grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; }
.logos__item { min-height: 140px; }
.logos__item img { max-height: 84px; }
.contact-list { align-content: start; }
.precision__art { display: none; }
.hero__formulas { height: 96px; margin-top: 28px; }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos__item { min-height: 110px; padding: 18px; } }
@media (max-width: 560px) { .stats { margin-top: 32px; } .hero__actions .btn { flex: 1 1 100%; } }

/* Документы: показываем лист целиком, без обрезки */
.doc img { aspect-ratio: 4 / 3; object-fit: contain; object-position: center; background: #fff; padding: 12px; border-bottom: 1px solid var(--line); }

/* ---------- Прайс-лист (таблица из data/price.xlsx) ---------- */
.print-only { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price__how { margin-top: 24px; padding: 18px 22px; background: var(--bg-soft); border-left: 3px solid var(--green-700); font-size: 15px; color: var(--ink-soft); }
.price__how ul { margin: 8px 0 0; padding-left: 18px; }
.price__how li { margin-top: 4px; }
.price__tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.price__search { flex: 1 1 320px; }
.price__search input { width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; border: 1px solid #c8ccc8; background: #fff; }
.price__search input:focus { outline: 2px solid var(--green-700); outline-offset: -1px; }
.price__count { color: var(--muted); font-size: 14px; }
.price__toc { margin-top: 14px; font-size: 15px; }
.price__toc summary { cursor: pointer; color: var(--green-700); font-weight: 600; }
.price__toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.price__toc li { margin: 4px 0; break-inside: avoid; }
.price__toc a { color: var(--ink-soft); }
.price__wrap { margin-top: 20px; }
.pt { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.pt thead th { position: sticky; top: 68px; z-index: 2; background: var(--green-800); color: #fff; font-weight: 600; font-size: 13px; text-align: left; padding: 12px 10px; vertical-align: bottom; }
.pt .n { text-align: right; white-space: nowrap; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.pt td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pt td:nth-child(2) { color: var(--ink-soft); font-size: 13px; overflow-wrap: anywhere; }
.pt .pt-name small { color: var(--muted); }
.pt .e { color: #b5b9b5; }
.pt .pt-final { font-weight: 700; color: var(--green-800); }
.pt tr.pt-item:hover td { background: #f3f6f3; }
.pt .pt-h1 th { scroll-margin-top: 120px; text-align: left; padding: 22px 10px 10px; font-size: 18px; font-weight: 600; color: var(--green-800); border-bottom: 2px solid var(--green-700); background: #fff; }
.pt .pt-h2 th { text-align: left; padding: 14px 10px 6px; font-size: 14px; font-weight: 600; font-style: italic; color: var(--ink-soft); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.pt mark { background: #ffe58a; color: inherit; padding: 0; }
.price__empty { padding: 24px 0; color: var(--muted); }
@media screen and (max-width: 900px) {
  .price__toc ol { columns: 1; }
  .pt thead { display: none; }
  .pt, .pt tbody, .pt tr, .pt td, .pt th { display: block; width: 100%; }
  .pt tr.pt-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .pt tr.pt-item td { border: 0; padding: 3px 0; }
  .pt td.pt-name { grid-column: 1 / -1; font-weight: 500; padding-bottom: 8px; }
  .pt tr.pt-item td:not(.pt-name)::before { content: attr(data-label); display: block; font-family: var(--font); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  .pt .n { text-align: left; }
  .pt td.pt-final { grid-column: 1 / -1; font-size: 17px; }
}
@media print {
  .header, .footer, #zayavka, .page-head .hero__actions, .back, .price__tools, .price__toc, .price__empty { display: none !important; }
  body { font-size: 11px; }
  .page-head { display: none !important; }
  .print-only { display: block !important; }
  .price .section-title { font-size: 20px !important; margin-top: 4px; }
  .price { padding-bottom: 0 !important; }
  .pt { font-size: 10px; }
  .pt thead th { position: static; background: #fff !important; color: #000; border-bottom: 2px solid #000; font-size: 9px; padding: 6px 5px; }
  .pt td:nth-child(2) { font-size: 9.5px; }
  .pt thead { display: table-header-group; }
  .pt tr { break-inside: avoid; }
  .pt td { padding: 5px 6px; }
  .pt .pt-h1 th { font-size: 13px; break-after: avoid; }
  .pt .pt-h2 th { break-after: avoid; }
  .price__how { font-size: 10px; padding: 8px 12px; }
  .reveal, .is-hidden { opacity: 1 !important; transform: none !important; }
}

/* ---------- Анимация (как на прежнем сайте) ---------- */
.ruler { overflow: hidden; margin-top: 56px; }
.ruler img { display: block; width: calc(100% + 120px); max-width: none; margin-left: -60px; height: auto; opacity: .55; }
.contacts__left { display: flex; flex-direction: column; gap: 40px; }
.byuksy { width: 190px; height: auto; margin-left: 10px; transform-origin: 50% 90%; }
.doc img { transition: transform .3s ease; }
.doc { overflow: hidden; }
.doc:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  /* плашки на первом экране медленно плавают */
  .hero__tag--a { animation: tagA 48s linear infinite; }
  .hero__tag--b { animation: tagB 44s linear infinite; }
  @keyframes tagA { 0%,100% { transform: translate(0,0); } 45% { transform: translate(-14px,-150px); } 75% { transform: translate(12px,-10px); } }
  @keyframes tagB { 0%,100% { transform: translate(0,0); } 45% { transform: translate(-4px,160px); } 75% { transform: translate(-20px,-20px); } }
  /* формулы дрейфуют и растворяются */
  .hero__formulas span { animation: 25s linear infinite; }
  .hero__formulas .f1 { animation-name: f1; }
  .hero__formulas .f2 { animation-name: f2; animation-delay: -8s; }
  .hero__formulas .f3 { animation-name: f3; animation-delay: -16s; }
  @keyframes f1 { 0% { transform: translate(0,0); opacity: 1; } 40% { transform: translate(40px,24px); opacity: 0; } 41% { transform: translate(-6px,-14px); opacity: 0; } 100% { transform: translate(0,0); opacity: 1; } }
  @keyframes f2 { 0% { transform: translate(0,0); opacity: 1; } 40% { transform: translate(90px,-40px); opacity: 0; } 41% { transform: translate(-6px,-14px); opacity: 0; } 100% { transform: translate(0,0); opacity: 1; } }
  @keyframes f3 { 0% { transform: translate(0,0); opacity: 1; } 40% { transform: translate(40px,-60px); opacity: 0; } 41% { transform: translate(-6px,-14px); opacity: 0; } 100% { transform: translate(0,0); opacity: 1; } }
  /* линейка ездит туда-обратно */
  .ruler img { animation: ruler 15s ease-in-out infinite alternate; }
  @keyframes ruler { from { transform: translateX(-50px); } to { transform: translateX(50px); } }
  /* бюксы покачиваются */
  .byuksy { animation: sway 5s ease-in-out infinite alternate; }
  @keyframes sway { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-9deg); } 100% { transform: translateY(0) rotate(4deg); } }
  /* появление блоков: слева, справа, с приближением */
  .reveal--left, .reveal--right, .reveal--zoom { transition: opacity 1.6s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal--left.is-hidden { transform: translateX(-100px); }
  .js .reveal--right.is-hidden { transform: translateX(100px); }
  .js .reveal--zoom.is-hidden { transform: scale(.9); }
}
@media (max-width: 900px) { .byuksy { width: 140px; } .js .reveal--left.is-hidden, .js .reveal--right.is-hidden { transform: translateX(0) translateY(24px); } }
body { overflow-x: clip; }

/* ---------- Первый экран: глубина (два кольца, прибор между ними, параллакс) ---------- */
.hero__ellipse { display: none; }
.hero__art { --px: 0; --py: 0; }
.hero__slides { z-index: 2; translate: calc(var(--px) * 10px) calc(var(--py) * 8px); transition: translate .6s cubic-bezier(.2,.7,.2,1); }
.hero__ring { position: absolute; left: 50%; top: 47%; height: auto; pointer-events: none; transform: translate(-50%, -50%); transition: translate .6s cubic-bezier(.2,.7,.2,1); }
.hero__art img.hero__ring--back { width: 104%; opacity: .2; z-index: 1; translate: calc(var(--px) * 4px) calc(var(--py) * 3px); }
.hero__art img.hero__ring--front { width: 80%; opacity: .2; z-index: 3; translate: calc(var(--px) * 22px) calc(var(--py) * 16px); }
.hero__floor { position: absolute; left: 50%; bottom: 1%; width: 70%; height: 9%; transform: translateX(-50%); z-index: 0;
  background: radial-gradient(closest-side, rgba(20,30,25,.12), rgba(20,30,25,0)); filter: blur(2px); translate: calc(var(--px) * -6px) 0; transition: translate .6s; }
.hero__dash { position: absolute; z-index: 4; width: 30px; height: 1px; background: #c0baba; opacity: .7; }
.hero__dash::after { content: ""; position: absolute; left: 15px; top: 14px; width: 30px; height: 1px; background: inherit; }
.hero__dash--tr { right: -2%; top: 2%; }
.hero__dash--bl { left: -6%; bottom: 6%; }
.hero__tag {
  z-index: 5; padding: 7px 18px; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: #3c3a3a;
  background: linear-gradient(90deg, rgba(150,150,150,.55), rgba(185,185,185,.45) 60%, rgba(220,220,220,0));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  translate: calc(var(--px) * 30px) calc(var(--py) * 22px); transition: translate .6s cubic-bezier(.2,.7,.2,1);
}
.hero__tag--b { padding-left: 34px; background: linear-gradient(270deg, rgba(150,150,150,.55), rgba(185,185,185,.45) 60%, rgba(220,220,220,0)); }
.hero__tag::after { content: ""; position: absolute; top: 50%; width: 46px; height: 1px; background: #c8c8c8; }
.hero__tag--a::after { left: calc(100% + 14px); }
.hero__tag--b::after { right: calc(100% + 10px); }
@media (max-width: 900px) { .hero__tag { font-size: 10px; padding: 5px 12px; } .hero__tag::after { width: 24px; } .hero__dash { display: none; } }

/* Слайды поменьше: конус Васильева и бюксы — в масштабе, как на прежнем сайте */
.hero__slides img.hero__slide--cone { padding: 10% 4% 6%; object-position: center bottom; }
.hero__slides img.hero__slide--byuksy { padding: 14% 18% 5%; object-position: center bottom; }

/* «Современное оборудование» — правее, на поле страницы, чтобы не закрывать прибор */
.hero__tag--b { right: calc(-1 * min(80px, max(16px, (100vw - 1200px) / 2 + 16px))); padding-right: 14px; padding-left: 20px;
  background: linear-gradient(270deg, rgba(150,150,150,.55), rgba(180,180,180,.42) 80%, rgba(220,220,220,.1)); }
@media (max-width: 900px) { .hero__tag--b { right: -2%; padding-left: 14px; } }

/* Акции: несколько предложений подряд + плашка внизу */
.promo + .promo { border-top: 0; }
.promo:not(.promo--main) .promo__benefit { color: var(--green-700); }
.promo .btn { white-space: nowrap; }
.promo-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 28px 32px; background: var(--green-800); color: #fff; }
.promo-cta b { display: block; font-size: 20px; font-weight: 600; }
.promo-cta span { display: block; margin-top: 6px; color: #b9c6be; font-size: 15px; }
.promo-cta .btn--primary { background: var(--coral); border-color: var(--coral); }
.promo-cta .btn--primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); }

/* ---------- Новости ---------- */
.news-section { padding-bottom: 96px; }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.news-card:hover { border-color: var(--green-700); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15, 30, 22, .08); }
.news-card time { font: 600 12px/1 var(--font-num); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.news-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.news-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.news-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.news-card__tags span { font-size: 12px; padding: 4px 10px; background: var(--bg-soft); color: var(--ink-soft); }
.news-card__more { color: var(--green-700); font-weight: 600; font-size: 14px; }
.news-empty { color: var(--muted); }
.article { max-width: 820px; padding-block: 64px 48px; }
.article .back { display: inline-block; margin-bottom: 28px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.article .back:hover { color: var(--green-700); }
.article__meta { font: 600 13px/1.4 var(--font-num); color: var(--muted); }
.article__title { margin-top: 12px; font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.2; }
.article__lead { margin-top: 18px; font-size: 19px; color: var(--ink-soft); }
.article__body { margin-top: 32px; }
.article__body h2 { margin-top: 36px; font-size: 22px; font-weight: 600; }
.article__body p, .article__body ul { margin-top: 14px; font-size: 17px; line-height: 1.65; }
.article__body ul { padding-left: 22px; }
.article__body li { margin-top: 8px; }
.article__source { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article__source a { color: var(--green-700); }
.article__cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 32px; padding: 24px 28px; background: var(--bg-soft); border-left: 3px solid var(--green-700); }
.article__cta b { font-size: 18px; font-weight: 600; }
.news-more { padding-bottom: 96px; }
.news-more .news-list { margin-top: 32px; }
.nav a { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 981px) { .nav { gap: 16px; font-size: 14px; } .nav .pill { padding-inline: 12px; } }

/* ---------- Калькулятор ---------- */
.calc { padding-bottom: 96px; }
.calc-head p a { color: var(--green-700); }
.calc-tools { margin-top: 0; }
.calc-only { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.calc-reset { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.calc-reset:hover { color: var(--coral); }
.cc { width: 100%; margin-top: 20px; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.4; }
.cc thead th { position: sticky; top: 68px; z-index: 2; background: var(--green-800); color: #fff; font-size: 13px; font-weight: 600; text-align: left; padding: 12px 10px; }
.cc .n { text-align: right; }
.cc td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cc-name small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.cc-price, .cc-sum { text-align: right; white-space: nowrap; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.cc-sum { font-weight: 700; color: var(--green-800); }
.cc-qty { text-align: right; }
.cc-qty input { width: 84px; padding: 8px 10px; font: 600 15px/1 var(--font-num); text-align: right; border: 1px solid #c8ccc8; background: #fff; }
.cc-qty input:focus { outline: 2px solid var(--green-700); outline-offset: -1px; }
.cc tr.is-on td { background: #eef5f0; }
.cc tr.is-on .cc-qty input { border-color: var(--green-700); }
.cc-item--req .cc-price { color: var(--muted); font-family: var(--font); }
.cc-req { color: var(--green-700); font-weight: 600; white-space: nowrap; }
.cc-h1 th { text-align: left; padding: 22px 10px 10px; font-size: 17px; font-weight: 600; color: var(--green-800); border-bottom: 2px solid var(--green-700); background: #fff; }
.cc-h2 th { text-align: left; padding: 12px 10px 6px; font-size: 14px; font-weight: 600; font-style: italic; color: var(--ink-soft); background: var(--bg-soft); }
.calc-more { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.calc-more a { color: var(--green-700); font-weight: 600; }
.calc-total { scroll-margin-top: 90px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; margin-top: 32px; padding: 28px 32px; background: var(--green-800); color: #fff; }
.calc-total__row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; color: #c9d4cd; }
.calc-total__row b { font-family: var(--font-num); color: #fff; font-weight: 600; }
.calc-total__grand { border-bottom: 0; padding-top: 12px; font-size: 18px; color: #fff; }
.calc-total__grand b { font-size: 28px; font-weight: 700; }
.calc-total.no-vat .calc-vat, .calc-total.no-vat .calc-total__row:nth-child(2) { display: none; }
.calc-total__words { margin-top: 8px; font-size: 13px; color: #b9c6be; }
.calc-total__side { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.calc-total__side .btn { width: 100%; }
.calc-total__side .btn--primary { background: var(--coral); border-color: var(--coral); }
.calc-total__side .btn--primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.calc-total__side .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.calc-vat-toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.calc-vat-toggle input { width: 18px; height: 18px; accent-color: var(--coral); }
.calc-note { margin-top: 16px; padding: 14px 18px; background: var(--bg-soft); border-left: 3px solid var(--coral); font-size: 14px; color: var(--ink-soft); transition: background .3s; }
.calc-note.flash { background: #ffe3df; }
.calc-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 20px; background: var(--green-800); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 15px; }
.calc-bar b { font-family: var(--font-num); }
.calc-bar .btn { padding: 10px 16px; background: var(--coral); border-color: var(--coral); }
@media screen and (max-width: 760px) {
  .cc colgroup { display: none; }
  .cc thead { display: none; }
  .cc, .cc tbody, .cc tr, .cc td, .cc th { display: block; width: 100%; }
  .cc tr.cc-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cc tr.cc-item td { border: 0; padding: 0; background: none !important; }
  .cc td.cc-name { grid-column: 1 / -1; }
  .cc td.cc-price { text-align: left; color: var(--ink-soft); }
  .cc td.cc-price::before { content: "Цена: "; color: var(--muted); font-family: var(--font); }
  .cc td.cc-qty { grid-row: 2; grid-column: 2; }
  .cc td.cc-sum { grid-column: 1 / -1; text-align: left; }
  .cc td.cc-sum::before { content: "Сумма: "; color: var(--muted); font-weight: 400; font-family: var(--font); }
  .cc tr.is-on { background: #eef5f0; padding-inline: 8px; }
  .calc-total { grid-template-columns: 1fr; padding: 22px 18px; }
  .calc-bar { width: calc(100% - 24px); justify-content: space-between; }
}
@media print {
  .calc-head, .calc-tools, .calc-more, .calc-total__side, .calc-bar, .calc-empty { display: none !important; }
  .calc-print-head { display: block !important; margin-bottom: 12px; font-size: 11px; }
  .calc-print-head h2 { font-size: 18px; margin: 8px 0 4px; }
  .cc thead th { position: static; background: #fff !important; color: #000; border-bottom: 2px solid #000; font-size: 10px; }
  .cc tr.cc-item:not(.is-on), .cc tr.cc-h1:not(.has-on), .cc tr.cc-h2:not(.has-on) { display: none !important; }
  .cc tr.is-on td { background: #fff !important; }
  .cc { font-size: 10px; }
  .cc-qty input { border: 0; padding: 0; width: auto; font-size: 11px; }
  .calc-total { display: block; background: #fff !important; color: #000; padding: 10px 0; border-top: 2px solid #000; }
  .calc-total__row, .calc-total__row b, .calc-total__grand, .calc-total__words { color: #000 !important; border-color: #ccc; }
  .calc-note { border-left-color: #000; background: #fff; font-size: 10px; }
}
.calc-bar[hidden], .calc-bar.is-away { display: none !important; }
@media print { .cc-h1 th { font-size: 12px; padding: 10px 6px 4px; } .cc-h2 th { font-size: 10px; } .calc-total__grand b { font-size: 18px; } }
.btn--sub { flex-direction: column; gap: 4px; padding-block: 8px; }
.btn--sub small { font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: none; opacity: .85; }
