:root {
  --black: #000000;
  --black-2: #141414;
  --black-3: #1c1c1c;
  --orange: #f7931e;
  --orange-dark: #e07a00;
  --blue: #1b5fa8;
  --white: #ffffff;
  --muted: #b4b4b4;
  --light: #f4f7fb;
  --text: #333333;
  --heading: #111111;
  --border: rgba(255, 255, 255, 0.12);
  --border-light: #e6e9ee;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.22);
  --container: 1200px;
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 0;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--orange);
  color: #111;
  box-shadow: 0 8px 22px rgba(247, 147, 30, 0.35);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 12px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #ededed;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
}

.chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.has-dropdown {
  position: relative;
}

.has-dropdown.open > .nav-link {
  color: var(--orange);
}

.has-dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  padding: 10px;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  columns: 2;
  column-gap: 8px;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  break-inside: avoid;
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: #cfcfcf;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown a:hover {
  background: rgba(247, 147, 30, 0.14);
  color: var(--orange);
}

.navbar__cta {
  margin-left: 10px;
  flex: none;
}

.navbar__cta .icon {
  width: 16px;
  height: 16px;
}

.nav-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-close {
  display: none;
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-close .icon {
  width: 22px;
  height: 22px;
}

.nav-close:hover {
  color: var(--orange);
  background: rgba(247, 147, 30, 0.14);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  z-index: 998;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 4px solid var(--orange);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 68px 20px 52px;
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.footer__badges li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  color: #ddd;
}

.footer__title {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--orange);
  border-radius: 3px;
}

.footer__links li {
  margin-bottom: 11px;
}

.footer__links a {
  color: var(--muted);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer__contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1.55;
}

.footer__contact .icon {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: var(--orange);
}

.footer__contact a:hover {
  color: var(--orange);
}

.footer__map {
  padding: 0 20px 56px;
}

.footer__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius-lg);
  filter: grayscale(0.15);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 0.85rem;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__bottom-inner p {
  margin: 0;
}

.footer__legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer__legal a:hover {
  color: var(--orange);
}

/* ===== Preview helpers ===== */
.hero {
  position: relative;
  padding: 120px 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.65) 55%, rgba(10, 10, 10, 0.35) 100%),
    linear-gradient(135deg, #123a63 0%, #1b5fa8 100%);
  color: var(--white);
  overflow: hidden;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 18ch;
}

.hero p {
  color: #dfe6ee;
  max-width: 56ch;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.preview-note {
  max-width: var(--container);
  margin: 48px auto;
  padding: 28px 32px;
  background: var(--light);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
}

.preview-note h2 {
  margin-top: 0;
}

.preview-note code {
  background: #e6ebf2;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.86rem;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 992px) {
  .navbar__cta {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    margin-top: 8px;
  }

  .nav-cta-mobile .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-close {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(360px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 96px 22px 32px;
    background: var(--black-2);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.32s ease;
    overflow-y: auto;
    z-index: 1001;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .dropdown {
    position: static;
    columns: 1;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 0;
    box-shadow: none;
    margin: 4px 0 8px;
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .has-dropdown:hover .dropdown {
    max-height: 0;
  }

  .has-dropdown.open .dropdown {
    max-height: 640px;
    padding: 10px;
  }
}

@media (max-width: 720px) {
  .brand img {
    height: 46px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding: 84px 0;
  }
}
