:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --navy: #1e3a8a;
  --blue: #2563eb;
  --accent: #f97316;
  --accent-deep: #ea580c;
  --support: #dbeafe;
  --support-2: #e0e7ff;
  --ok: #10b981;
  --ok-ink: #065f46;
  --line: #e5e7eb;
  --shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
  --sans: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --radius: 18px;
  --header: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.03em; margin: 0; }
h3 { font-size: 18px; }
main { flex: 1 0 auto; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.topline {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}
.topline-inner, .nav-bar, .wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.topline-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 40px;
}
.topline a { text-decoration: underline; text-underline-offset: 3px; }
.badge-free {
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  flex: none;
  background: #fff;
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border-width: 0 0 12px 12px;
  border-style: solid;
  border-color: transparent transparent var(--accent) transparent;
  border-bottom-right-radius: 10px;
}
.logo strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
.logo small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.nav-links a[aria-current="page"] { background: var(--support); }
.nav-check { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  line-height: 1;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-soft { background: var(--support-2); color: var(--navy); }
.btn-soft:hover { background: var(--support); }
.icon { width: 18px; height: 18px; flex: none; }
.msg-icon { width: 28px; height: 28px; border-radius: 7px; }

.hero { padding: 36px 0 12px; }
.hero-grid, .sheet-grid, .contact-grid, .why-grid, .service-grid {
  display: grid;
  gap: 20px;
}
.hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.eyebrow {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}
h1 { font-size: clamp(32px, 5vw, 52px); color: var(--navy); }
h2 { font-size: clamp(26px, 3vw, 34px); color: var(--navy); }
.lead { font-size: 18px; color: var(--muted); max-width: 42rem; margin-top: 14px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact-row .btn { flex: 1 1 0; min-width: 108px; }

.figure { margin: 0; }
.figure svg { width: 100%; height: auto; display: block; }
.hero-card, .panel, .service-card, .diag, .address-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 18px; }
.why-grid, .steps, .brand-teasers, .contact-grid.spaced { margin-top: 16px; }

.section { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; border-top: 4px solid var(--navy); }
.service-card:nth-child(2), .service-card:nth-child(5) { border-top-color: var(--accent); }
.service-card p { color: var(--muted); }
.service-card strong { font-family: var(--display); font-size: 22px; color: var(--navy); }
.more { margin-top: auto; color: var(--blue); font-weight: 800; }

.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-grid article, .step {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--line);
}
.why-grid span, .step b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--support);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 8px;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks svg { margin-top: 3px; color: var(--ok); }

.brand-teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-teasers ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-teasers a, .brand-list a, .related a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--support);
  color: var(--navy);
  font-weight: 700;
}
.brand-teasers h3 { font-size: 20px; }

.sheet { padding: 22px 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.crumbs a { color: var(--blue); }
.sheet-grid { grid-template-columns: 1.4fr 0.7fr; align-items: start; margin-top: 18px; }
.sheet-grid aside { display: grid; gap: 12px; position: sticky; top: 128px; }
.prose { display: grid; gap: 12px; color: var(--ink); }
.prose p { color: var(--muted); }
.block { margin-top: 22px; }
.works { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.diag { background: var(--support); padding: 16px; }
.diag h2 { font-size: 28px; }
.address-card { padding: 16px; display: grid; gap: 6px; }
.address-card a { color: var(--blue); font-weight: 800; }

.faq { display: grid; gap: 8px; margin-top: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.faq p { margin-top: 8px; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.directory { margin-top: 28px; }
.finder {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: #fff;
  min-width: min(280px, 100%);
}
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.letters a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--navy); }
.letter-block { margin-top: 14px; }
.letter-block h3 { font-size: 18px; margin-bottom: 8px; }
.brand-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.contact-grid { grid-template-columns: 0.9fr 1.1fr; }
.map-frame { border: 0; width: 100%; min-height: 360px; border-radius: var(--radius); background: var(--support); }
.note { color: var(--muted); }

.site-footer {
  flex: none;
  margin-top: 56px;
  background: var(--navy);
  color: #fff;
  border-top: 4px solid var(--accent);
}
.footer-main { padding: 36px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr;
  gap: 28px 32px;
  align-items: start;
}
.footer-brand { display: grid; gap: 8px; justify-items: start; }
.footer-brand .logo-mark { margin-bottom: 4px; }
.footer-brand p, .footer-contacts span { color: #dbeafe; }
.footer-label {
  display: block;
  margin-bottom: 10px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer a { color: #fff; }
.footer-links { display: grid; gap: 8px; justify-items: start; }
.footer-links a { font-weight: 700; }
.footer-contacts { display: grid; gap: 8px; justify-items: start; }
.footer-contacts a { font-weight: 800; }
.footer-messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.footer-messengers a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.footer-messengers img { width: 28px; height: 28px; border-radius: 7px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 14px 0 16px; }
.credit { margin: 0; }
.credit a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.dock {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.18);
}
.dock a {
  min-height: 64px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 800;
  animation: hop 1.8s ease-in-out infinite, ring 1.8s ease-out infinite;
}
.dock a:nth-child(1) { background: var(--navy); color: #fff; animation-delay: 0s; }
.dock a:nth-child(2) { background: var(--support-2); color: var(--navy); animation-delay: 0.15s; }
.dock a:nth-child(3) { background: #d1fae5; color: var(--ok-ink); animation-delay: 0.3s; }
.dock img { width: 32px; height: 32px; border-radius: 8px; }
.dock .icon { width: 26px; height: 26px; }

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
}

@media (max-width: 980px) {
  .hero-grid, .sheet-grid, .service-grid, .why-grid, .steps, .brand-teasers, .contact-grid {
    grid-template-columns: 1fr;
  }
  .sheet-grid aside { position: static; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-call { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav-check:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 12px; }
}
@media (max-width: 800px) {
  .dock { display: grid; }
  body { padding-bottom: 108px; }
  .site-footer { margin-top: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topline-inner { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock a { animation: none; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
