:root {
  color-scheme: light;
  --bg: #f8f9fa;
  --paper: #ffffff;
  --paper-soft: #f3f4f5;
  --ink: #222529;
  --muted: #6c757d;
  --line: #dee2e6;
  --line-strong: #cfd4da;
  --brand: #2f5f47;
  --accent: #7eaf10;
  --radius: 10px;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 780;
  text-decoration: none;
}

.brand-dot {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.96rem;
}

.nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  max-width: 980px;
  padding: 76px 0 34px;
}

.eyebrow,
.section-kicker,
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.7vw, 3.7rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.25;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  line-height: 1.65;
}

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

.task-panel,
.editor-section,
.category-section,
.trust-section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.task-panel {
  padding-top: 34px;
}

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

.task-card,
.editor-card,
.category-tile {
  position: relative;
  display: block;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.task-card:hover,
.editor-card:hover,
.category-tile:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-2px);
}

.task-card {
  padding: 22px;
}

.task-arrow {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
}

.task-card p,
.editor-card p,
.category-tile p,
.principle p {
  color: var(--muted);
}

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

.editor-card {
  padding: 26px;
}

.editor-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  font-weight: 500;
}

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

.category-tile {
  padding: 22px;
  scroll-margin-top: 96px;
}

.category-tile h3 {
  min-height: 2.5em;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
  gap: 34px;
}

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

.principle {
  padding: 22px;
  border-left: 2px solid var(--accent);
  background: rgba(251, 250, 246, 0.48);
}

.article-preview,
.card,
.notice,
.article,
.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.article-preview {
  padding: 22px 24px;
}

.article-preview p:last-child,
.card p {
  color: var(--muted);
}

.article-preview:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: #2c2c2c;
  background: #2c2c2c;
  color: #fff;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.articles,
.grid.categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 22px;
}

.card a {
  text-decoration: none;
}

.notice {
  padding: 18px 20px;
  background: var(--paper-soft);
}

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  padding: 42px 0 70px;
}

.article {
  padding: clamp(24px, 4vw, 46px);
}

.article h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.article p,
.article li {
  max-width: 760px;
}

.article table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article th,
.article td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article th {
  background: var(--paper-soft);
}

.sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--brand);
  font-size: 0.88rem;
}

.search-box {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.site-footer {
  margin-top: 30px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner p {
  max-width: 760px;
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 44px;
  }

  .intro-grid,
  .trust-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .grid.articles,
  .grid.categories,
  .task-grid,
  .editor-grid,
  .category-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* Журнальная главная: вдохновлено чистыми медиа-страницами с крупными карточками */
.page-shell {
  width: min(1180px, calc(100% - 48px));
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  min-height: 72px;
}

.brand {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.nav {
  gap: 14px;
}

.nav a {
  padding: 9px 0;
  border-radius: 0;
  color: #1c1d23;
  font-size: 0.94rem;
  font-weight: 650;
}

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

.journal-hero {
  padding: 92px 0 48px;
  text-align: center;
}

.journal-hero .eyebrow {
  margin-bottom: 22px;
  color: #8a8f98;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.journal-hero h1 {
  max-width: none;
  margin: 0 0 18px;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 760;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.journal-hero .lead {
  max-width: 760px;
  margin: 0 auto;
  color: #555d66;
  font-size: clamp(1.08rem, 1.65vw, 1.34rem);
  line-height: 1.65;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 42px;
}

.category-chips a {
  color: #1c1d23;
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.category-chips a:first-child {
  color: #9aa0a8;
}

.category-chips a:hover {
  color: var(--brand);
}

.magazine-section,
.tasks-section,
.rubrics-section,
.method-section {
  padding: 58px 0;
  border-top: 1px solid #e8eaed;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-title-row h2,
.tasks-section h2,
.method-section h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 4vw, 4.3rem);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.quiet-link {
  flex: 0 0 auto;
  color: #1c1d23;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.quiet-link:hover {
  color: var(--brand);
}

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

.post-card {
  display: block;
  color: #1c1d23;
  text-decoration: none;
}

.post-cover {
  display: block;
  aspect-ratio: 1.27 / 1;
  margin-bottom: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0)),
    #15171c;
}

.card-ai .post-cover {
  background:
    radial-gradient(circle at 72% 28%, rgba(126,175,16,.85), transparent 0 20%, transparent 42%),
    linear-gradient(135deg, #101216, #303640 68%, #e5e7eb);
}

.card-card .post-cover {
  background:
    linear-gradient(135deg, rgba(255,255,255,.25), transparent 35%),
    linear-gradient(145deg, #dbeafe, #4f8f71 52%, #111827);
}

.card-hosting .post-cover {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #f3f4f6, #aeb6c2 46%, #2d3642);
}

.card-pay .post-cover {
  background:
    radial-gradient(circle at 28% 28%, #fff 0 7%, transparent 8%),
    linear-gradient(135deg, #fbeee4, #c97847 48%, #2a1c16);
}

.card-review .post-cover {
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent),
    linear-gradient(135deg, #edf7ef, #7eaf10 48%, #234a31);
}

.card-ai-alt .post-cover {
  background:
    radial-gradient(circle at 22% 30%, rgba(255,255,255,.9), transparent 0 8%, transparent 25%),
    radial-gradient(circle at 72% 62%, rgba(126,175,16,.72), transparent 0 14%, transparent 36%),
    linear-gradient(135deg, #171727, #574e56);
}

.post-meta {
  display: block;
  margin-bottom: 10px;
  color: #8a8f98;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.post-card p {
  max-width: 95%;
  color: #626a73;
  font-size: 1rem;
  line-height: 1.55;
}

.post-card:hover h3 {
  color: var(--brand);
}

.tasks-section,
.method-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.44fr);
  gap: 54px;
}

.task-list {
  border-top: 1px solid #e8eaed;
}

.task-row {
  display: grid;
  grid-template-columns: 52px minmax(190px, 0.72fr) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid #e8eaed;
  color: #1c1d23;
  text-decoration: none;
}

.task-row span {
  color: #a0a6ae;
  font-size: 0.9rem;
  font-weight: 800;
}

.task-row strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.task-row em {
  color: #626a73;
  font-style: normal;
}

.task-row:hover strong {
  color: var(--brand);
}

.rubrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-pill-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid #e4e7eb;
  border-radius: 0;
  background: #fff;
  color: #1c1d23;
  text-decoration: none;
}

.category-pill-card span {
  display: block;
  margin-bottom: 72px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.category-pill-card p {
  color: #626a73;
  font-size: 0.96rem;
  line-height: 1.48;
}

.category-pill-card:hover {
  border-color: #c8cdd3;
}

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

.method-grid article {
  padding-top: 20px;
  border-top: 2px solid #1c1d23;
}

.method-grid h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.method-grid p {
  color: #626a73;
}

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

  .tasks-section,
  .method-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .page-shell,
  .header-inner,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .journal-hero {
    padding: 62px 0 34px;
    text-align: left;
  }

  .journal-hero h1 {
    font-size: clamp(3.3rem, 20vw, 5rem);
  }

  .category-chips {
    justify-content: flex-start;
    gap: 14px 18px;
  }

  .section-title-row {
    display: block;
  }

  .quiet-link {
    display: inline-block;
    margin-top: 14px;
  }

  .post-grid,
  .rubrics-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .task-row {
    grid-template-columns: 44px 1fr;
  }

  .task-row em {
    grid-column: 2;
  }
}
