:root {
  --orange: #f39200;
  --orange-dark: #d97f00;
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-dark: #1a1a1a;
  --shadow: 0 6px 24px rgba(20, 20, 30, 0.08);
  --radius: 12px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(243, 146, 0, 0.28);
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  min-height: 76px;
}
.logo img { height: 48px; width: auto; }
.nav {
  display: flex; gap: 28px; margin-left: auto;
}
.nav a { font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.nav a:hover { color: var(--orange); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.phone {
  font-weight: 700; font-size: 16px; color: var(--ink);
  white-space: nowrap;
}
.phone:hover { color: var(--orange); }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent; border: 0; padding: 10px;
  cursor: pointer;
}
.burger span {
  display: block; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { display: flex; }

/* === Hero === */
.hero {
  background:
    radial-gradient(circle at 85% 0%, rgba(243,146,0,0.12), transparent 55%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  padding: 72px 0 80px;
}
.hero-inner { max-width: 820px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.2rem); color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* === Stats === */
.stats { padding: 48px 0; border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.stat {
  padding: 8px 4px;
  border-left: 3px solid var(--orange);
  padding-left: 18px;
}
.stat strong {
  display: block;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 4px;
}
.stat span { color: var(--muted); font-size: 15px; }

/* === Sections === */
.services, .about, .contacts, .legal-section { padding: 80px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* === Services === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(243,146,0,0.5);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); margin: 0; font-size: 14.5px; }
.services-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.services-cta p { margin: 0; font-size: 1.05rem; max-width: 560px; }

/* === About === */
.about { background: var(--bg-soft); }
.about-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 48px;
  align-items: center;
}
.about-image img {
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-text p { color: var(--ink-soft); }
.about-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.about-group strong { color: var(--ink); }

/* === Contacts === */
.contacts-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: stretch;
}
.contacts-info { display: flex; flex-direction: column; gap: 24px; }
.contacts-block { display: flex; flex-direction: column; gap: 4px; }
.contacts-block p { margin: 0; font-size: 16px; }
.contacts-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.contacts-info .btn { align-self: flex-start; margin-top: 8px; }
.contacts-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  position: relative;
}
.contacts-map iframe {
  border: 0;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* === Legal/Documents page === */
.legal-section h2 { margin-bottom: 12px; }
.legal-section .lead { margin-bottom: 36px; }
.docs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}
.docs-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.docs-list a:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.docs-list .doc-icon {
  flex: 0 0 36px; height: 44px;
  background: var(--bg-soft);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--orange-dark);
  letter-spacing: 0.04em;
}
.certs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.certs figure {
  margin: 0; padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.certs figcaption { font-size: 14px; font-weight: 600; margin-top: 10px; color: var(--ink); }
.certs img {
  margin: 0 auto;
  max-height: 320px;
  width: auto;
}
.regulators {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  list-style: none; padding: 0; margin: 0 0 48px;
}
.regulators li {
  padding: 18px 22px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.regulators strong { display: block; margin-bottom: 4px; }
.regulators a { color: var(--orange-dark); word-break: break-all; font-size: 14px; }

.regulation-table {
  width: 100%; border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.regulation-table th, .regulation-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.regulation-table th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.regulation-table tr:last-child td { border-bottom: 0; }
.regulation-table .col-doc { width: 180px; white-space: nowrap; color: var(--muted); }

/* === Footer === */
.site-footer {
  background: var(--bg-dark);
  color: #c8c8c8;
  padding: 56px 0 24px;
  margin-top: 0;
}
.site-footer a { color: #c8c8c8; }
.site-footer a:hover { color: var(--orange); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-col strong {
  display: block; color: #fff; margin-bottom: 12px;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col p { font-size: 14.5px; color: #b8b8b8; line-height: 1.7; }
.footer-logo { filter: brightness(0) invert(1); height: 40px; width: auto; margin-bottom: 14px; }
.footer-bottom {
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #888;
}
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* === Floating call button === */
.floating-call {
  display: none;
  position: fixed; right: 18px; bottom: 18px;
  width: 56px; height: 56px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(243,146,0,0.45);
  z-index: 60;
  transition: transform .15s ease, background .15s ease;
}
.floating-call:hover { background: var(--orange-dark); color: #fff; transform: scale(1.05); }

/* === Responsive === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 280px 1fr; gap: 32px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .docs-list { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .header-inner { min-height: 64px; gap: 12px; }
  .logo img { height: 38px; }
  .hero { padding: 48px 0 56px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats-grid { grid-template-columns: 1fr; gap: 18px; }
  .services, .about, .contacts, .legal-section { padding: 56px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 240px; margin: 0 auto; }
  .services-cta { flex-direction: column; align-items: flex-start; }
  .services-cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .floating-call { display: flex; }
  .regulation-table th, .regulation-table td { padding: 10px 12px; font-size: 13px; }
  .regulation-table .col-doc { width: 110px; white-space: normal; }
}
