:root {
  --ink: #1a2030;
  --ink-soft: #3a4458;
  --paper: #f4f6fa;
  --paper-2: #fbfcfe;
  --rule: #c5cde0;
  --sidebar: #0f2a5c;
  --sidebar-text: #eef2fb;
  --sidebar-muted: #a8b8d8;
  --red: #c4122e;
  --red-deep: #9e0e24;
  --blue: #163a7a;
  --blue-mid: #1e4fa0;
  --glow: #ffd4da;
  --panel: #ffffff;
  --link: #c4122e;
  --link-hover: #9e0e24;
  --max: 1120px;
  --side: 220px;
  --top: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sidebar);
  color: var(--paper);
  border-bottom: 3px solid var(--red);
}
.top-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 1.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #0a1c42;
  border: 2px solid var(--red);
  box-shadow: 0 0 10px rgba(196, 18, 46, 0.35);
  display: grid;
  place-items: center;
  font: 700 9px/1.05 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
}
.logo-name {
  font: 700 1.35rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.logo-tag {
  display: block;
  font: 500 0.72rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--sidebar-muted);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  justify-content: flex-end;
}
.top-nav a {
  color: #eef2fb;
  text-decoration: none;
  font: 600 0.82rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  border-radius: 3px;
}
.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: var(--red);
  color: #fff;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--side) 1fr;
  min-height: calc(100vh - var(--top));
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--paper-2);
}

.side {
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 1.25rem 0 7rem;
  position: sticky;
  top: var(--top);
  align-self: start;
  height: calc(100vh - var(--top));
  overflow: auto;
}
.side-label {
  font: 700 0.68rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb3be;
  padding: 0.85rem 1.1rem 0.4rem;
}
.side a {
  display: block;
  color: var(--sidebar-text);
  text-decoration: none;
  font: 500 0.95rem/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0.55rem 1.1rem 0.55rem 1.25rem;
  border-bottom: 1px solid rgba(238, 242, 251, 0.15);
}
.side a:hover,
.side a[aria-current="page"] {
  background: rgba(196, 18, 46, 0.28);
  color: #fff;
  border-left: 3px solid var(--red);
  padding-left: calc(1.25rem - 3px);
}

.main { padding: 1.75rem 2rem 5rem; }
.main h1 {
  font: 700 2rem/1.15 "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.main h2 {
  font: 700 1.25rem/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 1.75rem 0 0.6rem;
  color: var(--blue);
}
.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 1.75rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  padding: 0.95rem 1rem;
}
.card h3 {
  margin: 0 0 0.3rem;
  font: 700 1rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--blue);
}
.card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.reasons { list-style: none; margin: 1rem 0 0; padding: 0; }
.reasons li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}
.reasons .num {
  font: 700 1.35rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--red);
}
.reasons h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.reasons p { margin: 0; color: var(--ink-soft); }

.sticky {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 230px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--red);
  box-shadow: 0 8px 28px rgba(15, 42, 92, 0.28);
  border-radius: 8px;
  padding: 1rem 1rem 1.05rem;
}
.sticky h2 {
  margin: 0 0 0.35rem;
  font: 700 1.05rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
}
.sticky p { margin: 0 0 0.75rem; font-size: 0.88rem; color: #d7e0f4; }
.sticky .phone {
  display: block;
  color: #fff;
  font: 700 1.05rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
  margin-bottom: 0.7rem;
}
.sticky .btn {
  display: block;
  text-align: center;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font: 700 0.85rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 0.6rem;
  border-radius: 4px;
}
.sticky .btn:hover { background: var(--red-deep); color: #fff; }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 1.5rem;
  text-align: center;
  font: 500 0.8rem/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
  border-top: 3px solid var(--red);
}
.foot a { color: var(--blue); }

@media (max-width: 800px) {
  .top-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem 0.5rem;
  }
  .logo-name {
    font-size: 1.2rem;
    white-space: nowrap;
  }
  .logo-tag {
    white-space: nowrap;
    font-size: 0.68rem;
  }
  .logo-mark { flex-shrink: 0; }
  .top-nav {
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 0.4rem;
  }
  .top-nav a {
    padding: 0.5rem 0.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-align: center;
  }
  .nav-full { display: none; }
  .shell { grid-template-columns: 1fr; border: none; }
  .side { display: none; }
  .main { padding: 1.2rem 1.05rem 8.25rem; }
  .main h1 { font-size: 1.55rem; }
  .lead { font-size: 1.05rem; }
  .services { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 2.4rem 1fr; }
  .sticky {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    border-radius: 10px 10px 0 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.85rem;
    align-items: center;
    padding: 0.75rem 0.9rem calc(0.75rem + env(safe-area-inset-bottom));
  }
  .sticky p { display: none; }
  .sticky h2 { margin: 0; font-size: 0.95rem; }
  .sticky .phone { margin: 0; font-size: 0.95rem; }
  .sticky .btn { padding: 0.7rem 0.85rem; }
  .foot { padding-bottom: 7.5rem; }
}
