/* ГеоМаяк — geom.by */
:root {
  --accent: #e13a3a;
  --accent-dark: #b92a2a;
  --ink: #1f2328;
  --ink-soft: #4a5058;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --radius: 10px;
  --wrap: 1140px;
  --prose: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 .6em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-top: .3em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--prose); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { flex: none; }
.logo img { width: 160px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-services > button {
  font: inherit; font-size: 16px; color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: 10px 12px; border-radius: 6px; cursor: pointer;
}
.nav > a:hover, .nav-services > button:hover, .nav > a[aria-current="page"] { color: var(--accent); }
.nav-services { position: relative; }
.nav-services > button::after { content: " ▾"; font-size: .8em; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 8px; margin: 0; list-style: none;
}
.dropdown a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; font-size: 15px; }
.dropdown a:hover { background: var(--bg-soft); color: var(--accent); }
.dropdown li { margin: 0; }
.nav-services:hover .dropdown, .nav-services:focus-within .dropdown, .nav-services.open .dropdown { display: block; }
.header-phone {
  flex: none; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--accent); padding: 9px 16px; border-radius: 999px;
}
.header-phone:hover { background: var(--accent-dark); color: #fff; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; background: #2a2f36; color: #fff; overflow: hidden; }
.hero picture img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,23,27,.88) 0%, rgba(20,23,27,.7) 45%, rgba(20,23,27,.25) 100%);
}
.hero .wrap { z-index: 2; }
.section-soft .facts li { background: #fff; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 720px; margin: 0 0 .4em; }
.hero p { font-size: 1.15rem; max-width: 640px; color: #f1f1f1; }
.hero .btns { margin-top: 24px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; font-size: 16px; line-height: 1.2;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { color: var(--accent); }
.btn-viber { background: #7360f2; color: #fff; }
.btn-viber:hover { background: #5b48d8; color: #fff; }
.btn-tg { background: #229ed9; color: #fff; }
.btn-tg:hover { background: #1a86ba; color: #fff; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Page head */
.page-head { padding-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: var(--prose); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 8px; padding: 0; list-style: none; }
.facts li { background: var(--bg-soft); border-radius: var(--radius); padding: 18px; margin: 0; font-size: 15px; line-height: 1.45; }
.facts svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 8px; }
.facts b { display: block; font-size: 16px; margin-bottom: 4px; }

/* Content */
main { display: block; }
.content { padding-top: 8px; padding-bottom: 24px; }
.content, .lead, .faq, .card { overflow-wrap: break-word; }
.content h2 { padding-top: .4em; border-top: 1px solid var(--line); }
.content h2:first-child { border-top: 0; padding-top: 0; }
.content table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 15px; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { background: var(--bg-soft); }
.note { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.2em; }

/* Section */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section h2 { margin-top: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.06); color: var(--ink); }
.card h3 { margin: 0 0 .4em; font-size: 1.1rem; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .more { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 15px; }

/* FAQ */
.faq { max-width: var(--prose); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-top: 10px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Contact CTA */
.cta { background: #24292f; color: #fff; border-radius: 16px; padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.cta h2 { color: #fff; margin: 0 0 .4em; border: 0; padding: 0; }
.cta p { color: #d6d9dd; margin: 0; }
.cta .btns { justify-content: flex-end; }
.cta .btn-ghost { color: #fff; }

/* Contacts page */
.contact-list { list-style: none; padding: 0; font-size: 1.1rem; }
.contact-list li { margin-bottom: .7em; }
.contact-list b { display: inline-block; min-width: 110px; color: var(--muted); font-weight: 500; }

/* Footer */
.site-footer { background: #1b1f24; color: #b8bec6; font-size: 15px; margin-top: 56px; }
.site-footer a { color: #e6e8eb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 44px 20px 28px; }
.footer-grid h2 { font-size: 1rem; color: #fff; margin: 0 0 .8em; border: 0; padding: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4em; }
.footer-bottom { border-top: 1px solid #2d333b; padding: 16px 20px; font-size: 14px; }

/* Mobile sticky call bar */
.callbar { display: none; }

@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .cta .btns { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .header-inner { min-height: 58px; gap: 12px; }
  .logo img { width: 132px; }
  .header-phone { display: none; }
  .menu-toggle {
    display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink);
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: stretch; padding: 8px 12px 16px; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 58px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav-services > button { text-align: left; width: 100%; padding: 12px 8px; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; }
  .nav-services > button::after { content: ""; }
  .hero .wrap { padding-top: 44px; padding-bottom: 44px; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .facts li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 14px; }
  .facts svg { margin: 0; grid-row: span 2; }
  .section { padding: 40px 0; }
  .cta { padding: 24px; border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .callbar {
    display: grid; grid-template-columns: 2fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; font-weight: 600; text-decoration: none; font-size: 15px; }
  .callbar a:first-child { background: var(--accent); color: #fff; }
  .callbar a:nth-child(2) { color: #7360f2; }
  .callbar a:nth-child(3) { color: #229ed9; }
  .callbar svg { width: 18px; height: 18px; }
}

@media print {
  .site-header, .callbar, .cta, .site-footer { display: none; }
}
