:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-blue: #eef8ff;
  --text: #061b3d;
  --text-soft: #17365f;
  --muted: #5c708a;
  --line: #d7e7f3;
  --blue: #063b78;
  --blue-dark: #041f49;
  --cyan: #18bfe6;
  --cyan-soft: #dff7ff;
  --green: #69c96f;
  --green-dark: #269955;
  --shadow: 0 16px 44px rgba(6, 27, 61, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(24, 191, 230, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 14%, rgba(105, 201, 111, 0.12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #ffffff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(6, 59, 120, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 59, 120, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 58%);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(215, 231, 243, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(6, 27, 61, 0.05);
  backdrop-filter: blur(14px);
}

.logo {
  display: block;
  width: 220px;
  height: 41px;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
}

.logo__image {
  width: 220px;
  height: 41px;
  max-width: 220px;
  object-fit: contain;
  object-position: center bottom;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

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

.nav-cta {
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(6, 59, 120, 0.18);
}

.site-nav .nav-cta:hover {
  color: #ffffff;
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--blue);
  font: inherit;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 42px;
}

.hero__content h1 {
  max-width: 820px;
  margin: 0;
  color: var(--blue-dark);
  font-size: 5.05rem;
  line-height: 0.99;
}

.hero__text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.72;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.button--primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(6, 59, 120, 0.2);
}

.button--primary:hover {
  background: var(--blue-dark);
}

.button--ghost {
  border-color: #bfd8ea;
  color: var(--blue);
  background: #ffffff;
}

.button--ghost:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 285px;
  object-fit: contain;
}

.hero-card__body {
  padding: 24px;
}

.badge {
  display: inline-flex;
  border-radius: 8px;
  padding: 8px 10px;
  color: #073f28;
  background: #d9f7dc;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-card h2 {
  margin: 18px 0 10px;
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1.08;
}

.hero-card p,
.deal-section p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section__heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section__intro {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.section__heading h2,
.deal-section h2,
.newsletter h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 3.2rem;
  line-height: 1.04;
}

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

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(6, 27, 61, 0.06);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-card:hover,
.category-card.is-active {
  border-color: rgba(24, 191, 230, 0.55);
  background:
    linear-gradient(180deg, rgba(223, 247, 255, 0.72), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow: 0 16px 36px rgba(6, 27, 61, 0.1);
}

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

.category-card.is-active {
  outline: 2px solid rgba(105, 201, 111, 0.38);
  outline-offset: 2px;
}

.category-card span,
.card__tag,
.review-item span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card h3 {
  margin: auto 0 10px;
  padding-top: 38px;
  color: var(--blue-dark);
  font-size: 1.55rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.category-card small {
  margin-top: 18px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(6, 27, 61, 0.07);
}

.guide-card[hidden] {
  display: none;
}

.guide-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.guide-card__body {
  padding: 22px;
}

.guide-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.guide-card__meta span:not(.card__tag) {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-card h3 {
  margin: 14px 0 12px;
  color: var(--blue-dark);
  font-size: 1.5rem;
  line-height: 1.18;
}

.guide-card p {
  color: var(--muted);
  line-height: 1.62;
}

.guide-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.guide-empty {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #ffffff;
}

.deal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 38px;
  align-items: center;
  max-width: 1180px;
  margin: 18px auto;
  padding: 46px 24px;
}

.deal-section__content {
  padding: 36px;
  border: 1px solid #c7e8f6;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 247, 255, 0.9), rgba(232, 249, 235, 0.72)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(6, 27, 61, 0.07);
}

.deal-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(6, 27, 61, 0.07);
}

.deal-box h3 {
  margin: 18px 0 14px;
  color: var(--blue-dark);
  font-size: 2rem;
}

.deal-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

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

.review-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(6, 27, 61, 0.06);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.review-item:hover {
  border-color: rgba(24, 191, 230, 0.55);
  box-shadow: 0 16px 36px rgba(6, 27, 61, 0.1);
  transform: translateY(-2px);
}

.review-item h3 {
  margin: 12px 0 10px;
  color: var(--blue-dark);
  font-size: 1.4rem;
}

.review-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 38px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px;
  border-top: 1px solid var(--line);
}

.newsletter__panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(6, 27, 61, 0.06);
}

.newsletter__panel h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 1.55rem;
}

.newsletter__panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.article {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px;
}

.article-hero {
  max-width: 900px;
  margin-bottom: 34px;
}

.article-hero h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 4.2rem;
  line-height: 1;
}

.article-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.article-meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-soft);
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-cover {
  width: 100%;
  max-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(6, 27, 61, 0.08);
}

.article-body section {
  margin-top: 34px;
}

.article-body h2 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 2rem;
}

.article-body p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

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

.criteria-card,
.buy-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(6, 27, 61, 0.06);
}

.criteria-card h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
}

.criteria-card p {
  margin: 0;
  font-size: 0.98rem;
}

.article-body section > .criteria-card {
  margin-top: 14px;
}

.criteria-card .badge {
  margin-bottom: 14px;
}

.criteria-card h4 {
  margin: 18px 0 8px;
  color: var(--blue);
  font-size: 0.98rem;
}

.criteria-card ul {
  margin-top: 8px;
}

.buy-box {
  position: sticky;
  top: 96px;
}

.buy-box h2 {
  margin: 18px 0 10px;
  color: var(--blue-dark);
  font-size: 1.55rem;
}

.buy-box p {
  color: var(--muted);
  line-height: 1.65;
}

.buy-box ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

.site-footer strong {
  color: var(--blue-dark);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .deal-section,
  .newsletter,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero__content h1 {
    font-size: 4.2rem;
  }

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

  .buy-box {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
  }

  .logo {
    width: 170px;
    height: 32px;
  }

  .logo__image {
    width: 170px;
    height: 32px;
    max-width: 170px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .hero {
    padding-top: 44px;
  }

  .hero__content h1 {
    font-size: 3.1rem;
  }

  .article-hero h1 {
    font-size: 2.75rem;
  }

  .section__heading h2,
  .deal-section h2,
  .newsletter h2 {
    font-size: 2.35rem;
  }

  .hero-card img,
  .guide-card img {
    height: 210px;
  }

  .category-grid,
  .guide-grid,
  .review-list,
  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
  }

  .category-card h3 {
    margin-top: 34px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hero__content h1 {
    font-size: 2.65rem;
  }

  .article-hero h1 {
    font-size: 2.25rem;
  }

  .section__heading h2,
  .deal-section h2,
  .newsletter h2 {
    font-size: 2rem;
  }
}
