/* ==========================================
   RADIO FM DANCE — TEST DIRECTORY
   Modern Premium Design System
   ========================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette */
  --bg-primary: #0b0e1a;
  --bg-secondary: #111528;
  --bg-card: #161a2e;
  --bg-card-hover: #1c2140;
  --surface: #1e2340;

  /* Accent colors */
  --accent-primary: #6c5ce7;
  --accent-secondary: #00cec9;
  --accent-pink: #fd79a8;
  --accent-orange: #fdcb6e;
  --accent-blue: #74b9ff;
  --accent-green: #55efc4;
  --accent-red: #ff7675;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0b0e1a 0%, #1a1040 40%, #0d1b3e 70%, #0b0e1a 100%);
  --gradient-accent: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --gradient-pink: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  --gradient-cta: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);

  /* Text */
  --text-primary: #f0f0f8;
  --text-secondary: #9ba1c0;
  --text-muted: #636b8a;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem 0;
  --card-radius: 18px;
  --btn-radius: 12px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 40px rgba(108, 92, 231, 0.25);
  --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar--scrolled {
  background: rgba(11, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar__logo {
  border-radius: 10px;
}

.navbar__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar__menu {
  display: flex;
  align-items: center;
}

.navbar__list {
  display: flex;
  gap: 0.25rem;
}

.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--btn-radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.12);
}

.navbar__link--active {
  color: var(--accent-primary);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
  position: absolute;
  left: 6px;
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  content: '';
  top: -7px;
}

.hamburger::after {
  content: '';
  top: 7px;
}

.navbar__toggle.is-active .hamburger {
  background: transparent;
}

.navbar__toggle.is-active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar__toggle.is-active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.1) 0%, transparent 60%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease-out;
}

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  animation: fadeInDown 1s ease-out;
}

/* Search */
.hero__search {
  position: relative;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero__search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.hero__search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: 14px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  background: rgba(22, 26, 46, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero__search-input::placeholder {
  color: var(--text-muted);
}

.hero__search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

/* Stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 1.2s ease-out;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Wave divider */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   FILTER BAR
   ========================================== */
.filters {
  padding: 2rem 0 0;
  position: sticky;
  top: 52px;
  z-index: 100;
  background: var(--bg-primary);
}

.filters__bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
  -webkit-overflow-scrolling: touch;
}

.filters__bar::-webkit-scrollbar {
  height: 4px;
}

.filters__bar::-webkit-scrollbar-track {
  background: transparent;
}

.filters__bar::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  transition: var(--transition-normal);
}

.filter-btn:hover {
  color: var(--text-primary);
  background: var(--surface);
  border-color: rgba(108, 92, 231, 0.3);
}

.filter-btn--active {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}

/* ==========================================
   SECTION HEADER
   ========================================== */
.tests-section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================
   TEST CARDS GRID
   ========================================== */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.test-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.test-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.test-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(108, 92, 231, 0.2);
}

.test-card:hover::before {
  opacity: 1;
}

/* Card reveal animation */
.test-card.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.test-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.test-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

/* Icon wrap */
.test-card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition-normal);
}

.test-card:hover .test-card__icon-wrap {
  transform: scale(1.1) rotate(-4deg);
}

.test-card__icon-wrap--pink {
  background: linear-gradient(135deg, rgba(253, 121, 168, 0.2), rgba(232, 67, 147, 0.2));
  color: var(--accent-pink);
}

.test-card__icon-wrap--blue {
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.2), rgba(9, 132, 227, 0.2));
  color: var(--accent-blue);
}

.test-card__icon-wrap--purple {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(162, 155, 254, 0.2));
  color: var(--accent-primary);
}

.test-card__icon-wrap--teal {
  background: linear-gradient(135deg, rgba(0, 206, 201, 0.2), rgba(85, 239, 196, 0.2));
  color: var(--accent-secondary);
}

.test-card__icon-wrap--orange {
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.2), rgba(225, 177, 44, 0.2));
  color: var(--accent-orange);
}

.test-card__icon-wrap--green {
  background: linear-gradient(135deg, rgba(85, 239, 196, 0.2), rgba(0, 184, 148, 0.2));
  color: var(--accent-green);
}

.test-card__icon-wrap--red {
  background: linear-gradient(135deg, rgba(255, 118, 117, 0.2), rgba(214, 48, 49, 0.2));
  color: var(--accent-red);
}

.test-card__icon-wrap--amber {
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.25), rgba(255, 159, 67, 0.2));
  color: #f0a500;
}

.test-card__icon-wrap--indigo {
  background: linear-gradient(135deg, rgba(99, 110, 206, 0.2), rgba(63, 81, 181, 0.2));
  color: #7c86d8;
}

.test-card__icon-wrap--rose {
  background: linear-gradient(135deg, rgba(253, 121, 168, 0.25), rgba(255, 71, 87, 0.2));
  color: #ff6b81;
}

/* Badge */
.test-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(108, 92, 231, 0.12);
  color: var(--accent-primary);
}

/* Title, desc */
.test-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.test-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Meta */
.test-card__meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.test-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* CTA Button */
.test-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--btn-radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.test-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.test-card__btn i {
  transition: transform var(--transition-fast);
}

.test-card__btn:hover i {
  transform: translateX(4px);
}

/* Filtering animation */
.test-card.hide {
  display: none;
}

/* No results */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.no-results h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  padding: var(--section-padding);
}

.cta__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--gradient-cta);
  border-radius: 24px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta__inner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta__content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.cta__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--btn-radius);
  background: #fff;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cta__graphic {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.cta__phone {
  width: 140px;
  height: 240px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  animation: phoneBob 3s ease-in-out infinite;
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4rem 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__logo {
  border-radius: 12px;
}

.footer__name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer__nav-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__link:hover {
  color: var(--accent-primary);
  padding-left: 6px;
}

.footer__social-icons {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-normal);
}

.footer__social-link:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__bottom a {
  color: var(--accent-primary);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-normal);
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.5);
}

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

/* Tablet */
@media (max-width: 900px) {
  .tests-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
  }

  .cta__text {
    margin: 0 auto 1.5rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__stats {
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .navbar__toggle {
    display: block;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right var(--transition-normal);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
  }

  .navbar__menu.is-open {
    right: 0;
  }

  .navbar__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .navbar__link {
    padding: 0.75rem 1rem;
    width: 100%;
    border-radius: 10px;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero__stat {
    flex-direction: row;
    gap: 0.5rem;
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }

  .tests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .test-card {
    padding: 1.5rem 1.25rem;
  }

  .filters {
    top: 48px;
  }

  .cta__phone {
    width: 100px;
    height: 170px;
    font-size: 2.5rem;
  }

  .cta__inner {
    padding: 2rem 1.5rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .hero__search-input {
    font-size: 0.9rem;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
  }

  .filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Overlay for mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
