:root {
  --primary: #0db1f2;
  --primary-dark: #0995d0;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --green: #22c55e;
  --white: #ffffff;
  --max: 1280px;
  --content: 880px;
  --shadow: 0 8px 30px rgba(17, 24, 39, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(300px, 576px) auto;
  gap: 2rem;
  align-items: center;
  height: 64px;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header-search,
.hero-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9ca3af;
  background: var(--white);
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.04);
  text-decoration: none;
}

.header-search {
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
}

.header-search:hover,
.hero-search:hover {
  border-color: #c7cdd4;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a,
.subnav a,
.back-link {
  text-decoration: none;
}

.site-nav a:hover,
.subnav a:hover,
.back-link:hover {
  color: var(--primary);
}

.subnav {
  position: sticky;
  top: 64px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.3rem;
  height: 49px;
  border-bottom: 1px solid var(--line);
  background: #f9fafb;
}

.subnav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px;
  color: #4b5563;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.subnav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 630px;
  padding: 78px 24px 88px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 115%, rgba(13, 177, 242, 0.08), transparent 48%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.hero h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

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

.hero__subtitle {
  max-width: 650px;
  margin: 24px auto 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

.hero-search {
  width: min(100%, 672px);
  min-height: 54px;
  padding: 0 17px;
  text-align: left;
}

.hero-search__icon {
  color: #c0c6ce;
  font-size: 26px;
  line-height: 1;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 190px));
  justify-content: center;
  gap: 3rem;
  width: 100%;
  margin-top: 56px;
}

.hero__stats div {
  display: grid;
  gap: 1px;
}

.hero__stats strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__stats span {
  color: #9ca3af;
  font-size: 13px;
}

.directory {
  padding: 16px 24px 84px;
  background: var(--white);
}

.editorial-copy__intro h2,
.disclosure h2 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 45px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.directory__frame {
  max-width: var(--max);
  margin: 0 auto;
}

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

.article-source,
#models {
  min-height: 320px;
}

.widget-loading,
.widget-error {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.directory__frame--error {
  padding: 8px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  background: #fff7f7;
}

.editorial-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--content));
  gap: 64px;
  justify-content: center;
  padding: 82px 24px 100px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.article-nav {
  position: sticky;
  top: 138px;
  align-self: start;
  display: grid;
  gap: 3px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.article-nav a {
  padding: 8px 10px;
  color: #4b5563;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

.article-nav a:hover {
  color: var(--primary-dark);
  background: #f0f9ff;
}

.editorial-copy {
  min-width: 0;
}

.editorial-copy__intro {
  margin-bottom: 30px;
  padding: 32px;
  border: 1px solid #bae6fd;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0f9ff, #fff);
}

.editorial-copy__intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

#article-copy {
  padding: 44px 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

#article-copy > :first-child {
  margin-top: 0;
}

#article-copy p,
#article-copy li {
  color: #374151;
  font-size: 16.5px;
  line-height: 1.78;
}

#article-copy h2 {
  margin: 56px 0 18px;
  padding-top: 8px;
  color: var(--ink);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

#article-copy h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

#article-copy a {
  color: var(--primary-dark);
  font-weight: 600;
  text-underline-offset: 3px;
}

#article-copy blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: #f0f9ff;
}

#article-copy blockquote p {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}

#article-copy img {
  display: block;
  width: 100%;
  margin: 28px 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

#article-copy hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

#article-copy ul,
#article-copy ol {
  padding-left: 1.3rem;
}

#article-copy li::marker {
  color: var(--primary);
}

#article-copy table {
  display: block;
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: 12px;
}

#article-copy th,
#article-copy td {
  min-width: 145px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

#article-copy th {
  background: #f0f9ff;
  font-size: 13px;
}

#article-copy td p,
#article-copy th p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.article-jump {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f0f9ff;
}

.disclosure {
  max-width: 1080px;
  margin: 80px auto;
  padding: 38px 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.disclosure > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 3rem;
  align-items: start;
  padding: 54px max(24px, calc((100vw - var(--max)) / 2));
  color: #4b5563;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.site-footer .brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  font-size: 14px;
}

.site-footer nav {
  display: grid;
  gap: 9px;
}

.site-footer nav a {
  font-size: 14px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--primary);
}

.site-footer__copyright {
  justify-self: end;
}

.legal-page {
  max-width: 850px;
  min-height: calc(100vh - 200px);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal-page article {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 55px);
  letter-spacing: -0.045em;
}

.legal-page h2 {
  margin-top: 34px;
}

.legal-page__updated {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-search {
    display: none;
  }

  .editorial-shell {
    grid-template-columns: minmax(0, var(--content));
    gap: 28px;
  }

  .article-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-nav .eyebrow {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 58px;
  }

  .site-header {
    height: 60px;
    padding-inline: 16px;
  }

  .brand {
    font-size: 22px;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .subnav {
    position: fixed;
    inset: auto 0 0;
    z-index: 950;
    justify-content: space-around;
    gap: 0;
    height: 58px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.98);
  }

  .subnav a {
    justify-content: center;
    min-width: 25%;
    padding: 0 4px;
    border: 0;
    font-size: 10px;
  }

  .hero {
    min-height: 560px;
    padding: 64px 18px 70px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .hero__subtitle {
    margin-block: 20px 28px;
    font-size: 17px;
  }

  .hero__stats {
    gap: 12px;
    margin-top: 44px;
  }

  .hero__stats strong {
    font-size: 24px;
  }

  .directory {
    padding: 12px 14px 62px;
  }

  .editorial-shell {
    padding: 58px 14px 72px;
  }

  .article-nav {
    padding: 10px;
  }

  .editorial-copy__intro,
  #article-copy {
    padding: 25px 20px;
    border-radius: 14px;
  }

  #article-copy h2 {
    margin-top: 44px;
  }

  .disclosure {
    margin: 54px 14px;
    padding: 26px 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 42px 20px;
  }

  .site-footer__copyright {
    justify-self: start;
  }

  .legal-page {
    padding: 44px 14px 70px;
  }

  .legal-page article {
    padding: 28px 22px;
  }
}
