@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   ЧОП «БАСТИОН-Н» — общие стили
   Тёмная премиум-палитра, золотой акцент
   ============================================ */

:root {
  --bg-0: #0A0A0F;
  --bg-1: #11111A;
  --bg-2: #181822;
  --bg-3: #20202C;
  --line: #2A2A38;
  --line-soft: rgba(255,255,255,0.06);
  --text: #EDE7D9;
  --muted: #9A9385;
  --gold: #E8641E;
  --gold-2: #F47F2E;
  --gold-dark: #B0480F;
  --danger: #B8302E;
  --success: #4ade80;
  --white: #FFFFFF;
  --header-h: 84px;
  --header-h-mobile: 64px;

  /* Дизайн-токены */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.28);
  --shadow-md: 0 14px 36px rgba(0,0,0,0.40);
  --shadow-gold: 0 12px 30px rgba(232,100,30,0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(232,100,30,0.2);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; /* prevent iOS zoom */ }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* === Reusable === */
.kicker {
  color: var(--gold); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 18px;
  display: inline-block;
}
.kicker::before { content: "— "; color: var(--gold-dark); }

h1, h2, h3, h4 { color: var(--white); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.07; }
h2 { font-size: clamp(27px, 3.4vw, 42px); line-height: 1.14; }
h3 { font-size: clamp(19px, 1.4vw, 22px); line-height: 1.3; font-weight: 700; }
.gold-text { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  border: none; cursor: pointer;
  min-height: 50px;
  text-align: center;
}
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--bg-0); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(232,100,30,0.12); border-color: var(--gold-2); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-block { width: 100%; }

/* === Top utility bar === */
.topbar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.3px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar .left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar .left span { display: flex; align-items: center; gap: 6px; }
.topbar .right { display: flex; gap: 16px; align-items: center; }
.topbar a:hover { color: var(--gold); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* === Header === */
header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header .container { display: flex; align-items: center; gap: 36px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-mark {
  width: 48px; height: 48px;
  border: 1.5px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before, .logo-mark::after {
  content: ''; position: absolute; width: 8px; height: 8px;
  border: 1.5px solid var(--gold);
}
.logo-mark::before { top: -1.5px; left: -1.5px; border-right: none; border-bottom: none; }
.logo-mark::after { bottom: -1.5px; right: -1.5px; border-left: none; border-top: none; }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { line-height: 1.05; }
.logo-text strong { font-size: 19px; letter-spacing: 2px; display: block; color: var(--white); font-weight: 700; }
.logo-text span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 2.5px; }

nav.main-nav { display: flex; gap: 16px; flex: 1; min-width: 0; justify-content: center; }
nav.main-nav a {
  color: var(--text); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 8px 0;
  position: relative; transition: color 0.2s;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold); }
nav.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.2s, left 0.2s;
}
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; left: 0; }

.header-phone { text-align: right; }
.header-phone .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.header-phone .num { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: 0.5px; }
.header-phone:hover .num { color: var(--gold); }

.menu-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line); color: var(--gold);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-toggle svg { width: 20px; height: 14px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--bg-1);
  border-left: 1px solid var(--gold);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding-top: env(safe-area-inset-top, 0);
}
.mobile-drawer.open { transform: translateX(0); box-shadow: -16px 0 40px rgba(0,0,0,0.5); }
.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer .head { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.mobile-drawer .close { background: none; border: 1px solid var(--line); color: var(--gold); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-drawer nav { display: flex; flex-direction: column; padding: 12px 0; }
.mobile-drawer nav a {
  padding: 16px 24px;
  color: var(--text);
  font-size: 16px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1.5px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-drawer nav a:hover, .mobile-drawer nav a.active { background: var(--bg-2); color: var(--gold); }
.mobile-drawer .actions { padding: 24px; border-top: 1px solid var(--line); margin-top: auto; }
.mobile-drawer .phone-block { margin-bottom: 18px; }
.mobile-drawer .phone-block .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.mobile-drawer .phone-block .n { color: var(--white); font-size: 20px; font-weight: 700; }
body.no-scroll { overflow: hidden; }

/* === Page hero (smaller than main hero) === */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(232,100,30,0.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.page-hero p.lead { color: var(--muted); font-size: 18px; max-width: 720px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 22px;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { color: var(--gold-dark); }
.breadcrumbs .current { color: var(--text); }

/* === Hero (homepage) === */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(232,100,30,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(184,48,46,0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; right: -50px; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,100,30,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.hero-content { max-width: 700px; }
.hero h1 { margin-bottom: 26px; }
.hero p.lead { font-size: 19px; color: var(--text); margin-bottom: 40px; line-height: 1.65; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.hero-meta .item { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.hero-meta .item:last-child { border-right: none; padding-right: 0; }
.hero-meta .num { font-size: 38px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 8px; letter-spacing: -1px; }
.hero-meta .lbl { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }

.hero-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.hero-card::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-card .lic-label { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 14px; }
.hero-card h4 { font-size: 20px; margin-bottom: 18px; line-height: 1.3; }
.hero-card .lic-num {
  font-family: "SF Mono", Menlo, Monaco, monospace;
  font-size: 26px; color: var(--white);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; margin-bottom: 22px;
  letter-spacing: 2px; text-align: center;
}
.hero-card ul { list-style: none; }
.hero-card ul li { padding: 10px 0 10px 28px; position: relative; font-size: 14px; border-bottom: 1px dashed var(--line); }
.hero-card ul li:last-child { border-bottom: none; }
.hero-card ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 16px; height: 10px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* === Section === */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 70px; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* === Services === */
.services { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* gap:1px trick — линии-разделители идут от bg-цвета родителя, не зависят от nth-child */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg-2);
  padding: 44px 36px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card:hover { background: var(--bg-3); transform: translateY(-4px); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--gold); }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s; }
.service-card:hover::before { width: 100%; }
/* Если в сетке 7 карточек — 7-я растягивается на всю строку, чтобы не было одинокой ячейки */
.services-grid > .service-card:nth-child(7):last-child { grid-column: 1 / -1; }
.service-icon { width: 56px; height: 56px; color: var(--gold); margin-bottom: 26px; display: flex; align-items: center; justify-content: center; }
.service-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.service-card h3 { margin-bottom: 14px; font-size: 21px; }
.service-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 24px; flex-grow: 1; }
.service-card .more {
  color: var(--gold); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  display: inline-flex; align-items: center; gap: 8px;
}
.service-card .more::after { content: '→'; transition: transform 0.2s; }
.service-card:hover .more::after { transform: translateX(4px); }

/* === About — split === */
.about { background: var(--bg-0); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.about-visual {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(232,100,30,0.15) 0%, rgba(10,10,15,0.85) 60%),
    radial-gradient(circle at 30% 40%, rgba(232,100,30,0.2), transparent 50%),
    var(--bg-2);
  position: relative;
  border: 1px solid var(--line);
}
.about-visual::before { content: ''; position: absolute; inset: 24px; border: 1px solid rgba(232,100,30,0.2); pointer-events: none; }
.about-visual::after {
  content: 'ОХРАНА ОБЪЕКТОВ\A МОСКВА · МО · 2006';
  white-space: pre; position: absolute; bottom: 32px; left: 32px;
  font-size: 11px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; line-height: 1.8;
}
.about-visual { transition: transform 0.5s ease; }
.about-visual:hover { transform: scale(1.01); }
.about-badge {
  position: absolute; top: 32px; right: 32px;
  background: var(--bg-0); border: 1px solid var(--gold);
  padding: 22px 28px; text-align: center;
}
.about-badge .big { font-size: 48px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -2px; }
.about-badge .small { font-size: 11px; color: var(--text); margin-top: 6px; text-transform: uppercase; letter-spacing: 2px; }
.about-content h2 { margin-bottom: 24px; }
.about-content p { color: var(--muted); margin-bottom: 18px; font-size: 17px; }
.about-content p strong { color: var(--white); font-weight: 600; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 36px 0; }
.about-stats .stat { border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; }
.about-stats .stat .n { color: var(--white); font-size: 24px; font-weight: 700; line-height: 1.2; }
.about-stats .stat .l { color: var(--muted); font-size: 14px; }

/* === Bailiff === */
.bailiff {
  background: radial-gradient(ellipse at 80% 30%, rgba(232,100,30,0.12) 0%, transparent 60%), var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.bailiff::before {
  content: ''; position: absolute; left: -100px; top: -100px;
  width: 400px; height: 400px;
  border: 1px solid rgba(232,100,30,0.15);
  transform: rotate(45deg); pointer-events: none;
}
.bailiff-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }
.bailiff h2 { margin-bottom: 24px; }
.bailiff p.lead { color: var(--text); font-size: 18px; margin-bottom: 30px; line-height: 1.7; max-width: 580px; }
.bailiff-list { list-style: none; margin-bottom: 36px; }
.bailiff-list li {
  padding: 14px 0 14px 36px; position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--text); font-size: 16px;
}
.bailiff-list li:last-child { border-bottom: none; }
.bailiff-list li::before { content: ''; position: absolute; left: 0; top: 20px; width: 20px; height: 1px; background: var(--gold); }
.bailiff-card {
  background: var(--bg-0);
  border: 1px solid var(--gold);
  padding: 50px 40px;
  text-align: center; position: relative;
}
.bailiff-card .corner { position: absolute; width: 24px; height: 24px; border: 1.5px solid var(--gold); }
.bailiff-card .corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bailiff-card .corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bailiff-card .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.bailiff-card .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.bailiff-card .icon-big { width: 90px; height: 90px; margin: 0 auto 24px; color: var(--gold); display: flex; align-items: center; justify-content: center; }
.bailiff-card .icon-big svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.2; }
.bailiff-card h4 { font-size: 22px; margin-bottom: 14px; }
.bailiff-card p { color: var(--muted); font-size: 15px; margin-bottom: 30px; }

/* === Process / 3 steps === */
.process { background: var(--bg-0); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.process-step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 44px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(232,100,30,0.3); }
.process-step .step-num {
  position: absolute; top: 24px; right: 24px;
  font-size: 64px; font-weight: 800; color: var(--gold);
  opacity: 0.2; line-height: 1;
  font-family: "Times New Roman", serif;
}
.process-step .icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 24px; }
.process-step .icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.process-step h4 { font-size: 20px; margin-bottom: 12px; }
.process-step p { color: var(--muted); font-size: 15px; }
.process-cta {
  text-align: center; padding: 40px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.process-cta .text { text-align: left; }
.process-cta .text strong { color: var(--white); font-size: 20px; display: block; margin-bottom: 4px; }
.process-cta .text span { color: var(--muted); font-size: 15px; }
.process-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* === Documents === */
.documents { background: var(--bg-1); border-top: 1px solid var(--line); }
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 30px 22px; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
  display: flex; flex-direction: column; justify-content: space-between;
}
.doc:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc .stamp {
  width: 90px; height: 90px; margin: 16px auto;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 9px; letter-spacing: 1px;
  text-transform: uppercase; text-align: center; line-height: 1.3;
  position: relative;
}
.doc .stamp::before { content: ''; position: absolute; inset: 6px; border: 1px dashed var(--gold-dark); border-radius: 50%; }
.doc h5 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.doc p { color: var(--muted); font-size: 12px; }

/* === FAQ === */
.faq { background: var(--bg-0); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 0; }
.faq-item summary {
  padding: 26px 0;
  font-size: 18px; font-weight: 600; color: var(--white);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--gold); font-size: 28px; font-weight: 300;
  flex-shrink: 0; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 720px; }

/* === Contacts === */
.contacts { background: var(--bg-1); border-top: 1px solid var(--line); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 28px; margin-bottom: 32px; }
.contact-block { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; }
.contact-block:last-child { border-bottom: none; }
.contact-block .ico { width: 40px; height: 40px; flex-shrink: 0; color: var(--gold); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.contact-block .ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.contact-block .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.contact-block .val { font-size: 17px; color: var(--white); }
.contact-block .val a { color: var(--white); }
.contact-block .val a:hover { color: var(--gold); }

.map-placeholder {
  margin-top: 24px;
  height: 220px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3)), var(--bg-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  position: relative; overflow: hidden;
}
.map-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,100,30,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,100,30,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.form-wrap {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 44px 40px; position: relative;
  box-shadow: var(--shadow-md);
}
.form-wrap::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--gold); }
.form-wrap h3 { margin-bottom: 8px; font-size: 24px; }
.form-wrap .sub { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.form-row { margin-bottom: 14px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 16px 18px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--white); font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--muted); }
.form-row input:hover, .form-row textarea:hover { border-color: rgba(232,100,30,0.5); }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,100,30,0.15);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-wrap .consent { color: var(--muted); font-size: 12px; margin-top: 14px; line-height: 1.5; }

/* === Footer === */
footer { background: var(--bg-0); border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; margin-bottom: 50px; }
footer h5 { color: var(--white); font-size: 12px; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 22px; }
footer ul { list-style: none; }
footer ul li { padding: 6px 0; }
footer ul a, footer .req-line { color: var(--muted); font-size: 14px; transition: color 0.2s; }
footer ul a:hover { color: var(--gold); }
footer .req-line { display: block; padding: 4px 0; line-height: 1.6; }
footer .footer-logo { margin-bottom: 22px; }
footer .desc { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold); }

/* === Mobile sticky CTA === */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-1); padding: 12px;
  z-index: 200;
  border-top: 1px solid var(--gold);
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
}
.mobile-cta a {
  flex: 1; text-align: center; padding: 14px;
  font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
}
.mobile-cta .call { background: var(--gold); color: var(--bg-0); }
.mobile-cta .order { background: transparent; color: var(--white); border: 1px solid var(--gold); }

/* === Service detail page === */
.service-detail { background: var(--bg-0); }
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: flex-start; }
.service-detail h2 { font-size: 30px; margin-top: 40px; margin-bottom: 18px; }
.service-detail h2:first-child { margin-top: 0; }
.service-detail p { margin-bottom: 18px; color: var(--text); font-size: 17px; line-height: 1.7; }
.service-detail ul { list-style: none; margin-bottom: 24px; }
.service-detail ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
}
.service-detail ul li:last-child { border-bottom: none; }
.service-detail ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 16px; height: 10px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.price-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--gold);
  padding: 32px 28px;
  position: sticky; top: calc(var(--header-h) + 20px);
  box-shadow: var(--shadow-gold);
}
.price-card .lbl { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 12px; }
.price-card .price { font-size: 36px; color: var(--white); font-weight: 800; margin-bottom: 8px; letter-spacing: -1px; }
.price-card .price-note { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.price-card .specs { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 24px; }
.price-card .specs .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.price-card .specs .row .k { color: var(--muted); }
.price-card .specs .row .v { color: var(--white); font-weight: 500; text-align: right; }

/* Long content */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 50px; margin-bottom: 18px; font-size: 28px; }
.prose h3 { margin-top: 30px; margin-bottom: 12px; font-size: 20px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin-bottom: 18px; padding-left: 22px; color: var(--text); }
.prose ul li, .prose ol li { padding: 6px 0; }
.prose a { color: var(--gold); border-bottom: 1px dashed var(--gold-dark); }
.prose a:hover { color: var(--gold-2); }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .bailiff-grid, .contacts-grid, .service-detail-grid { grid-template-columns: 1fr; gap: 50px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card { position: static; }
  .container { padding: 0 24px; }
  /* Hide верхний адрес на планшете чтобы не вис */
  .topbar .left span:nth-child(2) { display: none; }
  /* Сворачиваем десктоп-меню в бургер уже с планшета: иконки + текст не помещаются в одну строку.
     Телефон-CTA при этом сохраняем — он уезжает вправо рядом с кнопкой меню. */
  nav.main-nav { display: none; }
  .header-phone { display: block; margin-left: auto; flex-shrink: 0; }
  .header-phone .num { white-space: nowrap; }
  .menu-toggle { display: inline-flex; }
  header .container { gap: 16px; }
}

@media (max-width: 900px) {
  .topbar { display: none; }
}

@media (max-width: 700px) {
  :root { --header-h: var(--header-h-mobile); }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0)); font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 80px; }
  .section-head { margin-bottom: 50px; }

  .topbar { display: none; }
  nav.main-nav, .header-phone { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  header .container { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-mark svg { width: 18px; height: 18px; }
  .logo-text strong { font-size: 16px; letter-spacing: 1.5px; }
  .logo-text span { font-size: 9px; }

  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { grid-template-columns: 1fr; gap: 24px; }
  .hero-meta .item { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 24px 0; }
  .hero-meta .item:last-child { border-bottom: none; padding-bottom: 0; }
  .hero-card { padding: 28px 22px; }
  .hero-card .lic-num { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .mobile-cta { display: flex; }
  .process-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 22px; }
  .process-cta .text { text-align: center; }
  .process-cta .actions { justify-content: center; }
  .about-badge { padding: 14px 18px; top: 16px; right: 16px; }
  .about-badge .big { font-size: 32px; }
  .about-grid { gap: 36px; }
  .form-wrap { padding: 28px 22px; }
  .bailiff-card { padding: 36px 24px; }
  .container { padding: 0 18px; }
  .btn { padding: 14px 22px; font-size: 14px; min-height: 50px; }
  .price-card { padding: 24px 20px; }
  .price-card .price { font-size: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .topbar .left { gap: 12px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .service-card { padding: 32px 24px; }
  .hero-card .lic-num { font-size: 18px; letter-spacing: 1.5px; }
  .form-wrap { padding: 24px 18px; }
  .form-wrap h3 { font-size: 21px; }
  .bailiff-card .icon-big { width: 70px; height: 70px; }
  .doc { padding: 22px 16px; }
  .doc .stamp { width: 70px; height: 70px; font-size: 8px; }
}

/* === FAQ summary hover === */
.faq-item summary:hover { color: var(--gold); }
.faq-item summary:hover::after { transform: rotate(90deg); }
.faq-item[open] summary:hover::after { transform: rotate(0); }

/* === Section transitions: subtle reveal on scroll (only if motion enabled) === */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > .kicker,
  .hero-content > h1,
  .hero-content > p.lead,
  .hero-content > .hero-actions,
  .hero-content > .hero-meta {
    opacity: 0;
    animation: bn-fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-content > .kicker      { animation-delay: 0.05s; }
  .hero-content > h1           { animation-delay: 0.15s; }
  .hero-content > p.lead       { animation-delay: 0.25s; }
  .hero-content > .hero-actions{ animation-delay: 0.35s; }
  .hero-content > .hero-meta   { animation-delay: 0.45s; }
  .hero-card {
    opacity: 0;
    animation: bn-fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s forwards;
  }
  @keyframes bn-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Мягкое появление секций при скролле (класс навешивает JS — без JS контент виден) */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* === Respect motion preferences === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pulse-dot { animation: none; }
}

/* === Better focus visibility on interactive elements === */
.btn:focus-visible,
.service-card:focus-visible,
.doc:focus-visible,
nav.main-nav a:focus-visible,
.mobile-drawer nav a:focus-visible,
.mobile-cta a:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* === Make .service-card link cards behave well === */
a.service-card { color: inherit; text-decoration: none; }

/* === Nav line-icons (replace emoji) === */
.nav-ic { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: inline-block; vertical-align: middle; }
/* desktop top nav */
nav.main-nav a { display: inline-flex; align-items: center; gap: 7px; }
nav.main-nav a .nav-ic { width: 14px; height: 14px; color: var(--gold); transition: color 0.2s; }
nav.main-nav a:hover .nav-ic, nav.main-nav a.active .nav-ic { color: var(--gold-2); }
/* mobile drawer */
.mobile-drawer nav a { display: flex; align-items: center; gap: 13px; }
.mobile-drawer nav a .nav-ic { width: 20px; height: 20px; color: var(--gold); }
.mobile-drawer nav a:hover .nav-ic, .mobile-drawer nav a.active .nav-ic { color: var(--gold-2); }
.mobile-cta a .nav-ic { width: 18px; height: 18px; }

/* === Selection color === */
::selection { background: rgba(232,100,30,0.4); color: var(--white); }

/* === Кастомный скроллбар (премиум-деталь) === */
html { scrollbar-color: var(--bg-3) var(--bg-1); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* Print */
@media print {
  header, .topbar, .mobile-cta, .form-wrap, footer, .mobile-drawer, .mobile-drawer-overlay { display: none; }
  body { background: white; color: black; padding-bottom: 0; }
  h1, h2, h3, h4 { color: black; }
  .hero, .page-hero, section { padding: 20px 0; background: white !important; }
  a { color: black; text-decoration: underline; }
}
