:root {
  --bg-main: #0d0d0f;
  --bg-elevated: #111119;
  --bg-dark: #14141d;
  --text-main: #ffffff;
  --text-muted: #b3b7c3;
  --accent: #1e6bff;
  --border-subtle: #1e6bff33;
}

body[data-theme="light"] {
  --bg-main: #f5f6fa;
  --bg-elevated: #ffffff;
  --bg-dark: #e4e6f0;
  --text-main: #111119;
  --text-muted: #454a5a;
  --accent: #1e6bff;
  --border-subtle: #1e6bff44;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, Inter, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

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

/* ===========================
   HEADER
=========================== */

.header {
  position: fixed;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  z-index: 5000;
  border-bottom: 1px solid #ffffff10;
  transform: none !important;
  translate: none !important;
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
  min-height: 42px;
  max-height: 42px;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.logo span {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .18em;
  color: var(--text-main);
  white-space: nowrap;
}

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

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle,
.theme-toggle,
.mobile-menu-btn {
  border: 1px solid #ffffff33;
  background: transparent;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
}

.theme-toggle {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  font-size: 20px;
}

body[data-theme="light"] .header {
  background: rgba(255,255,255,.78);
  border-bottom-color: rgba(0,0,0,.08);
}

/* ===========================
   BASE SECTIONS
=========================== */

.section {
  padding: 60px 20px;
}

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

.section-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.btn {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ===========================
   HERO
=========================== */

.hero,
.page-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.30) 0%,
      rgba(0,0,0,.25) 45%,
      rgba(13,13,15,.15) 65%,
      rgba(13,13,15,.70) 82%,
      #0d0d0f 100%
    );
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  background: linear-gradient(
    to bottom,
    rgba(13,13,15,0),
    rgba(13,13,15,.20),
    rgba(13,13,15,.45),
    rgba(13,13,15,.75),
    #0d0d0f
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(32px,4vw,48px);
  margin-bottom: 10px;
  line-height: 1.2;
  max-width: 650px;
}

.hero p,
.page-hero p {
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===========================
   ANIMATIONS
=========================== */

.section-observe {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  overflow: hidden;
}

.section-observe.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   PILLARS
=========================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 22px;
}

.pillar {
  background: var(--bg-elevated);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 18px 20px;
}

/* ===========================
   SERVICES
=========================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1450px;
  margin: 60px auto;
  padding: 0 20px;
}

.service-card {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(17,17,25,0) 0%,
      rgba(17,17,25,.25) 32%,
      rgba(17,17,25,.75) 48%,
      #111119 62%
    ),
    var(--bg-elevated);
  border: 1px solid rgba(30,107,255,.35);
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center center;
  display: block;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 65%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 65%,
    transparent 100%
  );
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 125px;
  height: 145px;
  background: linear-gradient(
    to bottom,
    rgba(17,17,25,0) 0%,
    rgba(17,17,25,.35) 35%,
    rgba(17,17,25,.75) 70%,
    #111119 100%
  );
  pointer-events: none;
  z-index: 1;
}

.service-body {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 28px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
}

.service-body h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--accent);
}

.service-body p {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 90%;
}

/* ===========================
   SECTORS
=========================== */

.sectors-section {
  background:
    radial-gradient(circle at top right, rgba(30,107,255,.16), transparent 36%),
    linear-gradient(180deg, #08090d 0%, var(--bg-main) 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.sector-card {
  position: relative;
  min-height: 260px;
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.sector-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30,107,255,.65);
}

.sector-card.featured {
  border-color: rgba(30,107,255,.75);
  background: linear-gradient(145deg, rgba(30,107,255,.18), rgba(255,255,255,.035));
}

.sector-number {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .18em;
  font-weight: 700;
}

.sector-card h3 {
  margin: 0 0 14px;
  color: var(--text-main);
  font-size: 1.25rem;
  line-height: 1.2;
}

.sector-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .95rem;
}

@media (max-width: 1100px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sector-card {
    min-height: auto;
    padding: 24px 20px;
  }
}
/* ===========================
   ABOUT
=========================== */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 30px;
  align-items: center;
}

.about-image {
  border-radius: 18px;
  min-height: 260px;
  border: 1px solid var(--border-subtle);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===========================
   CONTACT
=========================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
}

.contact-form {
  background: var(--bg-elevated);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  padding: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #05060a;
  color: var(--text-main);
  border-radius: 10px;
  border: 1px solid #ffffff22;
}

body[data-theme="light"] .contact-form input,
body[data-theme="light"] .contact-form textarea,
body[data-theme="light"] .contact-form select {
  background: #ffffff;
  color: var(--text-main);
  border-color: rgba(0,0,0,.18);
}

/* ===========================
   FOOTER / LOADER
=========================== */

.footer {
  border-top: 1px solid #ffffff10;
  padding: 18px 20px;
  background: #020309;
}

.footer-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

body[data-theme="light"] .footer {
  background: #ffffff;
  border-top-color: rgba(0,0,0,.08);
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  display: none;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #1e6bff33;
  border-top-color: #1e6bff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%,-50%) rotate(360deg);
  }
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:1500px) {
  .service-grid {
    grid-template-columns: repeat(4,1fr);
  }
}

@media (max-width:1200px) {
  .service-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width:900px) {
  .service-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .contact-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width:768px) {
  .header-inner {
    position: relative;
    padding: 12px 16px;
  }

  .logo {
    max-width: 58vw;
    gap: 8px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
  }

  .logo span {
    font-size: 12px;
    letter-spacing: .14em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(0,0,0,.45);
    z-index: 6000;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(30,107,255,.12);
    color: var(--accent);
  }

  .hero,
  .page-hero {
    min-height: 68vh;
    padding-top: 0;
    padding-bottom: 0;
    background-position: center top !important;
  }

  .hero-content,
  .page-hero-content {
    max-width: 100%;
    padding: 48px 16px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.1;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 6px;
  }
}

@media (max-width:600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card img {
    height: 230px;
  }
}

@media (max-width:450px) {
  h1 {
    font-size: 26px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    gap: 5px;
  }

  .lang-toggle,
  .theme-toggle,
  .mobile-menu-btn {
    padding: 5px 9px;
  }

  .logo {
    max-width: 45vw;
  }
}
.partners-section {
  padding: 80px 20px;
  background: #0b0f14;
}

.partners-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  color: #aeb6c2;
  line-height: 1.6;
}

.partners-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.partner-card {
  min-height: 395px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 20px;
  color: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.partner-card img {
  max-width: 100%;
  height: 145px;
  object-fit: contain;
  margin: 0 auto 25px;
}

.partner-content {
  margin-top: auto;
}

.partner-content h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.partner-content p {
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.45;
  font-weight: 600;
}

.partner-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.22);
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: 360px;
  }
}
.form-success {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 123, 255, 0.45);
  background: rgba(0, 123, 255, 0.10);
  border-radius: 14px;
  color: #ffffff;
}

.form-success p {
  margin: 8px 0 0;
  color: #c7ccd6;
  line-height: 1.5;
}



@media (max-width: 768px) {
  .section-observe {
    opacity: 1 !important;
    transform: none !important;
    overflow: visible !important;
  }

  .section-observe.show {
    opacity: 1 !important;
    transform: none !important;
  }

  .service-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    margin: 40px auto !important;
    padding: 0 16px !important;
  }

  .service-card {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ===========================
   SERVICE MODALS
=========================== */

.service-card[data-modal-target] {
  cursor: pointer;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.service-card[data-modal-target]:hover {
  transform: translateY(-5px);
  border-color: rgba(30,107,255,.72);
  box-shadow: 0 20px 45px rgba(0,0,0,.28);
}

.service-card[data-modal-target]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

body.modal-open {
  overflow: hidden;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .25s ease,
    visibility .25s ease;
}

.service-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-modal-dialog {
  position: relative;
  width: min(100%, 880px);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  background:
    linear-gradient(
      145deg,
      rgba(18,21,26,.99),
      rgba(7,9,12,.99)
    );
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow:
    0 25px 80px rgba(0,0,0,.65),
    0 0 0 1px rgba(30,107,255,.08);
  transform: translateY(24px) scale(.98);
  transition: transform .25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #11151a;
}

.service-modal.is-open .service-modal-dialog {
  transform: translateY(0) scale(1);
}

.service-modal-content {
  padding: 54px 58px 58px;
}

.service-modal-close {
  position: sticky;
  top: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 18px 18px -60px auto;
  padding: 0;
  color: #fff;
  font-family: inherit;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  background: rgba(17,21,26,.94);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.service-modal-close:hover {
  background: var(--accent);
  border-color: #60a0ff;
  transform: rotate(90deg);
}

.service-modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-modal-title {
  max-width: calc(100% - 55px);
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem,4vw,2.45rem);
  font-weight: 650;
  line-height: 1.15;
}

.service-modal-line {
  width: 95px;
  height: 3px;
  margin: 22px 0 26px;
  background: var(--accent);
  border-radius: 999px;
}

.service-modal-description {
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.service-modal-subtitle {
  margin: 30px 0 15px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.service-modal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-modal-list li {
  position: relative;
  padding-left: 22px;
  color: #e1e5e9;
  font-size: .98rem;
  line-height: 1.55;
}

.service-modal-list li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(30,107,255,.55);
}

.service-modal-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 42px;
}

.service-modal-group + .service-modal-group {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .service-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .service-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 10px 10px;
  }

  .service-modal-content {
    padding: 42px 25px 38px;
  }

  .service-modal-close {
    top: 12px;
    width: 39px;
    height: 39px;
    margin: 12px 12px -51px auto;
    font-size: 25px;
  }

  .service-modal-title {
    max-width: calc(100% - 48px);
  }

  .service-modal-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .service-modal {
    padding: 0;
  }

  .service-modal-dialog {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .service-modal-content {
    padding: 76px 22px 42px;
  }

  .service-modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    margin: 0;
  }

  .service-modal-title {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card[data-modal-target],
  .service-modal,
  .service-modal-dialog,
  .service-modal-close {
    transition: none;
  }
}
