/* ==========================================================================
   islaGuía · Buscador — Instagram design system (themeable)
   Scoped to index.php. xcat.php uses css/igc.css (untouched).

   Theme is switched with <html data-theme="dark|light">.
   Dark is the default; flip the attribute for the light "world".
   ========================================================================== */

:root {
  /* Instagram brand (shared) */
  --ig-blue: #0095f6;
  --ig-blue-hover: #1aa1f5;
  /* Full Instagram spectrum (yellow → orange → red → pink → purple → blue) */
  --ig-gradient: linear-gradient(
    45deg,
    #feda75 0%,
    #fa7e1e 16%,
    #fd1d1d 32%,
    #e1306c 48%,
    #c13584 62%,
    #833ab4 76%,
    #5851db 88%,
    #405de6 100%
  );

  --shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --appbar-h: 60px;
  --content: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  /* ---------- Dark theme (default) — pure black + subtle dark-purple corners -- */
  --bg: #000000;
  --page-bg: radial-gradient(620px 500px at 0% 100%, #0a0316 0%, rgba(10, 3, 22, 0) 60%),
    #000000;
  --text: #f5f3ff;
  --muted: #b3aad8;
  --faint: #9489c0;
  --border: #1a1430;
  --border-strong: #262047;
  --card: #0f0a1d;
  --elevated: #17112c;
  --input: #16112b;
  --hover: #1b1433;
  --overlay: rgba(0, 0, 0, 0.7);
  --scroll: #2e2450;
  --selection: rgba(193, 53, 132, 0.35);
  --tech-bg: #ffffff;

  color-scheme: dark;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg: #ffffff;
  --page-bg: #ffffff;
  --text: #262626;
  --muted: #737373;
  --faint: #767676;
  --border: #dbdbdb;
  --border-strong: #c7c7c7;
  --card: #ffffff;
  --elevated: #ffffff;
  --input: #efefef;
  --hover: #fafafa;
  --overlay: rgba(0, 0, 0, 0.5);
  --scroll: #cfcfcf;
  --selection: rgba(0, 149, 246, 0.2);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.14);

  color-scheme: light;
}

/* ---------- Reset --------------------------------------------------------- */

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

* {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

p {
  margin-top: 0;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  -webkit-appearance: button;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

html {
  overflow-x: hidden;
}

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
}

a {
  color: var(--ig-blue);
}

::selection {
  background: var(--selection);
}

.bg-orbs {
  display: none;
}

/* ---------- App bar ------------------------------------------------------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.appbar__inner {
  max-width: var(--content);
  margin: 0 auto;
  height: var(--appbar-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

.appbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 0;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--hover);
  outline: none;
}

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

/* ---------- Dropdown menu ------------------------------------------------- */

.menu {
  position: relative;
}

.menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  min-width: 208px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.menu__list[hidden] {
  display: none;
}

.menu__item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.menu__item:hover,
.menu__item:focus {
  background: var(--hover);
  text-decoration: none;
  outline: none;
}

.menu__divider {
  height: 1px;
  margin: 5px 6px;
  background: var(--border);
}

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

.shell {
  max-width: var(--content);
  margin: 0 auto;
  padding: 20px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 10px 0 0;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 8vw, 3.2rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.24em;
  overflow: hidden;
}

.featured-text {
  max-width: 100%;
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-wrap: balance;
  will-change: opacity, transform, filter;
}

.hero__subtitle {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 767.98px) {
  .hero__title {
    min-height: 3.36em;
  }
}

/* ---------- Metrics ------------------------------------------------------- */

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 124px;
  padding: 12px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat strong {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat > span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Rolling odometer (stat counters) */
.odometer {
  display: inline-flex;
  align-items: center;
}

.odometer-digit-box {
  position: relative;
  display: inline-block;
  width: 1ch;
  height: 1.2em;
  overflow: hidden;
}

.odometer-reel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.odometer-number {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.2em;
}

.odometer-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.2em;
  width: 0.3em;
}

.odometer-plus {
  display: inline-flex;
  align-items: center;
  height: 1.2em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .trust {
    flex-direction: row;
    justify-content: center;
    gap: 44px;
  }
}

/* ---------- Hero tech stack ----------------------------------------------- */

.hero-tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-tech__label {
  padding: 12px 0 6px 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-tech__stack {
  --tech-size: 2.75rem;
  --tech-overlap: 0.85rem;
  display: flex;
  align-items: center;
  padding-inline-start: var(--tech-overlap);
  width: fit-content;
}

.hero-tech__stack img {
  width: var(--tech-size);
  height: var(--tech-size);
  margin-inline-start: calc(var(--tech-overlap) * -1);
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--tech-bg);
  padding: 0.3rem;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .hero-tech__stack {
    --tech-size: 2.35rem;
    --tech-overlap: 0.7rem;
  }
}

/* ---------- Search -------------------------------------------------------- */

.search-card {
  position: relative;
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.search {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  background: var(--input);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 5px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.search:focus-within {
  background: var(--card);
  border-color: var(--border);
}

.search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.search__input {
  width: 100%;
  min-width: 0;
  height: 44px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 0 14px;
}

.search__input::placeholder {
  color: var(--muted);
}

.btn-search {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ig-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 20px;
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-search:hover,
.btn-search:focus-visible {
  background: var(--ig-blue-hover);
  outline: none;
}

.btn-search:active {
  opacity: 0.85;
}

.btn-search svg {
  width: 18px;
  height: 18px;
  display: block;
}

.btn-search__label {
  display: inline;
}

@media (max-width: 479.98px) {
  .btn-search {
    width: 44px;
    padding: 0;
  }
  .btn-search__label {
    display: none;
  }
}

.search-hint {
  margin: 10px 4px 2px;
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
}

/* ---------- Autocomplete -------------------------------------------------- */

.ac-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1100;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: min(320px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ac-menu.is-open {
  opacity: 1;
  transform: none;
}

.ac-menu[hidden] {
  display: none;
}

.ac-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.14s ease;
}

.ac-item__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--muted);
}

.ac-item__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-item mark {
  background: transparent;
  color: var(--ig-blue);
  font-weight: 700;
}

.ac-item:hover,
.ac-item.is-active {
  background: var(--hover);
}

.ac-item:hover .ac-item__icon,
.ac-item.is-active .ac-item__icon {
  color: var(--text);
}

/* ---------- Popular categories -------------------------------------------- */

.chips {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.chips__label {
  display: block;
  margin: 0 4px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips-swiper {
  overflow: hidden;
  padding: 2px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.chips-swiper .swiper-slide {
  width: auto;
}

.chip {
  display: block;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chip:hover,
.chip:focus-visible {
  background: var(--hover);
  border-color: var(--border-strong);
  outline: none;
}

.chip:active {
  transform: scale(0.98);
}

/* ---------- Section heads ------------------------------------------------- */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-link {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Premium slider ------------------------------------------------ */

.premium {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 0 20px;
}

.premium .section-head {
  padding: 0 18px;
}

.premium-swiper {
  overflow: hidden;
  padding: 6px 0 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.premium-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
  align-items: stretch;
}

.premium-swiper .swiper-slide {
  width: auto;
  height: auto;
}

.premium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 86px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease;
}

.premium-item:hover {
  transform: translateY(-3px);
}

/* Instagram "story ring" */
.premium-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: var(--ig-gradient);
  display: block;
}

.premium-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--card);
  border: 3px solid var(--card);
}

.premium-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 86px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Results ------------------------------------------------------- */

.results-container {
  display: none;
}

.results-container.is-visible {
  display: block;
  animation: rise 0.3s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.results-head {
  margin-bottom: 14px;
}

.results-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.result-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.result-card:hover {
  background: var(--hover);
  box-shadow: var(--shadow);
}

.result-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
}

.result-link:hover {
  text-decoration: none;
  color: var(--text);
}

.result-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--input);
  border: 1px solid var(--border);
}

.result-main {
  min-width: 0;
  flex: 1 1 auto;
}

.result-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 2px;
}

.result-user {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ig-blue);
  margin-bottom: 6px;
}

.result-bio {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-bio a {
  color: var(--ig-blue);
}

.result-arrow {
  align-self: center;
  color: var(--border-strong);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.result-card:hover .result-arrow {
  color: var(--muted);
  transform: translateX(3px);
}

/* Premium listing — Instagram gradient hairline */
.result-card.is-premium {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--ig-gradient) border-box;
}

.result-card.is-premium:hover {
  background:
    linear-gradient(var(--hover), var(--hover)) padding-box,
    var(--ig-gradient) border-box;
  box-shadow: var(--shadow);
}

.result-card.is-premium .result-avatar {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--ig-gradient) border-box;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--input);
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-badge__icon {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  color: var(--ig-blue);
}

.results-cta {
  margin-top: 20px;
  text-align: center;
}

.results-cta .tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.btn-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ig-blue);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-grad:hover,
.btn-grad:focus {
  background: var(--ig-blue-hover);
  color: #ffffff;
  text-decoration: none;
}

/* ---------- Footer -------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 16px calc(30px + env(safe-area-inset-bottom));
}

.footer__inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer__copy {
  color: var(--faint);
  font-size: 0.8rem;
}

.footer__copy a {
  color: var(--muted);
  text-decoration: underline;
}

.footer__copy a:hover {
  color: var(--text);
}

/* ---------- Back to top --------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 1020;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.1rem;
}

.back-to-top.is-visible {
  display: inline-flex;
}

/* ---------- Dialog -------------------------------------------------------- */

dialog.dialog {
  width: min(92vw, 440px);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

dialog.dialog::backdrop {
  background: var(--overlay);
}

.dialog__inner {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.dialog__close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.dialog__close:hover {
  color: var(--text);
}

.dialog__body {
  padding: 16px 18px;
  color: var(--text);
  line-height: 1.55;
}

.dialog__body a {
  color: var(--ig-blue);
}

.dialog__body code {
  color: var(--text);
  background: var(--input);
  padding: 1px 5px;
  border-radius: 4px;
}

.dialog__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px;
}

.dialog__btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dialog__btn--primary {
  background: var(--ig-blue);
  color: #ffffff;
}

.dialog__btn--primary:hover {
  background: var(--ig-blue-hover);
}

/* No custom scrollbar styling — keep the OS default (macOS auto-hiding). */

/* ---------- Responsive ---------------------------------------------------- */

@media (min-width: 576px) {
  .premium-item {
    width: 96px;
  }
  .premium-name {
    max-width: 96px;
  }
}

@media (min-width: 768px) {
  :root {
    --appbar-h: 64px;
  }
  .shell {
    padding: 24px 24px 48px;
    gap: 24px;
  }
  .brand img {
    height: 34px;
  }
  .premium-item {
    width: 104px;
  }
  .premium-name {
    max-width: 104px;
  }
  .premium-ring {
    width: 84px;
    height: 84px;
  }
  .results-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .btn-grad {
    width: auto;
    min-width: 240px;
  }
}

@media (min-width: 992px) {
  .shell {
    padding: 32px 28px 56px;
  }
  .hero__title {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
  .premium-item {
    width: 112px;
  }
  .premium-name {
    max-width: 112px;
  }
  .results-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .results-container.is-visible {
    animation: none;
  }
  .premium-item,
  .result-card,
  .btn-search {
    transition: none;
  }
}

/* JS-off fallback */
.no-js .results-container {
  display: none;
}
