/* ============================================================
   УБМ-85 — static site styles
   Zero-dependency, один файл.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f3ee;
  --ink: #23262d;
  --ink-soft: #5b6070;
  --line: #e4e1d9;
  --blue: #1d4ed8;
  --blue-dark: #16388f;
  --cta: #ea580c;
  --cta-dark: #c2410c;
  --dark: #1c2430;
  --dark-soft: #2a3442;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(28, 36, 48, .08);
  --container: 1140px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: .2px; }
.brand img { height: 40px; width: auto; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: 1.2px; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover { background: var(--bg-alt); color: var(--blue); }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta); color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 16px; border-radius: 10px; white-space: nowrap;
}
.header-phone:hover { background: var(--cta-dark); color: #fff; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 3px 0; }
@media (max-width: 860px) {
  .burger { display: block; margin-left: auto; }
  .header-phone { display: none; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(100deg, rgba(20,28,40,.94) 0%, rgba(28,42,64,.82) 45%, rgba(28,42,64,.35) 100%),
              url("../img/hero.png") center/cover no-repeat;
  padding: 88px 0 96px;
}
.hero .kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #ffd9a8; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.14; font-weight: 800; max-width: 760px; margin-bottom: 18px; }
.hero p { font-size: 18px; color: #e7eaf0; max-width: 640px; margin-bottom: 30px; }
.hero ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 34px; }
.hero ul li { font-size: 15px; color: #d4dbe6; display: flex; align-items: center; gap: 8px; }
.hero ul li::before { content: "✓"; color: #ffb066; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; transition: transform .12s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .tag { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Cards: contact / tariffs ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card .price { font-size: 26px; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.card .note { color: var(--ink-soft); font-size: 14px; }
.card ul { list-style: none; margin-top: 12px; }
.card ul li { padding: 5px 0 5px 22px; position: relative; font-size: 15px; }
.card ul li::before { content: "—"; position: absolute; left: 2px; color: var(--blue); }
.contact-line { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.contact-line a.phone { font-size: 22px; font-weight: 800; color: var(--ink); }
.contact-line a.phone:hover { color: var(--blue); }
.contact-line .who { font-size: 13px; color: var(--ink-soft); }

/* ---------- Media grid ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Two-col content (назначение/оборудование) ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.cols h3 { font-size: 21px; font-weight: 800; margin: 0 0 16px; }
.cols p { margin-bottom: 14px; color: #3d4250; }
.cols ul { list-style: none; margin-bottom: 18px; }
.cols ul li { padding: 6px 0 6px 24px; position: relative; font-size: 15.5px; color: #3d4250; }
.cols ul li::before { content: "•"; position: absolute; left: 6px; color: var(--blue); font-weight: 800; }

/* ---------- TU ---------- */
.tu-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.tu-list span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 13.5px; font-family: Consolas, monospace; color: #3d4250; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, var(--dark) 0%, var(--dark-soft) 100%); color: #fff; padding: 64px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: #c3cbd8; }

/* ---------- Works list (map page) ---------- */
.works-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 940px) { .works-layout { grid-template-columns: 1fr; } }
.works-list { display: flex; flex-direction: column; gap: 12px; }
.work-item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.work-item:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.work-item .n { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.work-item strong { display: block; font-size: 15.5px; }
.work-item small { color: var(--ink-soft); }
#map { width: 100%; height: 560px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #ececf0; position: relative; }
.map-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); background: #f0f0f4; z-index: 5; }

/* ---------- Object page ---------- */
.object-hero { background: linear-gradient(100deg, rgba(20,28,40,.9), rgba(28,42,64,.6)), url("../img/hero.png") center/cover; color: #fff; padding: 56px 0; }
.object-hero h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.object-hero .sub { color: #d4dbe6; font-size: 16px; }
.object-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 700px) { .object-meta { grid-template-columns: 1fr; } }
.object-meta .m { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.object-meta .m small { display: block; color: var(--ink-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.object-meta .m strong { font-size: 16px; }
.breadcrumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumbs a { color: var(--blue); }

/* ---------- Article ---------- */
.article { max-width: 780px; }
.article h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.article h2 { font-size: 23px; font-weight: 800; margin: 34px 0 12px; }
.article p { margin-bottom: 16px; color: #3d4250; }
.article ol { margin: 0 0 16px 24px; }
.article ol li { margin-bottom: 8px; color: #3d4250; }
.article .lead { font-size: 18px; color: var(--ink); }
.article blockquote { border-left: 4px solid var(--blue); background: var(--bg-alt); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 22px 0; color: #3d4250; }
.article figure { margin: 22px 0; }
.article figure img { border-radius: var(--radius); }
.article figure figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b9c1cf; padding: 52px 0 0; }
.footer .grid { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 860px) { .footer .grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
.footer p { font-size: 14.5px; margin-bottom: 8px; }
.footer a { color: #c9d2e0; }
.footer a:hover { color: #fff; }
.footer .logo-txt { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding: 16px 0; font-size: 13px; color: #7d8798; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 10px; }
.wa-link:hover { background: #1fb457; color: #fff; }

/* ---------- Utility ---------- */
.mt-24 { margin-top: 24px; }
.lead { font-size: 18px; color: #3d4250; }
