.logo { display: inline-flex; align-items: center; }

.logo__img { height: calc(var(--header-h) * .609); width: auto; }

.logo--dark {
  height: var(--header-h);
  aspect-ratio: 167 / 64;
  width: auto;
  padding: 0;
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.logo__lottie { display: block; width: 100%; height: 100%; }
.logo__lottie > svg { display: block; width: 100%; height: 100%; }

.logo--light .logo__img { height: 39px; }

.nav {
  position: relative;
  display: flex;
  padding: 8px;
  border-radius: 999px;
  background: var(--white);
  transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.nav__list { display: flex; gap: 4px; }

.nav__indicator {
  position: absolute;
  top: 8px;
  left: 0;
  height: 48px;
  border-radius: 59px;
  background: var(--tab-active);
  opacity: 0;
  pointer-events: none;
}

.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 14px;
  border-radius: 59px;
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-tab);
  line-height: 1.2;
  letter-spacing: var(--track-tab);
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.tab__icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

.tab.is-active { color: var(--blue); background: var(--tab-active); }
.nav.is-enhanced .tab.is-active { background: transparent; }

.tab:hover:not(.is-active) { color: var(--navy-900); background: var(--tab-hover); }
.tab:active { transform: scale(.97); }

.burger {
  display: none;
  width: var(--header-h);
  height: var(--header-h);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  align-items: center;
  justify-content: center;
  transition: color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.burger:hover { color: var(--navy-900); }

.burger__box { position: relative; width: 22px; height: 14px; display: block; }
.burger__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), width var(--dur) var(--ease-out);
}
.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { bottom: 0; width: 70%; }

.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { width: 100%; transform: translateY(-6px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 90; }
.sheet[hidden] { display: none; }

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 45, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
}

.sheet__panel {
  position: absolute;
  inset: calc(var(--header-inset) + var(--header-h) + 12px) var(--header-inset) auto var(--header-inset);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-pill);
  max-height: calc(100dvh - var(--header-inset) * 2 - var(--header-h) - 24px);
  overflow-y: auto;
  opacity: 0;
}

.sheet__list { display: flex; flex-direction: column; gap: 4px; }

.sheet__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--slate);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: var(--track-tab);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.sheet__link.is-active { color: var(--blue); background: var(--tab-active); }
.sheet__link:hover:not(.is-active) { color: var(--navy-900); background: var(--tab-hover); }

.sheet__cta { padding-top: 4px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-radius: 0 12px 0 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.25;
  white-space: nowrap;
  transition:
    border-radius var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.btn--light { background: var(--white); color: var(--blue); }
.btn--blue  { background: var(--blue);  color: var(--white); }

.btn__icon { width: 16px; height: 16px; flex: none; fill: currentColor; transition: transform var(--dur) var(--ease-out); }
.btn__icon--lg { width: 20px; height: 20px; }

.btn:hover { border-radius: 12px 0 12px 0; transform: translateY(-2px); box-shadow: var(--shadow-cta); }
.btn:hover .btn__icon--lg { transform: translateX(3px); }
.btn:hover .btn__icon--down { transform: translateY(3px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

.btn--block { width: 100%; }

.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }

.marquee { overflow: hidden; height: var(--marquee-h, 114px); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track img { height: var(--marquee-h, 114px); width: auto; max-width: none; flex: none; }

.feature { display: flex; flex-direction: column; gap: 24px; }

.feature__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  transition: transform var(--dur) var(--ease-out);
}
.feature__media > svg { width: 100%; height: 100%; display: block; }

.feature:hover .feature__media { transform: translateY(-4px); }

.feature__body { display: flex; flex-direction: column; gap: 12px; }

.feature__title {
  font-family: var(--font-display);
  font-size: var(--fs-feature);
  line-height: 1.066667;
  letter-spacing: var(--track-display);
  color: var(--navy-900);
}

.feature__text { font-size: var(--fs-lead); line-height: 1.388889; color: var(--ink-60); text-wrap: pretty; }

.feature__text--narrow { max-width: 331px; }

.plan {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--navy-700);
  box-shadow: inset 0 0 0 1px var(--navy-600);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.plan::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(66, 126, 255, .16), transparent 60%);
  transition: opacity var(--dur) var(--ease-out);
}
.plan:hover::after { opacity: 1; }
.plan:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--navy-500), var(--shadow-card); }

.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 52px; }
.plan__id { display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; min-width: 0; }
.plan__id-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

.plan__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-plan);
  line-height: 1;
  letter-spacing: var(--track-display);
  background-image: var(--grad-plan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.plan__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-price);
  line-height: 1;
  letter-spacing: var(--track-display);
  color: var(--white);
}

.plan__meta { font-weight: 500; line-height: 1.125; color: var(--white); flex: none; }

.plan__features { display: flex; flex-direction: column; gap: 12px; }

.plan__item { display: flex; align-items: flex-start; gap: 10px; line-height: 1.25; color: var(--white); }
.plan__check { width: 18px; height: 18px; flex: none; fill: currentColor; }

.plan__item--off { color: var(--periwinkle); }

.plan__cta { align-self: flex-start; }

.plan--ultimate {
  background-image: var(--grad-ultimate);
  background-size: 100% 220%;
  background-position: 50% 100%;
  box-shadow: var(--shadow-ultimate);
}
.plan--ultimate .plan__name { background-image: none; color: var(--white); }
.plan--ultimate:hover { box-shadow: var(--shadow-ultimate), 0 26px 70px rgba(0, 81, 255, .40); }
.plan--ultimate::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 60%); }

.payg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--navy-700);
  box-shadow: inset 0 0 0 1px var(--navy-600);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.payg:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--navy-500), var(--shadow-card); }

.payg__body { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.payg__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, calc(26px + 6 * (100vw - 375px) / 1065), 32px);
  line-height: 1;
  letter-spacing: var(--track-display);
  background-image: var(--grad-plan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.payg__rate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 30px;
  background: #1B3467;
}
.payg__amount { font-weight: 500; font-size: 20px; line-height: 1; color: var(--white); }
.payg__unit { font-size: 16px; line-height: 1.25; color: var(--periwinkle); }

.sheet__cta { display: grid; gap: 10px; }

@media (max-width: 1120px) {
  .tab--login .tab__label { display: none; }
  .tab--login { padding-inline: 12px; }
}

.nav__lang { position: relative; display: inline-flex; }

.tab--lang { gap: 6px; padding-inline: 12px; }
.tab--lang .lang-flag { width: 22px; height: 22px; flex: none; display: inline-flex; }
.tab--lang .lang-flag svg { width: 100%; height: 100%; border-radius: 50%; }
.tab__caret { width: 14px; height: 14px; flex: none; transition: transform var(--dur) var(--ease-out); }
.nav__lang.is-open .tab__caret { transform: rotate(180deg); }
.nav__lang.is-open .tab--lang { color: var(--navy-900); background: var(--tab-hover); }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 3;
  min-width: 178px;
  padding: 7px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-pill);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.nav__lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }

.lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.lang__item .lang-flag { width: 20px; height: 20px; flex: none; display: inline-flex; }
.lang__item .lang-flag svg { width: 100%; height: 100%; border-radius: 50%; }
.lang__item:hover { color: var(--navy-900); background: var(--tab-hover); }
.lang__item.is-active { color: var(--blue); background: var(--tab-active); }

.sheet__langs { padding-top: 12px; }
.sheet__langs-cap {
  display: block;
  padding-inline: 14px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet__langs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sheet__lang {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--slate);
  font-weight: 500;
  font-size: 14px;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.sheet__lang .lang-flag { width: 20px; height: 20px; flex: none; display: inline-flex; }
.sheet__lang .lang-flag svg { width: 100%; height: 100%; border-radius: 50%; }
.sheet__lang:hover { color: var(--navy-900); background: var(--tab-hover); }
.sheet__lang.is-active { color: var(--blue); background: var(--tab-active); }
