:root {
  color-scheme: light;
  --page: #f7f2ea;
  --paper: #fffdf9;
  --ink: #24211f;
  --muted: #6d655f;
  --line: #e8ded3;
  --accent: #df675a;
  --accent-dark: #b9473d;
  --telegram: #168acd;
  --max: #6757e8;
  --shadow: 0 18px 60px rgba(78, 55, 38, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(223, 103, 90, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(132, 147, 99, 0.13), transparent 22rem),
    var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(232, 222, 211, 0.85);
  background: rgba(247, 242, 234, 0.9);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(100% - 32px, 920px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.2;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font: 700 20px/1 Georgia, serif;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.route-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
  line-height: 1;
}

main {
  width: min(100% - 28px, 920px);
  margin: 36px auto 56px;
}

.messenger-choice {
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 10px 32px rgba(78, 55, 38, 0.08);
  text-align: center;
}

.messenger-choice p {
  margin: 0 0 14px;
  font-weight: 700;
}

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

.choice-button,
.cta-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.choice-button:hover,
.cta-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.choice-button:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid rgba(36, 33, 31, 0.25);
  outline-offset: 3px;
}

.choice-button--telegram { background: var(--telegram); }
.choice-button--max { background: var(--max); }

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid rgba(232, 222, 211, 0.9);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.article h1,
.article h2,
.article h3 {
  color: #201d1a;
  font-family: Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

.article h1 {
  margin: 0 0 28px;
  font-size: clamp(2.15rem, 7vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.article h1::after {
  content: "";
  width: 84px;
  height: 5px;
  display: block;
  margin-top: 26px;
  border-radius: 99px;
  background: var(--accent);
}

.article h2 {
  margin: 2.5em 0 0.65em;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
}

.article h3 {
  margin: 2em 0 0.55em;
  font-size: 1.28rem;
  line-height: 1.28;
}

.article p { margin: 0 0 1em; }

.article p a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.article ul,
.article ol {
  margin: 0.4em 0 1.3em;
  padding-left: 1.45em;
}

.article li { margin: 0.4em 0; padding-left: 0.2em; }
.article li::marker { color: var(--accent-dark); font-weight: 800; }

.article .flow {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: #fbf3ef;
  font-weight: 700;
  line-height: 1.55;
}

.cta-wrap { margin: 14px 0 28px; }

.cta-button {
  width: 100%;
  padding: 15px 20px;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(223, 103, 90, 0.24);
}

.cta-button[data-route="tg"] { background: var(--telegram); box-shadow: 0 10px 24px rgba(22, 138, 205, 0.22); }
.cta-button[data-route="max"] { background: var(--max); box-shadow: 0 10px 24px rgba(103, 87, 232, 0.22); }

.loading,
.error { color: var(--muted); text-align: center; }

.site-footer {
  padding: 0 20px 40px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 620px) {
  body { font-size: 16px; line-height: 1.66; }
  .site-header__inner { width: min(100% - 24px, 920px); min-height: 66px; }
  .route-badge { display: none; }
  main { width: min(100% - 16px, 920px); margin-top: 18px; }
  .article { padding: 28px 20px 34px; border-radius: 22px; }
  .article h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .messenger-choice { padding: 16px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
