/*
 * Medline.Uz — светлая тема блога статей (LS CMS 12)
 * Шрифты: Inter (интерфейс, заголовки), Source Serif 4 (текст статей).
 */

:root {
    --bg: #ffffff;
    --surface: #f6f7f9;
    --surface-2: #eef1f4;
    --line: #e5e8ec;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --accent: #0f766e;
    --accent-hover: #115e59;
    --accent-soft: #e7f5f2;
    --accent-ink: #0b5e58;
    --danger: #b42318;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
    --shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .08);
    --container: 1180px;
    --reading: 720px;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* ---------------------------------------------------------------- база */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.015em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: #c7ebe5; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--muted { background: var(--surface); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head__title { margin: 0; font-size: 26px; font-weight: 700; }
.section-head__link { font-size: 15px; font-weight: 500; white-space: nowrap; }

.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* -------------------------------------------------------------- кнопки */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 22px;
    border: 1px solid transparent; border-radius: 999px;
    font: 600 15px/1.2 var(--sans); color: #fff; background: var(--accent);
    text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { color: #fff; background: var(--accent-hover); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn--ghost:hover { color: var(--accent); background: #fff; border-color: var(--accent); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    font-size: 14px; font-weight: 500; line-height: 1.4;
    color: var(--accent-ink); background: var(--accent-soft);
    transition: background .15s, color .15s;
}
.chip:hover { color: #fff; background: var(--accent); }
.chip__count { font-weight: 400; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* -------------------------------------------------------------- шапка */

.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 32px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.logo__name span { color: var(--accent); }
.logo__tag { font-size: 12px; color: var(--muted); letter-spacing: .01em; }

.nav { margin-right: auto; }
.nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__link { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text); }
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link.is-active { color: var(--accent-ink); background: var(--accent-soft); }

.header-search { position: relative; width: 260px; }
.header-search__input {
    width: 100%; height: 40px; padding: 0 16px 0 40px;
    border: 1px solid var(--line); border-radius: 999px;
    font: 15px var(--sans); color: var(--ink); background: var(--surface);
    transition: border-color .15s, background .15s;
}
.header-search__input:focus { outline: none; border-color: var(--accent); background: #fff; }
.header-search__icon { position: absolute; left: 14px; top: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }

.header__burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.header__burger:hover { background: var(--surface); }
.header__burger-line, .header__burger-line::before, .header__burger-line::after {
    display: block; position: relative; width: 20px; height: 2px; margin: 0 auto;
    border-radius: 2px; background: currentColor; content: ""; transition: transform .2s, background .2s;
}
.header__burger-line::before { position: absolute; top: -6px; }
.header__burger-line::after { position: absolute; top: 6px; }
.header.is-open .header__burger-line { background: transparent; }
.header.is-open .header__burger-line::before { transform: translateY(6px) rotate(45deg); }
.header.is-open .header__burger-line::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- герой */

.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 64px;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(15, 118, 110, .10), transparent 60%),
        radial-gradient(700px 360px at -10% 110%, rgba(56, 189, 248, .08), transparent 60%),
        linear-gradient(180deg, #f4faf8 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 820px; }
.hero__title { margin: 0 0 16px; font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero__title span { color: var(--accent); }
.hero__lead { margin: 0 0 32px; font-size: 19px; color: var(--muted); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.hero__stats strong { color: var(--ink); font-weight: 700; }

.big-search { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow); max-width: 640px; }
.big-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15, 118, 110, .12), var(--shadow); }
.big-search__input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 0; background: none; font: 17px var(--sans); color: var(--ink); }
.big-search__input:focus { outline: none; }
.big-search .btn { min-height: 48px; padding: 0 28px; }

/* ---------------------------------------------------------- карточки */

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

.card {
    display: flex; flex-direction: column;
    padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { border-color: #d6dbe1; box-shadow: var(--shadow-hover); }

/* Карточка статьи (популярное, «Читайте также») */
.post-card { position: relative; gap: 14px; }
.post-card:hover { transform: translateY(-2px); }
.post-card__top { display: flex; gap: 16px; align-items: flex-start; }
.post-card__thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.post-card__title { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.35; }
.post-card__title a { color: var(--ink); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { margin: 0; font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--muted); }
.meta a { position: relative; z-index: 1; font-weight: 500; }
.meta__dot::before { content: "·"; margin-right: 12px; color: #94a3b8; }
.meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }

/* Карточка направления */
.topic-card { gap: 16px; }
.topic-card__head { display: flex; align-items: center; gap: 14px; }
.topic-card__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; font-size: 18px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); }
.topic-card__title { margin: 0; font-size: 18px; font-weight: 700; }
.topic-card__title a { color: var(--ink); }
.topic-card__title a:hover { color: var(--accent); }
.topic-card__count { font-size: 14px; color: var(--muted); }
.topic-card__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.topic-card__list li { border-bottom: 1px solid var(--line); }
.topic-card__list a { display: block; padding: 10px 0; font-size: 15px; line-height: 1.4; color: var(--text); }
.topic-card__list a:hover { color: var(--accent); }
.topic-card__more { margin-top: auto; font-size: 15px; font-weight: 600; }

/* Строка статьи в списках раздела и поиска */
.post-list { display: flex; flex-direction: column; }
.post-row { position: relative; display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-row:first-child { padding-top: 0; }
.post-row__thumb { width: 112px; height: 112px; flex-shrink: 0; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.post-row__body { flex: 1; min-width: 0; }
.post-row__title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.post-row__title a { color: var(--ink); }
.post-row__title a::after { content: ""; position: absolute; inset: 0; }
.post-row__title a:hover { color: var(--accent); }
.post-row__excerpt { margin: 0 0 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row mark { padding: 0 2px; border-radius: 3px; color: inherit; background: #fff3bf; }

/* Компактный список (боковая колонка, «Новые статьи») */
.mini-list { margin: 0; padding: 0; list-style: none; counter-reset: mini; }
.mini-list__item { position: relative; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-list__item:first-child { padding-top: 0; }
.mini-list__item:last-child { border-bottom: 0; }
.mini-list--numbered .mini-list__item::before {
    counter-increment: mini; content: counter(mini, decimal-leading-zero);
    flex-shrink: 0; width: 28px; font-size: 15px; font-weight: 700; color: #cbd5e1; line-height: 1.5;
}
.mini-list__title { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.mini-list__title::after { content: ""; position: absolute; inset: 0; }
.mini-list__title:hover { color: var(--accent); }

/* -------------------------------------------------------- макет разделов */

.page-head { padding: 40px 0 32px; background: linear-gradient(180deg, #f4faf8 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-head__title { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.025em; }
.page-head__lead { margin: 12px 0 0; font-size: 17px; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; }
.widget { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.widget__title { margin: 0 0 16px; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.widget--accent { border-color: transparent; background: var(--accent-soft); }
.widget--accent p { margin: 0 0 16px; font-size: 15px; color: var(--accent-ink); }

.topic-nav { margin: 0; padding: 0; list-style: none; max-height: 60vh; overflow-y: auto; scrollbar-width: thin; }
.topic-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14.5px; color: var(--text); }
.topic-nav a:hover { color: var(--ink); background: var(--surface); }
.topic-nav a.is-active { color: var(--accent-ink); font-weight: 600; background: var(--accent-soft); }
.topic-nav span { color: var(--muted); font-size: 13px; }

/* ----------------------------------------------------------- крошки */

.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.breadcrumbs__item + .breadcrumbs__item::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 8px; border-right: 1.5px solid #94a3b8; border-top: 1.5px solid #94a3b8; transform: rotate(45deg); }
.breadcrumbs__item a { color: var(--muted); }
.breadcrumbs__item a:hover { color: var(--accent); }

/* --------------------------------------------------------- пагинация */

.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 40px; }
.pagination__link {
    display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 15px; font-weight: 500; color: var(--text); background: #fff;
}
.pagination__link:hover { color: var(--accent); border-color: var(--accent); }
.pagination__link.is-active { color: #fff; border-color: var(--accent); background: var(--accent); }
.pagination__gap { padding: 0 6px; color: var(--muted); }

/* ------------------------------------------------------------ статья */

.article { padding: 40px 0 72px; }
.article__head { max-width: var(--reading); margin: 0 auto 32px; }
.article__title { margin: 12px 0 20px; font-size: 42px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.article__lead { display: flex; gap: 24px; align-items: flex-start; }
.article__figure { float: right; margin: 6px 0 16px 28px; }
.prose .article__figure img { display: block; width: 168px; height: auto; margin: 0; border-radius: 14px; }

.prose { max-width: var(--reading); margin: 0 auto; font-family: var(--serif); font-size: 19px; line-height: 1.75; color: #1e293b; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); margin: 1.8em 0 .6em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose img { display: block; margin: 1.6em auto; border-radius: 12px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(15, 118, 110, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); color: var(--text); font-style: italic; }
.prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); color: var(--ink); }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.prose--sans { font-family: var(--sans); font-size: 17px; line-height: 1.7; }

.notice {
    display: flex; gap: 14px; max-width: var(--reading); margin: 40px auto 0; padding: 18px 20px;
    border-radius: var(--radius-sm); background: var(--surface); font-size: 14.5px; color: var(--muted);
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.notice p { margin: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: var(--reading); margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.share__label { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.share__link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text); }
.share__link:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------- CTA и формы */

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 48px; border-radius: 24px; background: linear-gradient(120deg, #0f766e 0%, #0e7490 100%); color: #d6f3ee; }
.cta__title { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #fff; }
.cta p { margin: 0; max-width: 560px; }
.cta .btn { flex-shrink: 0; color: var(--accent-ink); background: #fff; }
.cta .btn:hover { background: #e7f5f2; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }

.feedback { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.feedback__title { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.feedback__text { margin-bottom: 16px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form__input {
    width: 100%; min-height: 46px; padding: 10px 14px;
    border: 1px solid #d5dae1; border-radius: var(--radius-sm);
    font: 16px var(--sans); color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.form__input.is-invalid { border-color: var(--danger); }
.form__textarea { min-height: 160px; resize: vertical; }
.form__hint { font-size: 13px; color: var(--muted); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.form__check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.form__message { font-size: 15px; color: var(--accent-ink); }
.form__message:empty { display: none; }
.form__message.is-error { color: var(--danger); }
.form .btn { align-self: flex-start; }

/* --------------------------------------------------------------- 404 */

.empty { max-width: 560px; margin: 0 auto; padding: 72px 0; text-align: center; }
.empty__code { margin: 0; font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--accent-soft); -webkit-text-stroke: 2px var(--accent); }
.empty__title { margin: 16px 0 8px; font-size: 30px; }
.empty p { color: var(--muted); }
.empty .big-search { margin: 28px auto 20px; }

/* ------------------------------------------------------------- подвал */

.footer { margin-top: 24px; padding: 56px 0 32px; background: var(--surface); border-top: 1px solid var(--line); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer__about p { margin: 16px 0 0; color: var(--muted); max-width: 360px; }
.footer__title { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.footer__topics { columns: 3; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.footer__topics li { break-inside: avoid; padding: 3px 0; }
.footer__topics a, .footer__links a { color: var(--text); }
.footer__topics a:hover, .footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer__bottom p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 40;
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(8px);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--accent); }

/* ---------------------------------------------------------- адаптив */

@media (max-width: 1080px) {
    .header-search { width: 200px; }
    .layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}

@media (max-width: 960px) {
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout, .split { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; }
    .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .footer__topics { columns: 2; }
    .cta { flex-direction: column; align-items: flex-start; padding: 32px; }
}

@media (max-width: 820px) {
    .header__inner { flex-wrap: wrap; gap: 0 16px; min-height: 60px; }
    .header__burger { display: block; }
    .nav, .header-search { display: none; width: 100%; }
    .header.is-open .nav, .header.is-open .header-search { display: block; }
    .header.is-open .nav { order: 3; padding: 8px 0; }
    .header.is-open .header-search { order: 4; padding-bottom: 16px; }
    .nav__list { flex-direction: column; }
    .nav__link { padding: 12px 14px; font-size: 16px; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .hero { padding: 48px 0 40px; }
    .hero__title { font-size: 34px; }
    .hero__lead { font-size: 17px; }
    .big-search { border-radius: 20px; flex-direction: column; }
    .big-search .btn { width: 100%; }
    .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
    .page-head__title { font-size: 30px; }
    .article__title { font-size: 30px; }
    .article__figure { margin-left: 16px; }
    .prose .article__figure img { width: 112px; }
    .prose { font-size: 18px; }
    .post-row { gap: 14px; }
    .post-row__thumb { width: 76px; height: 76px; border-radius: 12px; }
    .post-row__title { font-size: 17px; }
    .post-row__excerpt { -webkit-line-clamp: 3; font-size: 15px; }
    .feedback { padding: 24px 20px; }
    .footer__topics { columns: 1; }
    .cta__title { font-size: 22px; }
    .chips .chip:nth-child(n+7):not(:last-child) { display: none; }
}

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

/* medline: форма «Добавить статью» */
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form__textarea--tall { min-height: 320px; }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
