/* ERC-Ural — redesign 2026-10. One stylesheet for all pages; no build step.
   Tokens follow the UX UI Pro "Trust & Authority" system: navy ink, one blue for actions. */

:root {
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --tint: #eef4fa;
  --tint-strong: #dbe8f5;
  --accent: #0369a1;
  --accent-hover: #075985;
  --accent-soft: #e0f2fe;
  --alert: #b91c1c;
  --alert-soft: #fef2f2;
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --on-navy: #e2e8f0;
  --on-navy-muted: #a5b4c8;
  --focus: #0ea5e9;

  --font: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-2: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --container: 1200px;
  --gutter: 16px;
  --section: 56px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; --section: 72px; } }
@media (min-width: 1024px) { :root { --section: 96px; --header-h: 84px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 700; overflow-wrap: break-word; }
strong, b { font-weight: 600; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: var(--on-navy); font-size: .875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding-block: 8px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar .icon { color: #7dd3fc; width: 1.05em; height: 1.05em; }
.topbar strong { color: #fff; font-weight: 600; letter-spacing: .02em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* solid, no backdrop-filter: a filter would become the containing block of the fixed mobile call bar */
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-2); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { margin: 0; font-size: 1rem; flex: none; }
.brand a { display: block; border-radius: var(--radius-s); }
.brand img { height: 44px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 54px; } }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 2px; }
.nav__list a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 11px; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .925rem; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav__list a:hover { background: var(--tint); color: var(--accent-hover); }
.nav__list a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.header-contacts { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  font-size: 1rem; letter-spacing: .01em; white-space: nowrap; transition: background-color .15s var(--ease);
}
.header-phone:hover { background: var(--accent-hover); color: #fff; }
.header-wa { display: inline-flex; border-radius: 50%; }
.header-wa img { width: 40px; height: auto; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* tablet, small laptop & phone: nav becomes a drop-down panel, phone + WhatsApp become a bottom call bar.
   Logo + four menu items + phone need ~1220px, so the full bar starts at 1280px. */
@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 2px; max-width: var(--container); margin-inline: auto; }
  .nav__list a { font-size: 1.05rem; padding: 12px 14px; }
  .header-contacts {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: center;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(15, 23, 42, .25);
  }
  .header-phone { flex: 1; justify-content: center; max-width: 420px; min-height: 48px; font-size: 1.05rem; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-s); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 1rem;
  letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); border-color: currentColor; }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent-soft); color: var(--navy); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--white { background: var(--surface); }
.section__head { max-width: 820px; margin-bottom: 32px; }
.section__title { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2rem); letter-spacing: .01em; }
.section__title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 16px;
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }

/* ---------- hero ---------- */
.hero { background: var(--tint); padding-block: 40px 56px; position: relative; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-block: 72px 88px; } }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.hero__eyebrow, .hero__city {
  margin: 0; font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); font-weight: 600; letter-spacing: .14em; color: var(--accent);
}
.hero__title {
  margin: 10px 0 12px; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.005em;
}
.hero__title strong { font-weight: 700; }
.hero__city { color: var(--ink); }
.hero__lead { margin: 20px 0 0; font-size: 1.1rem; color: var(--muted); max-width: 34ch; }
.hero__price {
  display: inline-flex; align-items: baseline; gap: .3em; margin: 28px 0 0; padding: 14px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 1.35rem; color: var(--ink);
}
.hero__price strong { font-size: 2.6rem; line-height: 1; color: var(--accent); font-weight: 700; }
.hero__actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__more { text-transform: none; }
.hero__more .icon { width: 1.1em; height: 1.1em; }
.hero__media { justify-self: center; width: 100%; max-width: 520px; }
.hero__media .card { padding: 20px; border-radius: var(--radius-l); }
.hero__media img { width: 100%; border-radius: var(--radius); }

/* page hero for inner pages */
.page-hero { background: var(--tint); padding-block: 48px; }
@media (min-width: 1024px) { .page-hero { padding-block: 72px; } }
.page-hero__title { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.75rem); max-width: 22ch; }
.page-hero__lead { margin: 16px 0 0; font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.page-hero__meta { margin: 24px 0 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
.page-hero__meta .icon { color: var(--accent); }
.page-hero__meta strong { color: var(--accent); }

/* ---------- lead: price, notice, order form ---------- */
.lead__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .lead__grid { grid-template-columns: 1.15fr .85fr; gap: 40px; } }
.lead__info { display: grid; gap: 20px; }
.price-note { padding: 24px; font-size: 1.08rem; color: var(--text); }
.price-note a { font-weight: 600; white-space: nowrap; }
.notice {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius);
  background: var(--navy); color: var(--on-navy);
}
.notice .icon { width: 28px; height: 28px; color: #fca5a5; margin-top: 2px; }
.notice__text { margin: 0; color: #fff; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); font-weight: 600; line-height: 1.45; letter-spacing: .01em; }
.notice__text strong { color: #fca5a5; font-weight: 700; }

.order { padding: 28px; border-top: 4px solid var(--accent); }
@media (min-width: 640px) { .order { padding: 32px; } }
.order__title { margin: 0 0 20px; font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field .req { color: var(--alert); }
.field input {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid #cbd5e1; border-radius: var(--radius-s);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder { color: #64748b; }
.field input:hover { border-color: #94a3b8; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(3, 105, 161, .18); }
.field input:user-invalid { border-color: var(--alert); }
.order .btn { width: 100%; font-size: 1.05rem; letter-spacing: .08em; }
.order__result { margin-top: 12px; font-weight: 600; color: var(--ink); min-height: 0; }
.order__result:empty { display: none; }
.order__consent { margin: 16px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ---------- facts list (numbered) ---------- */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr .6fr; gap: 48px; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: fact; }
.facts > li {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 22px; counter-increment: fact;
}
.facts > li::before {
  content: counter(fact, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem;
}
.facts--check > li::before {
  content: ""; background: var(--accent-soft) center / 22px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.facts p { margin: 0; font-size: 1.06rem; align-self: center; }
.media-card { margin: 0; padding: 16px; }
.media-card img { margin-inline: auto; border-radius: var(--radius-s); }
.media-card--narrow { max-width: 320px; justify-self: center; width: 100%; }

.callout {
  margin-top: 28px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius);
  background: var(--alert-soft); border: 1px solid #fecaca; border-left: 5px solid var(--alert);
}
.callout .icon { color: var(--alert); width: 26px; height: 26px; margin-top: 1px; }
.callout p { margin: 0; color: #450a0a; font-size: 1.05rem; }
.callout strong { font-weight: 600; }

/* ---------- accreditation card ---------- */
.accr { padding: 24px; display: grid; gap: 16px; text-align: center; }
.accr__label { margin: 0; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.accr__label .icon { display: inline-block; vertical-align: -4px; color: var(--accent); margin-right: 6px; }
.accr__num { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.accr img { border-radius: var(--radius-s); border: 1px solid var(--line); margin-inline: auto; }
.cert-figure { margin: 0 auto; max-width: 980px; padding: 16px; }
@media (min-width: 640px) { .cert-figure { padding: 24px; } }
.cert-figure img { width: 100%; border-radius: var(--radius-s); }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; padding-block: 40px; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta__text { margin: 0; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-weight: 600; letter-spacing: .04em; color: #fff; }
.cta__text strong { color: #7dd3fc; font-weight: 700; }
.cta__phone {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 26px; border-radius: 999px;
  background: #fff; color: var(--navy); text-decoration: none; font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); font-weight: 700;
  white-space: nowrap; transition: background-color .15s var(--ease);
}
.cta__phone:hover { background: var(--accent-soft); color: var(--navy); }
.cta__phone .icon { color: var(--accent); }
.cta__phone strong { font-weight: 700; }
.cta--light { background: var(--accent-soft); color: var(--ink); }
.cta--light .cta__text { color: var(--ink); }
.cta--light .cta__phone { background: var(--accent); color: #fff; }
.cta--light .cta__phone .icon { color: #fff; }
.cta--light .cta__phone:hover { background: var(--accent-hover); color: #fff; }

/* ---------- heat meter models ---------- */
.models { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.model { display: flex; flex-direction: column; padding: 16px 16px 20px; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.model:hover { box-shadow: var(--shadow-2); border-color: var(--tint-strong); }
.model__img { order: -1; margin-bottom: 14px; aspect-ratio: 600 / 511; display: grid; place-items: center; }
.model__img img { width: 100%; height: 100%; object-fit: contain; }
.model h4 { font-size: 1.08rem; letter-spacing: .04em; }
.model h5 { margin-top: 6px; font-size: .95rem; font-weight: 400; color: var(--muted); line-height: 1.45; }

/* ---------- prose (privacy policy) ---------- */
.prose { max-width: 780px; margin-inline: auto; padding: 28px; }
@media (min-width: 640px) { .prose { padding: 48px; } }
.prose h3 { font-size: 1.2rem; margin: 32px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { font-size: 1.05rem; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 6px 0; font-size: 1.05rem; }
.prose li::marker { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding-block: 56px 0; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; } }
.contacts { list-style: none; display: grid; gap: 14px; }
.contacts > li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .06); }
.contacts .icon-wrap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(125, 211, 252, .12); color: #7dd3fc; }
.contacts p { margin: 0; }
.contacts__label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--on-navy-muted); margin-bottom: 4px !important; }
.contacts__value { color: #fff; font-size: 1.08rem; }
.contacts__value a { text-decoration: none; font-weight: 700; font-size: 1.3rem; }
.contacts__value a:hover { text-decoration: underline; }
.contacts__value strong { color: #fca5a5; font-weight: 600; }
.map { display: grid; gap: 12px; }
.map__link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #fff; }
.map__link img { width: 100%; transition: transform .3s var(--ease); }
.map__link:hover img { transform: scale(1.015); }
.map__open { margin: 0; }
.map__open a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.map__open a:hover { text-decoration: underline; }
.map__open .icon { color: #7dd3fc; }
.footer__bottom { margin-top: 40px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: var(--on-navy-muted); }
.footer__bottom p { margin: 0; }
.footer__bottom strong { font-weight: 400; }

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

/* ---------- small phones ---------- */
@media (max-width: 479px) {
  .topbar__inner { font-size: .8rem; justify-content: flex-start; }
  .brand img { height: 38px; }
  /* long single words like «КОНФИДЕНЦИАЛЬНОСТИ» must fit a 328px column */
  .page-hero__title { font-size: 1.45rem; }
  .hero__price strong { font-size: 2.2rem; }
  .cta__inner { justify-content: center; text-align: center; }
  .cta__phone { width: 100%; justify-content: center; }
  .facts > li { padding: 16px; gap: 12px; }
  .notice, .price-note, .callout { padding: 18px; }
}

@media print {
  .topbar, .nav, .nav-toggle, .header-contacts, .cta, .order { display: none !important; }
  .site-header { position: static; }
  body { padding: 0; background: #fff; }
}
