/**
 * artritu.net.ru — shared styles for WordPress theme and phpBB style:
 * design tokens, fonts, site header, site footer, buttons.
 */

@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/golos-text-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/golos-text-cyrillic-700.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/golos-text-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/golos-text-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--a-bg: #f5f8fb;
	--a-surface: #ffffff;
	--a-surface-2: #eef4fa;
	--a-text: #1d2530;
	--a-muted: #5d6875;
	--a-line: #dde5ee;
	--a-brand: #2f7fc4;
	--a-brand-ink: #1f5f99;
	--a-brand-soft: #e3effa;
	--a-accent: #f08a24;
	--a-accent-ink: #c96a0c;
	--a-dark: #1d2530;
	--a-radius: 14px;
	--a-shadow: 0 1px 2px rgba(20, 40, 70, .06), 0 6px 20px rgba(20, 40, 70, .06);
	--a-font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--a-wrap: 1180px;
}

.a-header, .a-header *, .a-header *::before, .a-header *::after,
.a-footer, .a-footer *, .a-btn { box-sizing: border-box; }

.a-wrap { max-width: var(--a-wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.a-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
	font: 600 16px/1.2 var(--a-font); text-decoration: none;
	background: var(--a-accent); color: #fff;
	transition: background-color .15s ease;
}
.a-btn:hover, .a-btn:focus-visible { background: var(--a-accent-ink); color: #fff; }
.a-btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.a-btn--ghost:hover, .a-btn--ghost:focus-visible { background: rgba(255, 255, 255, .12); color: inherit; }
.a-btn--brand { background: var(--a-brand); }
.a-btn--brand:hover, .a-btn--brand:focus-visible { background: var(--a-brand-ink); }

/* ---------- Site header ---------- */
.a-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--a-surface); border-bottom: 1px solid var(--a-line);
	font-family: var(--a-font);
}
.admin-bar .a-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .a-header { top: 0; position: relative; } }
.a-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.a-header__logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; line-height: 0; }
.a-header__logo img { width: auto; }
.a-header__mark { height: 60px; }
.a-header__text { height: 44px; }

.a-nav { margin-left: auto; }
.a-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.a-nav__item { position: relative; margin: 0; }
.a-nav__link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 10px;
	font: 500 16px/1.3 var(--a-font); color: var(--a-text); text-decoration: none;
	background: none; border: 0; cursor: pointer;
}
.a-nav__link:hover, .a-nav__link:focus-visible,
.a-nav__item--parent:hover > .a-nav__link { background: var(--a-surface-2); color: var(--a-brand-ink); }
.a-nav__item.is-current > .a-nav__link { background: var(--a-brand-soft); color: var(--a-brand-ink); }
.a-nav__link--forum, .a-nav__item.is-current > .a-nav__link--forum { background: var(--a-brand); color: #fff; }
.a-nav__link--forum:hover, .a-nav__link--forum:focus-visible { background: var(--a-brand-ink); color: #fff; }
.a-nav__caret { width: 10px; height: 10px; transition: transform .15s ease; }

.a-nav__sub {
	list-style: none; margin: 6px 0 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 280px;
	background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; box-shadow: var(--a-shadow);
	visibility: hidden; opacity: 0; transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.a-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.a-nav__item--parent:hover > .a-nav__sub,
.a-nav__item--parent:focus-within > .a-nav__sub,
.a-nav__item--parent.is-open > .a-nav__sub { visibility: visible; opacity: 1; transform: none; }
.a-nav__sub .a-nav__link { display: block; width: 100%; border-radius: 8px; padding: 8px 12px; }
.a-nav__sub .is-current > .a-nav__link { background: var(--a-brand-soft); }

.a-burger {
	display: none; margin-left: auto; padding: 10px; border: 0; background: none; cursor: pointer; border-radius: 10px;
	color: var(--a-text);
}
.a-burger:hover { background: var(--a-surface-2); }
.a-burger svg { display: block; }

@media (max-width: 980px) {
	.a-header__inner { min-height: 64px; }
	.a-header__logo { gap: 8px; }
	.a-header__mark { height: 44px; }
	.a-header__text { height: 34px; }
	.a-header__inner { gap: 12px; }
	.a-burger { display: block; }
	.a-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--a-surface); border-bottom: 1px solid var(--a-line); box-shadow: var(--a-shadow);
		max-height: calc(100vh - 64px); overflow-y: auto;
	}
	.a-header.is-menu-open .a-nav { display: block; }
	.a-nav__list { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 16px; }
	.a-nav__link { width: 100%; justify-content: space-between; padding: 12px 14px; }
	.a-nav__sub {
		position: static; visibility: visible; opacity: 1; transform: none; display: none;
		box-shadow: none; border: 0; margin: 0; padding: 0 0 4px 12px; min-width: 0;
	}
	.a-nav__item--parent.is-open > .a-nav__sub { display: block; }
	.a-nav__item--parent.is-open > .a-nav__link .a-nav__caret { transform: rotate(180deg); }
	.a-nav__link--forum { justify-content: center; margin-top: 8px; }
}

@media (max-width: 400px) {
	.a-header__inner { gap: 6px; }
	.a-burger { padding: 8px; margin-left: 0; }
	.a-support { padding: 7px; }
	.a-header__logo { gap: 6px; }
	.a-header__mark { height: 36px; }
	.a-header__text { height: 27px; }
}

/* ---------- Site footer ---------- */
.a-footer { background: var(--a-dark); color: #c3ccd6; padding: 48px 0 28px; font: 400 15px/1.6 var(--a-font); }
.a-footer a { color: #c3ccd6; text-decoration: none; }
.a-footer a:hover { color: #fff; }
.a-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.a-footer__title { color: #fff; font-weight: 600; font-size: 16px; margin: 0 0 12px; }
.a-footer__list { list-style: none; margin: 0; padding: 0; }
.a-footer__list li { margin: 0 0 6px; }
.a-footer__about { margin: 0; max-width: 36em; }
.a-footer__note { margin: 12px 0 0; font-size: 14px; opacity: .8; max-width: 36em; }
.a-footer__copy {
	border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px;
}
.a-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.a-footer__legal a { color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 780px) { .a-footer__cols { grid-template-columns: 1fr; gap: 24px; } }

.a-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	padding: 10px 16px; background: var(--a-dark); color: #fff; border-radius: 8px;
}
.a-skip:focus { left: 8px; }

/* ---------- "Support the project" ---------- */
.a-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a-support {
	display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
	padding: 8px 14px; border-radius: 999px; border: 1.5px solid #f3c7cf;
	font: 600 15px/1.2 var(--a-font); color: #d6405a; text-decoration: none; background: #fff;
	transition: background-color .15s ease, border-color .15s ease;
}
.a-support:hover, .a-support:focus-visible, .a-support.is-current { background: #fdecef; border-color: #e7798c; color: #c42f49; }
.a-support .a-heart { transition: transform .2s ease; }
.a-support:hover .a-heart { transform: scale(1.15); }
@media (prefers-reduced-motion: no-preference) {
	.a-support:hover .a-heart { animation: a-beat 1s ease-in-out infinite; }
}
@keyframes a-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.2); } 60% { transform: scale(1.05); } }
@media (max-width: 1180px) {
	.a-support { padding: 9px; }
	.a-support__label { display: none; }
}
@media (max-width: 980px) {
	.a-support { order: 2; margin-left: auto; }
	.a-burger { order: 3; margin-left: 4px; }
}

.a-footer__care { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.a-footer__support { display: inline-flex; align-items: center; gap: 6px; color: #f3a3b1 !important; font-weight: 600; }
.a-footer__support:hover { color: #fff !important; }
