:root {
  --bg: #07101f;
  --bg-soft: #0d1730;
  --card: rgba(10, 20, 44, 0.72);
  --surface: #ffffff;
  --surface-alt: #f5f8ff;
  --text: #e8eefc;
  --text-dark: #0c1530;
  --muted: #c6d2ef;
  --muted-dark: #586480;
  --line: rgba(255,255,255,0.12);
  --line-dark: rgba(8,16,36,0.08);
  --primary: #3f7cff;
  --primary-2: #70a7ff;
  --accent: #9ad3ff;
  --shadow: 0 24px 80px rgba(0, 16, 60, 0.18);
  --shadow-xl: 0 40px 120px rgba(0, 10, 40, 0.36);
  --radius: 24px;
  --container: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: var(--container); margin: 0 auto; }

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 18px 0;
}

.brand-wrap {
  min-width: 0;
  flex: 0 1 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: white;
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: 0 0 auto;
}

.site-brand .custom-logo,
.sidebar-brand .custom-logo {
  width: auto;
  height: auto;
  max-height: 56px;
  max-width: 240px;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: #fff;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: .92rem;
}

.desktop-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.menu-trigger {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .25s ease;
  padding: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.menu-trigger:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.menu-trigger span {
  width: 18px;
  height: 2px;
  background: white;
  display: block;
  margin: 2.5px 0;
  border-radius: 999px;
}

/* Hide standard nav completely */
.nav-shell,
.primary-navigation,
.main-menu,
.main-menu ul {
  display: none !important;
}

/* Sidebar */
.sidebar-menu {
  position: fixed;
  inset: 0;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.sidebar-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(63,124,255,.16), transparent 26%),
    rgba(3, 8, 20, .76);
  backdrop-filter: blur(14px);
}

.sidebar-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  background:
    linear-gradient(180deg, rgba(5,12,26,.99), rgba(6,14,29,1));
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .35);
  padding: 28px 30px 30px;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
}

.sidebar-menu.is-open .sidebar-panel {
  transform: translateX(0);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 54px;
}

.sidebar-brand-text {
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .01em;
}

.menu-close {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 999px;
}

.menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sidebar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-kicker {
  color: #ff8b5d;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar-note {
  color: rgba(255,255,255,.48);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: right;
}

.sidebar-nav {
  margin-top: 22px;
  flex: 1 1 auto;
  display: flex;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sidebar-nav li {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-nav a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  color: white;
  transition: .22s ease;
}

.sidebar-nav a:hover {
  transform: translateX(6px);
}

.sidebar-nav-num {
  color: rgba(255,255,255,.28);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sidebar-nav-label {
  font-size: clamp(1.5rem, 3.8vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 600;
}

.sidebar-footer {
  display: grid;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-lang {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.sidebar-lang a {
  color: white;
  font-size: .84rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.sidebar-lang a.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.sidebar-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar-social a {
  color: #d7e5ff;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size: .92rem;
}

.sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 42px rgba(31,99,255,.28);
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 10% 10%, rgba(112,167,255,.36), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(154,211,255,.24), transparent 28%),
    linear-gradient(135deg, #07101f 0%, #102455 45%, #1c5bd8 100%);
  padding: 150px 0 104px;
}

.hero-section--elite {
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(106, 171, 255, .18);
  top: 10%;
  left: -60px;
}

.hero-orb-2 {
  width: 220px;
  height: 220px;
  background: rgba(154, 211, 255, .12);
  right: 6%;
  bottom: 10%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dce8ff;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-copy {
  padding-top: 0;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  line-height: .98;
  margin: 18px 0 18px;
  max-width: 10.6ch;
  letter-spacing: -.04em;
}

.hero-copy p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions,
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.hero-trust {
  margin-top: 26px;
}

.hero-trust li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #edf3ff;
  font-size: .94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: .25s ease;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #86b7ff);
  box-shadow: 0 16px 38px rgba(31, 99, 255, 0.28);
}

.button-primary:hover {
  transform: translateY(-2px);
}

.button-secondary {
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}

.button-secondary:hover {
  background: rgba(255,255,255,.1);
}

.hero-visual {
  position: relative;
}

.hero-portrait-stage {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait-glow {
  position: absolute;
  inset: auto 8% 8% 8%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,150,255,.30) 0%, rgba(89,150,255,.08) 48%, transparent 72%);
  filter: blur(34px);
}

.hero-portrait-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 36px 60px rgba(0, 0, 0, .32));
  transform: translateY(-36px);
}

.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: 0;
  bottom: 38px;
  max-width: 250px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(15, 32, 78, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(2, 8, 24, 0.24);
}

.hero-badge-label {
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
  opacity: .88;
  color: rgba(255,255,255,.9);
}

.hero-badge strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
  color: #fff;
}

.hero-badge p {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: .95rem;
  line-height: 1.45;
}

/* Sections */
.section {
  padding: 104px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-head.left {
  text-align: left;
  margin: 0;
}

.section-head h2,
.section-head h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.06;
  color: #0a1632;
  letter-spacing: -.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 1.04rem;
}

.feature-grid,
.services-grid,
.portfolio-grid,
.content-grid {
  display: grid;
  gap: 24px;
}

.feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.services-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.portfolio-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.content-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

.feature-card,
.service-card,
.portfolio-card,
.single-card,
.content-card,
.contact-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11, 22, 52, 0.06);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 30px;
}

.feature-card:hover,
.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-4px);
  transition: .24s ease;
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #e6efff, #d5e4ff);
  color: #1541a8;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-card h3,
.service-card h3,
.portfolio-card h3,
.content-card h2 {
  margin: 0 0 10px;
  color: #0d1730;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}

.feature-card p,
.service-card p,
.portfolio-card p,
.content-card p {
  margin: 0;
  color: var(--muted-dark);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: #1950cc;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #edf3ff;
  border-radius: 999px;
  color: #1a47b6;
  font-size: .84rem;
  font-weight: 700;
}

.contact-section {
  background: linear-gradient(180deg, rgba(14,25,54,.03), rgba(63,124,255,.08));
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.consult-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.consult-form label {
  display: grid;
  gap: 8px;
  color: #12203f;
  font-weight: 600;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  border: 1px solid #d8e2f5;
  background: #f9fbff;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: #0d1730;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: 2px solid rgba(63,124,255,.24);
  border-color: #7aa7ff;
}

.form-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.form-notice.success { background: #e8fff1; color: #126239; }
.form-notice.error,
.form-notice.invalid,
.form-notice.missing { background: #fff1f1; color: #8f1f1f; }

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 14% 10%, rgba(63,124,255,.10), transparent 28%),
    linear-gradient(180deg, #041126 0%, #050d1f 100%);
  color: white;
  padding: 72px 0 24px;
}

.footer-shell {
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 28px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 34px;
}

.footer-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #8db8ff;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
}

.footer-brand h3 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.footer-brand p {
  margin: 0;
  max-width: 560px;
  color: #c9d7f4;
  font-size: 1rem;
}

.footer-cta-wrap {
  display: flex;
  justify-content: flex-end;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 42px rgba(31,99,255,.24);
}

.footer-grid {
  display: grid;
  grid-template-columns: .8fr .8fr 1fr;
  gap: 30px;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.footer-col p,
.footer-grid a {
  color: #c9d7f4;
}

.footer-menu,
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col-note p {
  max-width: 360px;
  margin: 0;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #9eb3de;
  font-size: .94rem;
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 44px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .portfolio-grid,
  .feature-grid,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .contact-grid,
  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-portrait-stage,
  .hero-portrait-card,
  .hero-portrait-frame {
    min-height: 470px;
  }

  .hero-portrait {
    max-width: 360px;
    transform: translateY(-20px);
  }

  .footer-cta-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .header-bar {
    min-height: 78px;
    padding: 14px 0;
  }

  .site-brand .custom-logo,
  .sidebar-brand .custom-logo {
    max-height: 42px;
    max-width: 180px;
  }

  .brand-copy span:last-child {
    display: none;
  }

  .hero-section {
    padding: 128px 0 72px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.6rem);
    max-width: 11ch;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-trust {
    gap: 10px;
  }

  .hero-portrait-stage,
  .hero-portrait-card,
  .hero-portrait-frame {
    min-height: 380px;
  }

  .hero-portrait {
    max-width: 300px;
    transform: translateY(-10px);
  }

  .hero-badge {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    padding: 14px 14px;
  }

  .hero-badge strong {
    font-size: 2.2rem;
  }

  .sidebar-panel {
    width: 100%;
    padding: 22px 20px 24px;
  }

  .sidebar-nav a {
    grid-template-columns: 36px 1fr;
    padding: 16px 0;
  }

  .sidebar-nav-label {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .section {
    padding: 78px 0;
  }

  .feature-grid,
  .services-grid,
  .portfolio-grid,
  .content-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .site-brand {
    gap: 10px;
  }

  .brand-copy strong {
    font-size: .98rem;
  }

  .menu-trigger {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .hero-section {
    padding: 122px 0 60px;
  }

  .hero-copy h1 {
    margin-top: 16px;
    margin-bottom: 14px;
  }

  .hero-portrait-stage,
  .hero-portrait-card,
  .hero-portrait-frame {
    min-height: 340px;
  }

  .hero-portrait {
    max-width: 270px;
    transform: translateY(-4px);
  }

  .feature-card,
  .service-card,
  .portfolio-card,
  .contact-card {
    padding: 24px;
  }

  .sidebar-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}