:root {
  --red: #a41e22;
  --red-dark: #7d1518;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --gray: #6b6b6b;
  --line: #e6e2dd;
  --paper: #ffffff;
  --paper-warm: #f7f5f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 17, 17, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 7px; padding-bottom: 7px; gap: 12px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #f0b9ba; }
.topbar .tag { color: #bdbdbd; }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.logo img { height: 44px; width: auto; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a.active { color: var(--red); border-bottom-color: var(--red); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(164,30,34,.35); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f1eeea; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, #161616 0%, #262626 55%, #3d1113 100%);
  color: #fff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(164,30,34,.35), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; max-width: 860px; text-align: center; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #f0b9ba; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #f0b9ba; }
.hero p.lead { font-size: 19px; color: #d9d5d0; max-width: 640px; margin: 0 auto 36px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--paper-warm); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--gray); font-size: 17px; }
.rule { width: 56px; height: 4px; background: var(--red); border-radius: 2px; margin: 0 auto 22px; }

.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: #fdf0f0;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--red); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 15.5px; flex: 1; }
.card .more { margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--red); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card.brand { border-top: 4px solid var(--red); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .stat b { display: block; font-size: 38px; color: var(--red); line-height: 1.1; }
.stats .stat span { color: var(--gray); font-size: 14.5px; font-weight: 600; }

/* ---------- band CTA ---------- */
.band {
  background: var(--ink); color: #fff; text-align: center;
  padding: 72px 0;
}
.band h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.band p { color: #bdbdbd; margin-bottom: 30px; font-size: 17px; }
.band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- service list page ---------- */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- login page ---------- */
.portal { text-align: center; }
.portal .card { align-items: center; }
.portal .btn { margin-top: 18px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: #fdf0f0;
  display: flex; align-items: center; justify-content: center;
}
.info-item .icon svg { width: 22px; height: 22px; stroke: var(--red); }
.info-item b { display: block; font-size: 15px; }
.info-item span, .info-item a { color: var(--gray); font-size: 15px; text-decoration: none; }
.info-item a:hover { color: var(--red); }

form.contact {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
form.contact label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
form.contact label:first-child { margin-top: 0; }
form.contact input, form.contact textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 15px; background: var(--paper-warm);
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--red); background: #fff; }
form.contact button { margin-top: 22px; border: 0; cursor: pointer; width: 100%; }

/* ---------- footer ---------- */
footer.site { background: #161616; color: #a8a8a8; padding: 56px 0 32px; font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
footer.site img { height: 40px; width: auto; filter: invert(1) brightness(1.6); margin-bottom: 14px; }
footer.site h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
footer.site a { color: #a8a8a8; text-decoration: none; display: block; margin-bottom: 9px; }
footer.site a:hover { color: #fff; }
footer.site .base { border-top: 1px solid #2e2e2e; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .svc, .contact-grid, .grid.cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid.cols-3 { grid-template-columns: 1fr; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px 24px 20px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; width: 100%; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .topbar .tag { display: none; }
  .hero { padding: 64px 0 72px; }
}
