:root {
  --ink: #17171c;
  --grey: #6b6b76;
  --white: #fff;
  --blue: #4257f5;
  --tangerine: #e0662c;
  --line: #eceae4;
  --field: #f6f5f1;
  --beige: #f3efe8;
  --canvas: #fbfaf7;
  --sky: #bad1fa;
  --error: #c23b22;
  --blue-tint: #eef3ff;
  --tangerine-tint: #fff1e8;
  --lime-tint: #f4f7e3;
  --pink-tint: #fceff6;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-stat: "Schibsted Grotesk", var(--font);

  --shadow-card: 0 1px 2px rgba(13, 13, 26, .04), 0 16px 40px rgba(13, 13, 26, .08);
  --shadow-float: 0 2px 6px rgba(13, 13, 26, .05), 0 24px 64px rgba(13, 13, 26, .12);

  --container: 1200px;
  --gutter: max(20px, calc((100% - var(--container)) / 2));
  --section-y: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -.085px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-size: 80px; font-weight: 500; line-height: 1; letter-spacing: -3.2px; }
.h2 { font-size: 56px; font-weight: 500; line-height: 1.04; letter-spacing: -1.96px; }
.h3 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.33px; }
.body { font-size: 17px; line-height: 1.55; }
.muted { color: var(--grey); }
.c-blue { color: var(--blue); }
.c-tangerine { color: var(--tangerine); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -.075px; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn img { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover img { transform: translateX(2px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #3346de; }
.btn--secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--secondary:hover { border-color: #d6d3ca; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2c2c34; }
.btn:focus-visible, .tab:focus-visible, .chip:focus-visible, .brief__go:focus-visible, .nav a:focus-visible, .nav__burger:focus-visible, .menu a:focus-visible, .menu__close:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

/* ---------- tag (label pill with echo rings) ---------- */
.tag { display: inline-flex; align-items: center; isolation: isolate; }
.tag__pill {
  position: relative; z-index: 4; margin-right: -14px;
  padding: 6px 12px; border-radius: 20px; background: var(--c);
  color: var(--white); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 1.1px; text-transform: uppercase; white-space: nowrap;
}
.tag i { width: 30px; height: 24px; border: 1.5px solid var(--c); border-radius: 20px; margin-right: -14px; position: relative; }
.tag i:nth-of-type(1) { opacity: .45; z-index: 3; }
.tag i:nth-of-type(2) { opacity: .28; z-index: 2; }
.tag i:nth-of-type(3) { opacity: .14; z-index: 1; margin-right: 0; }
.tag--blue { --c: var(--blue); }
.tag--tangerine { --c: var(--tangerine); }

.pill { display: inline-block; padding: 6px 12px; border-radius: 20px; color: var(--white); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 1.1px; }
.pill--blue { background: var(--blue); }
.pill--tangerine { background: var(--tangerine); }

.pillar--blue { background: var(--blue-tint); }
.pillar--tangerine { background: var(--tangerine-tint); }
.pillar--lime { background: var(--lime-tint); }
.pillar--pink { background: var(--pink-tint); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.33px; white-space: nowrap; }
.logo img { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { padding: 16px 16px 0; }
.hero__stage {
  position: relative; overflow: hidden;
  height: 1000px; border-radius: 32px; background: var(--sky);
  display: flex; flex-direction: column; align-items: center;
}
.hero__world { position: absolute; left: 0; top: 208px; width: 100%; height: 792px; object-fit: cover; pointer-events: none; }

.nav {
  position: absolute; top: 18px; left: 24px; right: 24px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 14px 24px; border-radius: 16px; background: var(--white);
  box-shadow: 0 1px 1px rgba(13, 13, 26, .04), 0 16px 20px rgba(13, 13, 26, .08);
}
.nav__left { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -.075px; }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--blue); }
.nav__right { display: flex; gap: 8px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 10px 8px; }
.nav__burger span { width: 20px; height: 2px; border-radius: 1px; background: var(--ink); }

.hero__text {
  position: relative; z-index: 1;
  width: 1040px; max-width: calc(100% - 48px); padding-top: 128px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.hero__lead { max-width: 620px; font-size: 17px; }
.hero__buttons { display: flex; gap: 10px; }

/* ---------- mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--white); overflow-y: auto; }
.menu__nav { height: 72px; padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.menu__close { width: 36px; height: 36px; }
.menu__links { padding: 12px 24px 8px; }
.menu__links a { display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; font-size: 36px; font-weight: 500; line-height: 1.08; letter-spacing: -.9px; }
.menu__links img { width: 14px; height: 12px; }
.menu__actions { padding: 24px 24px 32px; display: flex; flex-direction: column; gap: 12px; }
.menu__actions .btn { justify-content: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------- pillars ---------- */
.pillars {
  position: relative; z-index: 2;
  width: min(var(--container), calc(100% - 40px)); margin: -136px auto 91px;
  padding: 28px; border-radius: 32px; background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.pillars__caption { color: var(--grey); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -.075px; text-align: center; }
.pillars__grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.pillar { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 18px; }
.pillar p { color: var(--grey); font-size: 14px; line-height: 1.5; letter-spacing: 0; }

/* ---------- brief ---------- */
.brief { padding: 40px 20px var(--section-y); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.brief__sub { color: var(--grey); }
.brief__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tab {
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--field);
  font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -.075px; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab:hover { background: #eeece6; }
.tab[aria-pressed="true"] { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.brief__box {
  width: 680px; max-width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white);
  box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 20px; text-align: left;
}
.brief__box textarea {
  display: block; width: 100%; min-height: 26px; padding: 0; border: 0; outline: 0; resize: none; overflow: hidden;
  background: none; font-size: 17px; line-height: 1.55;
}
.brief__box textarea::placeholder { color: var(--grey); opacity: 1; }
.brief__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brief__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 1.5; letter-spacing: 0; transition: border-color .2s, background-color .2s; }
.chip:hover { border-color: #d6d3ca; background: var(--field); }
.brief__go { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; transition: background-color .2s; }
.brief__go:hover { background: var(--blue); }
.brief__go img { width: 18px; height: 18px; }

/* ---------- services ---------- */
.services { position: relative; overflow: hidden; background: var(--canvas); padding: 96px var(--gutter) var(--section-y); }
.rings { position: absolute; top: 60px; right: max(20px, calc(50% - 660px)); width: 320px; height: 160px; opacity: .7; pointer-events: none; }
.rings i { position: absolute; left: 50%; top: 50%; border: 1.2px solid var(--blue); border-radius: 200px; transform: translate(-50%, -50%); }
.rings i:nth-child(1) { width: 80px; height: 40px; opacity: .5; }
.rings i:nth-child(2) { width: 124px; height: 62px; opacity: .43; }
.rings i:nth-child(3) { width: 168px; height: 84px; opacity: .36; }
.rings i:nth-child(4) { width: 212px; height: 106px; opacity: .29; }
.rings i:nth-child(5) { width: 256px; height: 128px; opacity: .22; }
.rings i:nth-child(6) { width: 300px; height: 150px; opacity: .15; }
.services__head { position: relative; max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 20px; }
.service { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 16px 28px; border-radius: 24px; }
.service__img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.service .pill { margin: 10px 8px 0; }
.service .h3, .service .body { padding: 0 8px; }
.service .h3 + .body { margin-top: -4px; }

/* ---------- how we work ---------- */
.how { position: relative; padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: 40px; }
.how__track { position: absolute; top: 40px; right: max(20px, calc(50% - 627px)); width: 374px; height: 140px; pointer-events: none; }
.how__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.how__title { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.how__lead { width: 380px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; border-radius: 18px; background: var(--beige); }
.step__num { width: 40px; height: 40px; border-radius: 12px; background: var(--white); display: grid; place-items: center; color: var(--blue); font-size: 22px; font-weight: 600; line-height: 1.25; }
.band { display: flex; padding: 40px 48px; border-radius: 24px; background: var(--blue); color: var(--white); }
.band__item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; white-space: nowrap; }
.band__item + .band__item { border-left: 1px solid rgba(255, 255, 255, .25); }
.band strong { font: 800 40px/1 var(--font-stat); letter-spacing: -.8px; }
.band span { color: rgba(255, 255, 255, .75); font-size: 14px; line-height: 1.5; letter-spacing: 0; }

/* ---------- about ---------- */
.about { padding: 0 var(--gutter) var(--section-y); }
.about__panel { display: flex; align-items: center; gap: 56px; padding: 16px 16px 16px 56px; border-radius: 32px; background: var(--tangerine-tint); }
.about__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.about__visual { flex: none; width: 520px; aspect-ratio: 1; border-radius: 24px; background: var(--beige); }

/* ---------- contact ---------- */
.contact {
  padding: 100px 20px var(--section-y);
  background: linear-gradient(180deg, var(--blue-tint) 0%, var(--pink-tint) 55%, var(--tangerine-tint) 100%);
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.contact__text { width: 720px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.form, .success { width: 760px; max-width: 100%; }
.form { padding: 32px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { display: flex; align-items: center; gap: 8px; min-height: 15px; font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -.075px; }
.field__opt { color: var(--grey); font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 12px; background: var(--field);
  font-size: 17px; line-height: 1.55; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: 140px; padding: 14.5px 16px; resize: vertical; display: block; }
.field input::placeholder, .field textarea::placeholder { color: var(--grey); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(66, 87, 245, .15); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; color: var(--ink); }
.select select:invalid, .select select.is-empty { color: var(--grey); }
.select::after { content: ""; position: absolute; right: 16px; top: 16px; width: 20px; height: 20px; background: url("assets/icon-chev.svg") center / 20px no-repeat; pointer-events: none; }
.field__error { display: none; margin-top: -2px; color: var(--error); font-size: 13px; line-height: normal; letter-spacing: 0; }
.field.is-invalid input { border-color: var(--error); }
.field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(194, 59, 34, .15); }
.field.is-invalid .field__error { display: block; }
.form__submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { color: var(--grey); font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.form__note.is-error { color: var(--error); }
.form button[disabled] { opacity: .6; cursor: progress; }
.botcheck { display: none; }
.success { display: flex; flex-direction: column; gap: 16px; }
.success__box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--lime-tint); }
.success__box img { flex: none; width: 24px; height: 24px; }
.success__box p { font-size: 14px; line-height: 1.5; letter-spacing: 0; }

/* ---------- footer ---------- */
.footer { padding: 64px var(--gutter) 36px; display: flex; flex-direction: column; gap: 44px; font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; }
.footer__brand { width: 360px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__cols { display: flex; gap: 56px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col--company { width: 220px; }
.footer__col--address { width: 260px; }
.footer__col--contact { width: 180px; }
.footer__label { color: var(--grey); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 1.1px; text-transform: uppercase; }
.footer__legal-label { display: none; }
.footer__legal { display: flex; flex-direction: column; gap: 10px; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: var(--grey); }

/* ---------- tablet ---------- */
@media (max-width: 1240px) {
  .footer__top { flex-direction: column; }
  .footer__brand { width: auto; }
}
@media (max-width: 1100px) {
  .nav__links, .nav__right { display: none; }
  .nav__burger { display: flex; }
  .display { font-size: clamp(44px, 7vw, 80px); letter-spacing: -.04em; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 32px 24px; }
  .band strong { font-size: 32px; }
  .about__panel { padding: 40px; }
  .about__visual { width: 40%; }
  .how__track { display: none; }
  .rings { display: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 56px; }
  body { font-size: 16px; letter-spacing: -.08px; }
  .body { font-size: 16px; }
  .h2 { font-size: 36px; line-height: 1.08; letter-spacing: -.9px; }
  .display { font-size: 44px; line-height: 1.04; letter-spacing: -1.32px; }

  .hero { padding: 10px 10px 0; }
  .hero__stage { height: auto; border-radius: 24px; padding: 10px 10px 0; align-items: stretch; }
  .nav { position: static; padding: 10px 10px 10px 14px; border-radius: 14px; box-shadow: none; }
  .hero__text { width: auto; max-width: none; padding: 40px 10px 24px; gap: 18px; }
  .hero__lead { font-size: 16px; }
  .hero__buttons { flex-direction: column; gap: 8px; width: 100%; }
  .hero__world {
    position: static; order: 3; width: 100%; height: 208px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px); mask-image: linear-gradient(to bottom, transparent 0, #000 90px);
  }

  .pillars { width: auto; margin: 0; padding: 20px 20px 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; align-items: stretch; gap: 10px; }
  .pillars__caption { text-align: left; line-height: 1.4; }
  .pillars__grid { gap: 8px; }
  .pillar { padding: 16px; gap: 8px; }
  .pillar p { display: none; }

  .brief { padding: 56px 20px 0; align-items: flex-start; gap: 16px; text-align: left; }
  .brief__sub { display: none; }
  .brief__tabs { justify-content: flex-start; }
  .tab--extra, .chip--extra { display: none; }
  .brief__box { width: 100%; }
  .brief__box textarea { min-height: 52px; }

  .services { padding: 56px 20px; }
  .services__head { gap: 16px; margin-bottom: 16px; }
  .services__grid { grid-template-columns: 1fr; gap: 16px; }

  .how { padding: 56px 20px; gap: 14px; }
  .how__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .how__title { gap: 14px; }
  .how__lead { width: auto; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .band { flex-direction: column; gap: 14px; padding: 24px; }
  .band__item { align-items: flex-start; }
  .band__item + .band__item { border-left: 0; }
  .band strong { font-size: 34px; }
  .band span { display: none; }

  .about { padding: 0 20px 56px; }
  .about__panel { flex-direction: column-reverse; align-items: stretch; gap: 16px; padding: 20px; border-radius: 24px; }
  .about__text { gap: 16px; }
  .about .h2 br { display: none; }
  .about__visual { width: 100%; aspect-ratio: auto; height: 240px; border-radius: 16px; }

  .contact { padding: 56px 16px; gap: 20px; }
  .contact__text { align-items: flex-start; gap: 12px; text-align: left; padding: 0 4px; }
  .form { padding: 18px; gap: 14px; border-radius: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .form__note { text-align: center; }
  .form__note:not(.is-error) { display: none; }
  .form__submit .btn { width: 100%; }

  .footer { padding: 40px 20px 28px; gap: 22px; }
  .footer__top { gap: 22px; }
  .footer__brand .muted { display: none; }
  .footer__cols { flex-direction: column; gap: 22px; }
  .footer__col { width: auto !important; gap: 6px; }
  .footer__legal-label { display: block; margin-top: 16px; }
  .footer__legal { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .footer__legal li + li::before { content: " · "; white-space: pre; }
  .footer__bottom { padding-top: 19px; }
  .footer__city { display: none; }
}
