/*
Theme Name: Атмосфера
Description: Собственная классическая тема: общие компоненты и штатный блочный редактор WordPress.
Author: Проект «Атмосфера»
Version: 0.7.26
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atmosfera
*/
:root { --atmo-gutter: clamp(1.375rem, 3vw, 2rem); --atmo-header-height: 68px; --atmo-admin-offset: 0px; --atmo-announcement-height: 0px; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--atmo-header-height) + var(--atmo-admin-offset) + 20px); }
body { margin: 0; color: #18262d; background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 1.125rem; line-height: 1.75; }
.site-shell { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: calc(var(--atmo-announcement-height) + env(safe-area-inset-bottom)); }
.atmo-wrap, .site-main { width: min(1160px, calc(100% - 2 * var(--atmo-gutter))); margin-inline: auto; }
a { color: #126990; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #126990; outline-offset: 4px; }
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; max-width: 100%; }
button, input[type="submit"] { min-height: 44px; border: 1px solid #126990; border-radius: 6px; padding: .5em 1em; background: #35a8e0; color: #081116; cursor: pointer; }
button:disabled { cursor: default; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select { min-height: 44px; padding: .45em .65em; border: 1px solid #52646d; border-radius: 4px; font-size: 1rem; background: #fff; color: #18262d; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
h1 { margin-top: 0; font-size: clamp(1.5rem, 5.7vw, 3rem); word-break: normal; overflow-wrap: normal; hyphens: none; text-wrap: balance; letter-spacing: -.025em; }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h3 { font-size: 1.35rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; clip-path: none; background: #fff; color: #18262d; }
.site-header { position: sticky; top: var(--atmo-admin-offset); z-index: 100; background: #081116; color: #f7fbfc; border-bottom: 1px solid #263b45; }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; padding-block: 8px; }
.site-header a, .site-footer a { color: #f7fbfc; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #65c6f3; }
.site-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #f7fbfc; min-width: 0; max-width: 100%; }
.site-header .site-brand { flex: 0 1 auto; max-width: 320px; }
.site-brand__mark { display: block; width: 43px; height: 23px; flex: none; object-fit: contain; }
.site-brand__name { min-width: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: .07em; white-space: normal; overflow-wrap: anywhere; }
.site-navigation { flex: 1 1 auto; min-width: 0; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; list-style: none; padding: 0; margin: 0; font-size: .875rem; }
.menu > li { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; line-height: 1.45; }
.menu a:hover { color: #65c6f3; text-decoration: underline; }
.menu .current-menu-item > a, .menu .current-menu-ancestor > a { color: #65c6f3; }
.menu .sub-menu { width: 100%; list-style: none; margin: 0; padding: .5rem .9rem; }
.has-enhanced-nav .menu { flex-wrap: nowrap; }
.has-enhanced-nav .menu > li { flex-wrap: nowrap; }
.has-enhanced-nav .menu > li > a { white-space: nowrap; }
.has-enhanced-nav .sub-menu { position: absolute; top: 100%; left: -14px; min-width: 240px; width: max-content; max-width: 340px; padding: .65rem .9rem; background: #10212a; border: 1px solid #405560; border-radius: 6px; box-shadow: 0 12px 32px #0003; }
.sub-menu a { padding: .35rem .25rem; overflow-wrap: anywhere; }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; flex: none; padding: 0; border: 0; background: none; color: #cedde4; }
.submenu-toggle span { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid #587a8b; border-radius: 5px; font-size: 1.125rem; line-height: 1; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex: none; gap: 2px; margin-left: auto; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; flex: none; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 8px; color: inherit; }
.icon-button svg { width: 22px; height: 22px; }
.search-form { display: flex; align-items: stretch; width: 100%; max-width: 480px; border: 1px solid #52646d; border-radius: 8px; }
.search-form input[type="search"][name="s"] { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; color: inherit; padding-left: .8rem; }
.search-form input[type="search"]:focus-visible { outline: 0; }
.search-form .icon-button { min-width: 44px; color: inherit; }
.search-form:focus-within { outline: 2px solid #65c6f3; outline-offset: 2px; }
.header-actions .search-form { width: clamp(230px, 23vw, 290px); border-color: #607c8c; background: #132730; box-shadow: inset 0 1px 3px #00000026; }
.header-actions .search-form input::placeholder { color: #bed0d9; opacity: 1; }
.site-header .atmo-channel:hover, .site-footer .atmo-channel:hover { background: #ffffff17; }
.menu-toggle { color: #f7fbfc; }
.site-main { flex: 1; padding-block: clamp(2rem, 5vw, 4rem); container-type: inline-size; }
.entry, .collection-header, .empty-content, .comments-area { max-width: 68ch; margin-inline: auto; min-width: 0; }
.entry + .entry { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #cbd5da; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-summary, .entry-content { overflow-wrap: anywhere; }
.entry-content { display: flow-root; font-size: 1.125rem; line-height: 1.75; }
.entry-content > * { margin-block: 0 1.5rem; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content > .alignwide, .entry-content > .alignfull { width: 100cqw; max-width: none; margin-inline-start: calc((100% - 100cqw) / 2); }
.atmo-content-card.has-media { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1.5rem; }
.atmo-content-card .entry-thumbnail { margin: 0; }
.atmo-content-card .entry-thumbnail img { display: block; width: 132px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.atmo-content-card h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.atmo-content-card .entry-summary { max-width: 70ch; color: #52646d; font-size: 1rem; line-height: 1.65; }
.atmo-content-card .entry-summary p { margin-block: 0 .8rem; }
.card-content { min-width: 0; }
pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: #f4f7f8; }
.pagination, .page-links { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .25rem .65rem; border: 1px solid #52646d; border-radius: 5px; }
.page-numbers.current { background: #f4f7f8; font-weight: 700; }
.comments-area { margin-top: 3rem; }
.comment-list { padding-left: 1.25rem; }
.comment-body { margin-bottom: 2rem; }
.comment-author .avatar { float: left; margin-right: .75rem; }
.comment-metadata { font-size: .875rem; }
.comment-form textarea { display: block; width: 100%; }
.comment-form label { display: block; }
.comment-form-cookies-consent label { display: inline; }
.site-footer { background: #081116; color: #cedde4; padding-block: 44px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 2rem; }
.site-footer p { font-size: .875rem; line-height: 1.7; color: #afc3cd; overflow-wrap: anywhere; }
.site-footer h2 { font-size: .875rem; line-height: 1.5; margin-block: 0 1rem; letter-spacing: .07em; text-transform: uppercase; color: #f7fbfc; }
.site-footer .atmo-button { margin-bottom: .8rem; color: #081116; }
.footer-menu { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.footer-menu a { display: inline-block; min-height: 36px; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #334954; margin-top: 2rem; padding-top: 1.1rem; font-size: .8125rem; color: #afc3cd; }
.reading-track { position: fixed; top: calc(var(--atmo-header-height) + var(--atmo-admin-offset)); left: 0; right: 0; height: 3px; z-index: 101; background: #d8e5eb; opacity: .4; pointer-events: none; }
.reading-track span { display: block; height: 100%; width: 0; background: #35a8e0; }
.scroll-controls, .bottom-announcement { position: fixed; z-index: 80; opacity: .4; transition: opacity .18s, box-shadow .18s; }
.scroll-controls { right: max(10px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 4px; padding: 6px; background: #eaf2f7; border: 1px solid #fff; border-radius: 16px; box-shadow: 0 5px 18px #0a2d3d1a; }
.scroll-controls .icon-button { border: 1px solid #a4bbc8; border-radius: 11px; background: linear-gradient(155deg, #fff 7%, #f0f6fa 55%, #dce9f1); color: #24495e; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #b3c8d4, 0 5px 9px #0c2b3c14; }
.scroll-controls .icon-button:hover:enabled { transform: translateY(-1px); }
.scroll-controls .icon-button:active:enabled { transform: translateY(1px); }
.scroll-controls .icon-button:disabled { opacity: .52; }
.scroll-percent { font-size: .75rem; line-height: 1.5; font-weight: 700; font-variant-numeric: tabular-nums; color: #365667; }
.bottom-announcement { left: max(18px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); width: fit-content; max-width: min(560px, calc(100% - max(18px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)) - 68px)); min-height: 50px; max-height: min(320px, 45dvh); overflow-y: auto; padding: .8rem 3.25rem .8rem 1rem; background: #f8fcff; color: #18262d; border: 1px solid #abc3d2; border-radius: 12px; box-shadow: 0 5px 18px #0a2d3d1a; overflow-wrap: anywhere; }
.announcement-close { position: absolute; right: 3px; top: 3px; color: #314651; }
.announcement-close:hover { background: #dfebf3; }
.announcement-content { min-width: 0; max-width: 100%; }
.announcement-content > :first-child, .announcement-content h2:first-child { margin-top: 0; }
.announcement-content > :last-child { margin-bottom: 0; }
.announcement-content h1, .announcement-content h2, .announcement-content h3 { font-size: 1.0625rem; line-height: 1.4; }
.announcement-content p { font-size: .875rem; line-height: 1.55; margin-block: .5rem; }
.bottom-announcement:focus-within, .scroll-controls:focus-within, .bottom-announcement.is-touch-active, .scroll-controls.is-touch-active { opacity: 1; }
.atmo-touch .bottom-announcement:not(.is-touch-active), .atmo-touch .scroll-controls:not(.is-touch-active) { opacity: .4; }
@media (hover: hover) { .bottom-announcement:hover, .scroll-controls:hover { opacity: 1; } }
@media (max-width: 1160px) {
    .has-enhanced-nav .site-navigation { display: none; }
    .has-enhanced-nav .site-navigation.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-height: calc(85dvh - var(--atmo-header-height) - var(--atmo-admin-offset)); overflow-y: auto; padding: 1rem var(--atmo-gutter); background: #10212a; border-bottom: 1px solid #405560; }
    .has-enhanced-nav .menu { display: block; }
    .has-enhanced-nav .menu > li { display: flex; flex-wrap: wrap; border-bottom: 1px solid #263b45; }
    .has-enhanced-nav .menu > li > a { flex: 1; white-space: normal; overflow-wrap: anywhere; padding-block: .45rem; }
    .has-enhanced-nav .sub-menu { position: static; width: 100%; min-width: 0; max-width: none; border: 0; box-shadow: none; padding: 0 1rem .5rem; }
    .site-header__inner { gap: 10px; }
}
.nav-compact.has-enhanced-nav .site-navigation { display: none; }
.nav-compact.has-enhanced-nav .site-navigation.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-height: calc(85dvh - var(--atmo-header-height) - var(--atmo-admin-offset)); overflow-y: auto; padding: 1rem var(--atmo-gutter); background: #10212a; border-bottom: 1px solid #405560; }
.nav-compact.has-enhanced-nav .menu { display: block; }
.nav-compact.has-enhanced-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid #263b45; }
.nav-compact.has-enhanced-nav .menu > li > a { flex: 1; white-space: normal; overflow-wrap: anywhere; }
.nav-compact.has-enhanced-nav .sub-menu { position: static; width: 100%; min-width: 0; max-width: none; border: 0; box-shadow: none; padding: 0 1rem .5rem; }
@media (max-width: 720px) {
    .site-header__inner { min-height: 60px; gap: 6px; flex-wrap: wrap; }
    .site-header .site-brand { max-width: 100%; }
    .site-brand__name { font-size: .875rem; }
    .site-brand__mark { width: 34px; height: 20px; }
    .header-actions { flex: 1 1 auto; min-width: min(100%, 200px); }
    .header-actions .search-form { width: 100%; min-width: 60px; max-width: 300px; }
    .header-actions .atmo-channels { flex-wrap: nowrap; gap: 0; }
    .header-actions .atmo-channel, .header-actions .icon-button { width: 44px; min-width: 44px; }
    .header-actions .atmo-channel-icon { width: 28px; height: 28px; }
    .header-actions .search-form input[type="search"] { padding-left: .45rem; }
    .atmo-content-card.has-media { grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; }
    .atmo-content-card .entry-thumbnail img { width: 76px; }
    .atmo-content-card h2 { font-size: 1.125rem; }
    .atmo-content-card .entry-summary { font-size: .9375rem; }
    .bottom-announcement { left: max(10px, env(safe-area-inset-left)); max-width: calc(100% - max(10px, env(safe-area-inset-left)) - max(7px, env(safe-area-inset-right)) - 65px); padding: .75rem 3.25rem .75rem .85rem; max-height: 34dvh; }
    .bottom-announcement h2 { font-size: .875rem; }
    .scroll-controls { right: max(7px, env(safe-area-inset-right)); padding: 5px; }
}
@media (max-width: 460px) {
    .site-header .site-brand__mark { width: 39px; height: 24px; }
    .header-actions { gap: 0; }
}
@media (max-width: 600px) { .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-controls, .bottom-announcement { transition: none; } }
@media print { .site-header, .site-footer, .scroll-controls, .bottom-announcement, .reading-track, .skip-link { display: none !important; } .site-shell { padding-bottom: 0; } .site-main { width: 100%; padding: 0; } }

.footer-author {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    text-decoration: none;
}
.footer-author__photo {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.footer-author__text { display: grid; min-width: 0; line-height: 1.4; }
.footer-author__name { font-size: 1rem; font-weight: 600; }
.footer-author:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (min-width: 1024px) {
    #site-header #site-navigation .atmo-catalog-row { width: 100%; }
    #site-header #site-navigation .atmo-catalog-categories {
        flex-wrap: nowrap;
        gap: clamp(8px, 1.2vw, 20px);
    }
    #site-header #site-navigation .atmo-catalog-categories > :is(a, .atmo-category) {
        flex: 0 0 auto;
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

@media (min-width: 741px) {
    .site-footer .footer-bottom { padding-inline-end: 72px; }
}

.atmo-content-card .atmo-card-byline {
	margin-top: 0;
}

.atmo-content-card .atmo-card-footer {
	gap: 4px 7px;
	margin-top: 0;
}

.atmo-content-card .atmo-card-footer > .atmo-card-read {
	display: inline;
	color: #126990;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	white-space: nowrap;
}

.atmo-content-card .atmo-card-read:hover,
.atmo-content-card .atmo-card-read:focus-visible {
	text-decoration-thickness: 2px;
}
