:root {
  --bg: #f7f8f4;
  --white: #fff;
  --ink: #20231f;
  --muted: #777e73;
  --green: #91b952;
  --light-green: #e8f3d9;
  --line: #e5e8df;
  --dark: #252922;
  --radius: 18px;
}

html[data-theme="dark"] {
  --bg: #10130f;
  --white: #181c17;
  --ink: #eff3ea;
  --muted: #a9b1a4;
  --green: #9bc65a;
  --light-green: #27351f;
  --line: #2b3229;
  --dark: #2a3127;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

/* ==================================================
   THEME TOGGLE
================================================== */

.theme-toggle {
  min-height: 42px;
  padding: 5px 11px 5px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(37, 41, 34, .045);
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 185, 82, .5);
  box-shadow: 0 8px 20px rgba(94, 120, 58, .1);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(145, 185, 82, .22);
  outline-offset: 3px;
}

.theme-toggle-icon {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--light-green);
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.theme-toggle-label {
  display: inline-block;
}

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

.topbar {
  min-height: 78px;
  padding: 12px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 244, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  display: block;
  width: 155px;
  max-height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 13px;
  color: #62675f;
}

.nav-links a {
  text-decoration: none;
  text-underline-offset: 5px;
  transition: color .2s ease;
}

.mobile-nav-items {
  display: contents;
}

.mobile-nav-item-icon,
.mobile-nav-bottom {
  display: none;
}

.mobile-nav-item-label {
  display: inline;
}

.nav-links a:hover {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--green);
}

.nav-links a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--green);
  outline: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions .text-button {
  position: relative;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.top-actions .text-button::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 1.5px;
  border-radius: 99px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.top-actions .text-button:hover {
  color: #6f9639;
  background: rgba(145, 185, 82, .08);
  border-color: rgba(145, 185, 82, .18);
  transform: translateY(-1px);
}

.top-actions .text-button:hover::after {
  transform: scaleX(1);
}

.top-actions .button-dark.button-small {
  position: relative;
  min-height: 48px;
  padding: 12px 15px 12px 18px;
  gap: 17px;
  overflow: hidden;
  border: 1px solid var(--dark);
  border-radius: 13px;
  background: var(--dark);
  box-shadow: 0 7px 18px rgba(37, 41, 34, .12);
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.top-actions .button-dark.button-small::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .12),
    transparent
  );
  transform: skewX(-20deg);
  transition: left .45s ease;
}

.top-actions .button-dark.button-small:hover {
  background: #7fa843;
  border-color: #7fa843;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(127, 168, 67, .24);
}

.top-actions .button-dark.button-small:hover::before {
  left: 145%;
}

.top-actions .button-dark.button-small:active,
.top-actions .text-button:active {
  transform: translateY(0);
}

.top-actions .button-dark.button-small:focus-visible,
.top-actions .text-button:focus-visible {
  outline: 3px solid rgba(145, 185, 82, .25);
  outline-offset: 3px;
}

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

.button {
  border: 0;
  border-radius: 11px;
  padding: 14px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--dark);
  color: white;
}

.button-dark:hover {
  background: #41483a;
}

.button-small {
  padding: 11px 14px;
  font-size: 12px;
}

.avatar {
  width: 43px;
  height: 43px;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--light-green);
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-initial {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.avatar:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 185, 82, .45);
  box-shadow: 0 7px 18px rgba(37, 41, 34, .08);
}

.avatar:active {
  transform: translateY(0);
}

.avatar:focus-visible {
  outline: 3px solid rgba(145, 185, 82, .22);
  outline-offset: 3px;
}

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

.hero {
  position: relative;
  max-width: 1500px;
  min-height: 690px;
  margin: auto;
  padding: 80px 8% 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .25;
  background-image:
    linear-gradient(rgba(145, 185, 82, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 185, 82, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 28%,
    black 72%,
    transparent
  );
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 470px;
  height: 470px;
  left: -340px;
  top: 45px;
  border-radius: 50%;
  background: rgba(145, 185, 82, .08);
}

.hero-code {
  position: absolute;
  z-index: -1;
  color: rgba(145, 185, 82, .08);
  font-family: monospace;
  font-weight: 800;
  pointer-events: none;
  user-select: none;
}

.code-one {
  left: 3%;
  bottom: 8%;
  font-size: 75px;
  transform: rotate(-9deg);
}

.code-two {
  left: 44%;
  top: 10%;
  font-size: 48px;
  transform: rotate(7deg);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #777e6e;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(145, 185, 82, .11);
}

.hero h1 {
  max-width: 700px;
  margin: 23px 0 22px;
  font-family: Manrope, sans-serif;
  font-size: clamp(52px, 5.2vw, 79px);
  line-height: 1.02;
  letter-spacing: -4.3px;
}

.hero h1 span {
  color: var(--green);
}

.hero-description {
  max-width: 555px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 31px;
}

.hero-main-button {
  min-height: 54px;
  min-width: 188px;
  padding: 10px 10px 10px 20px;
  border-radius: 14px;
}

.hero-button-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  transition: .25s;
}

.hero-main-button:hover .hero-button-arrow {
  background: rgba(255, 255, 255, .18);
  transform: translate(2px, -2px);
}

.secondary-link {
  min-height: 54px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 700;
  transition: .2s;
}

.secondary-link:hover {
  background: rgba(145, 185, 82, .09);
  color: #6c923d;
}

.secondary-play {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 185, 82, .3);
  border-radius: 50%;
  background: var(--light-green);
  color: #71983b;
  font-size: 9px;
}

/* HERO MINI DASHBOARD */

.hero-mini-dashboard {
  max-width: 600px;
  margin-top: 38px;
  padding-top: 23px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  border-top: 1px solid var(--line);
}

.mini-dashboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-dashboard-icon {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--light-green);
  color: #6d9637;
  font-size: 11px;
  font-weight: 900;
}

.mini-dashboard-item strong,
.mini-dashboard-item small {
  display: block;
}

.mini-dashboard-item strong {
  font-size: 10px;
}

.mini-dashboard-item small {
  margin-top: 3px;
  color: #999f95;
  font-size: 8px;
}

/* ==================================================
   NEW HERO PANEL
================================================== */

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.panel-glow {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(145, 185, 82, .15),
    rgba(145, 185, 82, .045) 50%,
    transparent 72%
  );
  filter: blur(5px);
}

.panel-orbit {
  position: absolute;
  border: 1px solid rgba(145, 185, 82, .19);
  border-radius: 50%;
  pointer-events: none;
}

.panel-orbit-one {
  width: 92%;
  height: 78%;
  transform: rotate(-16deg);
}

.panel-orbit-two {
  width: 70%;
  height: 95%;
  border-style: dashed;
  opacity: .44;
  transform: rotate(35deg);
}

.panel-node {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(145, 185, 82, .08);
}

.panel-node-one {
  left: 9%;
  top: 31%;
}

.panel-node-two {
  right: 7%;
  top: 58%;
}

.panel-node-three {
  left: 18%;
  bottom: 12%;
}

/* MAIN PANEL */

.exam-panel {
  position: relative;
  z-index: 4;
  width: 370px;
  padding: 24px;
  border: 1px solid rgba(224, 228, 217, .96);
  border-radius: 25px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 35px 85px rgba(44, 54, 36, .105),
    0 8px 25px rgba(44, 54, 36, .035);
  transition: transform .18s ease-out;
  transform-style: preserve-3d;
}

.exam-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 45px;
  right: 45px;
  height: 2px;
  border-radius: 30px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--green),
    transparent
  );
}

.exam-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.exam-panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: #999f96;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.exam-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font: 700 20px Manrope, sans-serif;
  letter-spacing: -.8px;
}

.panel-head-icons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.panel-head-icons > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f6f1;
  color: #81887c;
  font-size: 11px;
}

.panel-head-icon-active {
  background: var(--light-green) !important;
  color: #638938 !important;
}

/* EXAM TYPE */

.exam-type-switch {
  margin-top: 21px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid #e6e9e2;
  border-radius: 15px;
  background: #fbfcf9;
}

.exam-type-button {
  min-height: 42px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #727970;
  font-size: 10px;
  font-weight: 600;
  transition:
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.exam-type-button.active {
  background: linear-gradient(135deg, #9cc95a, #83ad43);
  color: white;
  box-shadow: 0 8px 18px rgba(127, 168, 67, .2);
}

.exam-type-icon {
  font-size: 11px;
}

/* EXAM INFO */

.exam-information {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid #e8ebe5;
  border-radius: 17px;
  background: linear-gradient(145deg, #fafbf8, #f6f9f1);
}

.exam-information-label {
  display: block;
  margin-bottom: 12px;
  color: #999f96;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.exam-information-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exam-info-card {
  min-height: 69px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(233, 236, 228, .85);
  border-radius: 12px;
  background: white;
}

.exam-info-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--light-green);
  color: #659039;
  font-size: 13px;
}

.exam-info-card strong,
.exam-info-card small {
  display: block;
}

.exam-info-card strong {
  font: 700 14px Manrope, sans-serif;
}

.exam-info-card small {
  margin-top: 3px;
  color: #979e94;
  font-size: 7px;
}

/* PANEL CTA */

.hero-panel-start {
  width: 100%;
  min-height: 48px;
  margin-top: 13px;
  padding: 7px 8px 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  border: 0;
  border-radius: 11px;
  background: var(--dark);
  color: white;
  font-size: 10px;
  font-weight: 800;
  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.hero-panel-start b {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .09);
  font-size: 12px;
  transition: transform .2s ease;
}

.hero-panel-start:hover {
  background: #41483a;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(37, 41, 34, .16);
}

.hero-panel-start:hover b {
  transform: translate(2px, -2px);
}

/* RESULTS BUTTON */

.past-results-button {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e7eae4;
  border-radius: 11px;
  background: white;
  color: #5f665d;
  font-size: 9px;
  font-weight: 600;
  transition:
    border-color .2s ease,
    background .2s ease;
}

.past-results-button:hover {
  border-color: rgba(145, 185, 82, .45);
  background: #fbfcf8;
}

.past-results-icon {
  color: #799c4a;
  font-size: 12px;
}

.past-results-button b {
  margin-left: auto;
  color: #7a8277;
  font-size: 16px;
  font-weight: 400;
}

/* HERO FLOAT CARDS */

.hero-float-card {
  position: absolute;
  z-index: 6;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e7ebe3;
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(46, 55, 39, .085);
  backdrop-filter: blur(8px);
}

.hero-float-icon {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--light-green);
  color: #6a913b;
  font-size: 12px;
}

.hero-float-card strong,
.hero-float-card small {
  display: block;
}

.hero-float-card strong {
  font-size: 8px;
}

.hero-float-card small {
  margin-top: 3px;
  color: #9ba097;
  font-size: 6px;
}

.hero-real-format {
  left: -21px;
  top: 82px;
  transform: rotate(-4deg);
}

.hero-instant-result {
  right: -18px;
  top: 34px;
}

.hero-free-tests {
  right: -45px;
  top: 264px;
  transform: rotate(4deg);
}

.hero-focus-card {
  right: -20px;
  bottom: 21px;
  transform: rotate(3deg);
}

.hero-focus-code {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--dark);
  color: white;
  font: 700 9px monospace;
}

/* LEVEL CARD */

.hero-level-card {
  position: absolute;
  z-index: 6;
  left: -25px;
  bottom: 35px;
  width: 152px;
  padding: 13px;
  border: 1px solid #e7ebe2;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 17px 40px rgba(45, 54, 38, .08);
}

.level-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.level-card-top span {
  color: #777e73;
  font-size: 7px;
  font-weight: 700;
}

.level-card-top strong {
  color: #7dab3f;
  font: 800 10px Manrope, sans-serif;
}

.level-bars {
  height: 52px;
  margin-top: 11px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.level-bars span {
  flex: 1;
  min-height: 8px;
  border-radius: 4px 4px 2px 2px;
  background: #dfead2;
}

.level-bars span:nth-last-child(2) {
  background: #b7d987;
}

.level-bars span:last-child {
  background: var(--green);
}

/* ==================================================
   IMAGE SLIDER
================================================== */

.home-slider {
  width:
    min(
      100%,
      1500px
    );

  margin:
    0 auto 20px;

  padding:
    0 7% 35px;
}


.home-slider-shell {
  position: relative;

  width: 100%;

  border-radius:
    22px;

  isolation:
    isolate;
}


.home-slider-viewport {
  position: relative;

  width: 100%;

  aspect-ratio:
    16 / 5;

  overflow: hidden;

  border:
    1px solid
    var(--line);

  border-radius:
    22px;

  background:
    var(--white);

  box-shadow:
    0 20px 55px
    rgba(37, 41, 34, .08);

  cursor:
    grab;

  touch-action:
    pan-y;

  user-select:
    none;
}


.home-slider-viewport.is-dragging {
  cursor:
    grabbing;
}


.home-slider-track {
  width: 100%;
  height: 100%;

  display: flex;

  transform:
    translate3d(
      0,
      0,
      0
    );

  transition:
    transform .55s
    cubic-bezier(
      .22,
      .75,
      .24,
      1
    );

  will-change:
    transform;
}


.home-slider-track.is-dragging {
  transition: none;
}


.home-slide {
  position: relative;

  width: 100%;
  height: 100%;

  flex:
    0 0 100%;

  margin: 0;

  overflow: hidden;

  background:
    var(--surface, var(--white));
}


.home-slide img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit:
    contain;

  object-position:
    center;
}


.home-slide.is-missing {
  display: grid;

  place-items:
    center;

  background:
    linear-gradient(
      135deg,
      var(--light-green),
      var(--white)
    );
}


.home-slide.is-missing img {
  display: none;
}


.home-slide.is-missing::after {
  content:
    "Şəkli frontend/sliders/"
    attr(data-slide-label)
    " ünvanına yerləşdir";

  max-width:
    520px;

  padding:
    22px;

  color:
    var(--muted);

  text-align:
    center;

  font-size:
    clamp(
      12px,
      1.3vw,
      16px
    );

  font-weight:
    700;

  line-height:
    1.6;
}


.home-slider-arrow {
  width: 40px;
  height: 40px;

  position: absolute;

  top: 50%;

  z-index: 5;

  display: grid;

  place-items:
    center;

  border:
    1px solid
    rgba(255, 255, 255, .45);

  border-radius:
    13px;

  background:
    rgba(22, 27, 21, .62);

  color:
    white;

  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, .16);

  backdrop-filter:
    blur(10px);

  transform:
    translateY(-50%);

  font-size:
    17px;

  font-weight:
    800;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    opacity .2s ease;
}


.home-slider-prev {
  left: 14px;
}


.home-slider-next {
  right: 14px;
}


.home-slider-arrow:hover {
  background:
    rgba(113, 152, 59, .92);

  border-color:
    rgba(255, 255, 255, .65);
}


.home-slider-arrow:active {
  transform:
    translateY(-50%)
    scale(.95);
}


.home-slider-arrow:focus-visible {
  outline:
    3px solid
    rgba(145, 185, 82, .3);

  outline-offset:
    3px;
}


.home-slider-dots {
  position: absolute;

  left: 50%;
  bottom: 11px;

  z-index: 6;

  padding:
    7px 9px;

  display: flex;

  align-items:
    center;

  gap: 7px;

  border:
    1px solid
    rgba(255, 255, 255, .32);

  border-radius:
    999px;

  background:
    rgba(18, 23, 17, .48);

  box-shadow:
    0 7px 20px
    rgba(0, 0, 0, .12);

  backdrop-filter:
    blur(10px);

  transform:
    translateX(-50%);
}


.home-slider-dot {
  width: 8px;
  height: 8px;

  padding: 0;

  border: 0;

  border-radius:
    50%;

  background:
    rgba(255, 255, 255, .48);

  transition:
    width .22s ease,
    border-radius .22s ease,
    background .22s ease,
    transform .22s ease;
}


.home-slider-dot:hover {
  background:
    rgba(255, 255, 255, .8);

  transform:
    scale(1.12);
}


.home-slider-dot.active {
  width: 24px;

  border-radius:
    999px;

  background:
    var(--green);
}


.home-slider-dot:focus-visible {
  outline:
    2px solid
    white;

  outline-offset:
    2px;
}


html[data-theme="dark"]
.home-slider-viewport {
  border-color:
    #2d352b;

  box-shadow:
    0 20px 55px
    rgba(0, 0, 0, .24);
}


@media (max-width: 950px) {
  .home-slider {
    padding:
      0 7% 32px;
  }

  .home-slider-shell,
  .home-slider-viewport {
    border-radius:
      18px;
  }

  .home-slider-arrow {
    width: 40px;
    height: 40px;

    border-radius:
      12px;
  }

  .home-slider-prev {
    left: 10px;
  }

  .home-slider-next {
    right: 10px;
  }
}


@media (max-width: 640px) {
  .home-slider {
    padding:
      0 5% 28px;
  }

  .home-slider-shell,
  .home-slider-viewport {
    border-radius:
      15px;
  }

  .home-slider-arrow {
    width: 36px;
    height: 36px;

    top: 50%;

    border-radius:
      10px;

    font-size:
      14px;
  }

  .home-slider-prev {
    left: 7px;
  }

  .home-slider-next {
    right: 7px;
  }

  .home-slider-dots {
    bottom: 8px;

    padding:
      6px 8px;

    gap: 6px;
  }

  .home-slider-dot {
    width: 7px;
    height: 7px;
  }

  .home-slider-dot.active {
    width: 20px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .home-slider-track {
    transition: none;
  }

  .home-slider-arrow,
  .home-slider-dot {
    transition: none;
  }
}


/* ==================================================
   GENERAL
================================================== */

.section {
  max-width: 1400px;
  margin: auto;
  padding: 95px 9%;
}

.about-copy h2,
.how-intro h2,
.premium-copy h2,
.tests-head-copy h2 {
  font: 700 clamp(36px, 4vw, 51px)/1.12 Manrope, sans-serif;
  letter-spacing: -2.5px;
}

.about-copy h2,
.how-intro h2,
.premium-copy h2 {
  margin: 16px 0 0;
}

.about-copy h2 span,
.how-intro h2 span,
.tests-head-copy h2 span {
  color: var(--green);
}

/* ==================================================
   TEST SECTION
================================================== */

.tests-section {
  position: relative;
  overflow: hidden;
  padding-top: 105px;
}

.tests-section::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  top: 0;
  right: -250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(145, 185, 82, .09),
    transparent 70%
  );
  pointer-events: none;
}

.tests-showcase-head {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.tests-head-copy h2 {
  margin: 20px 0 15px;
  font-size: clamp(43px, 5vw, 62px);
}

.tests-section-description {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.tests-head-side {
  position: relative;
  min-height: 190px;
}

.week-counter {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 15px 35px rgba(45, 55, 38, .05);
  backdrop-filter: blur(10px);
}

.counter-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--light-green);
  color: #516635;
  font-size: 16px;
}

.week-counter strong,
.week-counter small {
  display: block;
}

.week-counter strong {
  font-size: 12px;
}

.week-counter small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.tests-head-art {
  position: absolute;
  inset: 12px 10px 0 0;
  overflow: hidden;
}

.tests-art-orbit {
  position: absolute;
  border: 1px solid rgba(145, 185, 82, .17);
  border-radius: 50%;
}

.orbit-a {
  width: 320px;
  height: 140px;
  left: 10%;
  bottom: 0;
  transform: rotate(-13deg);
}

.orbit-b {
  width: 250px;
  height: 115px;
  left: 25%;
  bottom: 8px;
  border-style: dashed;
  opacity: .6;
  transform: rotate(10deg);
}

.tests-code-box {
  position: absolute;
  left: 15%;
  top: 45px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .85);
  color: #535b4e;
  font: 700 12px monospace;
  transform: rotate(-4deg);
  box-shadow: 0 10px 25px rgba(35, 43, 30, .05);
}

.tests-goal-note {
  position: absolute;
  left: 35%;
  bottom: 37px;
  transform: rotate(-5deg);
  color: #6e7569;
  font-size: 9px;
  line-height: 1.5;
}

.tests-goal-note span,
.tests-goal-note strong {
  display: block;
}

.tests-goal-note strong {
  color: var(--ink);
}

.tests-goal-note b {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 22px;
  transform: rotate(18deg);
}

.tests-chart-box {
  position: absolute;
  right: 9%;
  bottom: 21px;
  width: 71px;
  height: 62px;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 30px rgba(42, 50, 36, .06);
}

.tests-chart-box span {
  flex: 1;
  border-radius: 3px 3px 2px 2px;
  background: #dfebd1;
}

.tests-chart-box span:nth-child(3) {
  background: var(--green);
}

/* FILTERS */

.filter-row {
  margin: 15px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.filter-pill {
  min-height: 46px;
  padding: 7px 16px 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  transition: .2s;
}

.filter-pill:hover {
  background: rgba(232, 243, 217, .6);
  color: #53683a;
}

.filter-pill.active {
  background: var(--light-green);
  color: #354327;
  font-weight: 700;
}

.filter-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  color: #556b3b;
  font-size: 9px;
  font-weight: 800;
}

.results-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #999e94;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.results-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* TEST CARDS */

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

.test-card {
  position: relative;
  min-width: 0;
  padding: 25px;
  overflow: hidden;
  border: 1px solid #e5e9df;
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 40px rgba(44, 54, 37, .025);
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.test-card:hover {
  transform: translateY(-5px);
  border-color: rgba(145, 185, 82, .4);
  box-shadow: 0 25px 60px rgba(44, 54, 37, .07);
}

.admission-card {
  background:
    radial-gradient(
      circle at 80% 42%,
      rgba(145, 185, 82, .09),
      transparent 28%
    ),
    rgba(255, 255, 255, .9);
}

.bachelor-card {
  background:
    radial-gradient(
      circle at 82% 38%,
      rgba(145, 185, 82, .075),
      transparent 28%
    ),
    rgba(255, 255, 255, .9);
}

.test-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: relative;
  z-index: 3;
}

.test-main-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e4f4d7;
  color: #4f6735;
}

.test-main-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bachelor-icon {
  background: #dcf2dc;
}

.level-tag {
  padding: 8px 11px;
  border-radius: 9px;
  background: #f4f5f1;
  color: #80857b;
  font-size: 8px;
  white-space: nowrap;
}

.test-card-main {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 15px;
}

.card-kicker {
  margin: 22px 0 7px;
  color: #9ca299;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.test-card h3 {
  margin: 0;
  color: #111510;
  font: 700 27px Manrope, sans-serif;
  letter-spacing: -1.3px;
}

.card-description {
  max-width: 410px;
  min-height: 52px;
  margin: 10px 0 0;
  color: #7c8378;
  font-size: 11px;
  line-height: 1.75;
}

/* TEST VISUALS */

.test-card-visual {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
}

.visual-circle {
  position: absolute;
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(145, 185, 82, .18),
    rgba(145, 185, 82, .06) 55%,
    transparent 70%
  );
}

.book-stack {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 100px;
  transform: rotate(-3deg);
}

.book {
  position: absolute;
  left: 10px;
  width: 105px;
  height: 27px;
  border-radius: 6px 10px 10px 6px;
  box-shadow: 0 8px 16px rgba(68, 84, 52, .1);
}

.book::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 5px;
  width: 69px;
  height: 16px;
  border-radius: 2px 8px 8px 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .8) 0 2px,
    rgba(226, 232, 219, .8) 2px 3px
  );
}

.book-one {
  bottom: 5px;
  background: #6f9639;
  transform: rotate(3deg);
}

.book-two {
  bottom: 33px;
  left: 1px;
  background: #a4ca69;
  transform: rotate(-4deg);
}

.book-three {
  bottom: 62px;
  left: 18px;
  background: #d6e8b9;
  transform: rotate(6deg);
}

.visual-float-card {
  position: absolute;
  z-index: 4;
  background: white;
  border: 1px solid #e7ebe1;
  box-shadow: 0 10px 25px rgba(52, 62, 44, .08);
}

.visual-question-card {
  top: 20px;
  left: 6px;
  width: 57px;
  height: 43px;
  padding: 9px;
  border-radius: 10px;
  transform: rotate(-8deg);
}

.visual-question-card i {
  display: block;
  height: 4px;
  margin-bottom: 5px;
  border-radius: 8px;
  background: #c2dea1;
}

.visual-question-card i:nth-child(2) {
  width: 72%;
}

.visual-question-card i:nth-child(3) {
  width: 45%;
}

.visual-count-badge {
  position: absolute;
  z-index: 5;
  right: 5px;
  bottom: 25px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e6eae0;
  border-radius: 10px;
  background: white;
  box-shadow: 0 10px 25px rgba(48, 58, 40, .07);
  transform: rotate(4deg);
}

.visual-count-badge span {
  color: #70963d;
  font-size: 10px;
}

.visual-count-badge strong {
  font-size: 8px;
}

.graduate-cap {
  position: relative;
  z-index: 2;
  width: 145px;
  transform: rotate(3deg);
}

.graduate-cap svg {
  width: 100%;
  overflow: visible;
}

.cap-top {
  fill: #252922;
}

.cap-base {
  fill: #343a30;
}

.cap-string {
  fill: none;
  stroke: #91b952;
  stroke-width: 3;
  stroke-linecap: round;
}

.cap-dot {
  fill: #91b952;
}

.mini-analytics {
  left: 5px;
  bottom: 34px;
  width: 55px;
  height: 49px;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  border-radius: 10px;
  transform: rotate(-8deg);
}

.mini-analytics span {
  flex: 1;
  border-radius: 3px 3px 2px 2px;
  background: #bbd995;
}

.mini-analytics span:nth-child(3) {
  background: var(--green);
}

/* TEST DETAILS */

.test-details {
  margin-top: 6px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #edf0e8;
  border-bottom: 1px solid #edf0e8;
}

.test-detail {
  min-width: 0;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.test-detail:first-child {
  padding-left: 0;
}

.test-detail + .test-detail {
  border-left: 1px solid #edf0e8;
}

.detail-icon {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--light-green);
  color: #668b35;
  font-size: 11px;
}

.test-detail strong,
.test-detail small {
  display: block;
}

.test-detail strong {
  color: #30352e;
  font-size: 9px;
  line-height: 1.4;
}

.test-detail small {
  margin-top: 3px;
  color: #999f96;
  font-size: 7px;
  line-height: 1.3;
}

/* TEST CTA */

.card-cta {
  width: 100%;
  min-height: 49px;
  margin-top: 17px;
  padding: 7px 10px 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 800;
  transition: .22s;
}

.card-cta b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  transition: transform .2s ease;
}

.card-cta:hover b {
  transform: translate(2px, -2px);
}

.card-cta-dark {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: white;
}

.card-cta-dark b {
  background: rgba(255, 255, 255, .1);
  color: white;
}

.card-cta-dark:hover {
  background: #3c4338;
  border-color: #3c4338;
}

.card-cta-light {
  border: 1px solid #dfe4da;
  background: white;
  color: var(--ink);
}

.card-cta-light b {
  background: var(--light-green);
  color: #688d37;
}

.card-cta-light:hover {
  border-color: rgba(145, 185, 82, .55);
}


.card-cta.daily-limit-reached {
  cursor: not-allowed !important;

  opacity: .62;

  filter:
    saturate(.72);

  box-shadow:
    none !important;

  transform:
    none !important;
}

.card-cta.daily-limit-reached:hover {
  transform:
    none !important;

  box-shadow:
    none !important;
}

.card-cta.daily-limit-reached:hover b {
  transform:
    none !important;
}

.card-cta.daily-limit-reached.card-cta-dark {
  border-color:
    color-mix(
      in srgb,
      var(--line) 65%,
      var(--dark)
    );

  background:
    color-mix(
      in srgb,
      var(--dark) 76%,
      var(--white)
    );
}

.card-cta.daily-limit-reached.card-cta-light {
  border-color:
    var(--line);

  background:
    color-mix(
      in srgb,
      var(--white) 88%,
      var(--bg)
    );

  color:
    var(--muted);
}

.card-cta.exam-resume {
  box-shadow:
    0 7px 18px
    rgba(105,140,60,.08);
}

.card-cta.exam-resume b {
  animation:
    infozedResumeArrow
    1.5s
    ease-in-out
    infinite;
}

@keyframes infozedResumeArrow {
  0%,
  100% {
    transform:
      translate(0,0);
  }

  50% {
    transform:
      translate(2px,-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-cta.exam-resume b {
    animation: none;
  }
}

/* PREMIUM BANNER */

.locked-banner {
  position: relative;
  margin-top: 18px;
  padding: 20px 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #e0ebd1;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 83% 130%,
      rgba(145, 185, 82, .16),
      transparent 34%
    ),
    #eaf3df;
}

.premium-banner-icon {
  width: 47px;
  height: 47px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #8fbd4a, #6e9b2e);
  color: white;
  font-size: 18px;
}

.locked-banner .banner-copy {
  flex: 1;
}

.locked-banner strong {
  font-size: 11px;
}

.locked-banner p {
  margin: 6px 0 0;
  color: #76816b;
  font-size: 9px;
  line-height: 1.6;
}

.premium-banner-button {
  min-height: 44px;
  padding: 8px 10px 8px 17px;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  border: 0;
  border-radius: 11px;
  background: var(--dark);
  color: white;
  font-size: 9px;
  font-weight: 800;
}

/* ==================================================
   HOW
================================================== */

.how-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 10%;
  align-items: start;
}

.how-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

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

.step {
  display: flex;
  gap: 17px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.step-number {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--light-green);
  font-weight: 800;
}

.step h3 {
  margin: 2px 0 7px;
  font-size: 13px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ==================================================
   PREMIUM
================================================== */

.premium-section {
  margin: 0 7% 85px;
  padding: 45px;
  border-radius: 24px;
  background: #252922;
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.premium-section .eyebrow {
  color: #c4d7aa;
}

.premium-copy h2 {
  max-width: 620px;
  font-size: clamp(32px, 4vw, 46px);
}

.premium-copy p {
  max-width: 560px;
  color: #c1c6bb;
  font-size: 12px;
  line-height: 1.9;
}

.premium-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin-top: 20px;
  color: #dfe5d7;
  font-size: 11px;
}

.button-green {
  background: #c9f27b;
  color: #20231f;
}

/* ==================================================
   ABOUT
================================================== */

.about-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 9%;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-copy p {
  max-width: 600px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.about-highlight {
  padding: 32px;
  border-radius: 22px;
  background: #eaf3df;
}

.about-highlight .big-mark {
  font: 800 42px Manrope, sans-serif;
  color: #71983b;
}

.about-highlight h3 {
  font: 700 21px Manrope, sans-serif;
}

.about-highlight p {
  color: #68745c;
  font-size: 12px;
  line-height: 1.8;
}

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

footer {
  padding: 30px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--line);
}

footer p,
.footer-copy {
  color: var(--muted);
  font-size: 11px;
}

/* ==================================================
   MODALS
================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 20px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(24, 28, 22, .55);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(100%, 440px);
  position: relative;
  padding: 35px;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: 0 25px 90px #0002;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e9ece4;
  font-size: 22px;
}

.modal-brand {
  margin-bottom: 28px;
}

.modal h2 {
  margin: 15px 0 8px;
  font: 700 29px Manrope, sans-serif;
  letter-spacing: -1px;
}

.modal-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

#authForm {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

#authForm label {
  font-size: 11px;
  font-weight: 700;
}

#authForm input {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: white;
}

#authForm input:focus {
  border-color: var(--green);
}

.modal-submit {
  width: 100%;
  margin-top: 12px;
}

.modal-switch {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.modal-switch button {
  border: 0;
  background: transparent;
  color: #658d34;
  font-weight: 800;
}

.demo-notice {
  margin-top: 18px;
  color: #969b91;
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}

.demo-question {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.demo-question > span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 800;
}

.demo-question > p {
  font-size: 13px;
  line-height: 1.7;
}

.answer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.answer-options button {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  text-align: left;
  font-size: 11px;
}

.answer-options button.selected {
  border-color: var(--green);
  background: var(--light-green);
}

.answer-feedback {
  font-size: 11px !important;
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  padding: 14px 20px;
  border-radius: 12px;
  background: #252922;
  color: white;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 10px 30px #0002;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1050px) {
  .hero {
    padding-left: 6%;
    padding-right: 6%;
    gap: 35px;
  }

  .exam-panel {
    width: 335px;
  }

  .hero-free-tests {
    right: -15px;
  }

  .hero-focus-card {
    right: -5px;
  }
}

@media (max-width: 950px) {
  .topbar {
    padding: 14px 5%;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 65px 8% 50px;
    gap: 50px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: min(100%, 650px);
    margin: auto;
  }

  .exam-panel {
    width: 370px;
  }
.section {
    padding: 70px 7%;
  }

  .tests-showcase-head {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tests-head-side {
    min-height: 180px;
  }

  .week-counter {
    left: 0;
    right: auto;
  }

  .tests-head-art {
    left: 180px;
  }

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

  .premium-section {
    margin: 0 5% 60px;
    padding: 32px;
  }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 650px) {
  .topbar {
    gap: 12px;
  }

  .brand-logo {
    width: 120px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .text-button {
    padding: 10px 11px;
    font-size: 11px;
  }

  .top-actions .button-dark.button-small {
    min-height: 40px;
    padding: 10px 11px;
    gap: 9px;
    font-size: 10px;
  }

  .nav-links {
    gap: 14px;
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 55px 6% 40px;
    gap: 40px;
  }

  .hero-grid-pattern,
  .hero-code {
    display: none;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 58px);
    letter-spacing: -3px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-mini-dashboard {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .exam-panel {
    width: min(320px, 88vw);
    padding: 19px;
  }

  .exam-panel-head h3 {
    font-size: 17px;
  }

  .exam-information {
    padding: 13px;
  }

  .exam-info-card {
    min-height: 61px;
    padding: 8px;
  }

  .exam-info-icon {
    width: 30px;
    height: 30px;
  }

  .exam-info-card strong {
    font-size: 11px;
  }

  .hero-real-format {
    left: 0;
    top: 20px;
  }

  .hero-instant-result {
    top: 5px;
    right: 0;
  }

  .hero-free-tests {
    right: 0;
    top: auto;
    bottom: 85px;
  }

  .hero-focus-card {
    display: none;
  }

  .hero-level-card {
    left: 0;
    bottom: 10px;
    width: 135px;
  }

  .panel-orbit-one {
    width: 100%;
  }
.section {
    padding: 60px 6%;
  }

  .tests-section {
    padding-top: 75px;
  }

  .tests-head-copy h2 {
    font-size: 42px;
    letter-spacing: -2.3px;
  }

  .tests-head-side {
    min-height: 115px;
  }

  .week-counter {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
  }

  .tests-head-art {
    display: none;
  }

  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-pills {
    width: 100%;
  }

  .filter-pill {
    flex: 1;
    justify-content: center;
    padding-right: 10px;
  }

  .test-card {
    padding: 20px;
  }

  .test-card-main {
    grid-template-columns: 1fr;
  }

  .test-details {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .test-detail,
  .test-detail:first-child {
    padding: 0;
  }

  .test-detail + .test-detail {
    padding-top: 13px;
    border-left: 0;
    border-top: 1px solid #edf0e8;
  }

  .locked-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .premium-banner-button {
    width: 100%;
    justify-content: space-between;
  }

  .how-section,
  .about-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-copy h2,
  .how-intro h2 {
    font-size: 37px;
  }

  .premium-section {
    grid-template-columns: 1fr;
    padding: 27px;
  }

  footer {
    padding: 28px 6%;
  }

  .modal {
    padding: 28px 22px;
  }
}

/* ==================================================
   REDUCED MOTION
================================================== */

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

  .exam-panel {
    transform: none !important;
  }
}

/* ==================================================
   DARK MODE
================================================== */

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark"] .topbar {
  background: rgba(16, 19, 15, .94);
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .nav-links {
  color: #b3bcae;
}

html[data-theme="dark"] .top-actions .text-button:hover {
  color: var(--green);
  background: rgba(155, 198, 90, .1);
  border-color: rgba(155, 198, 90, .24);
}

html[data-theme="dark"] .theme-toggle {
  background: #181c17;
  border-color: #30382e;
  color: #eef3e9;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(155, 198, 90, .55);
  background: #1d231b;
}

html[data-theme="dark"] .eyebrow {
  color: #a9b2a4;
}

html[data-theme="dark"] .secondary-link:hover {
  color: var(--green);
  background: rgba(155, 198, 90, .09);
}

html[data-theme="dark"] .secondary-play,
html[data-theme="dark"] .mini-dashboard-icon,
html[data-theme="dark"] .hero-float-icon,
html[data-theme="dark"] .exam-info-icon,
html[data-theme="dark"] .counter-icon,
html[data-theme="dark"] .detail-icon,
html[data-theme="dark"] .card-cta-light b,
html[data-theme="dark"] .step-number {
  color: var(--green);
}

html[data-theme="dark"] .exam-panel {
  border-color: #31392f;
  background: rgba(24, 28, 23, .96);
  box-shadow:
    0 35px 85px rgba(0, 0, 0, .32),
    0 8px 25px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .panel-head-icons > span {
  background: #20261e;
  color: #a7afa1;
}

html[data-theme="dark"] .panel-head-icon-active {
  background: var(--light-green) !important;
  color: var(--green) !important;
}

html[data-theme="dark"] .exam-type-switch {
  border-color: #31392f;
  background: #131712;
}

html[data-theme="dark"] .exam-type-button {
  color: #a9b1a4;
}

html[data-theme="dark"] .exam-information {
  border-color: #30382e;
  background: linear-gradient(145deg, #141914, #171d16);
}

html[data-theme="dark"] .exam-information-label,
html[data-theme="dark"] .exam-panel-kicker,
html[data-theme="dark"] .exam-info-card small {
  color: var(--muted);
}

html[data-theme="dark"] .exam-info-card {
  border-color: #30382e;
  background: #1b2019;
  color: var(--ink);
}

html[data-theme="dark"] .past-results-button {
  border-color: #30382e;
  background: #191e18;
  color: #b3bcae;
}

html[data-theme="dark"] .past-results-button:hover {
  border-color: rgba(155, 198, 90, .45);
  background: #1e251c;
}

html[data-theme="dark"] .past-results-icon,
html[data-theme="dark"] .past-results-button b {
  color: var(--green);
}

html[data-theme="dark"] .hero-float-card {
  border-color: #31392f;
  background: rgba(25, 30, 24, .96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .hero-float-card small {
  color: var(--muted);
}

html[data-theme="dark"] .hero-level-card {
  border-color: #31392f;
  background: rgba(25, 30, 24, .96);
  box-shadow: 0 17px 40px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .level-card-top span {
  color: var(--muted);
}

html[data-theme="dark"] .level-card-top strong {
  color: var(--green);
}

html[data-theme="dark"] .level-bars span {
  background: #34422d;
}

html[data-theme="dark"] .level-bars span:nth-last-child(2) {
  background: #55713e;
}


html[data-theme="dark"] .stat-arrow {
  background: #22291f;
  color: var(--green);
}

html[data-theme="dark"] .stat-badge,
html[data-theme="dark"] .direction-visual > div > span {
  color: var(--green);
}

html[data-theme="dark"] .direction-line {
  background: #354032;
}

html[data-theme="dark"] .focus-code {
  color: var(--ink);
}

html[data-theme="dark"] .week-counter {
  border-color: #30382e;
  background: rgba(24, 28, 23, .9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .tests-code-box,
html[data-theme="dark"] .tests-chart-box {
  border-color: #30382e;
  background: rgba(24, 28, 23, .9);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .tests-goal-note {
  color: var(--muted);
}

html[data-theme="dark"] .tests-chart-box span {
  background: #35442e;
}

html[data-theme="dark"] .tests-chart-box span:nth-child(3) {
  background: var(--green);
}

html[data-theme="dark"] .filter-pill:hover {
  background: rgba(155, 198, 90, .09);
  color: var(--green);
}

html[data-theme="dark"] .filter-pill.active {
  background: var(--light-green);
  color: #dcebd0;
}

html[data-theme="dark"] .filter-icon {
  background: rgba(255, 255, 255, .04);
  color: var(--green);
}

html[data-theme="dark"] .results-label {
  color: var(--muted);
}

html[data-theme="dark"] .test-card {
  border-color: #30382e;
  background: rgba(24, 28, 23, .9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .1);
}

html[data-theme="dark"] .test-card:hover {
  border-color: rgba(155, 198, 90, .42);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .admission-card {
  background:
    radial-gradient(
      circle at 80% 42%,
      rgba(155, 198, 90, .08),
      transparent 28%
    ),
    rgba(24, 28, 23, .92);
}

html[data-theme="dark"] .bachelor-card {
  background:
    radial-gradient(
      circle at 82% 38%,
      rgba(155, 198, 90, .07),
      transparent 28%
    ),
    rgba(24, 28, 23, .92);
}

html[data-theme="dark"] .test-main-icon,
html[data-theme="dark"] .bachelor-icon {
  background: var(--light-green);
  color: var(--green);
}

html[data-theme="dark"] .level-tag {
  background: #20261e;
  color: #acb5a7;
}

html[data-theme="dark"] .card-kicker,
html[data-theme="dark"] .card-description {
  color: var(--muted);
}

html[data-theme="dark"] .test-card h3 {
  color: var(--ink);
}

html[data-theme="dark"] .visual-circle {
  background: radial-gradient(
    circle,
    rgba(155, 198, 90, .14),
    rgba(155, 198, 90, .04) 55%,
    transparent 70%
  );
}

html[data-theme="dark"] .book::after {
  background: repeating-linear-gradient(
    to bottom,
    rgba(235, 241, 229, .72) 0 2px,
    rgba(116, 130, 107, .55) 2px 3px
  );
}

html[data-theme="dark"] .book-three {
  background: #718b51;
}

html[data-theme="dark"] .visual-float-card,
html[data-theme="dark"] .visual-count-badge {
  border-color: #30382e;
  background: #1b2019;
  color: var(--ink);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .visual-question-card i {
  background: #6f9346;
}

html[data-theme="dark"] .mini-analytics span {
  background: #58753f;
}

html[data-theme="dark"] .test-details {
  border-top-color: #30382e;
  border-bottom-color: #30382e;
}

html[data-theme="dark"] .test-detail + .test-detail {
  border-left-color: #30382e;
}

html[data-theme="dark"] .test-detail strong {
  color: var(--ink);
}

html[data-theme="dark"] .test-detail small {
  color: var(--muted);
}

html[data-theme="dark"] .card-cta-light {
  border-color: #374034;
  background: #1a1f18;
  color: var(--ink);
}

html[data-theme="dark"] .card-cta-light:hover {
  border-color: rgba(155, 198, 90, .55);
  background: #20271e;
}

html[data-theme="dark"] .locked-banner {
  border-color: #34442c;
  background:
    radial-gradient(
      circle at 83% 130%,
      rgba(155, 198, 90, .12),
      transparent 34%
    ),
    #1c2818;
}

html[data-theme="dark"] .locked-banner p {
  color: #a8b4a0;
}

html[data-theme="dark"] .step {
  border-color: #30382e;
  background: #181c17;
}

html[data-theme="dark"] .about-highlight {
  background: #1c2818;
  border: 1px solid #314229;
}

html[data-theme="dark"] .about-highlight .big-mark {
  color: var(--green);
}

html[data-theme="dark"] .about-highlight p {
  color: #a8b4a0;
}

html[data-theme="dark"] .premium-section {
  border: 1px solid #343d31;
  background: #20251e;
}

html[data-theme="dark"] footer {
  border-top-color: var(--line);
}

html[data-theme="dark"] .modal-backdrop {
  background: rgba(3, 5, 3, .72);
}

html[data-theme="dark"] .modal {
  border: 1px solid #30382e;
  background: #141813;
  box-shadow: 0 25px 90px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .modal-close {
  background: #252d22;
  color: var(--ink);
}

html[data-theme="dark"] #authForm input,
html[data-theme="dark"] .demo-question,
html[data-theme="dark"] .answer-options button {
  border-color: #30382e;
  background: #1b2019;
  color: var(--ink);
}

html[data-theme="dark"] #authForm input::placeholder {
  color: #899386;
}

html[data-theme="dark"] .modal-switch button {
  color: var(--green);
}

html[data-theme="dark"] .answer-options button:hover {
  border-color: rgba(155, 198, 90, .5);
}

html[data-theme="dark"] .answer-options button.selected {
  border-color: var(--green);
  background: var(--light-green);
  color: #e6f1dc;
}

html[data-theme="dark"] .toast {
  border: 1px solid #354032;
  background: #20251e;
  color: #f2f5ef;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
}

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

@media (max-width: 650px) {
  .theme-toggle {
    padding-right: 6px;
  }

  .theme-toggle-label {
    display: none;
  }
}

/* ==================================================
   THEME TRANSITIONS
================================================== */

body,
.topbar,
.exam-panel,
.exam-info-card,
.past-results-button,
.hero-float-card,
.hero-level-card,
.home-slider-viewport,
.week-counter,
.tests-code-box,
.tests-chart-box,
.test-card,
.visual-float-card,
.visual-count-badge,
.card-cta-light,
.locked-banner,
.step,
.about-highlight,
.modal,
.demo-question,
.answer-options button,
.theme-toggle {
  transition:
    background-color .25s ease,
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .2s ease;
}
/* ==================================================
   ADMIN-MANAGED EXAM META
================================================== */

.test-card[data-managed="true"] .level-tag,
.test-card[data-managed="true"] .card-kicker {
  transition: opacity .2s ease;
}


/* ==================================================
   HERO CREATIVE VISUAL
   Sağ tərəfdəki köhnə interaktiv sınaq panelinin
   yerinə yalnız dekorativ, kliklənməyən vizual.
================================================== */

.hero-creative-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
}

.hero-creative-glow {
  position: absolute;
  z-index: 0;
  width: min(92%, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(145, 185, 82, .19) 0%,
      rgba(145, 185, 82, .08) 38%,
      rgba(145, 185, 82, .025) 58%,
      transparent 74%
    );
  filter: blur(18px);
  transform: scale(1.08);
}

.hero-creative-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  margin: 0;
  overflow: hidden;
  border:
    1px solid
    color-mix(
      in srgb,
      var(--green) 26%,
      var(--line)
    );
  border-radius: 30px;
  background: #0c110b;
  box-shadow:
    0 34px 90px rgba(24, 31, 20, .16),
    0 12px 32px rgba(24, 31, 20, .08);
  transform: rotate(-1.1deg);
}

.hero-creative-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .045),
      transparent 28%,
      transparent 70%,
      rgba(145, 185, 82, .035)
    );
  pointer-events: none;
}

.hero-creative-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

html[data-theme="dark"] .hero-creative-frame {
  border-color:
    rgba(155, 198, 90, .22);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, .34),
    0 10px 32px rgba(0, 0, 0, .22);
}

@media (max-width: 1050px) {
  .hero-creative-frame {
    width: min(100%, 560px);
  }
}

@media (max-width: 950px) {
  .hero-creative-visual {
    width: min(100%, 650px);
    min-height: auto;
    margin: 0 auto;
  }

  .hero-creative-frame {
    width: min(100%, 590px);
  }
}

@media (max-width: 650px) {
  .hero-creative-visual {
    min-height: auto;
  }

  .hero-creative-frame {
    width: 100%;
    border-radius: 22px;
    transform: none;
  }

  .hero-creative-glow {
    width: 96%;
    filter: blur(14px);
  }
}


/* ==================================================
   CENTERED HERO
   Sağdakı vizual çıxarıldı. Hero məzmunu mərkəzləndi.
================================================== */

.hero {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 0;
}

.hero-copy {
  width: min(100%, 920px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow {
  justify-content: center;
}

.hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  justify-content: center;
}

.hero-mini-dashboard {
  width: min(100%, 760px);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.mini-dashboard-item {
  justify-content: center;
  text-align: left;
}

.code-two {
  left: 50%;
  transform: translateX(-50%) rotate(7deg);
}

@media (max-width: 760px) {
  .hero {
    padding-left: 7%;
    padding-right: 7%;
  }

  .hero h1 {
    font-size: clamp(46px, 12vw, 68px);
    letter-spacing: -3px;
  }

  .hero-description {
    max-width: 620px;
  }

  .hero-mini-dashboard {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
    gap: 16px;
  }

  .mini-dashboard-item {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.04;
  }

  .hero-actions {
    width: 100%;
  }
}


/* ==================================================
   ADMIN-MANAGED TEST CARD IMAGES
================================================== */

.managed-card-image {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  background: var(--light-green);
}

.test-card-visual.has-managed-image {
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    color-mix(
      in srgb,
      var(--light-green) 50%,
      var(--white)
    );
}

.test-card-visual.has-managed-image
.visual-circle,
.test-card-visual.has-managed-image
.book-stack,
.test-card-visual.has-managed-image
.visual-question-card,
.test-card-visual.has-managed-image
.graduate-cap,
.test-card-visual.has-managed-image
.mini-analytics {
  display: none;
}

.test-card-visual.has-managed-image
.visual-count-badge {
  z-index: 5;
}

html[data-theme="dark"]
.test-card-visual.has-managed-image {
  border-color:
    rgba(155, 198, 90, .22);
  background:
    #151a14;
}

@media (max-width: 720px) {
  .managed-card-image {
    border-radius: 14px;
  }

  .test-card-visual.has-managed-image {
    border-radius: 14px;
  }
}



/* ==================================================
   MOBILE EXPERIENCE POLISH — 2026
================================================== */

.mobile-nav-toggle {
  display: none;
}


@media (max-width: 650px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }


  /* HEADER */

  .topbar {
    min-height: 64px;

    padding:
      8px
      12px;

    display: grid;

    grid-template-columns:
      auto
      minmax(0, 1fr)
      auto;

    align-items: center;

    gap: 8px;

    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 106px;
    max-height: 38px;
  }

  .mobile-nav-toggle {
    grid-column: 3;
    grid-row: 1;

    width: 40px;
    height: 40px;

    padding: 9px;

    display: grid;
    align-content: center;

    gap: 4px;

    border:
      1px solid
      var(--line);

    border-radius: 11px;

    background:
      var(--white);

    color:
      var(--ink);

    box-shadow:
      0 5px 14px
      rgba(37,41,34,.05);
  }

  .mobile-nav-toggle span {
    width: 100%;
    height: 1.5px;

    display: block;

    border-radius: 99px;

    background:
      currentColor;

    transition:
      transform .2s ease,
      opacity .2s ease;
  }

  .mobile-nav-toggle.active
  span:nth-child(1) {
    transform:
      translateY(5.5px)
      rotate(45deg);
  }

  .mobile-nav-toggle.active
  span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active
  span:nth-child(3) {
    transform:
      translateY(-5.5px)
      rotate(-45deg);
  }

  .top-actions {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;

    justify-self: end;

    gap: 5px;
  }

  .theme-toggle {
    width: 38px;
    min-height: 38px;

    padding: 4px;

    flex: 0 0 38px;
  }

  .theme-toggle-icon {
    width: 28px;
    height: 28px;
  }

  .theme-toggle-label {
    display: none;
  }

  .top-actions .text-button {
    padding:
      8px
      9px;

    font-size: 10px;
  }

  .top-actions
  .button-dark.button-small {
    min-height: 38px;

    padding:
      8px
      10px;

    gap: 7px;

    border-radius: 10px;

    font-size: 9px;
  }

  .avatar {
    width: 38px;
    height: 38px;

    border-radius: 10px;
  }

  .nav-links {
    grid-column:
      1 / -1;
    grid-row: 2;

    width: 100%;

    max-height: 0;

    margin: 0;

    padding: 0;

    overflow: hidden;

    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 6px;

    opacity: 0;

    transform:
      translateY(-6px);

    pointer-events: none;

    transition:
      max-height .24s ease,
      padding .24s ease,
      opacity .2s ease,
      transform .2s ease;
  }

  .nav-links.mobile-open {
    max-height: 180px;

    padding:
      8px 0
      4px;

    opacity: 1;

    transform:
      translateY(0);

    pointer-events: auto;
  }

  .nav-links a {
    min-height: 40px;

    padding:
      0 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
      1px solid
      var(--line);

    border-radius: 10px;

    background:
      var(--white);

    font-size: 10px;
    font-weight: 700;

    text-align: center;
  }


  /* HERO */

  .hero {
    min-height: auto;

    padding:
      38px
      16px
      30px;

    gap: 28px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .eyebrow {
    gap: 7px;

    font-size: 8px;

    letter-spacing:
      1.25px;
  }

  .eyebrow-dot {
    width: 6px;
    height: 6px;
  }

  .hero h1 {
    margin:
      17px 0
      16px;

    font-size:
      clamp(
        39px,
        11.3vw,
        48px
      );

    line-height: 1.01;

    letter-spacing:
      -2.5px;
  }

  .hero-description {
    max-width: none;

    font-size: 12.5px;

    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
      1fr;

    gap: 8px;
  }

  .hero-main-button {
    width: 100%;
    min-height: 51px;
  }

  .secondary-link {
    width: 100%;
    min-height: 46px;

    justify-content: center;

    border:
      1px solid
      var(--line);

    background:
      color-mix(
        in srgb,
        var(--white) 75%,
        transparent
      );
  }

  .hero-mini-dashboard {
    margin-top: 26px;

    padding-top: 16px;

    grid-template-columns:
      1fr;

    gap: 8px;
  }

  .mini-dashboard-item {
    min-height: 50px;

    padding:
      7px
      9px;

    border:
      1px solid
      var(--line);

    border-radius: 11px;

    background:
      color-mix(
        in srgb,
        var(--white) 68%,
        transparent
      );
  }

  .mini-dashboard-icon {
    width: 30px;
    height: 30px;
  }

  .mini-dashboard-item strong {
    font-size: 10px;
  }

  .mini-dashboard-item small {
    font-size: 8px;
  }


  /* IMAGE SLIDER */

  .home-slider {
    margin-bottom: 8px;

    padding:
      0
      12px
      22px;
  }

  .home-slider-shell,
  .home-slider-viewport {
    border-radius:
      12px;
  }

  .home-slider-viewport {
    box-shadow:
      0 12px 30px
      rgba(37,41,34,.07);
  }

  .home-slider-arrow {
    display: none;
  }

  .home-slider-dots {
    bottom: 6px;

    padding:
      4px
      6px;

    gap: 5px;
  }

  .home-slider-dot {
    width: 6px;
    height: 6px;
  }

  .home-slider-dot.active {
    width: 17px;
  }


  /* GENERAL SECTIONS */

  .section {
    padding:
      48px
      14px;
  }

  .tests-section {
    padding-top: 54px;
  }

  .tests-showcase-head {
    gap: 22px;
  }

  .tests-head-copy h2 {
    margin:
      15px 0
      11px;

    font-size:
      clamp(
        34px,
        9.6vw,
        41px
      );

    letter-spacing:
      -2px;
  }

  .tests-section-description {
    font-size: 12px;
    line-height: 1.7;
  }

  .tests-head-side {
    min-height: auto;
  }

  .week-counter {
    min-width: 0;

    padding:
      11px
      12px;

    border-radius: 12px;
  }

  .counter-icon {
    width: 34px;
    height: 34px;
  }

  .week-counter strong {
    font-size: 11px;
  }

  .filter-row {
    margin:
      15px 0
      18px;

    gap: 10px;
  }

  .filter-pills {
    width: 100%;

    display: grid;

    grid-template-columns:
      repeat(
        3,
        minmax(0,1fr)
      );

    gap: 5px;
  }

  .filter-pill {
    min-width: 0;
    min-height: 41px;

    padding:
      5px;

    gap: 5px;

    justify-content: center;

    border:
      1px solid
      var(--line);

    font-size: 9px;
  }

  .filter-icon {
    width: 25px;
    height: 25px;
  }

  .results-label {
    display: none;
  }

  .test-grid {
    gap: 12px;
  }

  .test-card {
    padding: 16px;

    border-radius: 17px;
  }

  .test-card:hover {
    transform: none;
  }

  .test-main-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;
  }

  .level-tag {
    max-width: 64%;

    padding:
      7px
      8px;

    overflow: hidden;

    text-overflow:
      ellipsis;

    font-size: 7px;
  }

  .test-card-main {
    min-height: 0;

    grid-template-columns:
      minmax(0,1fr)
      116px;

    gap: 8px;
  }

  .card-kicker {
    margin-top: 17px;
  }

  .test-card h3 {
    font-size: 23px;
  }

  .card-description {
    min-height: 0;

    font-size: 10px;

    line-height: 1.6;
  }

  .test-card-visual {
    min-height: 150px;

    transform:
      scale(.82);

    transform-origin:
      center;
  }

  .test-details {
    padding:
      13px 0;

    grid-template-columns:
      repeat(
        3,
        minmax(0,1fr)
      );

    gap: 0;
  }

  .test-detail,
  .test-detail:first-child {
    min-width: 0;

    padding:
      0 6px;

    display: grid;

    justify-items: center;

    gap: 5px;

    text-align: center;
  }

  .test-detail:first-child {
    padding-left: 0;
  }

  .test-detail:last-child {
    padding-right: 0;
  }

  .test-detail + .test-detail {
    padding-top: 0;

    border-top: 0;

    border-left:
      1px solid
      #edf0e8;
  }

  .detail-icon {
    width: 29px;
    height: 29px;
  }

  .test-detail strong {
    font-size: 8px;
  }

  .test-detail small {
    font-size: 6.5px;
  }

  .card-cta {
    min-height: 47px;

    margin-top: 13px;
  }

  .locked-banner {
    margin-top: 12px;

    padding: 17px;

    gap: 12px;

    border-radius: 15px;
  }

  .premium-banner-icon {
    width: 39px;
    height: 39px;
  }

  .locked-banner strong {
    font-size: 11px;
  }

  .locked-banner p {
    font-size: 9px;
  }

  .how-section,
  .about-section {
    gap: 22px;
  }

  .about-copy h2,
  .how-intro h2 {
    font-size: 32px;

    letter-spacing:
      -1.7px;
  }

  .how-intro p,
  .about-copy p {
    font-size: 12px;
    line-height: 1.7;
  }

  .steps {
    gap: 8px;
  }

  .step {
    padding: 16px;

    border-radius: 14px;
  }

  .step-number {
    width: 35px;
    height: 35px;
  }

  .step h3 {
    font-size: 12px;
  }

  .step p {
    font-size: 9px;
  }

  .premium-section {
    margin:
      0
      12px
      45px;

    padding:
      22px
      18px;

    gap: 18px;

    border-radius: 18px;
  }

  .premium-section h2 {
    font-size:
      clamp(
        31px,
        9vw,
        38px
      );
  }

  .premium-features {
    gap: 8px;
  }

  .premium-feature {
    font-size: 10px;
  }

  .about-section {
    padding-bottom: 50px;
  }

  footer {
    padding:
      22px
      14px;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
  }

  footer p,
  .footer-copy {
    font-size: 9px;
  }

  .toast {
    bottom:
      calc(
        15px +
        env(
          safe-area-inset-bottom,
          0px
        )
      );

    width:
      calc(
        100% - 24px
      );

    max-width: none;

    padding:
      12px
      14px;

    text-align: center;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    max-height:
      calc(
        100dvh - 24px
      );

    overflow-y: auto;

    padding:
      22px
      17px;

    border-radius: 17px;
  }
}


@media (max-width: 380px) {

  .brand-logo {
    width: 98px;
  }

  .top-actions
  .button-dark.button-small {
    padding:
      8px
      8px;

    font-size: 8px;
  }

  .top-actions .text-button {
    padding:
      8px
      7px;

    font-size: 9px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .test-card-main {
    grid-template-columns:
      minmax(0,1fr)
      102px;
  }

  .test-card-visual {
    transform:
      scale(.72);
  }
}


@media (prefers-reduced-motion: reduce) {

  .mobile-nav-toggle span {
    transition: none;
  }
}


/* ==================================================
   MOBILE CONTENT READABILITY — FINAL PASS
================================================== */

@media (max-width: 600px) {
  .test-card {
    padding: 17px;
  }

  .test-card-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .test-card-copy {
    min-width: 0;
  }

  .card-kicker {
    margin-top: 14px;
    font-size: 8.5px;
    letter-spacing: 1px;
  }

  .test-card h3 {
    font-size: 25px;
  }

  .card-description {
    max-width: none;
    min-height: 0;
    font-size: 11.5px;
    line-height: 1.65;
  }

  .test-card-visual {
    width: 100%;
    min-height: 170px;
    transform: none;
  }

  .test-details {
    gap: 5px;
  }

  .test-detail,
  .test-detail:first-child {
    padding-left: 7px;
    padding-right: 7px;
  }

  .test-detail strong {
    font-size: 9.5px;
    line-height: 1.25;
  }

  .test-detail small {
    margin-top: 2px;
    font-size: 7.5px;
    line-height: 1.3;
  }

  .locked-banner {
    align-items: flex-start;
  }

  .locked-banner p {
    font-size: 10px;
    line-height: 1.55;
  }

  .premium-feature {
    font-size: 11px;
    line-height: 1.5;
  }

  .step h3 {
    font-size: 13px;
  }

  .step p {
    font-size: 10px;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .test-card-main {
    grid-template-columns: 1fr;
  }

  .test-card-visual {
    min-height: 155px;
    transform: none;
  }
}


/* Mobile slider keeps the real 16:5 image ratio. */
@media (max-width: 600px) {
  .home-slider {
    width: 100%;
    margin: 0 auto 14px;
    padding: 0 10px 25px;
  }

  .home-slider-shell,
  .home-slider-viewport {
    border-radius: 13px;
  }

  .home-slider-viewport {
    aspect-ratio: 16 / 5;
    background: #0d120c;
    box-shadow: 0 10px 28px rgba(37, 41, 34, .08);
  }

  .home-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .home-slider-arrow {
    display: none;
  }

  .home-slider-dots {
    bottom: 7px;
    padding: 5px 7px;
    gap: 6px;
  }

  .home-slider-dot {
    width: 7px;
    height: 7px;
  }

  .home-slider-dot.active {
    width: 19px;
  }
}

@media (max-width: 370px) {
  .brand-logo {
    width: 94px;
  }

  .nav-links,
  .nav-links.mobile-open {
    width: min(82vw, 300px);
    padding-left: 15px;
    padding-right: 15px;
  }

  .mobile-nav-brand img {
    width: 142px;
  }
}


/* ==================================================
   INDEX MOBILE SIDEBAR — MATCHES ADMIN / ACCOUNT
================================================== */

.index-mobile-menu,
.index-mobile-sidebar,
.index-mobile-sidebar-overlay {
  display: none;
}

@media (max-width: 650px) {
  body.index-mobile-menu-open {
    overflow: hidden;
  }

  .topbar {
    min-height: 64px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
  }

  .index-mobile-menu {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 6px 16px rgba(35, 40, 32, .05);
  }

  .index-mobile-menu span {
    width: 17px;
    height: 1.5px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
  }

  .brand-logo {
    width: 106px;
    max-height: 38px;
  }

  .nav-links {
    display: none !important;
  }

  .top-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    gap: 5px;
  }

  .index-mobile-sidebar {
    width: min(84vw, 315px);
    height: 100dvh;
    min-height: 100vh;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    left: 0;
    top: 0;
    z-index: 160;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, var(--white), var(--bg));
    box-shadow: 24px 0 60px rgba(0, 0, 0, .16);
    transform: translateX(-105%);
    transition: transform .25s ease;
  }

  .index-mobile-sidebar.open {
    transform: translateX(0);
  }

  .index-mobile-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }

  .index-mobile-sidebar-brand {
    display: block;
    margin: 0;
  }

  .index-mobile-sidebar-brand img {
    width: 132px;
    max-height: 44px;
    display: block;
    object-fit: contain;
  }

  html[data-theme="dark"] .index-mobile-sidebar-brand img {
    filter: brightness(0) invert(1);
  }

  .index-mobile-sidebar-close {
    width: 39px;
    height: 39px;
    padding: 0;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--white);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
  }

  .index-mobile-sidebar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .index-mobile-sidebar-link {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 6px 9px;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  }

  .index-mobile-sidebar-link:hover,
  .index-mobile-sidebar-link:focus-visible,
  .index-mobile-sidebar-link.is-active {
    border-color: rgba(145, 185, 82, .18);
    background: var(--light-green);
    color: var(--ink);
    text-decoration: none;
  }

  .index-mobile-sidebar-link:active {
    transform: scale(.985);
  }

  .index-mobile-sidebar-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--white);
    color: var(--green);
  }

  .index-mobile-sidebar-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .index-mobile-sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .index-mobile-home-link {
    min-height: 45px;
    padding: 9px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 500;
    text-decoration: none;
  }

  .index-mobile-home-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--light-green);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
  }

  .index-mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: block;
    background: rgba(8, 11, 7, .46);
    backdrop-filter: blur(2px);
  }

  .index-mobile-sidebar-overlay.hidden {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .index-mobile-menu {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 96px;
  }

  .index-mobile-sidebar {
    width: min(86vw, 305px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .index-mobile-sidebar-brand img {
    width: 124px;
  }
}


/* ==================================================
   HOME UX REFINEMENT — PROFILE / COPY / DIRECTION
================================================== */

/* Header auth icons are mobile-only; desktop keeps labels. */
.header-auth-icon {
  display: none;
}

.header-auth-icon svg,
.profile-popover-menu-icon svg,
.hero-feature-icon svg,
.direction-choice-card-icon svg,
.direction-option-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Profile avatar: same component everywhere, with subtle brand decoration. */
.avatar {
  position: relative;
  overflow: visible;
  isolation: isolate;
  border-color: rgba(145, 185, 82, .34);
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 4px rgba(145, 185, 82, .22),
    0 8px 22px rgba(65, 83, 47, .10);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1px solid rgba(145, 185, 82, .18);
  border-radius: 15px;
  clip-path: polygon(0 0, 45% 0, 45% 12%, 12% 12%, 12% 45%, 0 45%, 0 0, 100% 0, 100% 100%, 55% 100%, 55% 88%, 88% 88%, 88% 55%, 100% 55%);
  pointer-events: none;
}

.avatar::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(145, 185, 82, .14);
  pointer-events: none;
}

.avatar-image,
.avatar-initial {
  border-radius: inherit;
}

.avatar-image {
  overflow: hidden;
}

/* Profile popover */
.profile-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 7%;
  z-index: 80;
  width: min(330px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--white) 96%, transparent);
  box-shadow: 0 24px 60px rgba(28, 34, 25, .16);
  backdrop-filter: blur(18px);
}

.profile-popover-user {
  padding: 10px 9px 13px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.profile-popover-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(145, 185, 82, .32);
  border-radius: 13px;
  background: var(--light-green) center/cover no-repeat;
  color: var(--green);
  font: 800 14px Manrope, sans-serif;
}

.profile-popover-avatar.has-image {
  color: transparent;
}

.profile-popover-identity {
  min-width: 0;
}

.profile-popover-identity strong,
.profile-popover-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-popover-identity strong {
  font: 700 13px Manrope, sans-serif;
  color: var(--ink);
}

.profile-popover-identity span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.profile-popover-nav {
  padding: 8px 0;
  display: grid;
  gap: 3px;
}

.profile-popover-nav a,
.profile-popover-logout {
  width: 100%;
  min-height: 43px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.profile-popover-nav a:hover,
.profile-popover-logout:hover {
  background: var(--light-green);
  color: var(--ink);
  text-decoration: none;
}

.profile-popover-nav a:active,
.profile-popover-logout:active {
  transform: scale(.985);
}

.profile-popover-menu-icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--light-green);
  color: var(--green);
}

.profile-popover-logout {
  margin-top: 3px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 11px 11px;
  color: #a84c4c;
  cursor: pointer;
}

.profile-popover-logout .profile-popover-menu-icon {
  background: rgba(196, 73, 73, .08);
  color: #b75252;
}

/* Natural section labels without synthetic activity dots. */
.hero-kicker,
.tests-section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(145, 185, 82, .24);
  border-radius: 999px;
  background: rgba(145, 185, 82, .07);
  color: #6f775f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.45px;
  line-height: 1.2;
}

/* Hero feature rail */
.hero-feature-rail {
  max-width: 650px;
  margin-top: 38px;
  padding-top: 19px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.hero-feature-item {
  min-width: 0;
  padding: 4px 18px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  position: relative;
}

.hero-feature-item:first-child {
  padding-left: 0;
}

.hero-feature-item + .hero-feature-item::before {
  content: "";
  width: 1px;
  height: 35px;
  position: absolute;
  left: 0;
  top: 50%;
  background: var(--line);
  transform: translateY(-50%);
}

.hero-feature-icon {
  width: 31px;
  height: 31px;
  padding: 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 185, 82, .24);
  border-radius: 10px;
  background: rgba(145, 185, 82, .07);
  color: #73983e;
}

.hero-feature-item strong,
.hero-feature-item small {
  display: block;
}

.hero-feature-item strong {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.3;
}

.hero-feature-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

/* Direction choice card replaces weekly counter in the section header. */
.direction-choice-card {
  width: min(100%, 430px);
  margin-left: auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  border: 1px solid rgba(145, 185, 82, .25);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(145, 185, 82, .10), transparent 55%),
    var(--white);
  box-shadow: 0 18px 45px rgba(45, 55, 38, .07);
}

.direction-choice-card-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--light-green);
  color: var(--green);
}

.direction-choice-card-copy {
  min-width: 0;
}

.direction-choice-card-copy small,
.direction-choice-card-copy strong,
.direction-choice-card-copy span {
  display: block;
}

.direction-choice-card-copy small {
  color: #848b7f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.direction-choice-card-copy strong {
  margin-top: 5px;
  color: var(--ink);
  font: 750 15px Manrope, sans-serif;
}

.direction-choice-card-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.direction-choice-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 45px;
  margin-top: 2px;
  padding: 8px 10px 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  background: var(--dark);
  color: white;
  font-size: 11px;
  font-weight: 750;
}

.direction-choice-button span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .10);
}

.direction-choice-button:disabled {
  background: #e5e8df;
  color: #8c9388;
  cursor: default;
}

.direction-choice-button:disabled span {
  background: rgba(255, 255, 255, .55);
}

.card-cta.direction-choice-required {
  filter: grayscale(.12);
}

/* Generic branded dialogs for home page flows. */
.site-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(9, 12, 8, .52);
  backdrop-filter: blur(5px);
}

.site-dialog {
  width: min(100%, 470px);
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 28px 85px rgba(0, 0, 0, .22);
}

.site-dialog-close {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink);
  font-size: 22px;
}

.site-dialog-kicker {
  color: var(--green);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.6px;
}

.site-dialog h2 {
  max-width: 360px;
  margin: 12px 0 9px;
  color: var(--ink);
  font: 750 25px/1.18 Manrope, sans-serif;
  letter-spacing: -1px;
}

.site-dialog > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.direction-option-grid {
  margin-top: 20px;
  display: grid;
  gap: 9px;
}

.direction-option {
  width: 100%;
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.direction-option:hover {
  border-color: rgba(145, 185, 82, .45);
  background: var(--light-green);
  transform: translateY(-1px);
}

.direction-option-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--green);
}

.direction-option strong,
.direction-option small {
  display: block;
}

.direction-option strong {
  font-size: 12px;
}

.direction-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.direction-option b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--white);
  color: var(--green);
}

.logout-dialog {
  text-align: center;
}

.logout-dialog-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--light-green);
  color: var(--green);
  font-size: 20px;
  transform: rotate(90deg);
}

.logout-dialog h2,
.logout-dialog > p {
  margin-left: auto;
  margin-right: auto;
}

.site-dialog-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.site-dialog-secondary,
.site-dialog-primary {
  min-height: 46px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
}

.site-dialog-secondary {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.site-dialog-primary {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: white;
}

/* Creative <Z> brand panel */
.about-highlight {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 16%, rgba(145, 185, 82, .19), transparent 30%),
    #eaf3df;
}

.about-highlight::after {
  content: "";
  width: 180px;
  height: 180px;
  position: absolute;
  right: -95px;
  bottom: -95px;
  border: 1px solid rgba(113, 152, 59, .18);
  border-radius: 50%;
}

.about-code-mark {
  width: fit-content;
  position: relative;
  padding: 13px 18px 13px 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(113, 152, 59, .22);
  border-radius: 15px;
  background: rgba(255, 255, 255, .34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.about-code-bracket {
  color: #71983b;
  font: 800 29px/1 Manrope, sans-serif;
}

.about-code-z {
  color: #5e7f34;
  font: 850 41px/1 Manrope, sans-serif;
  letter-spacing: -2px;
}

.about-code-line {
  width: 38px;
  height: 1px;
  position: absolute;
  right: -30px;
  top: 50%;
  background: rgba(113, 152, 59, .32);
}

.about-code-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8db84d;
  box-shadow: 0 0 0 4px rgba(141, 184, 77, .11);
}

.about-code-node.node-one {
  top: -5px;
  right: 17px;
}

.about-code-node.node-two {
  right: -36px;
  top: calc(50% - 3px);
}

html[data-theme="dark"] .about-highlight {
  background:
    radial-gradient(circle at 84% 16%, rgba(155, 198, 90, .15), transparent 30%),
    #1d2818;
}

/* ==================================================
   MOBILE HEADER / PROFILE / FEATURE REFINEMENT
================================================== */

@media (max-width: 650px) {
  .topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand-logo {
    width: 118px;
  }

  .top-actions {
    gap: 6px;
  }

  .theme-toggle,
  .avatar,
  .header-auth-action {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border-radius: 11px !important;
  }

  .theme-toggle-icon {
    width: 30px;
    height: 30px;
  }

  .avatar {
    box-shadow:
      0 0 0 2px var(--bg),
      0 0 0 3px rgba(145, 185, 82, .22),
      0 6px 16px rgba(65, 83, 47, .09);
  }

  .avatar::before {
    inset: -4px;
    border-radius: 14px;
  }

  .header-auth-label,
  .header-signup-arrow {
    display: none !important;
  }

  .header-auth-icon {
    width: 20px;
    height: 20px;
    display: block;
  }

  .header-login-action {
    border: 1px solid var(--line) !important;
    background: var(--white) !important;
    color: var(--ink) !important;
  }

  .header-signup-action {
    border: 1px solid var(--dark) !important;
    background: var(--dark) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(37, 41, 34, .12) !important;
  }

  .top-actions .text-button::after,
  .top-actions .button-dark.button-small::before {
    display: none;
  }

  .profile-popover {
    top: calc(100% + 7px);
    right: 10px;
    width: min(310px, calc(100vw - 20px));
    border-radius: 16px;
  }

  .hero-kicker,
  .tests-section-kicker {
    min-height: 23px;
    max-width: 100%;
    padding: 0 9px;
    font-size: 7.4px;
    letter-spacing: 1.05px;
    white-space: normal;
  }

  .hero-feature-rail {
    margin-top: 27px;
    padding-top: 14px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-feature-item,
  .hero-feature-item:first-child {
    min-height: 58px;
    padding: 9px 0;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
  }

  .hero-feature-item + .hero-feature-item::before {
    width: calc(100% - 45px);
    height: 1px;
    left: 45px;
    top: 0;
    transform: none;
  }

  .hero-feature-icon {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 10px;
  }

  .hero-feature-item strong {
    font-size: 11px;
  }

  .hero-feature-item small {
    font-size: 9px;
  }

  .tests-showcase-head {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .tests-head-side {
    min-height: 0;
  }

  .direction-choice-card {
    width: 100%;
    margin: 0;
    padding: 15px;
    border-radius: 16px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .direction-choice-card-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 12px;
  }

  .direction-choice-card-copy strong {
    font-size: 14px;
  }

  .direction-choice-card-copy span {
    font-size: 9.5px;
  }

  .direction-choice-button {
    min-height: 44px;
  }

  .site-dialog-backdrop {
    padding: 12px;
  }

  .site-dialog {
    padding: 22px 17px 17px;
    border-radius: 18px;
  }

  .site-dialog h2 {
    padding-right: 30px;
    font-size: 22px;
  }

  .direction-option {
    min-height: 70px;
    grid-template-columns: 39px minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .direction-option-icon {
    width: 39px;
    height: 39px;
  }

  .about-code-mark {
    padding: 11px 15px 11px 13px;
  }

  .about-code-z {
    font-size: 36px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 106px;
  }

  .top-actions {
    gap: 4px;
  }

  .theme-toggle,
  .avatar,
  .header-auth-action {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    flex-basis: 38px !important;
  }
}


/* ==================================================
   MOBILE HEADER HOTFIX — VISIBILITY / ALIGNMENT / STICKY
================================================== */

@media (max-width: 650px) {

  /* Header scroll zamanı yuxarıda qalır. */
  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;

    min-height: 64px;

    grid-template-columns:
      40px
      minmax(0, 1fr)
      auto !important;

    align-items: center;
  }

  /*
    Əvvəlki mobil display:grid!important qaydası .hidden-i
    üstələyirdi. Buna görə auth düymələri və avatar eyni anda
    görünürdü. Bu qaydalar həmin konflikti qəti şəkildə bağlayır.
  */
  .top-actions .header-auth-action.hidden,
  .top-actions .avatar.hidden {
    display: none !important;
  }

  .top-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 0;
  }

  .theme-toggle,
  .header-auth-action,
  .avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex: 0 0 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 11px !important;
  }

  /* hidden hər zaman qalib gəlməlidir */
  .theme-toggle.hidden,
  .header-auth-action.hidden,
  .avatar.hidden {
    display: none !important;
  }

  .header-auth-icon {
    width: 21px !important;
    height: 21px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    line-height: 0 !important;
    transform: none !important;
  }

  .header-auth-icon svg {
    width: 21px !important;
    height: 21px !important;

    margin: 0 !important;

    display: block !important;

    transform: none !important;
  }

  .header-login-action,
  .header-signup-action {
    gap: 0 !important;
    justify-content: center !important;
    align-content: center !important;
  }

  .header-signup-action .header-auth-icon,
  .header-login-action .header-auth-icon {
    position: static !important;
    inset: auto !important;
  }

  .header-auth-label,
  .header-signup-arrow {
    display: none !important;
  }

  .brand {
    min-width: 0;
    overflow: hidden;
  }

  .brand-logo {
    display: block;
    width: 118px;
    max-width: 100%;
    height: auto;
  }
}


@media (max-width: 380px) {

  .topbar {
    grid-template-columns:
      38px
      minmax(0, 1fr)
      auto !important;

    gap: 6px !important;

    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .brand-logo {
    width: 104px !important;
  }

  .top-actions {
    gap: 4px !important;
  }

  .theme-toggle,
  .header-auth-action,
  .avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    flex-basis: 38px !important;
  }

  .header-auth-icon,
  .header-auth-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
}


/* ==================================================
   MOBILE INDEX SCROLL FIX
   Telefonda header səhifə ilə birlikdə scroll olur.
================================================== */
@media (max-width: 650px) {
  .topbar {
    position: relative !important;
    top: auto !important;
    z-index: 120 !important;
  }

  /*
    Profil popover header-in daxilində qalır.
    Header yuxarı scroll etdikdə popover də onunla birlikdə gedir.
  */
  .profile-popover {
    position: absolute !important;
  }
}


/* ==================================================
   FINAL MOBILE HEADER BEHAVIOR
   Header sticky qalır; açıq profil menyusu scroll zamanı bağlanır.
================================================== */
@media (max-width: 650px) {
  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;
  }

  .profile-popover {
    position: absolute !important;
  }
}

/* Production API states */
.card-cta:disabled,
.card-cta.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.18);
  transform: none !important;
}
.profile-popover-avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block; }
