:root {
  color-scheme: light;
  --ink: #171824;
  --body: #505161;
  --paper: #fbfaf7;
  --dark: #10121b;
  --dark-deep: #0b0d14;
  --white: #f9f8ff;
  --muted: #c0bfd0;
  --lime: #def685;
  --violet: #bdaaff;
  --line: #dfdde5;
  --max-width: 1248px;
  --gutter: clamp(22px, 5vw, 72px);
  --header-height: 80px;
  --display: "Manrope", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  color: var(--ink);
}

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

html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; }
section[id], #main { scroll-margin-top: calc(var(--header-height) + 18px); }
section[tabindex="-1"]:focus { outline: none; }
::selection { color: var(--ink); background: var(--lime); }

:focus-visible {
  outline: 2px solid #7552d1;
  outline-offset: 5px;
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  transform: translateY(calc(-100% - 14px));
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--dark);
  color: var(--white);
}
.site-header :focus-visible, .hero :focus-visible, .contacts :focus-visible, .site-footer :focus-visible {
  outline-color: var(--lime);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgb(226 223 255 / 13%);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  top: -4.6px;
  left: 50%;
  width: 73px;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.brand-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(21px, 3.35vw, 54px);
}

.site-nav a {
  position: relative;
  padding-block: 12px;
  color: #e8e6f0;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover, .site-nav a[aria-current] { color: var(--lime); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: radial-gradient(ellipse at 79% 45%, #19172a, transparent 60%), var(--dark);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 46vw, 680px);
  padding-block: 100px 111px;
}

.hero-content { position: relative; z-index: 1; width: min(63%, 720px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2dcf5;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span { width: 24px; height: 1px; background: var(--lime); }

.hero h1 {
  margin-top: 25px;
  font-size: clamp(4rem, 7.2vw, 6.75rem);
  letter-spacing: -.06em;
  line-height: .98;
}

.hero h1 em { color: var(--violet); font-style: normal; }

.hero-description {
  max-width: 430px;
  margin-top: 27px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 33px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button-bright { color: #191c11; background: var(--lime); }
.button-bright:hover { background: #ecffac; }
.button-outline { border-color: #57536e; background: rgb(16 18 27 / 40%); }
.button-outline:hover { border-color: #a49bbd; background: #242237; }

.hero-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -4.8%;
  width: 65%;
  max-width: 880px;
  aspect-ratio: 5 / 4;
  transform: translateY(-50%);
  isolation: isolate;
  pointer-events: none;
}

.hero-art-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 65% 59% at 56% 48%, #000 40%, transparent 98%);
  mask-image: radial-gradient(ellipse 65% 59% at 56% 48%, #000 40%, transparent 98%);
}

.hero-art img, .hero-art-flow {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-art-flow { position: absolute; inset: 0; mix-blend-mode: screen; }

.art-toggle:not([hidden]) {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 27px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #615977;
  border-radius: 50%;
  color: var(--white);
  background: rgb(17 18 29 / 86%);
  cursor: pointer;
}

.art-toggle:hover { border-color: #a49bbd; background: #242237; }

.art-toggle::before {
  width: 11px;
  height: 13px;
  border-inline: 3px solid currentColor;
  content: "";
}

.hero[data-art-motion="paused"] .art-toggle::before {
  width: 0;
  height: 0;
  border: 0;
  border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
  transform: translateX(1px);
}

@media (min-width: 621px) {
  .hero-art-visual {
    -webkit-mask-image: radial-gradient(ellipse 65% 59% at 56% 48%, #000 40%, transparent 98%), linear-gradient(90deg, transparent, #000 34%);
    mask-image: radial-gradient(ellipse 65% 59% at 56% 48%, #000 40%, transparent 98%), linear-gradient(90deg, transparent, #000 34%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

.section-pad { padding-block: clamp(72px, 8vw, 116px); }
.services { padding-bottom: clamp(62px, 6vw, 88px); }

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 42%);
  gap: 30px;
  align-items: end;
  margin-bottom: 33px;
}

.section-heading h2, .about h2, .contacts h2 {
  font-size: clamp(3rem, 5.45vw, 5.125rem);
  letter-spacing: -.057em;
  line-height: 1.03;
}

.section-heading p, .feature p, .about p, .contact-content p {
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.service-list { border-top: 1px solid var(--line); }

.service { border-bottom: 1px solid var(--line); }

.service summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, 37%) auto;
  min-height: 94px;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
}

.service summary::-webkit-details-marker, .brief summary::-webkit-details-marker { display: none; }
.service summary::marker, .brief summary::marker { content: ""; }

.service-title {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.875rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.service-summary { color: var(--body); line-height: 1.45; }

.service-toggle {
  position: relative;
  width: 43px;
  height: 43px;
  border: 1px solid #d5d0e1;
  border-radius: 50%;
  color: #4b367c;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.service-toggle::before, .service-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.service-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.service[open] .service-toggle::after { transform: translate(-50%, -50%); }
.service summary:hover .service-toggle, .service[open] .service-toggle {
  border-color: #d9cdee;
  background: #ebe3f7;
}

.service-content {
  max-width: 680px;
  padding: 0 55px 27px 0;
}
.service-content p { color: var(--body); font-size: 1rem; line-height: 1.65; }
.service-content a { display: inline-block; margin-top: 14px; }

.text-link {
  width: fit-content;
  color: #53328d;
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.4;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover { color: #311b61; text-decoration-thickness: 2px; }

.partners {
  background: #fff;
}

.partners-banner {
  padding-block: clamp(68px, 9vw, 124px);
  color: var(--white);
  background:
    repeating-radial-gradient(ellipse at 86% 145%, transparent 0 31px, #c2a6ff17 32px 33px, transparent 34px 58px),
    radial-gradient(ellipse at 80% 100%, #34234e, transparent 68%),
    var(--dark);
  text-align: center;
}

.partners-banner h2 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  letter-spacing: -.048em;
  line-height: 1.06;
}

.partners-content {
  padding-block: clamp(36px, 6vw, 80px);
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners-grid li:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 250px);
}

.partner-link {
  display: grid;
  min-height: clamp(100px, 12vw, 156px);
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
  border-radius: 12px;
}

.partner-link img {
  width: min(100%, 192px);
  height: auto;
}

.partner-link:hover { background: #f8f5fc; }

.news-container { margin-top: clamp(38px, 6vw, 76px); }

.feature {
  min-height: 279px;
  padding: clamp(28px, 3.6vw, 54px);
  border: 1px solid #e3dfea;
  border-radius: 18px;
  background: #f6f4f8;
}

.feature-content { max-width: 320px; }

.feature h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.048em;
  line-height: 1.06;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 44%);
  align-items: start;
  gap: clamp(32px, 8vw, 112px);
}

.about-content p { max-width: 555px; margin-top: 22px; }

.approach {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.approach li {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.approach strong { font-size: 1.0625rem; font-weight: 800; }
.approach span { color: var(--body); font-size: .9375rem; line-height: 1.45; }

.contacts {
  color: var(--white);
  background: radial-gradient(ellipse at right top, #242037, transparent 73%), var(--dark);
}

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 37%);
  align-items: start;
  gap: clamp(24px, 6vw, 96px);
}

.contacts h2 { margin-top: 16px; }
.contact-content p { color: var(--muted); }

.contact-details {
  display: grid;
  gap: 9px;
  margin-bottom: 25px;
  font-style: normal;
}

.contact-content .contact-company { color: var(--white); font-weight: 750; }
.contact-content .contact-identifiers { font-size: .9375rem; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
}

.contact-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--white);
  font-weight: 700;
  text-decoration-color: var(--violet);
  text-underline-offset: 4px;
}

.contact-links a:hover { color: var(--lime); text-decoration-color: currentColor; }

.brief {
  margin-top: 17px;
  border-block: 1px solid #474158;
  color: #eae5fa;
}

.brief summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: .9375rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.brief summary::after { color: var(--lime); font-size: 1.25rem; content: "+"; }
.brief[open] summary::after { content: "−"; }
.brief ul { margin: 0 0 14px; padding-left: 1.25rem; font-size: .9375rem; line-height: 1.6; }

.site-footer { background: var(--dark-deep); color: var(--muted); }

.footer-inner {
  display: flex;
  min-height: 81px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .875rem;
}

.footer-inner .brand { color: var(--white); }
.footer-top { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 4px; }
.footer-top:hover { color: var(--white); }

@media (max-width: 1000px) {
  .site-nav { gap: 24px; }
  .site-nav a { letter-spacing: .045em; }
  .hero-art { right: -10%; width: 74%; }
}

@media (max-width: 800px) {
  :root { --header-height: 68px; }

  .header-inner { flex-wrap: wrap; gap: 0 16px; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 14px; }

  .site-header[data-enhanced="true"] .menu-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #514a68;
    border-radius: 8px;
    background: transparent;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
  }

  .site-header[data-enhanced="true"] .menu-toggle:hover { background: #232132; }
  .menu-icon { display: grid; gap: 4px; }
  .menu-icon::before, .menu-icon::after {
    display: block;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    content: "";
  }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(2.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-2.75px) rotate(-45deg); }

  .site-header[data-enhanced="true"] .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 8px var(--gutter) 18px;
    border-bottom: 1px solid #454056;
    background: var(--dark);
    box-shadow: 0 18px 25px rgb(8 8 14 / 30%);
  }

  .site-header[data-menu-open="true"] .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a { min-height: 48px; display: flex; align-items: center; }
  .site-nav a::after { right: auto; width: 26px; }

  .hero-inner { min-height: 520px; padding-block: 86px 96px; }
  .hero-content { width: min(70%, 505px); }
  .hero h1 { font-size: clamp(3.2rem, 8.5vw, 4.875rem); }
  .hero-art { right: -18%; width: 85%; opacity: .8; }
  .hero-description { max-width: 370px; }
  .service summary { grid-template-columns: minmax(0, 1fr) minmax(170px, 38%) auto; }
}

@media (max-width: 620px) {
  .hero-inner { flex-direction: column; align-items: stretch; min-height: 0; padding-block: 52px 16px; }
  .hero-content { width: 100%; }
  .hero h1 { margin-top: 17px; font-size: clamp(2.55rem, 10.6vw, 4.15rem); }
  .hero-description { max-width: 33ch; margin-top: 17px; }
  .hero-actions { gap: 9px; margin-top: 22px; }
  .button { min-height: 48px; padding-inline: 13px; }

  .hero-art {
    position: relative;
    top: auto;
    right: auto;
    left: 50%;
    width: 116%;
    max-width: 520px;
    aspect-ratio: 1.65;
    margin-top: -9px;
    transform: translateX(-50%);
    opacity: 1;
  }

  .hero-art { order: 1; }
  .hero-art img, .hero-art-flow { object-position: center 56%; }

  .section-heading, .about-inner, .contacts-inner { grid-template-columns: 1fr; }
  .section-heading { gap: 12px; margin-bottom: 24px; }

  .section-pad { padding-block: 61px; }
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { min-height: 198px; }
  .about-content p { margin-top: 14px; }

  .service summary {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    padding-block: 18px;
  }

  .service-title { grid-column: 1; }
  .service-summary { grid-column: 1; font-size: .9375rem; }
  .service-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .service-content { padding-right: 0; }

  .footer-inner { min-height: 74px; gap: 9px; }
  .footer-inner .brand-name { display: none; }
}

@media (max-width: 350px) {
  :root { --gutter: 17px; }
  .button { font-size: .875rem; }
}

@keyframes content-enter {
  from { opacity: .4; transform: translateY(14px); }
}

@keyframes artwork-enter {
  from { opacity: .18; }
}

@keyframes panel-enter {
  from { opacity: .35; transform: translateY(-5px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: content-enter 480ms cubic-bezier(.2, .75, .25, 1) backwards;
  }

  .hero h1 { animation-delay: 75ms; }
  .hero-description { animation-delay: 145ms; }
  .hero-actions { animation-delay: 215ms; }
  .hero-actions:focus-within { animation-delay: 0ms; animation-duration: 1ms; }

  .hero-art-visual {
    animation: artwork-enter 760ms cubic-bezier(.2, .75, .25, 1) 70ms backwards;
  }

  [data-reveal="visible"] {
    animation: content-enter 460ms cubic-bezier(.2, .75, .25, 1) backwards;
  }

  .feature-news[data-reveal="visible"], .approach[data-reveal="visible"] { animation-delay: 60ms; }
  [data-reveal="visible"]:focus-within { animation-delay: 0ms; animation-duration: 1ms; }

  .service[open] .service-content, .brief[open] ul {
    animation: panel-enter 240ms ease-out;
  }

  .service-toggle::after, .menu-icon::before, .menu-icon::after { transition: transform 180ms ease; }
}

@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .site-header[data-menu-open="true"] .site-nav { animation: panel-enter 200ms ease-out; }
}

@media (min-width: 801px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
  .button:hover { transform: translateY(-2px); }
  .button:active { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
