:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1a1d26;
  --muted: #5c6370;
  --border: #e2e6ef;
  --accent: #0d6efd;
  --accent-hover: #0b5ed7;
  --warn-bg: #fff8e6;
  --warn-border: #f0d090;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(26, 29, 38, 0.06);
  --maxw: 1180px;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.5rem;
  }

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

.banner-18 {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

main {
  padding: 1.5rem 0 3rem;
}

.hero h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 75ch;
}

.hero__lead.article-content {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 78ch;
}

.hero__lead.article-content p {
  margin: 0;
}

.author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: min(78ch, 100%);
}

.author-card__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8eef9, #d4e4ff);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e3a5f;
}

.author-card__body {
  min-width: 0;
}

.author-card__line {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.author-card__role {
  color: var(--muted);
  font-weight: 600;
}

.author-card__name {
  font-weight: 700;
  color: var(--text);
}

.author-card__bio {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.author-card__date {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.author-card__date time {
  font-weight: 600;
  color: var(--text);
}

.section-title {
  font-size: 1.35rem;
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.02em;
}

.section-title--offers {
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text);
}

.offers-section__note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 85ch;
  line-height: 1.55;
}

.offers {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ——— Offer cards (mobile: stacked, large logo & CTA; desktop: horizontal row) ——— */
.offer-card {
  position: relative;
  background: #fbfbfc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.offer-card__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 5px;
  z-index: 2;
}

.offer-card__logo-wrap {
  background: linear-gradient(165deg, #fff4e8 0%, #ffd8a8 55%, #ffb86c 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1rem;
  min-height: 7.5rem;
}

.offer-card__logo {
  max-width: min(220px, 72vw);
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.offer-card__brand {
  text-align: center;
}

.offer-card__name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 3.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.offer-card__stars {
  letter-spacing: 0.12em;
  color: #e6b422;
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.offer-card__rating {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text);
}

.offer-card__meta-line {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.offer-card__divider {
  display: none;
}

.offer-card__bonus-block {
  text-align: center;
  padding: 0.15rem 0;
}

.offer-card__bonus-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.offer-card__bonus-text {
  margin: 0;
  font-size: clamp(1.12rem, 3.8vw, 1.35rem);
  line-height: 1.35;
  color: var(--text);
}

.offer-card__bonus-text strong {
  font-weight: 800;
}

.offer-card__actions {
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn-play {
  width: 100%;
  min-height: 3rem;
  font-size: clamp(1rem, 2.8vw, 1.08rem);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.btn-play__icon {
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .offer-card {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.35rem 1rem 3rem;
    min-height: 7.5rem;
  }

  .offer-card__rank {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
  }

  .offer-card__logo-wrap {
    width: 200px;
    min-height: 5.5rem;
    flex-shrink: 0;
    padding: 0.85rem;
  }

  .offer-card__logo {
    max-width: 150px;
    max-height: 64px;
  }

  .offer-card__brand {
    flex: 0 1 200px;
    text-align: left;
    min-width: 0;
  }

  .offer-card__name {
    font-size: 1.1rem;
  }

  .offer-card__divider {
    display: block;
    width: 1px;
    align-self: stretch;
    min-height: 4.5rem;
    background: var(--border);
    flex-shrink: 0;
  }

  .offer-card__bonus-block {
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
    padding: 0 0.25rem;
  }

  .offer-card__bonus-text {
    font-size: 1.12rem;
  }

  .offer-card__actions {
    margin-top: 0;
    flex-shrink: 0;
  }

  .btn-play {
    width: auto;
    min-width: 11rem;
    min-height: 2.85rem;
    box-shadow: 0 3px 12px rgba(13, 110, 253, 0.3);
  }
}

/* ——— Long-form article from main-seo-text.html ——— */
.article-content {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text);
}

.article-content--main {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-content h2 {
  font-size: clamp(1.18rem, 2.1vw, 1.42rem);
  margin: 2rem 0 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.06rem;
  margin: 1.4rem 0 0.55rem;
  font-weight: 700;
  color: var(--text);
}

.article-content p {
  margin: 0 0 1rem;
}

.article-content ul {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .article-content table {
    display: table;
    font-size: 0.92rem;
  }
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: #eef1f8;
  font-weight: 600;
}

.footnote {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .site-footer .cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-footer h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--muted);
}

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

.copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
