/*
 * 1Fit Kids influencer program — public site.
 * Mobile-first (360–430px), one centered column on desktop.
 * Brand tokens live in tokens.css (loaded first); the extra variables below
 * are site-only additions, mostly darker text shades that pass WCAG AA.
 * No image references in CSS on purpose: every image is referenced from templates.
 */

:root {
  --c-muted: #5F6873;          /* secondary text: ≥4.9:1 on white, bg and chips */
  --c-placeholder: #6E7782;
  --c-link: #0071A3;           /* text links on light surfaces */
  --c-focus: #0079B0;          /* focus ring: ≥4:1 on light surfaces */
  --c-focus-on-dark: #7FDBFF;
  --c-input-focus: #0095D5;    /* focused input border, ≥3:1 on white */
  --c-error: #C62828;          /* error text, 5.6:1 on white */
  --c-on-dark-2: #B8BEC6;      /* secondary text on the dark hero */
  --c-line: #EBECEE;
  --c-reward-1: #451DFC;       /* reward card gradient, from the 1F badge */
  --c-reward-2: #2D4BFF;
  --c-reward-3: #0A8FE8;
  --section-gap: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.main {
  flex: 1 0 auto;
}

.main:focus {
  outline: none;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: var(--c-link);
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}

strong {
  font-weight: 700;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-small);
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  top: max(12px, env(safe-area-inset-top));
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.page {
  padding-top: 8px;
  padding-bottom: 40px;
}

/* ---------- Top bar & footer ---------- */

.topbar {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: 8px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-small);
}

.topbar__logo img {
  display: block;
  width: 104px;
  height: auto;
}

.icon-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover {
  background: #FAFAFA;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.footer {
  padding-top: 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  color: var(--c-muted);
  font-size: var(--fs-s);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer__links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 33, 33, .2);
  line-height: 1.3;
}

.footer__links a:hover {
  border-bottom-color: currentColor;
}

/* ---------- Language switch: UZ | RU ---------- */

.lang-switch {
  flex: none;
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
}

.lang-switch__link {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.lang-switch__link:hover {
  background: var(--c-chip);
  color: var(--c-text);
}

.lang-switch__link[aria-current] {
  background: var(--c-text);
  color: #fff;
}

.lang-switch--dark {
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.lang-switch--dark .lang-switch__link {
  color: var(--c-on-dark-2);
}

.lang-switch--dark .lang-switch__link:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.lang-switch--dark .lang-switch__link[aria-current] {
  background: #fff;
  color: var(--c-dark);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease, opacity .15s ease;
}

.btn:active:not(:disabled) {
  transform: scale(.98);
}

.btn:disabled {
  cursor: default;
  opacity: .72;
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: linear-gradient(180deg, #16BDF2 0%, var(--c-primary) 55%, #00AAE4 100%);
  color: var(--c-on-primary);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 18px rgba(0, 150, 210, .28);
}

.btn--primary:hover:not(:disabled) {
  background: var(--c-primary-press);
}

.btn--dark {
  background: var(--c-dark-2);
  color: var(--c-on-dark);
}

.btn--dark:hover {
  background: #2A2B30;
}

.btn--ghost {
  background: var(--c-chip);
  color: var(--c-text);
}

.btn--ghost:hover:not(:disabled) {
  background: #E6E6E8;
}

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

.btn.is-copied {
  background: var(--c-success);
  color: #fff;
  box-shadow: none;
}

.hero :focus-visible,
.promo :focus-visible,
.join :focus-visible {
  outline-color: var(--c-focus-on-dark);
}

/* ---------- Cards & shared pieces ---------- */

.card {
  background: var(--c-surface);
  border-radius: var(--r-card);
  padding: 20px;
}

.callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--c-primary-soft);
  color: #0E3B4F;
}

.callout img {
  width: 52px;
  height: 52px;
}

.callout__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--c-text);
}

.callout__text {
  font-size: 15px;
  line-height: 1.45;
  margin-top: 2px;
}

.banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.45;
}

.banner:focus {
  outline: none;
}

.banner:focus-visible {
  outline: 3px solid var(--c-focus);
}

.banner__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.banner__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.banner__body a {
  color: inherit;
  font-weight: 600;
}

.banner--error {
  background: var(--c-danger-soft);
  color: #8A1C1C;
}

.banner--info {
  background: var(--c-primary-soft);
  color: #0E3B4F;
}

/* A row that leads to another page: emoji, title, a line of text, chevron. */
.linkcard {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  transition: background-color .15s ease;
}

.linkcard:hover {
  background: #FAFAFA;
}

.linkcard img {
  width: 44px;
  height: 44px;
}

.linkcard svg {
  width: 22px;
  height: 22px;
  color: var(--c-muted);
}

.linkcard__title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.linkcard__text {
  display: block;
  margin-top: 3px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- Landing: hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  color: var(--c-on-dark);
  border-radius: 0 0 32px 32px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 36px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40px;
  width: 520px;
  height: 420px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(69, 29, 252, .32), rgba(69, 29, 252, 0) 70%),
    radial-gradient(closest-side at 60% 60%, rgba(0, 180, 237, .22), rgba(0, 180, 237, 0) 75%);
  pointer-events: none;
}

.hero__bar {
  display: flex;
  justify-content: flex-end;
  max-width: 640px;
  margin: 0 auto;
  padding-top: 4px;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.hero__inner {
  max-width: 640px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  text-align: center;
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
}

.hero__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: auto;
  transform: translate(-50%, -50%);
}

.sticker {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
  animation: sticker-float 7s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.sticker--carrot   { left: 19%; top: 1%;  width: 19%; rotate: -16deg; animation-delay: -1s; }
.sticker--sparkles { left: 55%; top: 11%; width: 11%; animation-delay: -3s; }
.sticker--heart    { left: 71%; top: 3%;  width: 20%; rotate: 9deg; animation-delay: -2s; }
.sticker--star-a   { left: 2%;  top: 30%; width: 9%;  rotate: -12deg; animation-delay: -4s; }
.sticker--star-b   { left: 90%; top: 27%; width: 7%;  rotate: 14deg; animation-delay: -5s; }
.sticker--lollipop { left: 84%; top: 46%; width: 13%; rotate: 14deg; animation-delay: -2.5s; }
.sticker--balloon  { left: 12%; top: 67%; width: 15%; rotate: -8deg; animation-delay: -1.5s; }
.sticker--star-c   { left: 36%; top: 74%; width: 9%;  rotate: 10deg; animation-delay: -3.5s; }
.sticker--okhand   { left: 58%; top: 67%; width: 22%; rotate: -8deg; animation-delay: -.5s; }

@keyframes sticker-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.hero__eyebrow {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #E6E8EB;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.hero__title {
  margin-top: 14px;
  font-size: clamp(28px, 7.8vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hero__lead {
  margin: 14px auto 0;
  max-width: 34em;
  color: var(--c-on-dark-2);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__lead strong {
  color: #fff;
}

.hero__actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.hero__note {
  margin-top: 14px;
  color: var(--c-on-dark-2);
  font-size: 14px;
}

/* ---------- Landing: sections ---------- */

.section {
  padding-top: var(--section-gap);
}

.section__title {
  font-size: clamp(24px, 6.6vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section__lead {
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.section__body {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.list-reset {
  list-style: none;
  padding-left: 0;
}

/* Categories */

.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 116px;
  padding: 14px 14px 16px;
  border-radius: 20px;
  background: var(--c-surface);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.cat img {
  width: 48px;
  height: 48px;
}

.cat--ages {
  justify-content: center;
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.cat__big {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-primary);
}

.cat__small {
  color: var(--c-on-dark-2);
  font-weight: 500;
  font-size: 14px;
}

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  gap: 8px;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--c-surface);
}

.step__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--c-primary-soft);
}

.step__icon img {
  width: 40px;
  height: 40px;
}

.step__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--c-link);
}

.step__title {
  margin-top: 1px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.step__text {
  margin-top: 4px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* Reward */

.reward {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px 22px 24px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(150deg, var(--c-reward-1) 0%, var(--c-reward-2) 55%, var(--c-reward-3) 115%);
  box-shadow: 0 12px 32px rgba(69, 29, 252, .25);
}

.reward__coin {
  position: absolute;
  z-index: -1;
  right: -16px;
  top: -14px;
  width: clamp(92px, 27vw, 132px);
  height: auto;
  rotate: 14deg;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .25));
}

.reward__caption {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
}

.reward__amount {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.reward__num {
  font-size: clamp(56px, 18vw, 88px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
}

.reward__unit {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.reward__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .92);
}

.perks {
  display: grid;
  gap: 8px;
}

.perk {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: var(--c-surface);
}

.perk img {
  width: 44px;
  height: 44px;
}

.perk__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.perk__text {
  margin-top: 3px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* Who we're looking for */

.who {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.who__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 14px;
  align-content: start;
  padding: 16px;
  border-radius: 20px;
  background: var(--c-surface);
}

.who__item img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
}

.who__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.who__text {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.45;
}

.note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1.5px dashed #CFD3D8;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.45;
}

.note img {
  width: 36px;
  height: 36px;
}

.note span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* FAQ */

.faq {
  display: grid;
  gap: 8px;
}

.faq__item {
  border-radius: 20px;
  background: var(--c-surface);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  border-radius: 20px;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::marker {
  content: "";
}

.faq__chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-chip);
  transition: rotate .2s var(--ease), background-color .15s ease;
}

.faq__chev svg {
  width: 18px;
  height: 18px;
}

.faq__item[open] .faq__chev {
  rotate: 180deg;
  background: var(--c-primary-soft);
}

.faq__a {
  padding: 0 18px 18px;
  color: #3F454C;
  font-size: 16px;
  line-height: 1.55;
}

.faq__a p + p {
  margin-top: 8px;
}

/* Final CTA */

.join {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 36px 22px 24px;
  border-radius: 28px;
  background: var(--c-dark);
  color: var(--c-on-dark);
  text-align: center;
}

.join::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% -20% auto;
  height: 320px;
  background: radial-gradient(closest-side, rgba(0, 180, 237, .28), rgba(0, 180, 237, 0));
}

.join__logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto;
}

.join__title {
  margin-top: 18px;
  font-size: clamp(24px, 6.6vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.join__text {
  margin: 10px auto 22px;
  max-width: 30em;
  color: var(--c-on-dark-2);
  font-size: 16px;
}

.join__sticker {
  position: absolute;
  z-index: -1;
  height: auto;
  pointer-events: none;
}

.join__sticker--party  { left: -6px; top: 14px; width: 64px; rotate: -14deg; }
.join__sticker--rocket { right: -4px; top: 18px; width: 60px; rotate: 12deg; }

/* Sticky bottom CTA (landing, phones only) */

.sticky-cta {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: rgba(241, 241, 242, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(16, 24, 40, .06);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .28s var(--ease), visibility 0s linear .28s;
}

.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .28s var(--ease), visibility 0s linear 0s;
}

.sticky-cta .btn {
  max-width: var(--content);
  margin: 0 auto;
}

/* ---------- Inner pages ---------- */

.page-head {
  padding: 4px 0 20px;
}

.page-title {
  font-size: clamp(26px, 7.2vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.page-lead {
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.5;
}

.page-lead strong {
  color: var(--c-text);
}

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 12px;
}

.form-card {
  display: grid;
  gap: 22px;
  padding: 20px 16px;
  border-radius: var(--r-card);
  background: var(--c-surface);
  min-width: 0;
}

.form-card__head {
  display: grid;
  gap: 6px;
}

.form-card__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.field {
  display: block;
  min-inline-size: 0;
}

fieldset.field > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
}

fieldset.field > legend + * {
  clear: both;
}

fieldset.field > * + .field__error,
fieldset.field > * + .field__hint {
  margin-top: 8px;
}

.field__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.field__opt {
  font-weight: 400;
  color: var(--c-muted);
}

.field__hint {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.45;
}

.field__hint a {
  color: var(--c-link);
}

.field__error {
  display: grid;
  gap: 2px;
  color: var(--c-error);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: var(--tap);
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--r-control);
  background: var(--c-chip);
  color: var(--c-text);
  font-size: 16px; /* 16px keeps iOS from zooming in on focus */
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.input::placeholder {
  color: var(--c-placeholder);
  opacity: 1;
}

.input:hover {
  background: #EAEAEB;
}

.input:focus {
  outline: none;
  border-color: var(--c-input-focus);
  background: var(--c-surface);
  box-shadow: 0 0 0 4px rgba(0, 180, 237, .16);
}

textarea.input {
  min-height: 128px;
  resize: vertical;
}

.has-error .input,
.input[aria-invalid="true"] {
  border-color: var(--c-error);
  background: #FFF6F6;
}

.has-error .input:focus,
.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(198, 40, 40, .12);
}

.counter {
  justify-self: end;
  color: var(--c-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Chips (styled radios) */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The first chip ("Пока нет" / "Hozircha yo‘q") is a word, the rest are digits:
   its column grows to fit the word, the others share what is left. */
.chips--kids {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) repeat(2, minmax(0, 1fr));
}

.chips--kids .chip__label {
  padding-left: 6px;
  padding-right: 6px;
  white-space: nowrap;
}

.chip {
  position: relative;
  display: flex;
  min-width: 0;
}

.chip__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.chip__label {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: var(--r-control);
  background: var(--c-chip);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.chip__label:hover {
  background: #E6E6E8;
}

.chip__input:checked + .chip__label {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 150, 210, .25);
}

.chip__input:focus-visible + .chip__label {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

.has-error .chip__label {
  box-shadow: inset 0 0 0 1.5px var(--c-error);
}

.has-error .chip__input:checked + .chip__label {
  box-shadow: none;
}

/* Social links */

.social {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.social__name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.social__dot--instagram { background: linear-gradient(135deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%); }
.social__dot--tiktok { background: #111; box-shadow: 2px 0 0 #25F4EE, -2px 0 0 #FE2C55; }
.social__dot--youtube { background: #FF0033; }
.social__dot--telegram { background: #29A9EB; }
.social__dot--other { background: #B5BBC3; }

.social__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 8px;
}

.social__row .input {
  padding-left: 12px;
  padding-right: 12px;
}

.socials {
  display: grid;
  gap: 18px;
}

.reveal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px 10px 12px;
  border: 1.5px dashed #C3C8CE;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.chip-btn:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}

.chip-btn svg {
  width: 18px;
  height: 18px;
  color: var(--c-link);
}

/* Screenshots upload */

.upload__native input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border-radius: var(--r-control);
  background: var(--c-chip);
  font-size: 16px;
  color: var(--c-muted);
}

.upload__native input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.upload__native--hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.upload__drop {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  padding: 14px 16px;
  border: 2px dashed #C3C8CE;
  border-radius: 20px;
  background: #FAFAFB;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.upload__drop:hover:not(:disabled),
.upload.is-dragover .upload__drop {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}

.upload__drop:disabled {
  cursor: default;
  opacity: .6;
}

.upload__drop img {
  width: 52px;
  height: 52px;
}

.upload__drop-text {
  display: grid;
  gap: 2px;
}

.upload__drop-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.upload__drop-sub {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.35;
}

.has-error .upload__drop {
  border-color: var(--c-error);
  background: #FFF6F6;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--c-chip);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb__ext {
  display: none;
}

.thumb--noimg .thumb__ext {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 6px 6px 10px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  word-break: break-all;
}

.thumb__remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 8, 13, .72);
  color: #fff;
  cursor: pointer;
}

.thumb__remove::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.thumb__remove svg {
  width: 14px;
  height: 14px;
}

.thumb__remove:focus-visible {
  outline-offset: 1px;
}

.upload__count {
  color: var(--c-muted);
  font-size: 14px;
}

.upload__again {
  padding: 10px 12px;
  border-radius: var(--r-small);
  background: var(--c-warning-soft);
  color: #7A4A00;
  font-size: 14px;
  line-height: 1.4;
}

/* Consent checkbox */

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check__input {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 2px solid #AEB4BC;
  border-radius: 8px;
  background: var(--c-surface);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.check__input::after {
  content: "";
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
  opacity: 0;
}

.check__input:checked {
  border-color: var(--c-primary);
  background: var(--c-primary);
}

.check__input:checked::after {
  opacity: 1;
}

.has-error .check__input {
  border-color: var(--c-error);
}

.check__label {
  padding-top: 2px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}

/* Honeypot: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit area */

.submit {
  display: grid;
  gap: 14px;
}

.progress {
  display: grid;
  gap: 8px;
}

.progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--c-chip);
}

.progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--c-primary);
  transition: width .2s linear;
}

.progress__text {
  color: var(--c-muted);
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.form.is-sending .upload__ui,
.form.is-sending .reveal {
  pointer-events: none;
  opacity: .7;
}

.next {
  padding: 16px;
  border-radius: 20px;
  background: var(--c-bg);
}

.next__title {
  font-size: 16px;
  font-weight: 700;
}

.next__list {
  margin-top: 8px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: #3F454C;
  font-size: 15px;
  line-height: 1.45;
}

.next__list li::marker {
  color: var(--c-link);
  font-weight: 700;
}

/* ---------- Status page ---------- */

.status {
  display: grid;
  gap: 12px;
}

.status-card {
  padding: 28px 20px 24px;
  text-align: center;
}

.status-card__art {
  display: block;
  width: 138px;
  height: auto;
  margin: 0 auto 16px;
}

.status-card__emoji {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}

.status-card__title {
  font-size: clamp(24px, 6.6vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.status-card__text {
  margin: 10px auto 0;
  max-width: 30em;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.status-card__text strong {
  color: var(--c-text);
  word-break: break-word;
}

.status-card__meta {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
}

.status-card .btn {
  margin-top: 18px;
}

.sent {
  display: grid;
  gap: 12px;
  padding: 24px 20px 20px;
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 2px var(--c-success-soft);
}

.sent__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sent__head img {
  width: 56px;
  height: 56px;
}

.sent__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.sent__text {
  color: #3F454C;
  font-size: 16px;
  line-height: 1.5;
}

.sent__text strong {
  color: var(--c-text);
  word-break: break-word;
}

.linkbox {
  padding: 14px 16px;
  border-radius: var(--r-control);
  background: var(--c-chip);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.4;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

.actions {
  display: grid;
  gap: 8px;
}

.promo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px 20px 20px;
  border-radius: 28px;
  background: var(--c-dark);
  color: var(--c-on-dark);
  text-align: center;
}

.promo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto;
  height: 300px;
  background: radial-gradient(closest-side, rgba(69, 29, 252, .38), rgba(69, 29, 252, 0));
}

.promo__ticket {
  position: absolute;
  z-index: -1;
  right: -12px;
  top: -8px;
  width: 84px;
  height: auto;
  rotate: 16deg;
  opacity: .95;
}

.promo__label {
  color: var(--c-on-dark-2);
  font-size: 14px;
  font-weight: 600;
}

.promo__code {
  margin: 10px 0 18px;
  font-size: clamp(30px, 10vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .06em;
  color: #fff;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

.promo__hint {
  margin-top: 12px;
  color: var(--c-on-dark-2);
  font-size: 14px;
  line-height: 1.45;
}

.block-title {
  margin: 12px 0 0;
  padding: 0 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.howto {
  counter-reset: howto;
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.howto li {
  counter-increment: howto;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.45;
}

.howto li::before {
  content: counter(howto);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: #005F88;
  font-weight: 800;
  font-size: 15px;
}

.howto__note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.45;
}

.card__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.stats-group {
  display: grid;
  gap: 8px;
}

.stats-group__label {
  padding: 0 4px;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 14px 10px 14px 12px;
  border-radius: 20px;
  background: var(--c-surface);
}

.stat__label {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.stat__num {
  font-size: clamp(24px, 7.4vw, 32px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stat--accent {
  background: var(--c-primary-soft);
}

.stat--accent .stat__label {
  color: #0E4A63;
}

.rewards {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-surface);
}

.reward-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.reward-item + .reward-item {
  border-top: 1px solid var(--c-line);
}

.reward-item img {
  width: 44px;
  height: 44px;
}

.reward-item--muted img {
  filter: grayscale(1);
  opacity: .55;
}

.reward-item__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.reward-item__meta {
  margin-top: 2px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.35;
}

.pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.pill--pending { background: var(--c-warning-soft); color: #7A4A00; }
.pill--active { background: var(--c-success-soft); color: #0B6B3A; }
.pill--expired { background: var(--c-chip); color: var(--c-muted); }
.pill--cancelled { background: var(--c-danger-soft); color: #A12020; }

.empty {
  padding: 28px 20px;
  text-align: center;
}

.empty img {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.empty__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.empty__text {
  margin: 6px auto 0;
  max-width: 28em;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.45;
}

.quote {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-control);
  background: var(--c-bg);
  text-align: left;
}

.quote__label {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
}

.quote__text {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}

.private-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1.5px dashed #CFD3D8;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.45;
}

.private-note img {
  width: 32px;
  height: 32px;
}

/* ---------- Privacy (plain text page) ---------- */

.prose {
  padding: 24px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #33383E;
}

.prose h2 {
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--c-text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 10px;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--c-primary);
}

/* ---------- Onboarding (what 1Fit Kids is) ---------- */

.page-onboarding {
  --section-gap: 44px;
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* Packages of tokens and their prices */

.packs {
  display: grid;
  gap: 8px;
}

.pack {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: var(--c-surface);
}

.pack img {
  width: 44px;
  height: 44px;
}

/* The price sits next to the name and drops under it when both don't fit. */
.pack__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.pack__name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.pack__price {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.pack__promo {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--r-control);
  background: var(--c-primary-soft);
  color: #0E3B4F;
  font-size: 15px;
  line-height: 1.4;
}

.pack__promo strong {
  color: var(--c-text);
  font-size: 17px;
  white-space: nowrap;
}

/* What to mention: a checked list */

.ticks {
  display: grid;
  gap: 14px;
}

.ticks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.45;
}

.ticks img {
  width: 24px;
  height: 24px;
}

/* ---------- Error pages ---------- */

.error-card {
  margin-top: 24px;
  padding: 32px 20px 24px;
  text-align: center;
}

.error-card img {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
}

.error-card__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.error-card__text {
  margin: 10px auto 22px;
  max-width: 28em;
  color: var(--c-muted);
  line-height: 1.5;
  text-wrap: pretty;
}

/* 500 page: the same message in Russian under the Uzbek one. */
.error-card__alt {
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.error-card__alt .error-card__title {
  font-size: 22px;
}

.error-card__actions {
  display: grid;
  gap: 8px;
}

/* ---------- Larger screens ---------- */

@media (min-width: 480px) {
  .card,
  .form-card {
    padding: 24px;
  }

  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .who {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .who__item {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .who__item img {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .chips--kids {
    grid-template-columns: minmax(max-content, 1.7fr) repeat(5, minmax(0, 1fr));
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .actions > :only-child {
    grid-column: 1 / -1;
  }

  .thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 600px) {
  .hero__actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  :root {
    --section-gap: 72px;
  }

  .sticky-cta {
    display: none;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 56px;
    border-radius: 0 0 48px 48px;
  }

  .hero__stage {
    max-width: 440px;
  }

  .page {
    padding-top: 16px;
    padding-bottom: 56px;
  }
}

/* Devices with a mouse: hint that files can be dropped. */
@media (hover: none) {
  .upload__drop-sub--drop {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
