:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --surface: #14213a;
  --surface-soft: #1b2a47;
  --text: #e8efff;
  --muted: #a8b7d6;
  --border: #2a3d66;
  --brand: #58a6ff;
  --brand-strong: #2f81f7;
  --wa: #1fb879;
  --shadow: 0 14px 34px rgba(4, 10, 20, 0.45);
  --shadow-strong: 0 24px 48px rgba(2, 8, 18, 0.62);
  --container: 1180px;
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #060b16;
  --bg-soft: #0f1828;
  --surface: #121d31;
  --surface-soft: #182640;
  --text: #e6eeff;
  --muted: #9cafcf;
  --border: #2b3c61;
  --brand: #6ab6ff;
  --brand-strong: #3f8fff;
  --wa: #28c98a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.12), transparent 45%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 999;
  background: #fff;
  color: #0b1220;
  border-radius: 8px;
  padding: 8px 12px;
}
.skip-link:focus { left: 10px; }

.container {
  width: min(var(--container), calc(100% - 34px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 11, 22, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__logo {
  width: 146px;
  height: auto;
  filter: saturate(1.08);
}
.brand__name strong {
  display: block;
  font-size: 15px;
}
.brand__name span {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links {
  display: none;
  gap: 4px;
}
.nav__links a {
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
}

.btn {
  min-height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn--primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-strong));
}
.btn--wa {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(140deg, var(--wa), color-mix(in srgb, var(--wa) 70%, #0f7d53));
}
.btn--ghost { background: transparent; }

.theme-toggle {
  width: 44px;
  padding: 0;
}
.menu-btn { display: inline-flex; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.mobile-menu[aria-hidden="false"] { display: block; }
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 16, 0.72);
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__links {
  display: grid;
  gap: 8px;
}
.mobile-menu__links a {
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
}
.mobile-menu__cta {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.hero { padding: 40px 0 22px; }
.hero__grid {
  display: grid;
  gap: 18px;
}
.hero__content {
  background: linear-gradient(180deg, rgba(30, 47, 77, 0.58), rgba(19, 31, 52, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #d8e8ff;
  background: rgba(88, 166, 255, 0.2);
  border: 1px solid rgba(88, 166, 255, 0.4);
}
.hero h1 {
  margin: 12px 0;
  font-size: clamp(32px, 5.8vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0 0 16px;
  color: var(--muted);
}
.hero__trust {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__meta {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}
.hero__media {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(16, 27, 45, 0.72);
  padding: 10px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  min-height: 0;
  max-height: 560px;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.section { padding: 28px 0; }
.section--spacious { padding: 46px 0; }

.page-title { padding: 26px 0 12px; }
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 46px);
  letter-spacing: -0.02em;
}
.breadcrumbs {
  margin-top: 8px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}
.breadcrumbs a { text-decoration: none; }

.section__head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.02em;
}
.section__head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel,
.card,
.service {
  background: linear-gradient(180deg, rgba(27, 42, 71, 0.66), rgba(18, 30, 52, 0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel,
.card { padding: 18px; }

.services {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.service {
  padding: 12px;
}
.service--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service--link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: var(--shadow-strong);
}
.service__thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(8, 15, 27, 0.34);
  aspect-ratio: 16/10;
}
.service__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service__head {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service__icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(88, 166, 255, 0.16);
}
.service__icon svg { width: 18px; height: 18px; }
.service h3 {
  margin: 0;
  font-size: 19px;
}
.service p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 11px;
  background: rgba(10, 18, 33, 0.42);
}
.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.08;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.list-clean li {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(12, 20, 36, 0.44);
  padding: 10px 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.contact-meta { margin: 0; color: var(--muted); }
.contact-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.badge {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(88, 166, 255, 0.48);
  background: rgba(88, 166, 255, 0.18);
  color: #e2eeff;
  font-size: 12px;
  font-weight: 700;
}

.footer {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.8);
  padding: 24px 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.footer p,
.footer small {
  margin: 0;
  color: var(--muted);
}
.footer__meta {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.floating {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 45;
  display: grid;
  gap: 8px;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.fab svg { width: 22px; height: 22px; }
.fab--call { color: var(--brand); }
.fab--wa { color: var(--wa); }

@media (min-width: 760px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .contact-layout { grid-template-columns: 1.1fr .9fr; }
}

@media (max-width: 760px) {
  .hero__media {
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }
}

@media (min-width: 990px) {
  .nav__links { display: inline-flex; }
  .menu-btn { display: none; }
  .services--reworked { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .header__inner {
    min-height: 64px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand__logo { width: 108px; }
  .brand__name { min-width: 0; }
  .brand__name strong {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 96px;
  }
  .brand__name span { display: none; }
  .nav {
    flex: 0 0 auto;
    gap: 6px;
  }
  .theme-toggle {
    width: 40px;
    min-height: 40px;
    font-size: 14px;
  }
  .nav > .btn--primary { display: none; }
  .menu-btn {
    min-height: 40px;
    padding: 8px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

