:root {
  --bg: #050505;
  --bg-2: #0d0d0d;
  --panel: #121212;
  --panel-2: #171717;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #a6a6a6;
  --yellow: #ffcf00;
  --yellow-2: #ffe066;
  --yellow-glow: rgba(255, 207, 0, 0.28);
  --ok: #5edf7d;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 12% -12%, rgba(255, 207, 0, 0.2), transparent 55%),
    radial-gradient(900px 420px at 100% 8%, rgba(255, 207, 0, 0.11), transparent 60%),
    linear-gradient(180deg, #080808 0%, #040404 100%);
  min-height: 100vh;
}

.portal-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 207, 0, 0.02) 0 2px,
      transparent 2px 20px
    );
  mask-image: radial-gradient(circle at 50% 15%, #000 42%, transparent 100%);
}

.container {
  width: min(1220px, 92vw);
  margin: 0 auto;
  padding: 26px 0 56px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.95), rgba(12, 12, 12, 0.95));
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffea88 100%);
  color: #111;
  font-family: "Teko", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(255, 207, 0, 0.3);
}

.logo-text {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.08em;
  font-size: 2rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #d6d6d6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: #101010;
  background: var(--yellow);
}

.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
}

.hero-copy,
.hero-stats {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(10, 10, 10, 0.95));
}

.hero-copy {
  padding: 34px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--yellow-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.lead {
  margin: 14px 0 0;
  color: #dfdfdf;
  max-width: 68ch;
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  text-decoration: none;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #0d0d0d;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffe37a 100%);
  box-shadow: 0 8px 24px var(--yellow-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(255, 207, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--yellow-2);
  border: 1px solid rgba(255, 207, 0, 0.48);
}

.btn-ghost:hover {
  background: rgba(255, 207, 0, 0.08);
}

.hero-stats {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.hero-stats article {
  border-radius: var(--radius-md);
  border: 1px solid #2e2e2e;
  background: linear-gradient(180deg, #131313, #0f0f0f);
  padding: 14px 16px;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-value {
  margin: 6px 0 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--yellow);
  letter-spacing: 0.03em;
}

.panel {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(12, 12, 12, 0.95));
  padding: 22px;
}

.panel p {
  color: #d7d7d7;
}

.search-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.search-form label {
  display: grid;
  gap: 7px;
  color: #cccccc;
  font-size: 0.82rem;
}

.search-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #333;
  border-radius: 10px;
  color: #f4f4f4;
  background: #0f0f0f;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
  border-color: rgba(255, 207, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 207, 0, 0.18);
}

.search-form button {
  align-self: end;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.offer-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.offer-card {
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: linear-gradient(160deg, #131313 0%, #0f0f0f 100%);
  padding: 14px;
  display: grid;
  gap: 8px;
  transition: 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 207, 0, 0.5);
}

.offer-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.offer-card h3 {
  font-size: 1.35rem;
}

.status {
  border: 1px solid #474747;
  color: #cfcfcf;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.status.active {
  color: var(--ok);
  border-color: rgba(94, 223, 125, 0.42);
}

.offer-meta,
.offer-details {
  margin: 0;
  color: #b5b5b5;
  font-size: 0.86rem;
}

.offer-price {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.inline-link {
  color: var(--yellow-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
}

.inline-link:hover {
  text-decoration: underline;
}

.tech-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tech-grid article {
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: linear-gradient(180deg, #121212, #0f0f0f);
  padding: 14px;
}

.tech-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.tech-grid li {
  margin: 7px 0;
  color: #cfcfcf;
}

.faq-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.faq-list article {
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  background: linear-gradient(180deg, #121212, #0f0f0f);
  padding: 14px;
}

.faq-list p {
  margin: 8px 0 0;
  color: #d2d2d2;
}

.empty {
  margin-top: 10px;
  color: #b8b8b8;
}

.site-footer {
  margin-top: 18px;
  padding: 10px 4px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #9d9d9d;
}

.site-footer a {
  color: var(--yellow-2);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1120px) {
  .search-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-header {
    padding: 12px;
    border-radius: 14px;
  }

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

  .hero-copy {
    padding: 24px;
  }

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

  .offer-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1220px, 94vw);
    padding-top: 14px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.6rem;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 8px;
  }
}

.tech-catalog-shell h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.directory-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.directory-card {
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: linear-gradient(160deg, #131313 0%, #0f0f0f 100%);
  padding: 14px;
}

.directory-card-link {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.directory-card-link:hover {
  border-color: rgba(255, 207, 0, 0.5);
  transform: translateY(-2px);
}

.directory-card h3 {
  text-align: center;
}

.directory-card .inline-link {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.directory-card p {
  margin: 7px 0;
  color: #cfcfcf;
  font-size: 0.9rem;
}

.brand-logo-wrap {
  margin: 12px 0 14px;
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid #262626;
  border-radius: 12px;
  background: #000;
  padding: 10px;
}

.brand-logo-plate {
  width: 100%;
  min-height: 126px;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
}

.brand-logo-tile {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 108px;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.02);
  image-rendering: auto;
}

.brand-logo-placeholder {
  color: #666;
  font-size: 0.84rem;
}

.versions-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid #2f2f2f;
  border-radius: 14px;
}

.versions-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #111;
}

.versions-table th,
.versions-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #262626;
  font-size: 0.88rem;
  vertical-align: top;
}

.versions-table th {
  color: #111;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffe37a 100%);
  font-weight: 800;
}

.versions-table td {
  color: #dfdfdf;
}

.versions-table tbody tr:hover td {
  background: #161616;
}

@media (max-width: 1120px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
}
