:root {
  --midnight: #171a34;
  --blue: #6255c7;
  --blue-light: #c4bcff;
  --bg: #f5f4f1;
  --surface: #fffefa;
  --text: #171a34;
  --text2: #575a70;
  --text3: #797d91;
  --border: rgba(30, 34, 73, .09);
  --motion: cubic-bezier(.32,.72,0,1);
}

body { font-family: 'Avenir Next', 'SF Pro Display', system-ui, sans-serif; }
::selection { background: #cbc4ff; color: var(--midnight); }
a:focus-visible, select:focus-visible { outline: 3px solid #8c7cf1; outline-offset: 4px; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--midnight); box-shadow: 0 8px 22px rgba(22,24,56,.18); }
.skip-link:focus { top: 12px; }

nav {
  width: min(1200px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 0 24px;
  top: 16px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background: rgba(255,254,250,.9);
  box-shadow: 0 18px 60px rgba(22,24,56,.09), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(20px);
}
.nav-inner { max-width: none; height: 72px; }
.logo-icon { border-radius: 12px; background: #202342; }
.logo-name { font-size: 17px; letter-spacing: -.04em; }
.nav-links { gap: clamp(14px, 1.7vw, 30px); }
.nav-links a { font-size: 13px; font-weight: 600; transition: color .35s var(--motion); }
.nav-links a:hover { color: var(--blue); }
.lang-select { height: 40px; border-radius: 12px; border-color: rgba(30,34,73,.14); font-family: inherit; }
.nav-cta { padding: 11px 20px; border-radius: 999px; font-weight: 700; transition: transform .18s var(--motion), box-shadow .18s var(--motion); }

.hero {
  max-width: 1200px;
  min-height: 550px;
  margin: 28px auto 0;
  padding: clamp(56px, 6vw, 96px);
  display: grid;
  grid-template-columns: minmax(0,1.16fr) minmax(290px,.84fr);
  align-items: center;
  gap: 30px;
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: radial-gradient(ellipse at 78% 30%, #3e3a80 0, transparent 43%), linear-gradient(140deg,#171a34 10%,#25254c 100%);
  border-radius: 38px;
  box-shadow: 0 28px 85px rgba(28,26,67,.18);
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg,transparent 15%,#000 100%); }
.hero-copy { position: relative; z-index: 1; }
.hero-badge { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); color: #e0dcff; letter-spacing: .06em; font-size: 11px; padding: 8px 14px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(43px,4.5vw,60px); font-weight: 700; line-height: 1.06; letter-spacing: -.065em; color: #fff; margin-bottom: 26px; }
.hero h1 span { color: #fff; }
.hero h1 span:last-child { color: var(--blue-light); }
.hero p { margin: 0 0 34px; max-width: 590px; color: #d2d2e3; font-size: clamp(16px,1.4vw,19px); line-height: 1.7; }
.hero-btns { justify-content: flex-start; }
.btn-primary,.btn-secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; min-height: 50px; padding: 13px 24px; font-weight: 700; transition: transform .18s var(--motion), box-shadow .18s var(--motion), background .18s var(--motion); }
.hero .btn-primary { background: #ddd7ff; color: #1c1b3a; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-primary:active,.btn-secondary:active,.nav-cta:active { transform: scale(.97); transition-duration: .14s; }

.hero-visual { position: relative; width: min(100%,480px); aspect-ratio: 1; justify-self: center; overflow: hidden; border-radius: 30px; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; mask-image: radial-gradient(circle at 50% 52%, #000 48%, rgba(0,0,0,.8) 68%, transparent 96%); }

.services,.products,.about,.contact,.privacy { padding: clamp(84px,9vw,132px) 32px; }
.section-inner { max-width: 1120px; }
.section-label { display: inline-flex; border-radius: 999px; padding: 7px 12px; background: rgba(98,85,199,.09); color: var(--blue); letter-spacing: .15em; margin-bottom: 21px; }
.section-title { font-size: clamp(34px,4vw,52px); line-height: 1.13; letter-spacing: -.055em; font-weight: 700; max-width: 760px; margin-bottom: 18px; }
.section-sub { max-width: 640px; font-size: 17px; line-height: 1.7; margin-bottom: 45px; }
.services { background: var(--bg); }
.services-grid { grid-template-columns: 1.12fr .88fr; gap: 18px; }
.service-card { min-height: 250px; border: 7px solid rgba(28,31,68,.035); border-radius: 26px; padding: 30px; background: var(--surface); box-shadow: inset 0 1px 1px #fff; transition: transform .22s var(--motion), box-shadow .22s var(--motion); }
.service-card:first-child { min-height: 315px; background: #25264e; color: white; }
.service-card:nth-child(2) { min-height: 315px; background: #e9e5fb; }
.service-card:nth-child(3) { background: #e8f3ed; }
.service-icon { width: 48px; height: 48px; background: rgba(98,85,199,.1); border-radius: 15px; font-size: 12px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.service-card:first-child .service-icon { background: rgba(255,255,255,.14); }
.service-card h3 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 12px; }
.service-card p { font-size: 15px; line-height: 1.75; }
.service-card:first-child h3,.service-card:first-child p { color: #fff; }
.service-card:first-child p { color: #d4d3ea; }

.products { background: #fffefa; }
.products-grid { grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); gap: 20px; }
.product-card { border: 7px solid rgba(28,31,68,.04); border-radius: 29px; padding: 34px; min-height: 330px; background: #f5f4f1; transition: transform .22s var(--motion),box-shadow .22s var(--motion); }
.product-card:first-child { background: #eeeafc; }
.product-card::before { left: 34px; right: 34px; top: 0; height: 4px; border-radius: 0 0 8px 8px; background: #7668db; }
.product-card h3 { font-size: 28px; letter-spacing: -.04em; }
.product-card p { font-size: 15px; line-height: 1.7; }
.product-badge,.tag { border-radius: 999px; }
.tag { color: #606176; background: rgba(255,255,255,.62); }

.about { background: #1b1c39; }
.about-grid { gap: 80px; }
.about .section-label { background: rgba(209,200,255,.12); }
.about .section-title { max-width: 580px; }
.about-text p { font-size: 16px; line-height: 1.8; }
.about-stats { gap: 14px; }
.stat { min-height: 156px; border: 6px solid rgba(255,255,255,.035); border-radius: 22px; padding: 25px; background: rgba(255,255,255,.055); }
.stat-val { font-size: 38px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; line-height: 1.4; }

.contact { background: var(--surface); }
.contact-grid { gap: 80px; }
.contact-item-icon { background: #efecfb; border-radius: 13px; font-size: 17px; font-weight: 800; }
.contact-item a { text-decoration: underline; text-underline-offset: 3px; }
.privacy { background: #f5f4f1; }
.privacy-content { max-width: 800px; padding: 40px clamp(22px,5vw,60px); background: var(--surface); border-radius: 26px; box-shadow: 0 12px 45px rgba(30,34,73,.045); }
.privacy h3 { line-height: 1.35; }
.privacy p,.privacy li { color: #55596c; }
footer { background: #17182e; }

.products .section-label,.about .section-label,.contact .section-label,.privacy .section-label { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,26,52,.2); }
  .btn-primary:hover,.btn-secondary:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(13,14,34,.15); }
  .hero .btn-secondary:hover { background: rgba(255,255,255,.1); }
  .service-card:hover,.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(25,27,61,.09); }
}
.btn-primary:active,.btn-secondary:active,.nav-cta:active { transform: scale(.97); }

@media (max-width: 980px) {
  nav { width: calc(100% - 28px); padding: 0 18px; }
  .nav-inner { height: auto; min-height: 68px; flex-wrap: wrap; padding: 12px 0; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .nav-right { margin-left: auto; }
  .hero { margin: 18px 14px 0; padding: 65px 50px; min-height: 550px; grid-template-columns: 1fr .72fr; }
  .hero h1 { font-size: clamp(42px,5vw,56px); }
  .hero-visual { width: 100%; }
}
@media (max-width: 700px) {
  nav { top: 8px; margin-top: 8px; border-radius: 20px; }
  .nav-inner { align-items: center; }
  .logo-name { font-size: 15px; }
  .nav-right { width: auto; }
  .nav-cta { padding: 10px 15px; }
  .lang-select { max-width: 100px; }
  .nav-links { display: flex; justify-content: flex-start; flex-wrap: nowrap; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 5px 1px 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .hero { display: block; min-height: 0; padding: 54px 28px 45px; border-radius: 28px; }
  .hero h1 { font-size: clamp(42px,10vw,58px); }
  .hero p { font-size: 16px; }
  .hero-visual { margin: 54px auto 0; width: min(70%,250px); }
  .services,.products,.about,.contact,.privacy { padding: 80px 20px; }
  .services-grid,.products-grid,.about-grid,.contact-grid { grid-template-columns: 1fr; }
  .service-card,.service-card:first-child,.service-card:nth-child(2) { min-height: 0; }
  .about-grid,.contact-grid { gap: 40px; }
  .section-title { font-size: 38px; }
  .privacy-content { padding: 30px 24px; }
}
@media (max-width: 420px) {
  .nav-inner { gap: 10px; }
  .logo-icon { width: 32px; height: 32px; }
  .logo-name { font-size: 14px; }
  .nav-right { gap: 6px; }
  .lang-select { width: 86px; font-size: 11px; }
  .nav-cta { font-size: 11px; padding: 10px 11px; }
  .hero { padding: 48px 23px 39px; }
  .hero h1 { font-size: 40px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-visual { width: 75%; }
  .section-title { font-size: 34px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 145px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
