:root {
  --bg-page: #fff;
  --bg-soft: #f7fafd;
  --bg-muted: #f1f5f9;
  --card: #fff;
  --card-soft: #f8fafc;
  --border: #d7e8f2;
  --border-soft: #e2e8f0;
  --text-main: #13283a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --blue: #2087e8;
  --blue-dark: #0f80cb;
  --blue-active: #0d6fb5;
  --magenta: #d71769;
  --navy: #071827;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.font-display,
h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  height: 28px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
}

.topbar .wrap,
.brandbar .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brandbar {
  height: 92px;
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 178px;
  height: auto;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn,
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: 10px;
  min-width: 40px;
  height: 40px;
  color: #334155;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  min-height: 40px;
  padding: 0 18px;
}

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

.nav {
  height: 44px;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
  overflow-x: auto;
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  white-space: nowrap;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

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

.main-space {
  padding: 28px 0 54px;
}

.ad-label {
  display: inline-block;
  margin: 0 0 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ad {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: linear-gradient(105deg, #f1f5f9, #eef4fa 52%, #f6f9fc);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.ad-h {
  height: 74px;
}

.ad-wide {
  height: 90px;
}

.ad-v {
  height: 300px;
}

.grid-home {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 24px;
  align-items: start;
}

.grid-cat {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 32px;
  align-items: start;
}

.grid-article {
  display: grid;
  grid-template-columns: 116px minmax(0, 560px) 156px;
  gap: 28px;
  align-items: start;
  justify-content: center;
}

.card {
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}

.card-body {
  padding: 18px;
}

.article-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.article-card.big img {
  height: 360px;
}

.category {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-hot {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.title-xl {
  font-size: 34px;
  line-height: 1.08;
  margin: 10px 0 12px;
  font-weight: 600;
  color: #0f172a;
}

.title-lg {
  font-size: 20px;
  line-height: 1.18;
  margin: 8px 0 9px;
  font-weight: 600;
  color: #0f172a;
}

.title-md {
  font-size: 18px;
  line-height: 1.25;
  margin: 7px 0 8px;
  font-weight: 600;
  color: #0f172a;
}

.title-sm {
  font-size: 14px;
  /* line-height: 1.3; */
  margin: 5px 0;
  font-weight: 500;
  color: #33353a;
}

.summary {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 38px 0 16px;
}

.section-head h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 600;
}

.section-head a {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

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

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

.one-card {
  max-width: 360px;
}

.row-news {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
}

.row-news img {
  width: 124px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
}

.sidebar-card {
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.side-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.most-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.most-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rank {
  font-size: 34px;
  line-height: 1;
  color: #cbd5e1;
  font-weight: 300;
}

.cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  color: #334155;
}

.cat-list a:last-child {
  border: 0;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font: inherit;
  min-height: 42px;
  padding: 0 14px;
}

.textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

.newsletter-box {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  align-items: center;
  border: 1px solid #b9dcfb;
  background: #eef7ff;
  border-radius: 16px;
  padding: 24px;
}

.footer {
  background: var(--navy);
  color: #94a3b8;
  padding-top: 72px;
}

.footer .grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 80px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin: 0 0 18px;
  font-weight: 500;
}

.footer p,
.footer a {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
}

.footer-bottom {
  margin-top: 62px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
}

.page-head {
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 22px;
}

.crumb {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 26px;
}

.page-head h1,
.newsletter-hero h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 12px;
  font-weight: 600;
  color: #050505;
}

.page-head p,
.newsletter-hero p {
  font-size: 18px;
  line-height: 1.5;
  color: #475569;
  max-width: 760px;
}

.chips {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

.chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 36px 0;
}

.pagination a {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
}

.pagination a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.share,
.toc {
  position: sticky;
  top: 18px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px;
}

.share h2,
.toc h2 {
  font-size: 12px;
  /* letter-spacing: 0.1em; */
  /* color: #64748b; */
  margin: 0 0 10px;
  font-weight: 500;
}

.share button {
  width: 100%;
  margin-top: 8px;
  justify-content: flex-start;
  background: #fff;
  border-color: var(--border-soft);
  color: #334155;
  font-weight: 500;
  font-size: 12px;
}

.share button:hover {
  background: #2188e8;
  color: #fff;
}

.toc a {
  display: block;
  border-left: 2px solid var(--border-soft);
  padding: 6px 0 6px 10px;
  font-size: 12px;
  color: #334155;
}

.article-main .badge {
  display: inline-flex;
  background: #e8f4ff;
  color: var(--blue);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.article-title {
  font-size: 42px;
  line-height: 1.06;
  margin: 14px 0 10px;
  font-weight: 600;
  color: #050505;
}

.dek {
  font-size: 17px;
  color: #334155;
  line-height: 1.45;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 18px;
}

.hero-img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 14px;
  margin: 28px 0;
}

.prose p {
  font-size: 17px;
  line-height: 1.72;
  color: #26384a;
  margin: 0 0 24px;
}

.prose h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 44px 0 8px;
  font-weight: 600;
}

.quote {
  border-left: 4px solid var(--blue);
  background: #f8fafc;
  border-radius: 0 10px 10px 0;
  margin: 26px 0;
  padding: 20px;
  font-size: 18px;
  font-style: italic;
  color: #334155;
}

.cta-soft {
  background: #e8f4ff;
  border: 1px solid #b9dcfb;
  border-radius: 14px;
  padding: 18px;
  margin: 30px 0 44px;
}

.comment-form,
.comment-item {
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.newsletter-page {
  min-height: calc(100vh - 448px);
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 90px;
  align-items: start;
  padding: 74px 0 260px;
}

.newsletter-card {
  border: 1px solid #a7d3fb;
  background: #f3f7fb;
  border-radius: 20px;
  padding: 34px;
}

.saved-page {
  min-height: calc(100vh - 448px);
  padding: 62px 0 140px;
}

.saved-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.saved-title h1 {
  font-size: 42px;
  margin: 0;
}

.saved-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px;
  margin-top: 20px;
}

.saved-row img {
  width: 180px;
  height: 96px;
  object-fit: cover;
  border-radius: 9px;
}

.remove-btn {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 10px 16px;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
}

.focusable:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(32, 135, 232, 0.35);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .grid-home,
  .grid-cat,
  .grid-article,
  .newsletter-page {
    grid-template-columns: 1fr;
  }

  .share {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .share h2 {
    width: 100%;
    margin-bottom: 4px;
  }

  .share button {
    width: auto;
  }

  .toc {
    position: static;
  }

  .newsletter-box {
    grid-template-columns: 1fr;
  }

  .footer .grid {
    gap: 32px;
  }

  .article-main {
    max-width: 720px;
    margin: auto;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    height: auto;
    padding: 8px 0;
  }

  .brandbar {
    height: 78px;
  }

  .logo {
    width: 142px;
  }

  .header-actions .btn {
    display: none;
  }

  .nav .wrap {
    justify-content: flex-start;
    gap: 22px;
  }

  .main-space {
    padding-top: 18px;
  }

  .two-grid,
  .three-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .article-card.big img,
  .hero-img {
    height: 230px;
  }

  .title-xl,
  .article-title,
  .page-head h1,
  .newsletter-hero h1,
  .saved-title h1 {
    font-size: 32px;
  }

  .grid-home,
  .grid-cat {
    gap: 28px;
  }

  .row-news {
    grid-template-columns: 96px 1fr;
  }

  .row-news img {
    width: 96px;
    height: 74px;
  }

  .newsletter-page {
    padding: 42px 0 90px;
    gap: 34px;
  }

  .saved-page {
    padding: 40px 0 80px;
  }

  .saved-row {
    grid-template-columns: 1fr;
  }

  .saved-row img {
    width: 100%;
    height: 180px;
  }

  .footer {
    padding-top: 42px;
  }

  .footer .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    display: block;
  }

  .article-card img {
    height: 200px;
  }
}

#related-section,
#comments-section,
#axes-section {
  max-width: 1400px;
  margin: 0 auto 56px;
  padding: 0 5%;
}

#axes-section {
  margin: 0px 0px 48px 0px;
  padding: 0px;
}
