/* Общее для всех шаблонов сайтов: сброс, раскладка, кнопки, страницы новостей, подвал.
   Шаблон задаёт шрифты и скругления переменными (--font-head, --font-body, --radius, --radius-btn)
   в своём style.css, цвета — тема (theme.css). */
*,*::before,*::after{box-sizing:border-box}
:root{--font-head:system-ui,sans-serif;--font-body:system-ui,sans-serif;--radius:16px;--radius-btn:999px;--wrap:1160px}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 var(--font-body)}
a{color:var(--accent)}
img{max-width:100%;display:block}
h1,h2,h3{font-family:var(--font-head);margin:0;line-height:1.15}
p{margin:0}
.wrap{width:min(var(--wrap),100% - 48px);margin-inline:auto}
@media (max-width:560px){.wrap{width:calc(100% - 32px)}}
.muted{color:var(--muted)}
.date{font-size:13px;color:var(--muted)}
.ph{background:var(--soft)}
.section{padding:72px 0}
.section-title{font-size:clamp(30px,5vw,40px);margin-bottom:28px}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:28px}
.section-head .section-title{margin:0}
.section-head a{font-weight:600}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:var(--radius-btn);padding:11px 22px;font:600 15px/1.2 var(--font-body);text-decoration:none;text-align:center;border:1.5px solid transparent;cursor:pointer}
.btn-big{min-height:52px;padding:14px 26px;font-size:16px}
.btn-main{background:var(--accent);color:var(--on-accent)}
.btn-main:hover{color:var(--on-accent);opacity:.9}
.btn-line{border-color:var(--ink);color:var(--ink);background:transparent}
.btn-line:hover{color:var(--accent);border-color:var(--accent)}
.btn-soft{background:var(--surface);color:var(--ink)}
.buttons{display:flex;flex-wrap:wrap;gap:12px}
.pill{display:inline-block;border:1.5px solid currentColor;border-radius:999px;padding:8px 16px;text-decoration:none;font-weight:600;color:inherit}

/* Лента новостей и страница новости — одинаковые во всех шаблонах. */
.page-title{font-size:clamp(34px,6vw,48px);margin-bottom:32px}
.news-list{display:flex;flex-direction:column}
.news-row{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:22px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.news-row:has(img){grid-template-columns:200px minmax(0,1fr)}
.news-row img{width:200px;height:140px;object-fit:cover;border-radius:calc(var(--radius) * .7)}
@media (max-width:560px){.news-row:has(img){grid-template-columns:1fr}.news-row img{width:100%;height:200px}}
.news-row-body{display:flex;flex-direction:column;gap:6px}
.news-title{font-family:var(--font-head);font-size:21px;font-weight:600;line-height:1.25}
.news-row:hover .news-title{color:var(--accent)}
.article{max-width:760px;padding:40px 0 72px}
.back{display:inline-block;margin-bottom:24px;font-weight:600;text-decoration:none}
.article h1{font-size:clamp(30px,6vw,46px);margin:6px 0 24px}
.article-photo{width:100%;border-radius:var(--radius);margin:0 0 20px}
.article-text{font-size:18px;margin-bottom:24px}
.article-text p,.article-text ul,.article-text ol,.article-text blockquote{margin:0 0 1em}
.article-text h2,.article-text h3{margin:1.2em 0 .5em}
.article-text blockquote{border-left:3px solid var(--accent);padding-left:16px;color:var(--muted)}

.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:28px 0;font-size:13px;color:var(--muted)}
.foot a{color:var(--muted)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
