/* Статьи (29.10, с 04.11 — светлая тема «День», как на главной): страницы статей и список. Тексты — со старого сайта 47domspb.ru, перенесены к себе. */
:root {
  --bg: #F4F4F1; --surface: #FFFFFF; --surface-2: #ECEFEB;
  --ink: #1F1F1F; --ink-2: #5E625F; --ink-3: #5F6B60;
  --line: #DCE3E0;
  --accent: #15803D; --green-d: #15803D;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 64px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid #15803D; outline-offset: 3px; }

/* шапка */
.st-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 14px max(var(--pad), calc(50% - 640px)); background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); }
.st-top__logo img { height: 36px; width: auto; }
.st-top__back { margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.st-top__back:hover { color: var(--ink); }
.st-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 20px; border-radius: 999px; background: var(--green-d); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.st-btn:hover { background: #166534; }
.st-btn:active { transform: scale(0.97); }
.st-btn i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1F1F1F; }
.st-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* статья */
.st { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad) 0; }
.st__crumbs { margin: 0 0 20px; font-size: 14px; color: var(--ink-3); }
.st__crumbs a { color: var(--ink-2); text-decoration: none; }
.st__crumbs a:hover { color: var(--ink); }
.st h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.12; text-transform: uppercase; }
.st__meta { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 14px; color: var(--ink-3); }
.st__tag { padding: 5px 12px; border-radius: 999px; background: #DCF5E5; color: var(--accent); font-weight: 600; }
.st__body { max-width: 720px; margin-top: 36px; color: var(--ink-2); }
.st__body > p:first-child { font-size: 20px; line-height: 1.55; color: var(--ink); }
.st__body h2 { margin: 44px 0 14px; font-size: 26px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.st__body h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.st__body p { margin: 0 0 16px; }
.st__body b { color: var(--ink); font-weight: 600; }
.st__body ul, .st__body ol { margin: 0 0 20px; padding-left: 22px; }
.st__body li { margin: 0 0 10px; padding-left: 4px; }
.st__body li::marker { color: var(--accent); font-weight: 600; }

/* боковая карточка-призыв */
.st__aside { position: sticky; top: 100px; align-self: start; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.st__aside b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; text-transform: uppercase; }
.st__aside p { margin: 12px 0 20px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.st__aside .st-btn { width: 100%; justify-content: space-between; }

/* ещё статьи / список */
.st-more { max-width: 1280px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--pad); }
.st-more h2 { margin: 0 0 28px; font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2vw, 28px); line-height: 1.12; text-transform: uppercase; }
.st-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.st-list a { display: flex; flex-direction: column; height: 100%; min-height: 200px; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.st-list a:hover { background: var(--surface-2); }
.st-list a:active { transform: scale(0.99); }
.st-list .st__meta { margin: 0; }
.st-list b { display: block; margin-top: 16px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.st-list span.go { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--accent); }

/* страница списка */
.st-index { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(56px, 7vw, 96px); }
.st-index h1 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 3.6vw, 50px); line-height: 1.12; text-transform: uppercase; }
.st-index h1 span { color: var(--accent); }
.st-index > p { margin: 0 0 40px; max-width: 560px; color: var(--ink-2); }

/* подвал — как на главной: графит, внутри цвета тёмной темы */
.footer { --ink: #fff; --ink-2: #C4C4C4; --ink-3: #9A9E9B; --line: rgba(255, 255, 255, 0.12); --accent: #22C55E; --c: max(var(--pad), calc(50% - 640px)); background: #2B2B2B; color: var(--ink-2); font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 32px 48px; padding: 56px var(--c) 48px; }
.footer h3 { margin: 0 0 20px; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; text-transform: uppercase; color: #fff; }
.footer__logo { height: 30px; width: auto; margin-bottom: 24px; }
.footer ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer__links { gap: 10px; }
.footer__ct li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.footer__ct svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.footer a:not(.st-btn) { color: inherit; text-decoration: none; }
.footer a:not(.st-btn):hover { color: #fff; }
.footer__bottom { display: grid; gap: 6px; padding: 24px var(--c) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--ink-3); text-align: center; }
@media (max-width: 1100px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr; padding-top: 40px; } .footer .st-btn { width: 100%; justify-content: space-between; } .footer__bottom { text-align: left; } }

@media (max-width: 900px) {
  .st { grid-template-columns: 1fr; }
  .st__aside { position: static; }
}
@media (max-width: 560px) {
  .st-top { gap: 12px; }
  .st-top__back { display: none; }
  .st-top .st-btn span { display: none; }
  .st-top .st-btn { padding: 0 6px; margin-left: auto; }
  .st__body > p:first-child { font-size: 18px; }
  .st__body h2 { font-size: 22px; }
}
