/* fonts */
@font-face {
    font-family: 'Ramona Bold';
    src: url('../fonts/Ramona-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Gravity';
    src: url('../fonts/Gravity.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

/* variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f0f0;
    --bg-card: #ffffff;
    --bg-hover: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;
    --border-color: #dbdbdb;
    --shadow: rgba(0, 0, 0, 0.08);
    --accent: #c64549;
    --page-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

body.dark-theme {
    --bg-primary: #1e1e1e;
    --bg-secondary: #121212;
    --bg-card: #252525;
    --bg-hover: #2f2f2f;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --border-color: #383838;
    --shadow: rgba(0, 0, 0, 0.5);
    --page-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --dim-main: 0.9;
    --dim-ui: 0.78;
}

/* base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    font-family: 'Gravity', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.stop-scrolling {
    overflow: hidden;
    overscroll-behavior: none;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    display: flex;
    flex-direction: column;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}





.site-footer {
    margin-top: 56px;
    padding: 28px 24px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.3fr) minmax(220px, 1fr);
    gap: 36px;
    align-items: center;
}

.footer-brand-block,
.footer-center-block,
.footer-right-block {
    min-width: 0;
}

.footer-brand-block {
    display: flex;
    align-items: center;
}

.footer-brand-title {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Ramona Bold', sans-serif;
    font-size: 1.7rem;
    line-height: 1.08;
    text-wrap: balance;
}

.footer-center-block {
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.footer-copy,
.footer-nav a,
.footer-support-label,
.footer-right-block a {
    color: var(--text-muted);
    font-family: 'Gravity', 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    line-height: 1.55;
    text-decoration: none;
}

.footer-copy {
    margin: 0;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-right-block a:hover,
.footer-right-block a:focus-visible {
    color: var(--text-primary);
}

.footer-right-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-mail-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-mail-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
    filter: brightness(0);
}

.footer-support-row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
}

.footer-support-row--email {
    flex-wrap: nowrap;
}

.footer-support-label {
    color: var(--text-secondary);
}

body.dark-theme .footer-mail-icon {
    filter: brightness(0) invert(1);
}

/* header and logo */
.site-header {
    min-height: 140px;
    padding: 24px 0;
    display: flex;
    align-items: center;
    background-image: url('../images/header/header.jpg');
    background-repeat: repeat-x;
    background-position: center top;
    background-size: auto 100%;
}

body.dark-theme .site-header {
    background-image: url('../images/header/header_d.jpg');
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.burger-btn {
    width: 48px;
    height: 48px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    transition: transform 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}

.burger-btn:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}

.burger-line {
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
}

.logo {
    padding: 0;
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
    letter-spacing: 1px;
    font-family: 'Ramona Bold', sans-serif;
}

.logo-main {
    color: var(--text-primary);
    font-size: 2rem;
}

.logo-sub {
    color: var(--accent);
    font-size: 2.5rem;
}

.logo-main,
.logo-sub {
    text-shadow:
        3px 0 0 #ffffff,
        -3px 0 0 #ffffff,
        0 3px 0 #ffffff,
        0 -3px 0 #ffffff,
        3px 3px 0 #ffffff,
        -3px -3px 0 #ffffff,
        3px -3px 0 #ffffff,
        -3px 3px 0 #ffffff;
}

body.dark-theme .logo-main,
body.dark-theme .logo-sub {
    text-shadow:
        3px 0 0 #252525,
        -3px 0 0 #252525,
        0 3px 0 #252525,
        0 -3px 0 #252525,
        3px 3px 0 #252525,
        -3px -3px 0 #252525,
        3px -3px 0 #252525,
        -3px 3px 0 #252525;
}

/* header theme toggle */
.theme-toggle {
    position: relative;
    width: 156px;
    height: 48px;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.theme-toggle-segment {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.theme-toggle-segment img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    filter: brightness(0);
    transition: filter 0.25s ease;
}

body.dark-theme .theme-toggle-segment img {
    filter: brightness(0) invert(1);
}

.theme-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 3);
    height: calc(100% - 8px);
    border-radius: 8px;
    background: var(--bg-hover);
    border: 1px solid var(--accent);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle[data-theme-mode="light"] .theme-toggle-thumb {
    transform: translateX(0);
}

.theme-toggle[data-theme-mode="dark"] .theme-toggle-thumb {
    transform: translateX(100%);
}

.theme-toggle[data-theme-mode="system"] .theme-toggle-thumb {
    transform: translateX(200%);
}

.theme-toggle-segment img {
    filter: brightness(0);
    transition: filter 0.25s ease;
}

body.dark-theme .theme-toggle-segment img {
    filter: brightness(0) invert(1);
}
/* side menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    padding: 70px 24px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    border-radius: 0 20px 20px 0;
    box-shadow: 2px 0 20px var(--shadow);
    z-index: 1000;
    transition: left 0.3s ease;
}

.side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.menu-close:hover .menu-close-icon,
.menu-close:hover .menu-close-icon::before,
.menu-close:hover .menu-close-icon::after {
    opacity: 0.7;
}

.menu-close-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: block;
    color: currentColor;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-close-icon::before,
.menu-close-icon::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-close-icon::before {
    transform: rotate(45deg);
}

.menu-close-icon::after {
    transform: rotate(-45deg);
}

.menu-close:hover .menu-close-icon {
    transform: scale(1.03);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.menu-divider {
    height: 1px;
    margin: 16px 0;
    background: var(--border-color);
    border: 0;
}

.menu-item,
.menu-lang-option,
.select-btn,
.contact-card,
.news-card,
.scroll-to-top,
.burger-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
}

.menu-lang-option {
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
}

.menu-item:hover,
.menu-item:focus-visible,
.menu-lang-option:hover,
.menu-lang-option:focus-visible,
.menu-lang-option.active,
.select-btn:hover,
.select-btn:focus-visible,
.contact-card:hover,
.contact-card:focus-visible,
.news-card:hover,
.news-card:focus-visible,
.scroll-to-top:hover,
.scroll-to-top:focus-visible,
.burger-btn:hover,
.burger-btn:focus-visible {
    border-color: var(--accent);
    transform: scale(1.03);
}

.menu-icon,
.contact-card img {
    filter: brightness(0);
    transition: filter 0.2s ease, transform 0.3s ease;
}

body.dark-theme .menu-icon,
body.dark-theme .contact-card img {
    filter: brightness(0) invert(1);
}

.menu-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.menu-lang-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

.menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* main content */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-content {
    width: 100%;
    justify-content: center;
    transform: translateY(-40px);
}

.page-title {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: 'Ramona Bold', sans-serif;
    font-size: 1.8rem;
    text-align: center;
}

.page-description {
    margin-bottom: 30px;
    color: var(--text-secondary);
    text-align: center;
}

.controls-panel {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

#mainPage.active .issue-selector,
#mainPage.active .chapter-selector {
    opacity: 0;
    transform: translateY(-24px);
    animation: slideDownControl 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#mainPage.active .issue-selector {
    animation-delay: 0.08s;
}

#mainPage.active .chapter-selector {
    animation-delay: 0.16s;
}

@keyframes slideDownControl {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.issue-selector,
.chapter-selector {
    position: relative;
    min-width: 200px;
    z-index: 30;
}

.select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}


.arrow {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0;
    color: var(--text-secondary);
}

.arrow-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: brightness(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

body.dark-theme .arrow-icon {
    filter: brightness(0) invert(1);
}

.issue-selector.open .arrow-icon,
.chapter-selector.open .arrow-icon {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    z-index: 100;
}

.issue-selector.open .select-dropdown,
.chapter-selector.open .select-dropdown {
    display: block;
}

.select-option {
    padding: 10px 16px;
    font-size: 0.85rem;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}

.select-option:hover {
    background: var(--bg-hover);
}

.select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* comic slider */
.comic-slider-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.comic-swiper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y pinch-zoom !important;
}

.comic-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 72px 40px;
}

.comic-slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    pointer-events: auto;
    transition: transform 0.22s ease-out;
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--bg-card);
}

.swiper-zoom-container {
    position: relative;
    width: fit-content !important;
    height: fit-content !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: transparent !important;
    box-shadow: var(--page-shadow);
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 100 !important;
}

.swiper-button-prev {
    left: 15px;
}

.swiper-button-next {
    right: 15px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: '›';
    font-family: monospace;
    font-size: 20px;
    font-weight: 700;
}

.swiper-button-prev::after {
    content: '‹';
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.swiper-pagination-fraction {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comic-slider-container,
.comic-swiper,
.swiper-wrapper,
.swiper-slide,
.comic-slide,
.swiper-zoom-container,
.comic-slide img {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.comic-slide img {
    -webkit-user-drag: none;
}

/* scroll to top button */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background-color: var(--accent);
    color: #ffffff;
    font-family: 'Ramona Bold', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background-color: var(--bg-primary);
    color: var(--accent);
}

body.dark-theme .scroll-to-top:hover {
    background-color: var(--bg-primary);
    color: var(--accent);
}

/* pages */
.page {
    display: none;
    animation: fadeInPage 0.3s forwards;
}

.page.active {
    display: block;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.news-list,
.contacts-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 220px));
    justify-content: center;
    align-content: center;
    gap: 22px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.contact-card {
    width: 100%;
    max-width: 320px;
    padding: 38px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpContact 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}

.contacts-grid > li:nth-child(1) .contact-card { animation-delay: 0.1s; }
.contacts-grid > li:nth-child(2) .contact-card { animation-delay: 0.2s; }
.contacts-grid > li:nth-child(3) .contact-card { animation-delay: 0.3s; }
.contacts-grid > li:nth-child(4) .contact-card { animation-delay: 0.4s; }

.contact-card:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}

.contact-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.contact-card:hover img {
    transform: scale(1.1);
}

.contact-card span {
    font-family: 'Ramona Bold', sans-serif;
    font-size: 1.1rem;
}

.contacts-grid > li:not(:first-child) {
    display: none;
}

.contacts-grid {
    grid-template-columns: minmax(260px, 320px);
}

@keyframes slideUpContact {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-list {
    width: 100%;
    max-width: 700px;
}


.news-entry {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpContact 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.news-list > li:nth-child(1) { animation-delay: 0.08s; }
.news-list > li:nth-child(2) { animation-delay: 0.18s; }
.news-list > li:nth-child(3) { animation-delay: 0.28s; }
.news-list > li:nth-child(4) { animation-delay: 0.38s; }
.news-list > li:nth-child(5) { animation-delay: 0.48s; }

.news-entry-expandable {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.news-entry-expandable:hover,
.news-entry-expandable:focus-visible,
.news-entry-expandable:focus-within {
    border-color: var(--accent);
}

.news-card {
    width: 100%;
    padding: 24px 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border-radius: 12px;
    background: var(--bg-card);
    text-align: center;
    text-decoration: none;
    opacity: 1;
    transform: none;
    animation: none;
    transition: border-color 0.3s ease;
}

.news-link:hover,
.news-link:focus-visible,
.news-entry-expandable:hover .news-card,
.news-entry-expandable:focus-visible .news-card,
.news-entry-expandable:focus-within .news-card {
    transform: none;
}

.news-entry-expandable .news-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 24px 24px 0;
}

.news-card-button {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: inherit;
    cursor: inherit;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.news-card-content,
.news-details-wrap,
.news-details,
.news-meta,
.news-expand-indicator,
.news-arrow-icon {
    cursor: inherit;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
.news-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: 'Ramona Bold', sans-serif;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.news-card p,
.news-details p,
.news-date {
    font-family:'Gravity', sans-serif;
}

.news-link .news-card-content p {
    margin-bottom: 0;
}

.news-link .news-date {
    margin-top: 12px;
}

.news-entry-expandable .news-card-content p {
    margin-bottom: 0;
}

.news-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 24px 12px;
    gap: 8px;
}

.news-date {
    display: block;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

.news-expand-indicator {
    width: 20px;
    height: 20px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arrow-icon,
.news-arrow-icon {
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    transform: rotate(0deg);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-details-wrap {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-details-divider {
    height: 1px;
    margin: 14px 24px 14px;
    background: var(--border-color);
    opacity: 0;
    transform: scaleX(0.92);
    transform-origin: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.news-details {
    opacity: 0;
    padding: 0 24px;
    background: transparent;
    text-align: center;
    transform: translateY(-8px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.8s ease;
}

.news-entry.is-open .news-details-wrap {
    max-height: 220px;
}

.news-entry.is-open .news-details-divider {
    opacity: 1;
    transform: scaleX(1);
}

.news-entry.is-open .news-details {
    opacity: 1;
    transform: translateY(0);
}

.news-entry.is-open .news-arrow-icon {
    transform: rotate(180deg);
}
/* page centering */

#newsPage.active,
#contactsPage.active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
}

/* responsive */
@media (min-width: 769px) {
    .page-content {
        margin-top: 80px;
    }
}

@media (max-width: 1024px) {
    .comic-slider-container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --page-shadow: 0 8px 16px rgba(0, 0, 0, 0.11);
    }

    body.dark-theme {
        --page-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
    }

    .site-header {
        min-height: 110px;
        padding: 14px 0;
    }

    .header-inner {
        padding: 0 12px;
        gap: 14px;
    }

    .header-left {
        gap: 14px;
    }

    .burger-btn {
        width: 42px;
        height: 42px;
        padding: 6px;
    }

    .burger-line {
        width: 24px;
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 1.9rem;
    }

    .theme-toggle {
        display: none;
    }

    .main-container {
        padding: 0 12px;
        align-items: center;
    }

    .controls-panel {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        align-items: center;
        gap: 12px;
    }

    .issue-selector,
    .chapter-selector {
        width: 100%;
        min-width: 0;
    }

    .select-btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .comic-slider-container {
        padding: 0;
    }

    .comic-slide {
        padding: 8px 14px 24px;
    }

    .comic-slide img {
        max-width: 100%;
        max-height: 72vh;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .swiper-zoom-container {
        max-width: 100%;
    }

    .side-menu {
        width: 280px;
        left: -280px;
        border-radius: 0 16px 16px 0;
    }

    .contacts-grid {
        grid-template-columns: minmax(220px, 280px);
        gap: 16px;
    }

    .contact-card {
        max-width: 280px;
        padding: 26px 18px;
    }

    .page-content {
        width: 100%;
        padding: 0 8px;
        text-align: center;
    }

    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        padding: 10px 14px;
        font-size: 0.92rem;
    }

    .footer-contacts {
        gap: 8px;
        font-size: 0.75rem;
    }

    .logo-main,
    .logo-sub {
        text-shadow:
            2px 0 0 #ffffff,
            -2px 0 0 #ffffff,
            0 2px 0 #ffffff,
            0 -2px 0 #ffffff,
            2px 2px 0 #ffffff,
            -2px -2px 0 #ffffff,
            2px -2px 0 #ffffff,
            -2px 2px 0 #ffffff;
    }

    body.dark-theme .logo-main,
    body.dark-theme .logo-sub {
        text-shadow:
            2px 0 0 #252525,
            -2px 0 0 #252525,
            0 2px 0 #252525,
            0 -2px 0 #252525,
            2px 2px 0 #252525,
            -2px -2px 0 #252525,
            2px -2px 0 #252525,
            -2px 2px 0 #252525;
    }
}


@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .footer-brand-block {
        display: none;
    }

    .footer-center-block {
        padding-left: 0;
        border-left: 0;
        align-items: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-right-block {
        align-items: center;
    }

    .footer-support-row {
        justify-content: center;
        text-align: center;
    }
}

/* dark theme dimming */
body.dark-theme .site-header,
body.dark-theme #mainPage,
body.dark-theme .site-footer {
    filter: brightness(var(--dim-main));
}

body.dark-theme .side-menu,
body.dark-theme .menu-overlay,
body.dark-theme #newsPage,
body.dark-theme #contactsPage,
body.dark-theme .scroll-to-top {
    filter: brightness(var(--dim-ui));
}
