:root {
    --bg: #f6f8f9;
    --surface: #ffffff;
    --surface-soft: #eef3f5;
    --surface-strong: #e4ebee;
    --text: #10171c;
    --muted: #66727b;
    --line: #dce4e8;
    --line-strong: #c7d2d8;
    --accent: #0ba99d;
    --accent-strong: #087e76;
    --accent-soft: #dff8f5;
    --danger: #9d3a3a;
    --success: #267552;
    --header: rgba(246,248,249,.84);
    --overlay: rgba(246,248,249,.95);
    --shadow: 0 24px 70px rgba(24,39,51,.09);
    --shadow-small: 0 12px 34px rgba(24,39,51,.08);
    --radius: 26px;
    --radius-small: 16px;
    --container: 1300px;
    --ease: cubic-bezier(.2,.72,.22,1);
}

html[data-theme="dark"] {
    --bg: #0b1014;
    --surface: #11181e;
    --surface-soft: #151e25;
    --surface-strong: #1c2730;
    --text: #f4f7f8;
    --muted: #9eabb4;
    --line: #26323a;
    --line-strong: #35434d;
    --accent: #20d9ca;
    --accent-strong: #69eee3;
    --accent-soft: #103632;
    --danger: #f18d8d;
    --success: #72d4a6;
    --header: rgba(11,16,20,.84);
    --overlay: rgba(11,16,20,.95);
    --shadow: 0 24px 80px rgba(0,0,0,.28);
    --shadow-small: 0 12px 38px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color .42s var(--ease), color .42s var(--ease); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.container--article { width: min(calc(100% - 48px), 920px); }
.container--article-wide { width: min(calc(100% - 48px), 1180px); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 16px; }
h1,h2,h3,h4 { margin-top: 0; color: var(--text); line-height: 1.06; letter-spacing: -.045em; }
p { margin-top: 0; }
.eyebrow { margin: 0 0 14px; color: var(--accent-strong); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); font-weight: 780; }
.text-link::after { content: "↗"; transition: transform .24s var(--ease); }
.text-link:hover::after { transform: translate(3px,-3px); }

.site-header { position: sticky; top: 0; z-index: 120; border-bottom: 1px solid transparent; background: var(--header); backdrop-filter: blur(18px) saturate(145%); transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .42s var(--ease); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 28px rgba(24,39,51,.04); }
.site-header__inner { min-height: 82px; display: flex; align-items: center; gap: 34px; }
.site-branding { flex: 0 0 auto; }
.site-branding__logo, .site-footer__brand { display: inline-flex; align-items: center; }
.site-branding__logo img { width: 222px; height: auto; transition: opacity .2s var(--ease); }
.site-footer__brand img { width: 230px; height: auto; }
.brand-logo--dark { display: none; }
html[data-theme="dark"] .brand-logo--light { display: none; }
html[data-theme="dark"] .brand-logo--dark { display: block; }
.main-nav { margin-left: auto; }
.main-nav__list, .footer-menu { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.main-nav__list a { position: relative; color: var(--muted); font-size: 14px; font-weight: 720; transition: color .22s var(--ease); }
.main-nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; border-radius: 10px; background: var(--accent); transition: right .26s var(--ease); }
.main-nav__list a:hover { color: var(--text); }
.main-nav__list a:hover::after { right: 0; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .menu-toggle { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; transition: transform .24s var(--ease), border-color .24s var(--ease), background-color .42s var(--ease); }
.icon-button:hover, .menu-toggle:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: block; }
.menu-toggle { display: none; gap: 4px; align-content: center; }
.menu-toggle span { width: 18px; height: 2px; border-radius: 4px; background: currentColor; transition: transform .28s var(--ease), opacity .28s var(--ease); }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero--search { position: relative; overflow: hidden; padding: 118px 0 112px; }
.hero--search::before { content: ""; position: absolute; width: 620px; height: 620px; left: 50%; top: -340px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%); pointer-events: none; }
.hero__content--center { position: relative; text-align: center; max-width: 1050px; }
.hero h1 { max-width: 1000px; margin: 0 auto; font-size: clamp(54px,7vw,98px); letter-spacing: -.075em; line-height: .94; }
.hero__text { max-width: 760px; margin: 28px auto 0; color: var(--muted); font-size: clamp(18px,2vw,21px); line-height: 1.55; }
.hero-search { position: relative; max-width: 820px; margin: 42px auto 0; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-form input { width: 100%; height: 68px; padding: 0 22px; border: 1px solid var(--line); border-radius: 19px; outline: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: border-color .24s var(--ease), box-shadow .24s var(--ease), background-color .42s var(--ease); }
.search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow); }
.search-form button { min-width: 112px; border: 0; border-radius: 18px; background: var(--text); color: var(--bg); font-weight: 820; cursor: pointer; transition: transform .24s var(--ease), opacity .24s var(--ease), background-color .42s var(--ease); }
.search-form button:hover { transform: translateY(-2px); opacity: .9; }
.topic-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.topic-chips a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 84%, transparent); color: var(--muted); font-size: 12px; transition: transform .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.topic-chips a:hover { transform: translateY(-2px); color: var(--text); border-color: var(--accent); }
.live-search-results { position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; right: 0; max-height: 430px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease), background-color .42s var(--ease); text-align: left; }
.live-search-results.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.live-search-item { display: grid; gap: 4px; padding: 13px 14px; border-radius: 13px; transition: background-color .18s var(--ease); }
.live-search-item:hover { background: var(--surface-soft); }
.live-search-item__meta, .live-search-item span:last-child, .live-search-empty, .live-search-loading { color: var(--muted); font-size: 12px; }
.live-search-empty, .live-search-loading { padding: 16px; }

.section { padding: 96px 0; }
.section--soft { background: var(--surface-soft); transition: background-color .42s var(--ease); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-heading h2 { margin: 0; font-size: clamp(38px,5vw,62px); }
.article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease), background-color .42s var(--ease); }
.article-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-small); }
.article-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-soft); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.025); }
.article-card__body { padding: 22px; }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: 11px; }
.article-card__meta span + span::before { content: "·"; margin-right: 12px; color: var(--line-strong); }
.article-card h2 { margin: 12px 0 10px; font-size: 24px; line-height: 1.13; }
.article-card h2 a { transition: color .2s var(--ease); }
.article-card h2 a:hover { color: var(--accent-strong); }
.article-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.topic-grid--all { grid-template-columns: repeat(3,minmax(0,1fr)); }
.topic-card { position: relative; min-height: 220px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease), background-color .42s var(--ease); }
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-small); border-color: var(--accent); }
.topic-card__count { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 850; }
.topic-card h2, .topic-card h3 { margin: 24px 0 9px; font-size: 25px; }
.topic-card p { max-width: 86%; color: var(--muted); font-size: 14px; }
.topic-card__arrow { position: absolute; right: 24px; bottom: 22px; font-size: 20px; color: var(--accent-strong); transition: transform .24s var(--ease); }
.topic-card:hover .topic-card__arrow { transform: translate(3px,-3px); }

.page-shell { min-height: 70vh; padding: 52px 0 112px; }
.breadcrumbs { margin-bottom: 44px; overflow-x: auto; }
.breadcrumbs ol { display: flex; gap: 9px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumbs li + li::before { content: "/"; margin-right: 9px; color: var(--line-strong); }
.archive-header { max-width: 940px; margin-bottom: 34px; }
.archive-header h1 { margin: 0; font-size: clamp(48px,6vw,78px); }
.archive-description, .single-article__lead { max-width: 760px; color: var(--muted); font-size: 19px; }
.archive-description { margin-top: 18px; }
.archive-search { position: relative; max-width: 720px; margin: 0 0 48px; }
.search-shell--compact .search-form input { height: 58px; box-shadow: none; }
.search-shell--compact .search-form button { border-radius: 15px; }

.page-shell--article { padding-top: 40px; }
.single-article__header { max-width: 990px; margin: 12px auto 44px; }
.article-kicker { display: inline-flex; margin-bottom: 18px; color: var(--accent-strong); font-size: 13px; font-weight: 820; }
.single-article__header h1 { margin: 0; font-size: clamp(48px,6.5vw,86px); letter-spacing: -.06em; }
.single-article__lead { margin: 24px 0 0; line-height: 1.55; }
.single-article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.single-article__cover { margin: 0 0 54px; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-small); }
.single-article__cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0,820px); justify-content: center; gap: 54px; align-items: start; }
.article-layout__side { min-width: 0; }
.article-toc { position: sticky; top: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 30px rgba(24,39,51,.04); transition: background-color .42s var(--ease), border-color .42s var(--ease); }
.article-toc__title { margin-bottom: 12px; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-toc ol { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.article-toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 12px; line-height: 1.35; transition: color .2s var(--ease), transform .2s var(--ease); }
.article-toc a:hover, .article-toc a.is-active { color: var(--accent-strong); transform: translateX(3px); }
.article-toc__sub { padding-left: 12px; }
.prose { min-width: 0; color: color-mix(in srgb, var(--text) 90%, var(--muted)); font-size: 18px; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 118px; line-height: 1.08; letter-spacing: -.045em; margin-top: 2.2em; margin-bottom: .72em; }
.prose h2 { font-size: clamp(31px,4vw,46px); }
.prose h3 { font-size: 28px; }
.prose p, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1.35em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .42em; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 20px; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; text-align: center; }
.prose blockquote { margin: 2em 0; padding: 26px 28px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 18px 18px 0; box-shadow: var(--shadow-small); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; border-radius: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 13px 15px; text-align: left; min-width: 145px; }
.prose th { background: var(--surface-soft); }
.tag-list { max-width: 820px; margin: 42px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.post-navigation-custom { max-width: 1070px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.post-navigation-custom div:last-child { text-align: right; }
.comments-area { max-width: 820px; margin: 72px auto 0; padding-top: 34px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 22px; }

.search-panel { position: fixed; inset: 0; z-index: 500; background: var(--overlay); backdrop-filter: blur(26px) saturate(145%); opacity: 0; transition: opacity .3s var(--ease); }
.search-panel.is-open { opacity: 1; }
.search-panel__inner { width: min(calc(100% - 40px),900px); min-height: 100%; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; }
.search-panel__inner h2 { margin: 0 0 30px; font-size: clamp(52px,8vw,104px); letter-spacing: -.07em; line-height: .9; }
.search-panel__close { position: absolute; right: 28px; top: 20px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); font-size: 30px; cursor: pointer; }
.search-shell--overlay { position: relative; }
.search-shell--overlay .search-form input { height: 72px; }
body.search-open { overflow: hidden; }

.auth-page { min-height: 74vh; padding: 84px 0 110px; display: grid; align-items: center; }
.auth-page__container { display: grid; place-items: center; }
.auth-card { width: min(100%,560px); padding: 42px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card__brand { display: inline-flex; margin-bottom: 24px; }
.auth-card h1 { margin: 0; font-size: clamp(44px,7vw,66px); }
.auth-card__lead { margin: 16px 0 28px; color: var(--muted); }
.auth-card__foot { margin: 22px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-card__foot a, .check-row a { color: var(--accent-strong); }
.site-form { display: grid; gap: 17px; }
.site-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 720; }
.site-form input, .site-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); outline: 0; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .42s var(--ease); }
.site-form input { height: 52px; padding: 0 14px; }
.site-form textarea { padding: 14px; resize: vertical; }
.site-form input:focus, .site-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.site-form small { font-weight: 500; color: var(--muted); }
.site-form .check-row { display: flex; align-items: flex-start; gap: 9px; }
.check-row input { width: 17px; height: 17px; margin-top: 2px; }
.form-message { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-size: 13px; }
.form-message--error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.form-message--success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--success); }
.honeypot { position: absolute !important; left: -99999px !important; }

.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.8fr); gap: 70px; align-items: start; }
.contact-intro { max-width: 650px; padding-top: 30px; }
.contact-intro h1 { margin: 0; font-size: clamp(54px,7vw,84px); }
.contact-intro p { margin: 22px 0; color: var(--muted); font-size: 18px; }
.contact-email { display: inline-flex; color: var(--accent-strong); font-size: clamp(21px,3vw,30px); font-weight: 820; }
.contact-card { padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-small); }
.legal-page .single-article__header { margin-left: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--text); font-weight: 800; cursor: pointer; transition: transform .24s var(--ease), background-color .24s var(--ease), border-color .24s var(--ease); }
.button:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.button--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button--ghost { background: transparent; }
.button--wide { width: 100%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }

.cookie-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 650; opacity: 0; transform: translateY(18px); transition: opacity .34s var(--ease), transform .34s var(--ease); }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__inner { width: min(100%,1040px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.cookie-banner strong { display: block; margin-bottom: 4px; }
.cookie-banner p { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cookie-banner p a { color: var(--accent-strong); }
.cookie-banner__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-banner__actions .button { min-height: 42px; font-size: 12px; }

.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); transition: background-color .42s var(--ease); }
.site-footer__grid { display: grid; grid-template-columns: 1.45fr .75fr .75fr; gap: 72px; padding: 70px 0 58px; }
.site-footer__lead { max-width: 480px; color: var(--muted); margin: 18px 0 0; }
.site-footer__title { margin: 0 0 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-menu { flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-menu a { color: var(--muted); font-size: 14px; transition: color .18s var(--ease), transform .18s var(--ease); display: inline-block; }
.footer-menu a:hover { color: var(--text); transform: translateX(3px); }
.site-footer__bottom { min-height: 86px; padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 26px; color: var(--muted); font-size: 12px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-developer { display: inline-flex; align-items: center; gap: 14px; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.footer-developer:hover { transform: translateY(-2px); color: var(--text); }
.footer-developer__text { display: grid; line-height: 1.12; text-align: right; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.footer-developer__logo { width: 104px; height: auto; }
html[data-theme="dark"] .footer-developer__logo { filter: brightness(0) invert(1); opacity: .9; }

.error-page { min-height: 70vh; display: grid; place-items: center; }
.error-page__inner { text-align: center; max-width: 850px; }
.error-page__inner h1 { font-size: clamp(46px,7vw,82px); }
.error-page__inner > p:last-of-type { color: var(--muted); }
.error-page__code { color: var(--accent-strong); font-size: 14px; letter-spacing: .3em; }
.empty-state { grid-column: 1 / -1; padding: 60px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state--wide { min-height: 230px; display: grid; align-content: center; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }

.motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .64s var(--ease), transform .64s var(--ease), background-color .34s var(--ease), border-color .34s var(--ease), box-shadow .34s var(--ease); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.article-grid .reveal:nth-child(2), .topic-grid .reveal:nth-child(2) { transition-delay: .055s; }
.article-grid .reveal:nth-child(3), .topic-grid .reveal:nth-child(3) { transition-delay: .11s; }
.article-grid .reveal:nth-child(4), .topic-grid .reveal:nth-child(4) { transition-delay: .165s; }

@media (max-width: 1080px) {
    .main-nav { position: fixed; inset: 82px 0 auto 0; padding: 26px 24px 32px; background: var(--surface); border-bottom: 1px solid var(--line); transform: translateY(-130%); opacity: 0; pointer-events: none; box-shadow: var(--shadow-small); transition: transform .36s var(--ease), opacity .3s var(--ease), background-color .42s var(--ease); }
    .menu-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
    .main-nav__list { width: min(100%,var(--container)); margin-inline: auto; flex-direction: column; align-items: flex-start; gap: 14px; }
    .main-nav__list a { font-size: 22px; }
    .menu-toggle { display: grid; }
    .article-grid, .topic-grid, .topic-grid--all { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .article-layout { grid-template-columns: 1fr; gap: 28px; max-width: 820px; margin-inline: auto; }
    .article-toc { position: static; }
    .contact-layout { grid-template-columns: 1fr; gap: 38px; }
    .contact-card { max-width: 720px; }
    .site-footer__grid { grid-template-columns: 1.2fr .8fr; }
    .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .container, .container--article, .container--article-wide { width: min(calc(100% - 28px),var(--container)); }
    .site-header__inner { min-height: 70px; gap: 10px; }
    .site-branding__logo img { width: 176px; }
    .main-nav { inset-block-start: 70px; }
    .account-button { display: none; }
    .hero--search { padding: 74px 0 78px; }
    .hero h1 { font-size: clamp(46px,14vw,66px); }
    .hero__text { margin-top: 20px; font-size: 17px; }
    .hero-search { margin-top: 30px; }
    .search-form { grid-template-columns: 1fr; }
    .search-form input { height: 60px; border-radius: 16px; }
    .search-form button { min-height: 54px; border-radius: 16px; }
    .live-search-results { top: calc(100% + 8px); }
    .section { padding: 72px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
    .article-grid, .topic-grid, .topic-grid--all { grid-template-columns: 1fr; }
    .topic-card { min-height: 190px; }
    .single-article__header h1 { font-size: clamp(43px,12vw,62px); }
    .single-article__cover { margin-bottom: 34px; border-radius: 22px; }
    .article-toc { padding: 18px; }
    .prose { font-size: 17px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 46px; }
    .site-footer__grid > div:first-child { grid-column: auto; }
    .site-footer__bottom { align-items: flex-start; flex-direction: column; }
    .footer-developer__text { text-align: left; }
    .search-panel__close { right: 16px; top: 14px; }
    .post-navigation-custom { grid-template-columns: 1fr; }
    .post-navigation-custom div:last-child { text-align: left; }
    .auth-page { padding: 48px 0 80px; }
    .auth-card { padding: 26px 20px; border-radius: 22px; }
    .contact-card { padding: 24px 18px; }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
    .cookie-banner__inner { align-items: stretch; flex-direction: column; padding: 18px; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .button { flex: 1; }
}
