.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.page {
  min-height: 100vh;
  background: var(--dark-bg);
}

.main {
  padding-top: 5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__logo:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.15;
}

.header__logo-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 0%, #d7e5ff 55%, #ffc49a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header__logo-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--light-gray);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .header__logo-title {
    font-size: 1.12rem;
  }

  .header__logo-sub {
    font-size: 0.72rem;
  }
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 767px) {
  .header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(8, 10, 16, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.65rem);
    transition:
      opacity 0.24s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.24s ease;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header__nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-0.4rem);
    transition:
      opacity 0.22s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.2s;
  }

  .header__nav a:last-child {
    border-bottom: none;
  }

  .header__nav.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .header__nav.is-open a:nth-child(1) { transition-delay: 0.03s; }
  .header__nav.is-open a:nth-child(2) { transition-delay: 0.06s; }
  .header__nav.is-open a:nth-child(3) { transition-delay: 0.09s; }
  .header__nav.is-open a:nth-child(4) { transition-delay: 0.12s; }
  .header__nav.is-open a:nth-child(5) { transition-delay: 0.15s; }
  .header__nav.is-open a:nth-child(6) { transition-delay: 0.18s; }
  .header__nav.is-open a:nth-child(7) { transition-delay: 0.21s; }
}

.header__nav a {
  color: var(--off-white);
  font-weight: var(--fw-medium);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--primary);
}

.header__nav-phone,
.header__nav-cta {
  display: none;
}

.header__nav.is-open .header__nav-phone {
  display: block;
  color: var(--primary);
  font-weight: var(--fw-semibold);
}

.header__nav.is-open .header__nav-cta {
  display: inline-flex;
  margin-top: 0.75rem;
  justify-content: center;
  border-bottom: none;
}

body.nav-open {
  overflow: hidden;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__phone {
  display: none;
  color: var(--primary);
  font-weight: var(--fw-semibold);
  transition: color 0.2s;
}

.header__phone:hover {
  color: var(--primary-hover);
}

.header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: var(--off-white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.header__menu-btn:hover,
.header__menu-btn.is-open,
.header__menu-btn[aria-expanded="true"] {
  background: var(--card);
  border-color: var(--border-strong);
  box-shadow: 0 8px 20px -14px rgba(91, 141, 238, 0.7);
}

.header__burger {
  position: relative;
  width: 1.15rem;
  height: 0.85rem;
  display: block;
}

.header__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--off-white);
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__burger span:nth-child(3) { bottom: 0; }

.header__menu-btn.is-open .header__burger span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__menu-btn.is-open .header__burger span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.is-open .header__burger span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.header__cta .header__consult {
  display: none;
}

@media (min-width: 1024px) {
  .header__cta .header__consult {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .header__nav,
  .header__nav.is-open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .header__nav a,
  .header__nav.is-open a {
    padding: 0;
    border-bottom: none;
    opacity: 1;
    transform: none;
    transition: color 0.2s;
  }

  .header__nav-phone,
  .header__nav-cta,
  .header__nav.is-open .header__nav-phone,
  .header__nav.is-open .header__nav-cta {
    display: none !important;
  }

  .header__menu-btn {
    display: none;
  }

  body.nav-open {
    overflow: auto;
  }
}

@media (min-width: 1024px) {
  .header__phone {
    display: flex;
  }
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid var(--border);
  color: #9ca3af;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer__brand h4 {
  color: var(--white);
  font-weight: var(--fw-bold);
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: var(--text-sm);
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer__brand a {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  transition: color 0.2s;
}

.footer__brand a:hover {
  color: var(--accent-hover);
}

.footer__col h4 {
  color: var(--white);
  font-weight: var(--fw-semibold);
  margin-bottom: 1rem;
  font-size: var(--text-base);
  font-family: var(--font-display);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col a {
  font-size: var(--text-sm);
  color: #9ca3af;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: #6b7280;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer__contacts {
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer__links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  font-size: var(--text-sm);
}

.footer__links-row a {
  color: #9ca3af;
  transition: color 0.2s;
}

.footer__links-row a:hover {
  color: var(--accent);
}

.footer__dot {
  color: #4b5563;
}

.footer__copy {
  text-align: center;
  padding-bottom: 3rem;
  font-size: var(--text-sm);
  color: #4b5563;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__brand {
    grid-column: span 1;
  }
}

/* Section helpers */
.section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section--bg {
  background: var(--dark-bg);
}

.section--surface {
  background: var(--dark-surface);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header h2 {
  margin-bottom: 1rem;
}

.section__header p {
  font-size: var(--text-lg);
  color: var(--light-gray);
  max-width: 42rem;
  margin: 0 auto;
}

.section__header--row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section__header--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section__header--row .section__header-text h2 {
  margin-bottom: 1rem;
}

.section__header--row .section__header-text p {
  font-size: var(--text-lg);
  color: var(--light-gray);
  max-width: 42rem;
  margin: 0;
}

.section__header-desktop-btn {
  display: none;
}

.section__header-mobile-btn {
  text-align: center;
  display: block;
}

@media (min-width: 768px) {
  .section__header-desktop-btn {
    display: inline-flex;
  }

  .section__header-mobile-btn {
    display: none;
  }
}

/* Grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-stats { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
.grid-2-sm { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-stats { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-md-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-lg-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
}

.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { position: relative; z-index: 10; }
