/* =========================================================
   Avtolingo landing — brend palitrasi ilovadagi bilan bir xil
   ========================================================= */

:root {
  --green: #58cc02;
  --green-dark: #46a302;
  --green-light: #d7ffb8;
  --green-tint: #e8fbd8;
  --blue: #1cb0f6;
  --blue-dark: #1899d6;
  --blue-light: #ddf4ff;
  --red: #ff4b4b;
  --red-light: #ffdfe0;
  --yellow: #ffc800;
  --yellow-dark: #e6a100;
  --orange: #ff9600;

  --ink: #1f1f1f;
  --text: #3c3c3c;
  --muted: #777;
  --muted-light: #afafaf;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --surface: #f7f7f7;
  --white: #fff;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 26px 60px rgba(31, 31, 31, 0.16);

  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 100% - 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  font-weight: 800;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.c-red {
  color: var(--red);
}
.c-blue {
  color: var(--blue);
}
.c-orange {
  color: var(--orange);
}

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand__mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand__text {
  font-size: 21px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.brand__accent {
  color: var(--blue);
}

.brand__tld {
  color: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav__link.is-active {
  color: var(--green-dark);
  background: var(--green-tint);
}

.nav__link--cta {
  margin-left: 6px;
  background: var(--green);
  color: #fff;
  border-bottom: 3px solid var(--green-dark);
  padding-bottom: 6px;
}

.nav__link--cta:hover,
.nav__link--cta.is-active {
  background: var(--green-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 15px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  transition: transform 0.08s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  border-bottom: 4px solid var(--green-dark);
}

.btn--primary:hover {
  background: #63d908;
}

.btn--primary:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-bottom-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--surface);
}

.btn--ghost:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--green-tint) 0%, #fff 62%);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(38% 55% at 18% 20%, rgba(88, 204, 2, 0.22), transparent 70%),
    radial-gradient(34% 48% at 82% 12%, rgba(28, 176, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.pill {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--green-light);
  color: var(--green-dark);
  font-size: 13.5px;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero__title {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 900;
}

.hl {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.16em;
  background: var(--green-light);
  border-radius: 99px;
  z-index: -1;
}

.hero__lead {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--muted);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__device {
  position: relative;
  display: flex;
  justify-content: center;
}

.float {
  position: absolute;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  animation: bob 3.2s ease-in-out infinite;
}

.float--1 {
  top: 14%;
  left: 0;
  color: var(--blue-dark);
}

.float--2 {
  bottom: 16%;
  right: 0;
  color: var(--orange);
  animation-delay: 1.1s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ================= SECTIONS ================= */

.section {
  padding: clamp(56px, 8vw, 100px) 0;
}

.section--tint {
  background: var(--surface);
}

.section__head {
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
}

.section__lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
}

/* ================= CARDS ================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 26px;
  margin-bottom: 16px;
}

.card__icon--green {
  background: var(--green-tint);
}
.card__icon--red {
  background: var(--red-light);
}
.card__icon--blue {
  background: var(--blue-light);
}
.card__icon--orange {
  background: #ffefe0;
}
.card__icon--yellow {
  background: #fff6da;
}

.card h3 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

/* ================= TOIFALAR ================= */

.vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.vehicle {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px 18px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.vehicle:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}

.vehicle svg {
  width: 112px;
  height: 63px;
  display: block;
  margin: 0 auto 12px;
}

.v-stroke {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-wheel {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2.3;
}

.v-hub {
  fill: var(--green);
}

.vehicle b {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 900;
}

.vehicle span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* =========================================================
   TELEFON MAKETLARI (iPhone / Android)
   ========================================================= */

.device {
  position: relative;
  width: 296px;
  height: 664px;
  flex-shrink: 0;
  background: #16181d;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 2px #2e3238 inset;
}

.device::before,
.device::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2e3238;
}

.device::before {
  top: 132px;
  height: 58px;
}

.device::after {
  top: 202px;
  height: 58px;
}

.device--android {
  border-radius: 36px;
}

.device__screen {
  position: relative;
  height: 100%;
  background: var(--white);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* maket ichidagi matn tashqi markazlashdan ta'sirlanmaydi */
  text-align: left;
}

.device--android .device__screen {
  border-radius: 26px;
}

.device__island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 25px;
  background: #16181d;
  border-radius: 99px;
  z-index: 5;
}

.device__punch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background: #16181d;
  border-radius: 50%;
  z-index: 5;
}

/* Status bar */

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}

.statusbar--android {
  padding-top: 9px;
  font-weight: 700;
}

.statusbar__icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sb-signal,
.sb-wifi,
.sb-batt {
  display: block;
  background: var(--ink);
}

.sb-signal {
  width: 13px;
  height: 9px;
  clip-path: polygon(0 70%, 22% 70%, 22% 100%, 0 100%, 0 70%, 33% 45%, 55% 45%,
    55% 100%, 33% 100%, 33% 45%, 66% 20%, 88% 20%, 88% 100%, 66% 100%, 66% 20%);
}

.sb-wifi {
  width: 11px;
  height: 9px;
  clip-path: polygon(50% 100%, 20% 62%, 80% 62%);
  background: var(--ink);
  position: relative;
}

.sb-batt {
  width: 20px;
  height: 10px;
  border-radius: 3px;
  background: none;
  border: 1.4px solid var(--ink);
  position: relative;
}

.sb-batt::after {
  content: "";
  position: absolute;
  inset: 1.6px;
  right: 5px;
  background: var(--ink);
  border-radius: 1px;
}

/* Tab bar */

.tabbar {
  margin-top: auto;
  display: flex;
  border-top: 2px solid var(--line);
  background: var(--white);
  padding: 6px 0 9px;
  flex-shrink: 0;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted-light);
}

.tab i {
  font-size: 17px;
  font-style: normal;
  filter: grayscale(1);
  opacity: 0.55;
}

.tab--on {
  color: var(--green);
}

.tab--on i {
  filter: none;
  opacity: 1;
}

/* --- Ekran 1: O'rganish --- */

.app-statsbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 2px solid var(--line);
  flex-shrink: 0;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-brand__text {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.app-brand__accent {
  color: var(--blue);
}

.app-brand__tld {
  color: var(--green);
}

.app-stats {
  display: flex;
  gap: 9px;
}

.app-stat {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}

.app-stat i {
  font-style: normal;
  font-size: 11px;
}

.app-stat b {
  font-weight: 800;
}

.path {
  position: relative;
  height: 424px;
}

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  border-bottom: 5px solid;
  z-index: 2;
}

.node--done {
  background: var(--yellow);
  border-bottom-color: var(--yellow-dark);
}

.node--active {
  background: var(--white);
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--line-strong);
}

.node--lock {
  background: var(--surface);
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--line-strong);
  font-size: 17px;
  opacity: 0.75;
}

.path__line {
  position: absolute;
  background: var(--c);
  border-radius: 3px;
  z-index: 1;
}

.path__line--h {
  left: var(--x);
  top: calc(var(--y) - 2px);
  width: var(--w);
  height: 4px;
}

.path__line--v {
  left: calc(var(--x) - 2px);
  top: var(--y);
  width: 4px;
  height: var(--h);
}

.path__ring {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid var(--green);
  z-index: 1;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.45);
    opacity: 0;
  }
}

.path__bubble {
  position: absolute;
  left: var(--x);
  top: calc(var(--y) - 46px);
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 11px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
  z-index: 3;
  animation: bob 1.4s ease-in-out infinite;
}

.path__bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--white);
}

/* --- Ekran 2: Profil --- */

.profile-hero {
  background: linear-gradient(135deg, var(--green), #7bdb39);
  border-radius: 0 0 22px 22px;
  padding: 8px 16px 15px;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
}

.profile-hero__avatar {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.3);
}

.profile-hero__cam {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green-tint);
  display: grid;
  place-items: center;
  font-size: 10px;
}

.profile-hero__name {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 900;
}

.profile-hero__user {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.profile-hero__rank {
  display: inline-block;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 10.5px;
  font-weight: 800;
}

.quickcard {
  display: flex;
  margin: -12px 14px 0;
  background: #fff;
  border-radius: 15px;
  padding: 7px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.quickcard span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border-left: 1px solid var(--line);
}

.quickcard span:first-child {
  border-left: none;
}

.quickcard i {
  font-style: normal;
  font-size: 14px;
}

.quickcard b {
  font-size: 14px;
  font-weight: 900;
}

.calwrap {
  padding: 10px 14px 0;
  flex: 1;
  min-height: 0;
}

.calwrap__title {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
}

.cal {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 9px;
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--ink);
}

.cal__nav {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  color: var(--text);
}

.cal__sum {
  font-size: 9.5px;
  color: var(--muted);
  margin: 5px 0 7px;
}

.cal__sum b {
  color: var(--ink);
  font-weight: 900;
}

.cal__row--days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 4px;
}

.cal__row--days span {
  text-align: center;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--muted-light);
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cell {
  display: block;
  aspect-ratio: 1;
  border-radius: 3.5px;
  background: #ebedf0;
}

.cell--pad {
  background: none;
}

.l0 {
  background: #ebedf0;
}
.l1 {
  background: #d7ffb8;
}
.l2 {
  background: #a5e86a;
}
.l3 {
  background: #58cc02;
}
.l4 {
  background: #37800a;
}

.cal__legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 8px;
}

.cal__legend span {
  font-size: 7.5px;
  font-weight: 600;
  color: var(--muted-light);
}

.cal__legend .cell {
  width: 8px;
  height: 8px;
  aspect-ratio: auto;
}

.cal__foot {
  display: flex;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 2px solid var(--line);
}

.cal__foot span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--muted);
}

.cal__foot b {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

/* --- Ekran 3: Test --- */

.quiz__top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 10px;
  flex-shrink: 0;
}

.quiz__close {
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
}

.quiz__track {
  flex: 1;
  height: 11px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.quiz__track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--green);
}

.quiz__hearts {
  font-size: 9px;
  letter-spacing: -1px;
}

.quiz__body {
  padding: 4px 14px 10px;
  flex: 1;
  min-height: 0;
}

.quiz__counter {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted-light);
  margin-bottom: 6px;
}

.quiz__q {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.signs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}

.sign {
  width: 52px;
  height: 52px;
  display: block;
}

.quiz__opts {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.opt {
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 11px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.opt--ok {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 900;
}

.quiz__feedback {
  background: var(--green-light);
  padding: 12px 14px 16px;
  flex-shrink: 0;
}

.quiz__fbtitle {
  font-size: 13px;
  font-weight: 900;
  color: var(--green-dark);
}

.quiz__fbtext {
  font-size: 10px;
  color: #3f6b12;
  margin: 4px 0 10px;
  line-height: 1.4;
}

.duo-btn {
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff;
  border-bottom: 4px solid var(--green-dark);
  border-radius: 12px;
  padding: 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

/* --- Ekran 4: Reyting --- */

.lb__title {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  padding: 4px 0 8px;
}

.lb__seg {
  display: flex;
  gap: 3px;
  margin: 0 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 3px;
}

.lb__seg span {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}

.lb__seg .on {
  background: var(--green);
  color: #fff;
}

.lb__cap {
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  margin: 8px 0;
}

.lb__list {
  display: grid;
  gap: 6px;
  padding: 0 12px;
}

.lb__row {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 6px 8px;
}

.lb__row--me {
  background: var(--green-tint);
  border-color: var(--green);
}

.lb__rank {
  width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

.lb__ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.lb__ava--me {
  background: var(--green-light);
  color: var(--green-dark);
}

.lb__name {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.lb__name em {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}

.lb__name i {
  display: block;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted);
}

.lb__gem {
  font-size: 11px;
  font-weight: 900;
  color: var(--blue);
  white-space: nowrap;
}

/* ================= SHOWCASE ================= */

.showcase {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.showcase__item {
  margin: 0;
  text-align: center;
}

.showcase__item--lift .device {
  transform: translateY(-22px);
}

.showcase__item figcaption {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.showcase__item--lift figcaption {
  margin-top: -4px;
}

.os {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-right: 6px;
}

.os--ios {
  background: var(--ink);
  color: #fff;
}

.os--android {
  background: var(--green-tint);
  color: var(--green-dark);
}

.showcase__note {
  margin: 42px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted-light);
}

/* ================= QADAMLAR ================= */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-bottom: 4px solid var(--green-dark);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--muted);
}

/* ================= FAQ ================= */

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

.faq__item {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item[open] {
  border-color: var(--green-light);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
  background: var(--green-tint);
}

.faq__item p {
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--muted);
}

/* ================= ALOQA ================= */

.section--contact {
  background: linear-gradient(180deg, #fff 0%, var(--green-tint) 100%);
}

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact {
  display: block;
  background: var(--white);
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.contact:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.contact:active {
  transform: translateY(1px);
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 25px;
  margin-bottom: 16px;
}

.contact__icon--green {
  background: var(--green-tint);
}
.contact__icon--blue {
  background: var(--blue-light);
}
.contact__icon--yellow {
  background: #fff6da;
}

.contact__label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-light);
}

.contact__value {
  display: block;
  margin: 4px 0 14px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  word-break: break-word;
}

.contact__go {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-dark);
}

/* ================= FOOTER ================= */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 52px 0 26px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.brand__text--light {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer__tag {
  font-size: 14px;
  margin-top: 4px;
  max-width: 30ch;
}

.footer__nav,
.footer__contact {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 14.5px;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--green-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ================= REVEAL ANIMATSIYASI ================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  transition-delay: 0.12s;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    max-width: 620px;
    margin-inline: auto;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .float--1 {
    left: 4%;
  }

  .float--2 {
    right: 4%;
  }

  .showcase__item--lift .device {
    transform: none;
  }

  .showcase__item--lift figcaption {
    margin-top: 18px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 2px solid var(--line);
    padding: 10px 20px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav__link--cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .section__head {
    text-align: left;
  }

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

@media (max-width: 620px) {
  /* tor ekranda suzuvchi nishonlar telefon ustiga tushib qoladi */
  .float {
    display: none;
  }
}

@media (max-width: 420px) {
  .device {
    width: 272px;
    height: 610px;
  }

  .path {
    height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float,
  .path__ring,
  .path__bubble {
    animation: none;
  }
}
