:root {
  --bg: #f4efe6;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fffaf2;
  --surface-contrast: rgba(255, 249, 239, 0.9);
  --ink: #1e2430;
  --muted: #5e6676;
  --line: rgba(30, 36, 48, 0.12);
  --accent: #bb4d1f;
  --accent-deep: #893411;
  --shadow: 0 18px 50px rgba(47, 35, 20, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(187, 77, 31, 0.22), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(31, 104, 137, 0.18), transparent 20%),
    radial-gradient(circle at 50% 78%, rgba(166, 82, 39, 0.12), transparent 26%),
    linear-gradient(180deg, #fbf6ef 0%, #efe5d7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 36, 48, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 36, 48, 0.022) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 78%);
}

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

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

p {
  margin: 0;
}

ul {
  margin: 0;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 28px;
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d48159);
  color: #fff8f1;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 0.84rem;
}

.brand-copy strong {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.brand-copy span,
.article-meta,
.site-nav a,
.body-copy,
.footer-links {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.story-link:hover strong,
.story-link:focus-visible strong,
.article-card a:hover,
.article-card a:focus-visible,
.featured-story a:hover,
.featured-story a:focus-visible,
.support-card a:hover,
.support-card a:focus-visible {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.section {
  margin-top: 22px;
}

.hero,
.section-soft,
.section-contrast,
.article-card,
.topic-card,
.support-card,
.featured-story,
.quote-block,
.faq-item,
.feature,
.site-footer,
.article-shell,
.info-card,
.story-link,
.principle-card {
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 18px;
  margin-bottom: 40px;
  align-items: start;
}

.hero-copy,
.hero-panel,
.section-soft,
.section-contrast,
.article-shell,
.info-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(249, 241, 231, 0.86));
  backdrop-filter: blur(16px);
}

.hero-home .hero-copy,
.hero-home .hero-panel {
  min-height: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.hero-panel {
  min-width: 0;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -72px;
  top: -64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 77, 31, 0.18), rgba(187, 77, 31, 0));
  pointer-events: none;
}

.eyebrow,
.article-kicker {
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.eyebrow {
  margin-bottom: 12px;
}

.hero h1,
.section-heading h2,
.article-header h1,
.panel-heading h2 {
  margin: 0;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.hero h1 {
  font-size: clamp(1.7rem, 2.2vw, 2.45rem);
  max-width: 12ch;
  text-wrap: balance;
}

.hero-text,
.article-card p,
.support-card p,
.featured-story p,
.topic-card p,
.principle-card p,
.article-body p,
.article-body li,
.info-card p,
.article-summary p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.66;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(30, 36, 48, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.8rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.button-primary {
  background: var(--accent);
  color: #fff8f2;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero-stage {
  display: grid;
  gap: 14px;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 30px rgba(31, 36, 48, 0.14);
}

.panel-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  font-size: 1.2rem;
  max-width: 14ch;
}

.story-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.story-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 239, 0.56));
}

.story-link span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-deep);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.story-link strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.34;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  max-width: 16ch;
}

.featured-layout,
.card-grid,
.principles-grid {
  display: grid;
  gap: 18px;
}

.featured-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.featured-story,
.support-card,
.article-card,
.topic-card,
.principle-card,
.feature,
.faq-item,
.quote-block,
.site-footer {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.84), rgba(255, 248, 240, 0.72));
}

.featured-story {
  padding: 30px;
}

.card-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(30, 36, 48, 0.08);
  background: #f4eee5;
}

.card-thumb-small {
  margin-bottom: 16px;
}

.featured-story h3,
.support-card h3,
.article-card h3,
.topic-card h3,
.principle-card h3,
.feature h3,
.article-summary h3,
.article-sidebar h3 {
  margin: 10px 0 10px;
  font-size: 1.24rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.featured-story h3 {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.supporting-stories {
  display: grid;
  gap: 18px;
}

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

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-meta {
  margin-bottom: 12px;
  font-size: 0.84rem;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.9), rgba(244, 234, 222, 0.86));
}

.section-contrast {
  background: linear-gradient(135deg, rgba(30, 36, 48, 0.96), rgba(44, 59, 79, 0.92));
  color: #f8f1e5;
}

.section-contrast .eyebrow,
.section-contrast p,
.section-contrast .article-meta {
  color: rgba(248, 241, 229, 0.78);
}

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

.principle-card {
  background: rgba(255, 255, 255, 0.06);
}

.principle-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  background: rgba(255, 250, 242, 0.78);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.48fr);
  gap: 26px;
  align-items: start;
}

.article-header {
  margin-bottom: 22px;
}

.article-header h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  max-width: 16ch;
  text-wrap: balance;
}

.article-body {
  display: grid;
  gap: 18px;
}

.article-body h2 {
  margin: 8px 0 0;
  font-size: 1.42rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.article-body ul,
.article-summary ul {
  padding-left: 18px;
}

.article-sidebar {
  display: grid;
  gap: 18px;
}

.article-summary,
.info-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.info-card-telegram {
  background: linear-gradient(180deg, rgba(232, 246, 255, 0.96), rgba(244, 251, 255, 0.98));
  border: 1px solid rgba(84, 170, 230, 0.34);
  box-shadow: 0 18px 38px rgba(79, 144, 202, 0.14);
}

.info-card-telegram h3 {
  color: #1e6fa7;
}

.info-card-telegram .button-secondary {
  border-color: rgba(46, 153, 224, 0.22);
  background: #e7f5ff;
  color: #17699f;
  font-weight: 600;
}

.article-summary ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.body-copy {
  max-width: 78ch;
  display: grid;
  gap: 16px;
}

.body-copy h2 {
  margin: 10px 0 0;
  font-size: 1.42rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.legal-note {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero,
  .featured-layout,
  .article-shell,
  .card-grid-3,
  .card-grid-4,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .hero-home .hero-copy,
  .hero-home .hero-panel {
    min-height: auto;
  }

  .panel-heading h2 {
    max-width: none;
  }

  .hero-panel {
    padding-top: 22px;
    margin-top: 0;
  }

  .story-link strong {
    font-size: 0.98rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  }

  .hero h1 {
    font-size: clamp(1.65rem, 2vw, 2.2rem);
  }

  .hero-text {
    max-width: 48ch;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 12px;
  }

  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 16px;
    border-radius: 28px;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 110px);
  }

  .brand-copy strong,
  .brand-copy span {
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
  }

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

  .hero-copy,
  .hero-panel,
  .section-soft,
  .section-contrast,
  .article-shell,
  .info-card,
  .featured-story,
  .support-card,
  .article-card,
  .topic-card,
  .principle-card,
  .site-footer {
    padding: 24px;
  }

  .hero h1,
  .article-header h1 {
    max-width: 100%;
  }

  .hero {
    gap: 14px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.02;
  }

  .hero-text {
    font-size: 0.96rem;
    max-width: 100%;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges span {
    min-height: 28px;
    font-size: 0.76rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-visual {
    aspect-ratio: 16 / 10;
  }

  .story-link {
    padding: 14px;
  }

  .story-link strong {
    font-size: 0.94rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(calc(100% - 16px), var(--max-width));
    padding-top: 10px;
    padding-bottom: 32px;
  }

  .site-header {
    top: 8px;
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
  }

  .brand {
    max-width: calc(100% - 96px);
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy {
    font-size: 0.78rem;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy span {
    display: none;
  }

  .nav-toggle {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  .hero {
    gap: 14px;
    margin-bottom: 28px;
  }

  .section {
    margin-top: 16px;
  }

  .hero-copy,
  .hero-panel,
  .section-soft,
  .section-contrast,
  .article-shell,
  .info-card,
  .featured-story,
  .support-card,
  .article-card,
  .topic-card,
  .principle-card,
  .site-footer {
    padding: 18px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 8vw, 1.95rem);
  }

  .hero-text,
  .article-card p,
  .support-card p,
  .featured-story p,
  .topic-card p,
  .principle-card p {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .hero-badges span {
    min-height: 26px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .card-thumb,
  .hero-visual {
    border-radius: 16px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2,
  .panel-heading h2 {
    font-size: 1.5rem;
    line-height: 1.05;
  }

  .featured-story h3,
  .support-card h3,
  .article-card h3,
  .topic-card h3,
  .principle-card h3 {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.2;
  }

  .story-link {
    padding: 12px;
    border-radius: 18px;
  }

  .story-link strong {
    font-size: 0.9rem;
  }
}
