:root {
  --bg: #07080c;
  --raise: #12141c;
  --text: #f4f6fb;
  --paper: var(--bg);
  --paper-2: #1c2030;
  --ink: #14161c;
  --cream: #f4f6fb;
  --muted: #a9b2c3;
  --line: rgba(255, 255, 255, 0.12);
  --heat: #ff4d1c;
  --gold: #ffb020;
  --felt: #0e1118;
  --header: 72px;
  --pad: clamp(18px, 4vw, 56px);
  --font: "Figtree", "Segoe UI", sans-serif;
  --display: "Host Grotesk", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
html.is-locked,
html.is-locked body { overflow: hidden; overscroll-behavior: none; }
html.is-locked body { padding-right: var(--lock-gap, 0px); }
html.is-locked .header { padding-right: var(--lock-gap, 0px); }
body {
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255, 77, 28, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
::selection { background: var(--heat); color: white; }
:focus-visible { outline: 2px solid var(--heat); outline-offset: 3px; }
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select { font-family: "Noto Sans Arabic", var(--font); }

.wrap { width: 100%; margin-inline: auto; padding-inline: clamp(24px, 4vw, 80px); }
.section { position: relative; z-index: 1; padding-block: clamp(64px, 8vw, 112px); }
.section, #contact, #referral { scroll-margin-top: calc(var(--header) + 16px); }
.kicker {
  margin-bottom: 12px;
  color: var(--heat);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header);
  background: rgba(7, 8, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header__bar {
  width: 100%;
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: clamp(24px, 4vw, 80px);
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo__mark { width: 36px; height: 36px; }
.logo__type { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.04em; }
.logo__role { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px); min-width: 0; margin-inline-start: 12px; }
.nav__link { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.nav__link.is-on { color: var(--heat); }
.nav__mobile-tools { display: none; }
.header__tools { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.lang { position: relative; }
.lang__current {
  min-width: 46px;
  height: 40px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 5;
  min-width: 168px;
  padding: 6px;
  display: grid;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(20, 22, 28, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: top right;
}
html[dir="rtl"] .lang__menu { transform-origin: top left; }
.lang.is-open .lang__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.lang__menu button,
.lang__menu a { text-align: start; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.lang__menu button:hover,
.lang__menu a:hover,
.lang__menu button.is-active,
.lang__menu a.is-active { background: #f1f2f6; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}
.burger span,
.burger span:before,
.burger span:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), background 0.2s;
}
.burger span { top: 20px; }
.burger span:before { top: -6px; }
.burger span:after { top: 6px; }
.header.is-open .burger span { background: transparent; }
.header.is-open .burger span:before { top: 0; transform: rotate(45deg); }
.header.is-open .burger span:after { top: 0; transform: rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.btn-white, .btn-blue, .btn-next {
  background: var(--heat);
  color: white;
  box-shadow: 0 10px 28px rgba(255, 77, 28, 0.35);
}
.btn-white:hover, .btn-blue:hover, .btn-next:hover { background: #ff6a3d; }
.header .btn-blue,
.hero__actions .btn-white {
  min-height: 52px;
  padding: 12px 22px;
  font-size: 16px;
}
.btn-ghost, .btn-soft {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover, .btn-soft:hover { background: rgba(255, 255, 255, 0.06); }
.hero__actions, .studio__actions, .geo__actions, .wizard__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.hero {
  min-height: 100svh;
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 32px clamp(24px, 4vw, 72px);
  padding: calc(var(--header) + 28px) clamp(24px, 4vw, 80px) 120px;
}
.hero__copy { grid-column: 1; grid-row: 1; align-self: center; max-width: 640px; min-width: 0; }
.hero__art { grid-column: 2; grid-row: 1; }
.scroll-hint { grid-column: 1 / -1; grid-row: 2; }
.hero h1 { font-size: clamp(48px, 4vw, 84px); max-width: 12ch; }
.steps__more { display: inline-block; margin-top: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.hero__copy p { max-width: 46ch; margin: 18px 0 26px; color: var(--muted); font-size: 18px; }
.hero__art {
  position: relative;
  min-height: 460px;
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(188px, 46%, 480px);
  grid-template-rows: 1fr;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2vw, 36px);
  padding: clamp(28px, 3vw, 48px);
  overflow: hidden;
  container-type: inline-size;
  color: var(--text);
  background:
    radial-gradient(420px 280px at 80% 20%, rgba(255, 77, 28, 0.28), transparent 70%),
    var(--raise);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.hero__art img { display: none; }
.hero__art::after {
  content: "01  Pragmatic\A 02  PG Soft\A 03  Amatic\A 04  Amusnet";
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  min-width: 0;
  position: relative;
  z-index: 1;
  white-space: pre;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 4.7cqi, 52px);
  overflow: hidden;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.glyph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}
.glyph {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border-radius: 22px;
  color: var(--text);
  container-type: size;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 77, 28, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.glyph svg { width: min(44cqi, 44cqb, 92px); height: min(44cqi, 44cqb, 92px); }
.glyph--heat {
  color: white;
  background: linear-gradient(180deg, #ff7348, #ff4d1c);
  box-shadow: 0 14px 30px rgba(255, 77, 28, 0.28);
}
.hero__field {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  max-height: 100%;
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mouse { width: 1px; height: 28px; background: var(--text); }

.steps {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px 48px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--raise);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 32px;
}
.steps__side { display: flex; flex-direction: column; min-height: 100%; }
.steps__art {
  flex: 1;
  margin-top: 28px;
  min-height: 240px;
  opacity: 1 !important;
  transform: none !important;
}
.steps__copy h2 { font-size: clamp(36px, 4vw, 52px); max-width: 10ch; }
.steps__copy .btn { margin-top: 22px; }
.steps__intro { margin-bottom: 8px; color: rgba(247, 241, 230, 0.72); max-width: 52ch; }
.step { padding: 22px 0; border-top: 1px solid rgba(247, 241, 230, 0.16); }
.step em {
  font-style: normal;
  color: var(--heat);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.step h3 { margin: 8px 0; font-size: clamp(24px, 2vw, 30px); max-width: 16ch; }
.step p { color: rgba(247, 241, 230, 0.74); max-width: 58ch; }

#features { background: var(--felt); color: var(--cream); }
.features__glow, .faq__glow, .geo__stage, .request__gems, .device { display: none; }
.split { margin-bottom: 28px; }
.split h2, .faq-head h2 { font-size: clamp(36px, 4vw, 56px); max-width: 14ch; }
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(247, 241, 230, 0.06);
  border: 1px solid rgba(247, 241, 230, 0.14);
  border-radius: 22px;
}
.feature__stage { height: 168px; }
.feature__stage img, .studio__stage img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 18px 20px 20px; }
.feature:nth-child(3) { background: transparent; border-color: transparent; }
.feature:nth-child(3) .feature__body { background: var(--heat); color: white; }
.feature__n { font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; color: var(--gold); }
.feature:nth-child(3) .feature__n { color: white; }
.feature h3 { margin: 8px 0 8px; font-size: 24px; max-width: 16ch; line-height: 1.05; }
.feature p { max-width: 36ch; color: rgba(247, 241, 230, 0.78); font-size: 15px; line-height: 1.45; }
.feature:nth-child(3) p { color: rgba(255, 255, 255, 0.92); }
.card-cta, .studio__demo, .geo__more {
  margin-top: 16px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-weight: 700;
  font-size: 14px;
}
.card-cta:hover, .studio__demo:hover { background: var(--cream); color: var(--ink); box-shadow: none; }

#catalog { background: transparent; }
.catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.studio {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border-radius: 26px;
}
.studio__stage { height: 210px; }
.studio__body { padding: 22px 24px 24px; }
.studio:nth-child(even) {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
}
.studio h3 { font-size: clamp(28px, 2.4vw, 36px); max-width: 12ch; margin-bottom: 10px; }
.studio p { max-width: 36ch; color: rgba(247, 241, 230, 0.72); }
.studio:nth-child(even) p { color: var(--muted); }
.studio:nth-child(even) .studio__demo:hover { background: var(--text); color: var(--ink); }

#regions { background: #0c1018; color: var(--text); }
.geo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.geo {
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 241, 230, 0.06);
  border: 1px solid rgba(247, 241, 230, 0.12);
}
.geo__n { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; }
.geo h3 { margin: 10px 0 6px; font-size: 22px; max-width: 12ch; }
.geo__count, .geo__note { color: rgba(247, 241, 230, 0.7); font-size: 14px; margin-bottom: 10px; }
.geo__list { overflow: hidden; max-height: var(--geo-shut, 92px); transition: max-height 0.7s var(--ease); }
.geo.is-open .geo__list,
.geo__list.is-short { max-height: var(--geo-open, 32rem); }
.geo__list li { padding: 6px 0; border-top: 1px solid rgba(247, 241, 230, 0.1); font-size: 14px; }
.geo__more { color: var(--gold); box-shadow: none; padding-inline: 0; }
.geo__more span + span { display: none; }
.geo.is-open .geo__more span:first-child { display: none; }
.geo.is-open .geo__more span + span { display: inline; }
.geo__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

#faq { background: transparent; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  text-align: start;
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.03em;
}
.faq-q b { color: var(--heat); font-size: 13px; letter-spacing: 0.08em; }
.faq-q i {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-q i { transform: rotate(-135deg); }
html.is-js .faq-a {
  display: block !important;
  height: 0;
  overflow: hidden;
  max-height: none !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}
.faq-a__in { max-width: 68ch; padding: 0 0 22px 42px; color: var(--muted); font-size: 17px; }
html[dir="rtl"] .faq-a__in { padding-left: 0; padding-right: 42px; }

.section--join { background: #0c0e14; color: var(--text); }
.join { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.join__copy { display: grid; gap: 12px; }
.join__offer {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(247, 241, 230, 0.16);
}
.join__offer h2 { font-size: clamp(32px, 3vw, 44px); max-width: 14ch; margin-bottom: 10px; }
.join__offer p { color: rgba(247, 241, 230, 0.74); margin-bottom: 18px; max-width: 46ch; }
.join__stage {
  position: relative;
  min-height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 70% 80%, rgba(255, 77, 28, 0.55), transparent 60%),
    #1a120f;
  color: white;
}
.join__field {
  position: absolute;
  z-index: 1;
  inset-block-start: 22px;
  inset-inline: 22px;
  height: min(42%, 250px);
}
.join__stage::after {
  content: "TEST DESK\A UNBILLED";
  z-index: 2;
  white-space: pre;
  color: white;
  position: absolute;
  inset: auto 24px 24px 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.footer { background: #120e0b; color: var(--cream); padding: 48px var(--pad) 28px; }
.footer__top, .footer__bottom { width: 100%; margin-inline: auto; }
.footer__top { margin-bottom: 28px; }
.footer .logo__role, .footer .logo__name { color: var(--cream); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cols h3 { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; color: var(--gold); }
.cols a { display: block; padding: 5px 0; color: rgba(247, 241, 230, 0.74); }
.cols a:hover { color: white; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 241, 230, 0.12);
  color: rgba(247, 241, 230, 0.62);
  font-size: 14px;
}
.footer__bottom p { max-width: 62ch; }
.footer__links { display: flex; gap: 14px; align-items: center; white-space: nowrap; }

.lift {
  position: fixed;
  z-index: 35;
  inset-inline-end: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 9px;
  padding: 10px 8px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.9);
  border: 1px solid var(--line);
}
.lift a { position: relative; width: 16px; height: 16px; display: grid; place-items: center; }
.lift a span {
  position: absolute;
  inset-inline-end: 22px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  background: var(--ink);
  color: var(--cream);
  padding: 4px 8px;
  border-radius: 999px;
}
.lift a:hover span, .lift a.is-on span, .lift a:focus-visible span { opacity: 1; }
.lift a i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.lift a.is-on i { background: var(--heat); transform: scale(1.35); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(27, 20, 15, 0.62);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 0.25s ease; }
.dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 28px 24px 22px;
  background: #f6f4ef;
  color: #14161c;
  border-radius: 28px;
}
.dialog .btn-ghost,
.dialog .btn-soft {
  color: #14161c;
  box-shadow: inset 0 0 0 1.5px rgba(20, 22, 28, 0.28);
}
.dialog .btn-ghost:hover,
.dialog .btn-soft:hover { background: rgba(20, 22, 28, 0.06); }
.dialog--wide { width: min(920px, 100%); }
.request__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
}
.wizard { position: relative; display: flex; flex-direction: column; min-height: 420px; }
.wizard__head { padding-inline-end: 48px; }
.wizard__progress { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wizard__track { height: 3px; margin-top: 8px; background: rgba(27, 20, 15, 0.12); border-radius: 99px; overflow: hidden; }
.wizard__track span { display: block; height: 100%; width: 0; background: var(--heat); }
.wizard__kicker { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wizard__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--heat); }
.wizard__steps { padding-bottom: 12px; }
.wizard fieldset { border: 0; min-inline-size: 0; }
.wizard h2 { font-size: clamp(32px, 4vw, 52px); margin: 8px 0 8px; }
.wizard__hint, .wizard__note { color: var(--muted); margin-bottom: 16px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 20, 15, 0.18);
  background: white;
  text-align: start;
}
.choices button.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.country-panel { margin-top: 16px; }
.country-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.text-btn { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.countries { display: flex; flex-wrap: wrap; gap: 8px; }
.countries__region { width: 100%; margin-top: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.countries label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-size: 14px;
}
.wizard__error { min-height: 0; color: var(--heat); font-weight: 700; }
.wizard__error:empty { display: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; }
.wizard__actions { margin-inline-start: auto; }
.wizard .thanks { display: none; padding-top: 24px; }
.wizard.is-sent { justify-content: center; }
.wizard.is-sent .wizard__head,
.wizard.is-sent .wizard__kicker,
.wizard.is-sent .wizard__steps,
.wizard.is-sent .wizard__nav,
.wizard.is-sent .wizard__error,
.wizard.is-sent .turnstile { display: none; }
.wizard.is-sent .thanks { display: block; }
.wizard.is-sent .thanks h3 { font-size: 56px; margin-bottom: 10px; }
.wizard.is-sent .thanks p { color: var(--muted); margin-bottom: 18px; max-width: 42ch; }
.wizard__busy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(243, 234, 220, 0.72);
}
.wizard__spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(27, 20, 15, 0.15);
  border-top-color: var(--heat);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span, .wizard__label { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select, .phone-row input {
  width: 100%;
  border: 1px solid rgba(27, 20, 15, 0.18);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field__note { color: var(--heat); font-size: 12px; }
.field__note:empty { display: none; }
.field.is-bad input, .field.is-bad textarea, .field.is-bad select, .field.is-bad .phone-code__query { border-color: var(--heat); }
.field.is-ok input, .field.is-ok textarea, .field.is-ok select, .field.is-ok .phone-code__query { border-color: #1f7a4d; }
.phone-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 8px; }
.phone-code { position: relative; }
.phone-code__box { position: relative; }
.phone-code__box svg {
  position: absolute;
  width: 18px;
  height: 18px;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.wizard .field input.phone-code__query { padding-inline-start: 38px; }
.phone-code__list {
  position: absolute;
  z-index: 6;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  width: min(320px, 70vw);
  max-height: 220px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(27, 20, 15, 0.14);
}
.phone-code__list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: start;
  padding: 8px 12px;
}
.phone-code__list button.is-active,
.phone-code__list button:hover { background: #efe2cf; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.turnstile { margin-top: 12px; }

.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 46vh; overflow: auto; margin-top: 14px; }
.demo-grid button { text-align: start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: white; }
.demo-grid button.is-on, .demo-grid button:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.demo-stage { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-stage h3 { font-size: 32px; margin-bottom: 8px; }
.demo-stage p { color: var(--muted); margin-bottom: 14px; }
.dialog__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dialog__top h2 { font-size: 40px; }

.legal { max-width: 820px; margin-inline: auto; padding-top: calc(var(--header) + 56px); }
.legal h1 { font-size: clamp(48px, 7vw, 88px); margin: 8px 0 12px; }
.legal h2 { font-size: clamp(28px, 3vw, 40px); margin: 36px 0 8px; }
.legal h3 { font-size: 22px; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul, .related { list-style: disc; margin: 8px 0 4px; padding-inline-start: 1.2em; }
.legal li, .related li { margin: 6px 0; }
.related a, .legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .hero__actions { margin: 22px 0; }

.visit-consent {
  position: fixed;
  z-index: 70;
  inset-inline: 16px;
  bottom: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(27, 20, 15, 0.28);
}
.visit-consent h2 { font-size: 20px; letter-spacing: -0.03em; }
.visit-consent p { margin-top: 4px; color: rgba(247, 241, 230, 0.72); font-size: 14px; max-width: 68ch; }
.visit-consent a { color: var(--gold); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.visit-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.visit-consent__actions button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.visit-consent__actions [data-consent-allow] { background: var(--heat); color: white; }
.visit-consent__actions [data-consent-deny],
.visit-consent__actions [data-consent-customize] { box-shadow: inset 0 0 0 1.5px rgba(247, 241, 230, 0.4); }
.visit-consent__settings {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.is-gsap.is-motion .step,
html.is-gsap.is-motion .feature,
html.is-gsap.is-motion .studio {
  opacity: 1;
  transform: none;
  transition: none;
}
.animated-element {
  will-change: transform, opacity;
  backface-visibility: hidden;
}
body { touch-action: manipulation; }

html.is-motion .step,
html.is-motion .feature,
html.is-motion .studio,
html.is-motion .geo,
html.is-motion .faq-item,
html.is-motion .join__offer {
  opacity: 0;
  transform: translateY(14px);
}
html.is-motion .is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wizard__spin { animation: none; }
  .geo__list, .wizard__track span, .burger span, .burger span:before, .burger span:after, .faq-q i { transition: none; }
}

@media (max-width: 1180px) {
  .logo { min-width: 0; flex: 1 1 auto; }
  .logo__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .burger { display: grid; place-items: center; flex: 0 0 42px; background: transparent; border-color: rgba(255, 255, 255, 0.28); }
  .burger span, .burger span:before, .burger span:after { background: var(--text); }
  .header__tools .desk { min-height: 42px; padding: 8px 14px; font-size: 14px; }
  .hero__copy, .hero__art, .scroll-hint { grid-column: 1; grid-row: auto; }
  .hero__copy { order: 1; }
  .hero__art { order: 2; }
  .scroll-hint { order: 3; }
  .hero__copy p { max-width: 100%; }
  .hero__art { grid-template-columns: 1fr; grid-template-rows: auto auto; align-items: start; }
  .hero__art::after { grid-column: 1; grid-row: 1; font-size: clamp(26px, 7vw, 34px); }
  .hero__field { grid-column: 1; grid-row: 2; width: min(100%, 240px); max-width: none; height: auto; aspect-ratio: 1; justify-self: start; }
  .nav__mobile-tools { display: flex; padding: 8px 0 16px; }
  .nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 32px;
    background: var(--paper);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 26px; font-family: var(--display); }
  .hero, .contact-grid { grid-template-columns: 1fr; }
  .geo-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header) + 24px); }
  .hero__art { min-height: 0; border-radius: 24px; }
  .join__stage { min-height: 420px; }
  .join__field { height: min(38%, 200px); }
  .hero h1 { font-size: clamp(42px, 12vw, 68px); max-width: 100%; }
  .lift { display: none; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .steps, .features, .catalog, .join { grid-template-columns: 1fr; }
  .steps__art { flex: none; min-height: 220px; height: 220px; }
}

@media (max-width: 720px) {
  .logo__type { display: none; }
  .hero__copy p { max-width: 34ch; }
  .hero__art::after { font-size: 22px; }
  .geo-grid, .footer__bottom, .cols, .phone-row { grid-template-columns: 1fr; }
  .footer__bottom { display: grid; }
  .footer__links { white-space: normal; }
  .faq-q { font-size: 20px; }
  .faq-a__in { padding-left: 0; font-size: 16px; }
  .dialog { padding: 22px 16px 16px; border-radius: 20px; }
  .wizard.is-sent .thanks h3 { font-size: 40px; }
  .demo-grid { grid-template-columns: 1fr; }
  .visit-consent { flex-direction: column; align-items: stretch; }
}
