/* ============================================================
   APRIORI · EXPERT — shared styles (light, strict, modern)
   ============================================================ */

:root {
  /* surfaces */
  --bg: #f5f7fb;
  --bg-elev: #eef2f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafd;
  --border: #e1e6ee;
  --border-strong: #c8d0dd;

  /* text */
  --fg: #0e1729;
  --fg-dim: #4d5870;
  --fg-mute: #818a9c;

  /* accent — professional blue */
  --accent: #2563eb;
  --accent-hi: #1d4ed8;
  --accent-lo: #93b4f7;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-soft-2: rgba(37, 99, 235, 0.14);
  --accent-glow: rgba(37, 99, 235, 0.25);

  /* secondary accent — cool cyan */
  --accent-2: #0891b2;

  /* footer (dark contrast) */
  --footer-bg: #0e1729;
  --footer-border: #1c2638;
  --footer-fg: #c2c9d7;
  --footer-fg-dim: #8893a8;

  /* fonts — single family across all UI */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: var(--font);

  /* layout */
  --container: 1280px;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* utility */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  color: var(--fg);
}
h1 { font-size: clamp(36px, 5.5vw, 68px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); }
p  { margin: 0; }

.lead {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ===== ICON SPRITE =====
   All icons reference assets/icons.svg via <use>. Stroke/fill defaults live on
   each <symbol>; this rule just gives the wrapper a sane intrinsic size and
   color inheritance. Specific contexts (.info-icon svg, .menu-toggle svg, …)
   continue to override width/height as before. */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 16px;
  color: var(--fg);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 5px;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 18px;
}
.info-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
}
.info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.info-icon svg { width: 16px; height: 16px; }
.info-label {
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}
.info-value {
  font-size: 14px;
  color: var(--fg);
  font-weight: 700;
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:disabled,
.btn-primary[disabled],
form:has(.checkbox input[type="checkbox"]:not(:checked)) .btn-primary,
.form-card:has(.checkbox input[type="checkbox"]:not(:checked)) .btn-primary {
  background: var(--border-strong);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
  background: var(--accent-soft);
}
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ===== NAV ===== */
.site-nav {
  border-top: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active,
body[data-page="index"] .nav-link[data-nav="index"],
body[data-page="expertise"] .nav-link[data-nav="expertise"],
body[data-page="competencies"] .nav-link[data-nav="competencies"],
body[data-page="courts"] .nav-link[data-nav="courts"],
body[data-page="equipment"] .nav-link[data-nav="equipment"],
body[data-page="articles"] .nav-link[data-nav="articles"],
body[data-page="faq"] .nav-link[data-nav="faq"],
body[data-page="contacts"] .nav-link[data-nav="contacts"] { color: var(--accent); }
.nav-link.active::after,
body[data-page="index"] .nav-link[data-nav="index"]::after,
body[data-page="expertise"] .nav-link[data-nav="expertise"]::after,
body[data-page="competencies"] .nav-link[data-nav="competencies"]::after,
body[data-page="courts"] .nav-link[data-nav="courts"]::after,
body[data-page="equipment"] .nav-link[data-nav="equipment"]::after,
body[data-page="articles"] .nav-link[data-nav="articles"]::after,
body[data-page="faq"] .nav-link[data-nav="faq"]::after,
body[data-page="contacts"] .nav-link[data-nav="contacts"]::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

/* mobile menu toggle */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 80% 30%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(8, 145, 178, 0.06), transparent 60%),
    var(--bg);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 23, 41, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 23, 41, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 75%);
  z-index: 1;
}
.hero-art {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(55%, 720px);
  aspect-ratio: 1/1;
  z-index: 1;
  opacity: 0.85;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}
.hero-title {
  max-width: 18ch;
  margin: 22px 0 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-sub {
  max-width: 52ch;
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--fg-dim);
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  bottom: 36px;
  left: 0; right: 0;
  z-index: 2;
}
.hero-meta-inner {
  display: flex;
  gap: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-meta-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-meta-item strong {
  display: block;
  font-family: var(--font);
  color: var(--fg);
  font-size: 15px;
  margin-top: 4px;
  letter-spacing: -0.005em;
  text-transform: none;
}

/* ===== SECTION TITLE ===== */
section { padding: clamp(60px, 8vw, 110px) 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.sec-head h2 { max-width: 22ch; }
.sec-head .lead { margin-top: 18px; }

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.stat {
  padding: 44px 36px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num span {
  color: var(--accent);
  font-size: 0.6em;
}
.stat-label {
  margin-top: 14px;
  color: var(--fg-dim);
  font-size: 14px;
  max-width: 24ch;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(14, 23, 41, 0.03);
}
.svc-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-lo);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.15);
}
.svc-card:hover .svc-arrow {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(-45deg);
}
.svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.svc-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}
.svc-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--fg-dim);
  transition: all 0.25s;
}
.svc-arrow svg { width: 14px; height: 14px; }
.svc-card h3 {
  margin-top: auto;
  font-size: 19px;
  line-height: 1.25;
  text-wrap: balance;
}
.svc-card p {
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.55;
}
.svc-img {
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg, rgba(14, 23, 41, 0.04) 0 10px, transparent 10px 20px),
    var(--bg-elev);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
  overflow: hidden;
}
.svc-img.has-photo {
  background: #fff;
  border-style: solid;
  border-color: var(--border);
  padding: 0;
}
.svc-img.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* media placeholder */
.ph {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(14, 23, 41, 0.025) 0px,
      rgba(14, 23, 41, 0.025) 10px,
      transparent 10px,
      transparent 20px
    ),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: none;
  border-radius: 6px;
  pointer-events: none;
}

/* ===== FOOTER (dark contrast) ===== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
  color: var(--footer-fg);
  font-size: 14px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--footer-fg-dim); }
.site-footer a { color: var(--footer-fg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-fg-dim);
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: 22px;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a:hover { color: var(--accent-lo); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--footer-border);
  font-size: 13px;
  color: var(--footer-fg-dim);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-brand .brand-mark {
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}
.footer-blurb {
  color: var(--footer-fg-dim);
  font-size: 13px;
  line-height: 1.6;
  max-width: 30ch;
}
.footer-company {
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-fg);
}
.footer-company b {
  color: #fff;
  font-weight: 600;
}
.footer-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid var(--footer-fg-dim);
  border-radius: 8px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--footer-fg) !important;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.footer-doc-link:hover {
  color: #fff !important;
  border-color: var(--accent-lo);
  background: rgba(255, 255, 255, 0.04);
}
.footer-doc-link svg { flex: none; }

/* ===== PAGE HEADER (inner pages) ===== */
.page-head {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 5vw, 70px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 80% 20%, rgba(37, 99, 235, 0.08), transparent 60%);
  pointer-events: none;
}
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--border-strong); }

/* ===== FORMS ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field input,
.field textarea,
.field select {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-mute);
}
.field .hint {
  font-size: 12px;
  color: var(--fg-mute);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
  cursor: pointer;
  margin: 6px 0 18px;
}
.checkbox input { display: none; }
.checkbox .box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: #fff;
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.checkbox input:checked + .box {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox input:checked + .box::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-2px);
}
.checkbox a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-lo); }

/* ===== ACCORDION ===== */
.acc {
  border-top: 1px solid var(--border);
}
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg);
  text-align: left;
  padding: 26px 0;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-family: inherit;
}
.acc-q .plus {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  display: grid; place-items: center;
  color: var(--fg-dim);
  transition: all 0.2s;
}
.acc-item.open .acc-q .plus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.acc-q:hover .plus { border-color: var(--accent); color: var(--accent); }
.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 70ch;
}
.acc-item.open .acc-a {
  padding: 0 0 28px;
  max-height: 600px;
}

/* ===== MOBILE DRAWER ===== */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 20px 24px calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.drawer.open { display: flex; }
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.drawer-close {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--fg);
  display: grid; place-items: center;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-links a {
  padding: 18px 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg);
}
.drawer-links a span { color: var(--fg-mute); font-family: var(--mono); font-size: 12px; }
.drawer-foot {
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-foot .info-value { color: var(--fg); margin-bottom: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-art { width: 60%; opacity: 0.6; }
}
@media (max-width: 880px) {
  .header-top { gap: 14px; }
  .header-info { display: flex; align-items: center; gap: 0; }
  .header-info > .info-block { display: none; }
  .header-info > .btn {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
  }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .hero-art { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding: 60px 0 100px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .svc-card { min-height: 200px; padding: 22px; }
  .stat { padding: 32px 20px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .header-top { gap: 10px; padding: 12px 0; }
  .brand { gap: 10px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 13px; }
  .brand-sub { display: none; }
  .header-info > .btn {
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .menu-toggle { width: 40px; height: 40px; }
}
@media (max-width: 400px) {
  .header-top { gap: 8px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 12px; letter-spacing: 0.01em; }
  .header-info > .btn { padding: 8px 10px; font-size: 12px; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 200;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  box-shadow:
    0 1px 0 rgba(14, 23, 41, 0.04),
    0 24px 60px -20px rgba(14, 23, 41, 0.22);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease;
  pointer-events: none;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-hi);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cookie-banner .cookie-ic svg { width: 22px; height: 22px; }
.cookie-banner .cookie-body strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
  margin-bottom: 6px;
}
.cookie-banner .cookie-body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
}
.cookie-banner .cookie-body a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.cookie-banner .cookie-actions .btn { white-space: nowrap; }

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .cookie-banner .cookie-ic { width: 38px; height: 38px; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner .cookie-actions .btn { flex: 1; }
}

/* ===== REQUEST MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 40px 40px 36px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 32, 0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-close:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-title {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.15;
}
.modal-sub {
  margin: 0 0 24px;
  color: var(--fg-mute);
  font-size: 14.5px;
  line-height: 1.5;
}
.modal-form .field { margin-bottom: 16px; }
.modal-form .checkbox { margin: 14px 0 18px; }

@media (max-width: 560px) {
  .modal-card {
    padding: 32px 22px 24px;
    border-radius: 14px;
  }
  .modal-title { font-size: 24px; }
}


/* ===== REQUEST MODAL — state, errors, thank-you ===== */
.modal-state[hidden] { display: none !important; }
.modal-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.25);
  color: #b91c1c;
  font-size: 13.5px;
  line-height: 1.45;
}
.modal-form .field-errors {
  color: #b91c1c;
  font-size: 12.5px;
  margin-top: 6px;
  min-height: 0;
  line-height: 1.4;
}
.modal-form .field-errors:empty { display: none; }
.modal-thank-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-hi);
  display: grid; place-items: center;
  margin: 8px auto 0;
}
.modal-thank-icon svg { width: 32px; height: 32px; }
