/* smotor.kiev.ua modern theme v1.1.1 FINAL */
:root {
    --color-bg: #f3f6fa;
    --color-surface: #ffffff;
    --color-surface-alt: #eef3f8;
    --color-text: #17212f;
    --color-muted: #687386;
    --color-border: #dfe5ed;
    --color-primary: #005bbb;
    --color-primary-dark: #00449e;
    --color-accent: #ffd500;
    --color-dark: #073b84;
    --color-dark-soft: #0f56aa;
    --color-danger: #d92d20;
    --shadow-sm: 0 8px 24px rgba(15, 33, 54, .08);
    --shadow-md: 0 18px 45px rgba(15, 33, 54, .13);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease; }
a:hover { color: var(--color-primary-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .65em; color: var(--color-text); line-height: 1.18; letter-spacing: -.025em; }
p { margin: 0 0 1.1em; }
ul, ol { margin-top: 0; }
table { max-width: 100%; border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--color-border); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10000; padding: 10px 16px; border-radius: 8px; background: #fff; color: #000; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 16px; }

/* Header */
.site-header { position: relative; z-index: 100; background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 72%, #fffbe2 100%); color: var(--color-text); box-shadow: 0 10px 28px rgba(12, 39, 74, .08); }
.site-header::after { display: none; }
.site-topbar { border-bottom: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(90deg, #005bbb, #1b72df); font-size: 13px; }
.site-topbar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-topbar__label { color: rgba(255, 255, 255, .88); }
.site-topbar__links { display: flex; align-items: center; gap: 20px; }
.site-topbar__links a { color: #ffffff; }
.site-topbar__links a:hover { color: #fff7bf; }
.header-main { min-height: 132px; display: grid; grid-template-columns: 280px minmax(300px, 1fr) minmax(260px, 360px); align-items: center; gap: 36px; padding-block: 14px; }
.site-logo { display: inline-flex; align-items: center; width: fit-content; }
.site-logo img { display: block; width: 245px; height: auto; }
.header-search { display: flex; min-width: 0; border: 1px solid rgba(0, 91, 187, .18); border-radius: 14px; background: #fff; box-shadow: 0 16px 36px rgba(16, 65, 132, .14); overflow: hidden; }
.header-search input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; outline: 0; color: var(--color-text); background: transparent; }
.header-search input::placeholder { color: #8792a3; }
.header-search button { min-width: 100px; border: 0; background: var(--color-primary); color: #fff; font-weight: 700; }
.header-search button:hover { background: var(--color-primary-dark); }
.header-account { min-width: 0; }
.account { font-size: 13px; }
.account a { color: #153765; }
.account a:hover { color: var(--color-primary); }
.account__links { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 8px; }
.account__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; }
.account__form input { min-width: 0; width: 100%; height: 36px; padding: 0 10px; border: 1px solid rgba(0, 91, 187, .18); border-radius: 8px; background: rgba(255, 255, 255, .96); color: #24344b; outline: 0; }
.account__form input::placeholder { color: #8391a6; }
.account__form input:focus { border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 3px rgba(0, 91, 187, .10); }
.account__form button { border: 0; border-radius: 8px; padding: 0 15px; background: var(--color-accent); color: #1b2330; font-weight: 800; }
.account__welcome { margin-bottom: 7px; text-align: right; color: #1d3f6d; }
.account__user-links { display: flex; justify-content: flex-end; gap: 6px 14px; flex-wrap: wrap; }

.nav-shell { position: relative; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 24px rgba(9, 22, 39, .08); }
.nav-shell::after { content: ""; display: block; width: 100%; height: 4px; background: linear-gradient(to bottom, #005bbb 0, #005bbb 50%, #ffd500 50%, #ffd500 100%); }
.nav-shell__inner { min-height: 58px; display: flex; align-items: center; border-top: 1px solid rgba(0, 91, 187, .08); }
.site-navigation { width: 100%; }
.primary-menu { display: flex; align-items: stretch; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; display: flex; align-items: stretch; }
.menu-item > a { display: flex; align-items: center; min-height: 58px; padding: 0 17px; color: #263246; font-size: 14px; font-weight: 750; letter-spacing: .01em; }
.menu-item > a:hover, .menu-item > a.is-current { color: var(--color-primary); background: linear-gradient(180deg, #f6faff, #eef5ff); }
.menu-item > a.is-current::after { display: none; }
.submenu-toggle { width: 30px; border: 0; background: transparent; }
.submenu-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: auto; border-right: 2px solid #738096; border-bottom: 2px solid #738096; transform: translateY(-2px) rotate(45deg); }
.submenu { position: absolute; left: 0; top: calc(100% - 2px); z-index: 20; width: 230px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--color-border); border-radius: 0 0 12px 12px; background: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.submenu a { display: block; padding: 9px 11px; border-radius: 7px; color: #344158; font-size: 14px; }
.submenu a:hover, .submenu a.is-current { color: var(--color-primary); background: #eef5ff; }
.menu-item--has-children:hover .submenu, .menu-item--has-children:focus-within .submenu, .menu-item--has-children.submenu-open .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; border: 0; background: transparent; color: var(--color-text); font-weight: 800; }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }

/* Layout */
.breadcrumb-shell { border-bottom: 1px solid var(--color-border); background: #fff; }
.breadcrumbs { min-height: 48px; display: flex; align-items: center; overflow: hidden; color: var(--color-muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.breadcrumbs a { color: #536176; }
.breadcrumbs a:hover { color: var(--color-primary); }
.site-main { padding-block: 32px 56px; }
.home-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr) 286px; grid-template-areas: "left content right"; gap: 24px; align-items: start; }
.home-layout__content { grid-area: content; }
.home-layout__left { grid-area: left; }
.home-layout__right { grid-area: right; }
.inner-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); grid-template-areas: "sidebar content"; gap: 28px; align-items: start; }
.inner-layout__content { grid-area: content; min-width: 0; }
.inner-layout__sidebar { grid-area: sidebar; }
.content-column { min-width: 0; }
.sidebar { display: grid; gap: 22px; min-width: 0; }

/* Reusable headings */
.home-section { margin-bottom: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); }
.section-heading h2 { margin: 0; font-size: clamp(24px, 2.5vw, 32px); }
.section-heading__eyebrow { display: block; margin-bottom: 5px; color: var(--color-primary); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.section-heading__link { flex: none; color: #4e5c71; font-size: 13px; font-weight: 750; }
.section-heading__link::after { content: " \2192"; }
.section-heading--compact { align-items: center; margin-bottom: 16px; }
.section-heading--compact h2 { font-size: 24px; }
.section-heading--compact h2 span { color: var(--color-muted); font-size: .72em; font-weight: 600; }

/* Hero slider */
.hero-slider { position: relative; min-height: 430px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #0f3e83, #021a3b); box-shadow: var(--shadow-md); overflow: hidden; }
.hero-slider__track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { display: none; }
.hero-slide:first-child, .hero-slide.is-active { display: block; }
.hero-slider.is-ready .hero-slide:first-child:not(.is-active) { display: none; }
.hero-slide__media, .hero-slide__media img { width: 100%; height: 100%; }
.hero-slide__media img { display: block; object-fit: cover; }
.hero-slide__media:empty { background: radial-gradient(circle at 76% 20%, rgba(23, 105, 224, .75), transparent 35%), linear-gradient(135deg, #1c3858, #07111d); }
.hero-slide__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 14, 24, .92) 0%, rgba(6, 14, 24, .72) 44%, rgba(6, 14, 24, .12) 78%); }
.hero-slide__content { position: absolute; left: 0; bottom: 0; z-index: 2; width: min(74%, 650px); padding: 44px; color: #fff; }
.hero-slide__label { display: inline-flex; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--color-accent); color: #151a21; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hero-slide h2 { margin: 0 0 12px; color: #fff; font-size: clamp(28px, 4vw, 48px); text-shadow: 0 3px 18px rgba(0, 0, 0, .35); }
.hero-slide h2 a { color: inherit; }
.hero-slide h2 a:hover { color: var(--color-accent); }
.hero-slide__meta { color: #d4dfed; font-size: 14px; }
.hero-slider__control { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(8, 17, 29, .55); color: #fff; font-size: 31px; line-height: 1; transform: translateY(-50%); backdrop-filter: blur(8px); }
.hero-slider__control:hover { background: var(--color-primary); }
.hero-slider__control--prev { left: 16px; }
.hero-slider__control--next { right: 16px; }
.hero-slider__dots { position: absolute; right: 26px; bottom: 24px; z-index: 5; display: flex; gap: 7px; }
.hero-slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.hero-slider__dots button.is-active { width: 24px; background: var(--color-accent); }
.hero-slider.is-empty::after { content: "Материалы готовятся к публикации"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }

/* Cards */
.news-grid { display: grid; gap: 18px; }
.news-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-card { min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.compact-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-surface-alt); }
.compact-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.compact-card:hover .compact-card__media img { transform: scale(1.035); }
.compact-card__body { padding: 18px; }
.compact-card__date { margin-bottom: 7px; color: var(--color-muted); font-size: 12px; }
.compact-card h3 { margin: 0 0 9px; font-size: 19px; }
.compact-card h3 a { color: var(--color-text); }
.compact-card h3 a:hover { color: var(--color-primary); }
.compact-card__excerpt { color: #556176; font-size: 14px; line-height: 1.55; }
.compact-card__excerpt p:last-child { margin-bottom: 0; }
.compact-card__excerpt img { display: none; }

.media-placeholder { display: block; width: 100%; height: 100%; }
.media-placeholder img, img[data-placeholder] { image-rendering: auto; }
.placeholder-surface { background: linear-gradient(135deg, #eff5ff, #fff7cf); }
.article-cover--placeholder img,
.hero-slide__media img.is-placeholder,
.news-card__media img.is-placeholder,
.compact-card__media img.is-placeholder,
.sidebar-card__media img.is-placeholder,
.topnews-item__image img.is-placeholder,
.related-card__image img.is-placeholder { object-fit: cover; }

/* Sidebar */
.sidebar-section { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.sidebar-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--color-border); background: linear-gradient(180deg, #fff, #fbfcfe); }
.sidebar-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.sidebar-heading h2::before { content: ""; display: inline-block; width: 4px; height: 16px; margin-right: 9px; border-radius: 4px; background: var(--color-primary); vertical-align: -2px; }
.sidebar-heading > a { font-size: 12px; font-weight: 750; }
.sidebar-section__body { padding: 14px; }
.news-feed { padding: 4px 14px; }
.news-feed-item { padding: 11px 0; border-bottom: 1px solid #edf0f4; }
.news-feed-item:last-child { border-bottom: 0; }
.news-feed-item time { display: block; margin-bottom: 3px; color: #8a95a6; font-size: 11px; }
.news-feed-item a { display: block; color: #2c3749; font-size: 13px; font-weight: 650; line-height: 1.42; }
.news-feed-item a:hover { color: var(--color-primary); }
.topnews-list { padding: 6px 14px; }
.topnews-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid #edf0f4; }
.topnews-item:last-child { border-bottom: 0; }
.topnews-item__image { flex: 0 0 82px; height: 62px; border-radius: 8px; overflow: hidden; background: var(--color-surface-alt); }
.topnews-item__image img { width: 100%; height: 100%; object-fit: cover; }
.topnews-item__body { min-width: 0; }
.topnews-item__body span { display: block; margin-bottom: 3px; color: var(--color-primary); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.topnews-item__body > a { display: block; color: #2a3547; font-size: 12px; font-weight: 700; line-height: 1.38; }
.topnews-item__body > a:hover { color: var(--color-primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 15px; }
.tag-cloud a { display: inline-flex; padding: 5px 9px; border: 1px solid #dde6f2; border-radius: 999px; background: #f7faff; color: #4b5a70; font-size: 12px !important; line-height: 1.2; }
.tag-cloud a:hover { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.sidebar-cards { padding: 14px; }
.sidebar-card + .sidebar-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.sidebar-card__media { display: block; margin-bottom: 10px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--color-surface-alt); }
.sidebar-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-card__date { color: var(--color-muted); font-size: 11px; }
.sidebar-card h3 { margin: 4px 0 7px; font-size: 15px; }
.sidebar-card h3 a { color: var(--color-text); }
.sidebar-card__excerpt { color: var(--color-muted); font-size: 12px; line-height: 1.45; }
.sidebar-card__excerpt img { display: none; }
.sidebar-calendar .calendar { width: 100%; font-size: 12px; }
.sidebar-calendar .calendar td, .sidebar-calendar .calendar th { padding: 6px 2px; text-align: center; }

/* Listing */
.sort-panel { min-height: 52px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; overflow: hidden; }
.sort-panel ul, .sort-panel ol { display: flex !important; flex-flow: row wrap !important; align-items: center; gap: 7px; width: 100%; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.sort-panel li { display: block !important; float: none !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.sort-panel li::before, .sort-panel li::marker { display: none !important; content: none !important; }
.sort-panel a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 11px; border: 1px solid #dce5f0; border-radius: 999px; background: #f7faff; color: #42536a; font-weight: 650; line-height: 1.15; white-space: nowrap; }
.sort-panel a:hover, .sort-panel a:focus { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.sort-panel > br { display: none; }
.category-intro { margin-bottom: 18px; }
.category-intro:empty { display: none; }
.archive-header { padding: 24px 26px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: linear-gradient(135deg, #fff, #f6f9fd); box-shadow: var(--shadow-sm); }
.archive-header h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.archive-header__description { margin-top: 10px; color: var(--color-muted); }
.news-card { display: grid; grid-template-columns: minmax(190px, 32%) minmax(0, 1fr); margin-bottom: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.news-card__media { min-height: 220px; background: var(--color-surface-alt); overflow: hidden; }
.news-card__media a, .news-card__media img { display: block; width: 100%; height: 100%; }
.news-card__media img { object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__body { min-width: 0; padding: 24px; }
.news-card__category { margin-bottom: 7px; color: var(--color-primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.news-card__category a { color: inherit; }
.news-card__title { margin: 0 0 12px; font-size: clamp(23px, 3vw, 31px); }
.news-card__title a { color: var(--color-text); }
.news-card__title a:hover { color: var(--color-primary); }
.news-card__excerpt { color: #4f5c70; }
.news-card__excerpt img { display: none; }
.news-card__footer { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 12px; }

/* Article */
.article-page, .static-page, .article-section { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.article-page, .static-page { padding: clamp(22px, 4vw, 46px); }
.article-header { margin-bottom: 24px; }
.article-category { margin-bottom: 10px; color: var(--color-primary); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.article-category a { color: inherit; }
.article-header h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.08; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 17px; color: var(--color-muted); font-size: 13px; }
.article-actions a { font-weight: 700; }
.article-cover { margin: 0 0 30px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-alt); }
.article-cover img { display: block; width: 100%; max-height: 680px; object-fit: cover; }
.article-content { color: #293548; font-size: 18px; line-height: 1.78; overflow-wrap: break-word; }
.article-content > p:first-child { font-size: 1.08em; }
.article-content h2 { margin-top: 1.7em; font-size: 31px; }
.article-content h3 { margin-top: 1.55em; font-size: 25px; }
.article-content h4 { margin-top: 1.4em; font-size: 21px; }
.article-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 10px; }
.article-content iframe, .article-content video { max-width: 100%; }
.article-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--color-primary); border-radius: 0 10px 10px 0; background: #f1f6fd; color: #33445c; }
.article-content table { display: block; width: 100%; overflow-x: auto; border: 1px solid var(--color-border); }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--color-border); }
.article-content ul, .article-content ol { padding-left: 1.35em; }
.article-poll { margin-top: 28px; padding: 20px; border: 1px solid var(--color-border); border-radius: 12px; background: #f7f9fc; }
.article-tags { margin-top: 28px; padding: 15px 18px; border-radius: 12px; background: var(--color-surface-alt); font-size: 14px; }
.article-tags a { display: inline-flex; margin: 3px; padding: 4px 8px; border-radius: 999px; background: #fff; }
.article-share { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); font-weight: 750; }
.share-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--color-primary); color: #fff; font-weight: 750; }
.share-button:hover { background: var(--color-primary-dark); }
.article-ad { min-height: 90px; margin-top: 26px; display: grid; place-items: center; overflow: hidden; }
.editdate { margin-top: 20px; color: var(--color-muted); font-size: 12px; }
.article-section { margin-top: 24px; padding: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { min-width: 0; }
.related-card__image { display: block; aspect-ratio: 16 / 10; margin-bottom: 9px; border-radius: 10px; overflow: hidden; background: var(--color-surface-alt); }
.related-card__image img { width: 100%; height: 100%; object-fit: cover; }
.related-card h3 { margin: 0; font-size: 15px; }
.related-card h3 a { color: var(--color-text); }
.related-card h3 a:hover { color: var(--color-primary); }
.guest-notice { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #d6e5f8; border-radius: 10px; background: #f2f7fe; color: #42516a; }

/* Comments */
.bcomment { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; margin-top: 16px; padding: 18px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.bcomment .lcol { min-width: 0; }
.bcomment .rcol { min-width: 0; }
.bcomment .avabox img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.bcomment .small { margin: 8px 0 0; padding: 0; list-style: none; color: var(--color-muted); font-size: 11px; }
.bcomment .comminfo ul { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; padding: 0; list-style: none; color: var(--color-muted); font-size: 12px; }
.bcomment .comtext { margin-top: 12px; }
.bcomment .comtext hr { display: none; }
.signature { color: var(--color-muted); font-size: 12px; }

/* Forms and DLE legacy UI */
.baseform, .block, .pm, .userinfo, .searchtable { padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.tableform { width: 100%; }
.tableform td { padding: 8px; vertical-align: top; }
.tableform .label { width: 220px; color: #48566b; font-weight: 700; }
.f_input, .f_textarea, input[type="text"], input[type="password"], input[type="email"], input[type="search"], select, textarea { max-width: 100%; border: 1px solid #cfd7e3; border-radius: 8px; background: #fff; color: var(--color-text); outline: none; }
.f_input, input[type="text"], input[type="password"], input[type="email"], select { min-height: 38px; padding: 7px 10px; }
.f_textarea, textarea { padding: 10px; }
.f_input:focus, .f_textarea:focus, input:focus, select:focus, textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(23, 105, 224, .12); }
.fbutton, .bbcodes, input[type="submit"], button[type="submit"] { min-height: 38px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--color-primary); color: #fff; font-weight: 750; }
.fbutton:hover, .bbcodes:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--color-primary-dark); }
.fieldsubmit { margin-top: 18px; text-align: right; }
.impot { color: var(--color-danger); }
.system-message, .errors { margin-bottom: 20px; padding: 16px 18px; border: 1px solid #f0d39b; border-radius: 10px; background: #fff8e8; color: #5f4a1e; }
.system-message strong { display: block; margin-bottom: 4px; }

/* Pagination */
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 24px; }
.pagination__next { text-align: right; }
.pagination a, .pagination span { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; color: #3f4d62; font-size: 13px; }
.pagination a:hover, .pagination span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.pagination__pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.storenumber { margin-top: 20px; }

/* Footer */
.site-footer { border-top: 4px solid var(--color-accent); background: linear-gradient(180deg, #06377a, #042a5f); color: #d3def0; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; padding-block: 44px; }
.footer-logo { display: inline-flex; margin-bottom: 12px; }
.footer-logo img { width: 150px; }
.site-footer__brand p { max-width: 440px; margin: 0; font-size: 14px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; align-content: start; }
.footer-nav a { color: #f2f6ff; font-size: 14px; }
.footer-nav a:hover { color: var(--color-accent); }
.site-footer__legal { font-size: 13px; }
.site-footer__legal p:first-child { color: #fff; font-weight: 750; }
.footer-counters-wrap { border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(2, 27, 62, .38); }
.footer-counters { min-height: 62px; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px 14px; padding-block: 14px; }
.footer-counters__label { margin-right: 4px; color: #dce8f8; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.footer-counters a { display: inline-flex; align-items: center; line-height: 0; opacity: .88; }
.footer-counters a:hover { opacity: 1; transform: translateY(-1px); }
.footer-counters img { display: block; width: auto; max-width: 88px; height: 31px; border: 0; }
.footer-counters noscript { display: inline-flex; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); font-size: 22px; }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* Compatibility helpers */
.clr { clear: both; }
.reset, .reset li { margin: 0; padding: 0; list-style: none; }
.maincontent img, .maincont img { max-width: 100%; height: auto; }
.right { float: right; }
.left { float: left; }
.hide { padding: 12px; border: 1px solid var(--color-border); border-radius: 8px; background: #f7f9fc; }
.quote, .title_quote, .scriptcode, .title_spoiler, .text_spoiler { max-width: 100%; }
#loading-layer { position: fixed; top: 20px; left: 50%; z-index: 10000; transform: translateX(-50%); border-radius: 8px; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); }

@media (max-width: 1180px) {
    .header-main { grid-template-columns: 240px minmax(260px, 1fr); gap: 24px; padding-block: 22px; }
    .header-account { grid-column: 1 / -1; }
    .account__links, .account__welcome, .account__user-links { justify-content: flex-start; text-align: left; }
    .account__form { max-width: 560px; }
    .home-layout { grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "left content" "right content"; }
    .home-layout__right { align-self: start; }
    .news-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .site-topbar__label { display: none; }
    .site-topbar__inner { justify-content: flex-end; }
    .header-main { min-height: auto; grid-template-columns: 190px minmax(0, 1fr); }
    .site-logo img { width: 185px; }
    .header-search input { height: 46px; }
    .nav-shell__inner { min-height: 52px; }
    .nav-toggle { display: inline-flex; }
    .site-navigation { position: fixed; left: 0; right: 0; top: 0; z-index: 120; height: 100vh; padding: 70px 18px 28px; background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 70%, #fffce8 100%); overflow-y: auto; transform: translateX(-105%); transition: transform .25s ease; }
    .site-navigation.is-open { transform: none; }
    .nav-toggle { position: relative; z-index: 130; }
    .nav-open .nav-toggle { position: fixed; top: 12px; left: 18px; }
    .primary-menu { display: block; }
    .menu-item { display: grid; grid-template-columns: 1fr 46px; border-bottom: 1px solid var(--color-border); }
    .menu-item > a { min-height: 52px; padding: 0 10px; font-size: 17px; }
    .menu-item > a.is-current::after { display: none; }
    .submenu-toggle { width: 46px; }
    .submenu { position: static; grid-column: 1 / -1; width: 100%; display: none; padding: 0 0 10px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .submenu-open .submenu { display: block; }
    .submenu a { font-size: 15px; }
    .home-layout, .inner-layout { grid-template-columns: 1fr; grid-template-areas: "content" "left" "right"; }
    .inner-layout { grid-template-areas: "content" "sidebar"; }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .hero-slide__content { width: 82%; padding: 34px; }
    .news-card { grid-template-columns: 240px minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    body { font-size: 15px; }
    .container { width: min(calc(100% - 20px), var(--container)); }
    .site-topbar__links { width: 100%; justify-content: space-between; gap: 12px; }
    .header-main { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-block: 18px; }
    .site-logo { align-self: center; }
    .header-account { width: 100%; }
    .account__links, .account__welcome, .account__user-links { justify-content: center; text-align: center; }
    .account__form { max-width: none; }
    .site-logo img { width: 205px; }
    .header-search button { min-width: 80px; }
    .header-account .account__form button { background: var(--color-accent); color: #151a21; }
    .site-main { padding-block: 20px 40px; }
    .section-heading { align-items: start; }
    .section-heading__link { margin-top: 7px; }
    .hero-slider { min-height: 390px; border-radius: 16px; }
    .hero-slide__overlay { background: linear-gradient(0deg, rgba(6, 14, 24, .96), rgba(6, 14, 24, .25)); }
    .hero-slide__content { width: 100%; padding: 26px 24px 46px; }
    .hero-slide h2 { font-size: 31px; }
    .hero-slider__control { top: 40%; width: 38px; height: 38px; }
    .hero-slider__dots { right: 20px; bottom: 18px; }
    .news-grid--two, .news-grid--three { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .news-card { grid-template-columns: 1fr; }
    .news-card__media { min-height: 210px; max-height: 280px; }
    .news-card__body { padding: 20px; }
    .article-page, .static-page { padding: 22px 18px; }
    .article-header h1 { font-size: 34px; }
    .article-content { font-size: 17px; line-height: 1.7; }
    .article-content h2 { font-size: 27px; }
    .article-share { align-items: flex-start; flex-direction: column; }
    .related-grid { grid-template-columns: 1fr; }
    .bcomment { grid-template-columns: 1fr; }
    .bcomment .lcol { display: flex; gap: 14px; }
    .tableform, .tableform tbody, .tableform tr, .tableform td { display: block; width: 100%; }
    .tableform td { padding: 5px 0; }
    .tableform .label { width: 100%; padding-top: 12px; }
    .pagination { grid-template-columns: 1fr 1fr; }
    .pagination__pages { grid-column: 1 / -1; grid-row: 1; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 34px; }
    .site-footer__legal { grid-column: auto; }
    .back-to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 460px) {
    .account__form { grid-template-columns: 1fr; }
    .account__form button { min-height: 40px; }
    .site-topbar__links a:first-child { display: none; }
    .site-topbar__links { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* SEO and media quality */
.seo-entity { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.news-card__media img, .compact-card__media img, .related-card__image img, .article-cover img { image-rendering: auto; }
@media (max-width: 680px) {
    .sort-panel { overflow-x: auto; }
    .sort-panel ul, .sort-panel ol { flex-wrap: nowrap !important; width: max-content; min-width: 100%; }
}


/* ==========================================================
   SMOTOR final production refinement v1.1.0
   ========================================================== */
:root {
    --font-sans: "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", Roboto, Arial, sans-serif;
    --color-bg: #f4f7fb;
    --color-surface-alt: #edf3fa;
    --color-text: #162235;
    --color-muted: #647187;
    --color-border: #dbe3ed;
    --shadow-sm: 0 7px 22px rgba(15, 42, 74, .07);
    --shadow-md: 0 18px 42px rgba(15, 42, 74, .12);
    --radius-sm: 9px;
    --radius-md: 14px;
    --radius-lg: 22px;
}
body { font-family: var(--font-sans); line-height: 1.55; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 750; letter-spacing: -.032em; text-wrap: balance; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(0, 91, 187, .25); outline-offset: 3px; }

/* Header density and polish */
.header-main { min-height: 116px; gap: 30px; padding-block: 10px; }
.site-logo img { width: 226px; }
.header-search { border-radius: 12px; box-shadow: 0 12px 30px rgba(16, 65, 132, .12); }
.header-search input { height: 50px; }
.header-search button { min-width: 96px; }
.account__user-links { row-gap: 5px; }
.nav-shell__inner { min-height: 56px; }
.menu-item > a { min-height: 56px; padding-inline: 16px; font-weight: 700; }
.menu-item > a.is-current { box-shadow: inset 0 -3px 0 var(--color-primary); }
.nav-shell::after { height: 3px; }

/* Balanced page rhythm */
.site-main { padding-block: 28px 50px; }
.home-layout { grid-template-columns: 232px minmax(0, 1fr) 272px; gap: 20px; }
.inner-layout { grid-template-columns: 252px minmax(0, 1fr); gap: 24px; }
.sidebar { gap: 18px; }
.home-section { margin-bottom: 29px; }
.section-heading { margin-bottom: 15px; }
.section-heading h1 { font-size: clamp(27px, 3vw, 37px); }
.section-heading h2 { font-size: clamp(23px, 2.4vw, 31px); }
.section-heading__eyebrow { margin-bottom: 4px; }
.breadcrumbs { min-height: 45px; }

/* Hero */
.hero-slider { min-height: 410px; }
.hero-slide__content { width: min(76%, 650px); padding: 38px; }
.hero-slide h2 { font-size: clamp(30px, 4vw, 46px); }
.hero-slide__overlay { background: linear-gradient(90deg, rgba(4, 17, 38, .92) 0%, rgba(4, 17, 38, .70) 43%, rgba(4, 17, 38, .09) 80%); }
.hero-slider__control { width: 42px; height: 42px; }

/* Home cards */
.news-grid { gap: 16px; align-items: stretch; }
.compact-card { display: flex; min-height: 100%; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.compact-card:hover { transform: translateY(-2px); border-color: #cbd8e8; box-shadow: 0 14px 30px rgba(15, 42, 74, .11); }
.compact-card__media { flex: 0 0 auto; }
.compact-card__body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.compact-card__date { margin-bottom: 6px; }
.compact-card h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.23; }
.compact-card h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.compact-card__excerpt { display: -webkit-box; overflow: hidden; margin-bottom: 13px; color: #536176; font-size: 13.5px; line-height: 1.52; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.compact-card__excerpt p { margin: 0; }
.compact-card__more { margin-top: auto; font-size: 13px; font-weight: 700; }

/* Sidebar */
.sidebar-section { border-color: #dce4ee; }
.sidebar-heading { min-height: 49px; padding: 11px 14px; }
.sidebar-heading h2 { font-size: 15px; }
.news-feed { padding-inline: 13px; }
.news-feed-item { padding-block: 10px; }
.news-feed-item a { font-size: 12.5px; line-height: 1.4; }
.topnews-list { padding-inline: 12px; }
.topnews-item { gap: 10px; padding-block: 10px; }
.topnews-item__image { flex-basis: 86px; height: 62px; }
.topnews-item__body > a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tag-cloud { gap: 6px; padding: 13px; }
.tag-cloud a { padding: 5px 8px; }
.sidebar-cards { padding: 12px; }
.sidebar-card + .sidebar-card { margin-top: 15px; padding-top: 15px; }
.sidebar-card h3 { line-height: 1.3; }
.sidebar-card__excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

/* Archive toolbar and cards */
.sort-panel { min-height: 48px; margin-bottom: 16px; padding: 7px 10px; }
.sort-panel a { min-height: 32px; padding: 5px 10px; }
.category-intro { margin-bottom: 16px; }
.archive-header { padding: 21px 23px; }
.news-card { grid-template-columns: minmax(250px, 34%) minmax(0, 1fr); margin-bottom: 17px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.news-card:hover { transform: translateY(-2px); border-color: #ccd8e7; box-shadow: 0 15px 34px rgba(15, 42, 74, .11); }
.news-card__media { min-height: 232px; aspect-ratio: 16 / 10; }
.news-card__body { display: flex; min-height: 232px; flex-direction: column; padding: 21px 22px; }
.news-card__category { margin-bottom: 6px; font-size: 11.5px; letter-spacing: .035em; }
.news-card__title { margin-bottom: 10px; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.16; }
.news-card__title a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-card__excerpt { display: -webkit-box; overflow: hidden; color: #4f5d72; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.news-card__excerpt p { margin-bottom: 0; }
.news-card__footer { margin-top: auto; padding-top: 12px; }
.news-card__read-more { margin-left: auto; color: var(--color-primary); font-weight: 750; }
.news-card__footer > a { margin-left: auto; }

/* Article reading experience */
.article-page, .static-page { padding: clamp(25px, 4vw, 46px); }
.article-header { margin-bottom: 22px; }
.article-header h1 { max-width: 1050px; font-size: clamp(34px, 4.4vw, 52px); }
.article-meta { gap: 7px 16px; margin-top: 15px; }
.article-cover { margin-bottom: 27px; }
.article-cover { display: flex; justify-content: center; }
.article-cover img { width: auto; max-width: 100%; height: auto; max-height: 720px; margin-inline: auto; object-fit: contain; aspect-ratio: auto; }
.article-content, .article-poll, .article-tags, .article-share, .article-page > .storenumber, .article-page > .editdate { max-width: 850px; margin-left: auto; margin-right: auto; }
.article-content { font-size: 18px; line-height: 1.76; }
.article-content > p:first-child { color: #243349; font-size: 1.075em; }
.article-content h2 { margin-top: 1.6em; font-size: 30px; }
.article-content h3 { margin-top: 1.45em; font-size: 24px; }
.article-content h4 { font-size: 20px; }
.article-content img { margin-block: 22px; }
.article-content blockquote { padding: 17px 20px; }
.article-tags { margin-top: 25px; }
.article-share { margin-top: 22px; }
.article-section { margin-top: 21px; padding: 21px; }
.related-grid { gap: 14px; }
.related-card h3 { display: -webkit-box; overflow: hidden; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

/* Forms, comments and pagination */
.baseform, .block, .pm, .userinfo, .searchtable { padding: 21px; }
.bcomment { gap: 16px; padding: 16px; }
.pagination { margin-top: 21px; }
.pagination a, .pagination span { min-width: 36px; min-height: 36px; }

/* Rendering performance below the fold */
.home-section + .home-section, .article-section, .sidebar-section { content-visibility: auto; contain-intrinsic-size: 1px 520px; }

@media (max-width: 1180px) {
    .header-main { grid-template-columns: 220px minmax(260px, 1fr); }
    .site-logo img { width: 205px; }
    .home-layout { grid-template-columns: 218px minmax(0, 1fr); gap: 18px; }
    .inner-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
    .header-main { grid-template-columns: 175px minmax(0, 1fr); padding-block: 15px; }
    .site-logo img { width: 170px; }
    .home-layout, .inner-layout { gap: 20px; }
    .sidebar { gap: 16px; }
    .news-card { grid-template-columns: 225px minmax(0, 1fr); }
    .news-card__media, .news-card__body { min-height: 215px; }
    .article-header h1 { font-size: clamp(33px, 6vw, 46px); }
}
@media (max-width: 680px) {
    body { font-size: 15px; line-height: 1.52; }
    .site-topbar__inner { min-height: 33px; }
    .header-main { gap: 13px; padding-block: 14px; }
    .site-logo img { width: 180px; }
    .header-search input { height: 44px; padding-inline: 14px; }
    .header-search button { min-width: 76px; }
    .account__user-links, .account__links { gap: 7px 13px; font-size: 12.5px; }
    .nav-shell__inner { min-height: 50px; }
    .nav-toggle { min-height: 46px; }
    .site-main { padding-block: 18px 36px; }
    .breadcrumbs { min-height: 42px; overflow-x: auto; scrollbar-width: none; text-overflow: clip; }
    .breadcrumbs::-webkit-scrollbar { display: none; }
    .section-heading { flex-direction: column; gap: 4px; }
    .section-heading h1 { font-size: 29px; }
    .section-heading h2 { font-size: 25px; }
    .section-heading__link { margin-top: 2px; }
    .home-section { margin-bottom: 25px; }
    .hero-slider { min-height: 335px; border-radius: 15px; }
    .hero-slide__content { padding: 23px 21px 43px; }
    .hero-slide h2 { font-size: 28px; line-height: 1.12; }
    .hero-slider__control { top: 38%; width: 37px; height: 37px; }
    .compact-card__body { padding: 16px; }
    .news-card { grid-template-columns: 1fr; margin-bottom: 15px; }
    .news-card__media { min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
    .news-card__body { min-height: 0; padding: 18px; }
    .news-card__title { font-size: 25px; }
    .news-card__excerpt { -webkit-line-clamp: 5; }
    .news-card__footer { gap: 7px 12px; }
    .news-card__footer > a { width: 100%; margin-left: 0; padding-top: 3px; }
    .news-card__read-more { margin-left: 0; }
    .article-page, .static-page { padding: 21px 17px; }
    .article-header h1 { font-size: 31px; line-height: 1.1; }
    .article-meta { font-size: 12px; }
    .article-cover { margin-inline: -7px; border-radius: 11px; }
    .article-content { font-size: 16.5px; line-height: 1.7; }
    .article-content h2 { font-size: 26px; }
    .article-content h3 { font-size: 22px; }
    .article-section { padding: 18px 16px; }
    .related-grid { gap: 18px; }
    .sort-panel { margin-inline: -1px; scrollbar-width: thin; }
    .site-footer__grid { gap: 24px; padding-block: 30px; }
    .footer-counters { justify-content: center; }
    .footer-counters__label { width: 100%; margin: 0 0 3px; text-align: center; }
}
@media (max-width: 460px) {
    .container { width: min(calc(100% - 18px), var(--container)); }
    .site-topbar__links { font-size: 12px; }
    .site-logo img { width: 166px; }
    .header-search button { min-width: 70px; padding-inline: 10px; }
    .account__user-links { justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: none; }
    .account__user-links::-webkit-scrollbar { display: none; }
    .hero-slider { min-height: 310px; }
    .hero-slide h2 { font-size: 25px; }
    .news-card__title { font-size: 23px; }
    .article-header h1 { font-size: 29px; }
    .article-content { font-size: 16px; }
    .pagination { gap: 8px; }
    .pagination a, .pagination span { min-width: 34px; min-height: 34px; padding-inline: 8px; }
}
@media (hover: none) { .compact-card:hover, .news-card:hover { transform: none; } }
@media print {
    .site-header, .breadcrumb-shell, .sidebar, .article-share, .article-ad, .comments-section, .site-footer, .back-to-top { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .container, .site-main, .inner-layout, .inner-layout__content { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
    .article-page, .static-page { border: 0; box-shadow: none; padding: 0; }
    .article-content { max-width: none; color: #000; font-size: 12pt; line-height: 1.55; }
    a { color: #000; text-decoration: underline; }
}


/* DLE HTML Sitemap module */
.sitemap-page {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.sitemap-page__header {
    padding: clamp(24px, 4vw, 42px);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 56%, #fff9d9 100%);
}
.sitemap-page__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.sitemap-page__header h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); }
.sitemap-page__header p { max-width: 720px; margin: 10px 0 0; color: var(--color-muted); }
.sitemap-content { padding: clamp(20px, 3vw, 34px); }
.sitemap-content ul { margin: 0; padding: 0; list-style: none; }
.sitemap_categories.root,
.sitemap_static_pages.root {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.sitemap_categories.root > li,
.sitemap_static_pages.root > li {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 33, 54, .05);
}
.sitemap_categories.root > li > a,
.sitemap_categories.root > li > span,
.sitemap_static_pages.root > li > a {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}
.sitemap_categories:not(.root) {
    margin: 10px 0 0;
    padding-left: 15px;
    border-left: 2px solid rgba(0, 91, 187, .15);
}
.sitemap_categories:not(.root) > li + li { margin-top: 7px; }
.sitemap_categories a,
.sitemap_categories span,
.sitemap_items a,
.sitemap_static_pages a { overflow-wrap: anywhere; }
.sitemap_items {
    display: grid;
    gap: 7px;
    margin-top: 12px !important;
}
.sitemap_items li { position: relative; padding-left: 15px; }
.sitemap_items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(0, 91, 187, .12);
}
.sitemap_items a, .sitemap_static_pages a { color: #3f5068; line-height: 1.45; }
.sitemap_items a:hover, .sitemap_static_pages a:hover, .sitemap_categories a:hover { color: var(--color-primary); }

/* DLE UserBox: article author */
.article-author-section { padding: clamp(20px, 3vw, 28px); }
.author-profile {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.author-profile__avatar { position: relative; width: 96px; }
.author-profile__avatar img {
    display: block;
    width: 96px;
    height: 96px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--color-surface-alt);
    box-shadow: 0 8px 24px rgba(10, 44, 89, .16);
    object-fit: cover;
}
.author-profile__status {
    position: absolute;
    right: -7px;
    bottom: 2px;
    display: inline-flex;
    padding: 4px 7px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.author-profile__status .is-online { color: #128341; }
.author-profile__status .is-offline { color: #7b8798; }
.author-profile__body { min-width: 0; }
.author-profile__heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.author-profile__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.author-profile h3 { margin: 0; font-size: 23px; }
.author-profile__group { flex: none; color: var(--color-muted); font-size: 12px; }
.author-profile__fullname { margin: 5px 0 0; color: #3e4d63; font-weight: 650; }
.author-profile__about { max-width: 760px; margin-top: 10px; color: #536176; font-size: 14px; line-height: 1.58; }
.author-profile__about p:last-child { margin-bottom: 0; }
.author-profile__location { margin: 8px 0 0; color: var(--color-muted); font-size: 12px; }
.author-profile__location span { color: var(--color-accent); }
.author-profile__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}
.author-profile__stats > a,
.author-profile__registered {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #f8faff;
    color: #536176;
    font-size: 12px;
}
.author-profile__stats > a:hover { border-color: rgba(0, 91, 187, .35); background: #eef5ff; color: var(--color-primary); }
.author-profile__stats strong { color: var(--color-text); font-size: 14px; }

@media (max-width: 680px) {
    .sitemap_categories.root, .sitemap_static_pages.root { grid-template-columns: 1fr; }
    .sitemap-content { padding: 16px; }
    .sitemap_categories.root > li, .sitemap_static_pages.root > li { padding: 16px; }
    .author-profile { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; }
    .author-profile__avatar, .author-profile__avatar img { width: 68px; height: 68px; }
    .author-profile__heading { display: block; }
    .author-profile__group { margin-top: 4px; }
    .author-profile h3 { font-size: 20px; }
    .author-profile__about, .author-profile__location, .author-profile__stats { grid-column: 1 / -1; }
    .author-profile__stats { margin-left: -87px; }
}

@media (max-width: 420px) {
    .author-profile { grid-template-columns: 1fr; text-align: center; }
    .author-profile__avatar { margin-inline: auto; }
    .author-profile__heading { text-align: center; }
    .author-profile__stats { justify-content: center; margin-left: 0; }
    .author-profile__about { text-align: left; }
}


/* UserBox and user profile fixes v1.1.3 */
.author-profile h3 a { color: var(--color-text); }
.author-profile h3 a:hover { color: var(--color-primary); }
.author-profile__avatar > a { display: block; border-radius: 50%; }
.author-profile__about--empty { color: #7a8799; font-style: italic; }

.profile-page { display: grid; gap: 22px; }
.profile-card {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #fff 0%, #f7faff 74%, #fffbea 100%);
    box-shadow: var(--shadow-sm);
}
.profile-card__avatar { position: relative; width: 128px; }
.profile-card__avatar img {
    display: block;
    width: 128px;
    height: 128px;
    border: 4px solid #fff;
    border-radius: 22px;
    background: var(--color-surface-alt);
    box-shadow: 0 14px 34px rgba(13, 58, 116, .16);
    object-fit: cover;
}
.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 9px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 750;
    box-shadow: 0 5px 14px rgba(15, 33, 54, .06);
}
.profile-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa5b4; }
.profile-status__dot--online { background: #20a35a; box-shadow: 0 0 0 3px rgba(32, 163, 90, .14); }
.profile-card__content { min-width: 0; }
.profile-card__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.profile-card h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.profile-card__group { margin-top: 6px; color: #4f5f76; font-size: 14px; font-weight: 650; }
.profile-card__group span { color: var(--color-muted); font-weight: 500; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.profile-actions a,
.profile-actions button,
.profile-actions input {
    display: inline-flex !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(0, 91, 187, .24) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--color-primary) !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 6px 16px rgba(15, 61, 120, .08) !important;
}
.profile-actions a:hover,
.profile-actions button:hover,
.profile-actions input:hover {
    border-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    text-shadow: none !important;
    transform: translateY(-1px);
}
.profile-actions img { display: none; }
.profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 22px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.profile-details > div { min-width: 0; }
.profile-details dt { margin-bottom: 2px; color: var(--color-muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.profile-details dd { margin: 0; color: #2f3d52; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.profile-details dd:empty::after { content: "Не указано"; color: #98a2b1; font-weight: 500; }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-stat {
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.profile-stat > strong { display: block; color: var(--color-text); font-size: 30px; line-height: 1; }
.profile-stat > span { display: block; margin-top: 5px; color: var(--color-muted); font-size: 13px; }
.profile-stat__links { margin-top: 12px; color: var(--color-muted); font-size: 12px; }
.profile-stat__links a { display: inline-flex; margin: 3px 8px 3px 0; font-weight: 700; }
.profile-stat__links img { width: 14px; height: 14px; vertical-align: -2px; }
.profile-rss-icon { display: inline-flex; padding: 2px 6px; border-radius: 5px; background: #f39200; color: #fff; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.profile-about {
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.profile-about h2 { margin-bottom: 10px; font-size: 24px; }
.profile-about__text { color: #536176; line-height: 1.7; }
.profile-about__text:empty::after { content: "Пользователь пока не добавил информацию о себе."; color: #8a96a7; font-style: italic; }
#options { margin-top: 22px; }
#options .pheading h2 { margin-bottom: 14px; font-size: 27px; }

@media (max-width: 680px) {
    .profile-card { grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 20px; }
    .profile-card__avatar, .profile-card__avatar img { width: 82px; height: 82px; }
    .profile-card__avatar img { border-radius: 16px; }
    .profile-card h1 { font-size: 29px; }
    .profile-actions, .profile-details { grid-column: 1 / -1; }
    .profile-details { grid-template-columns: 1fr; }
    .profile-stats { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
    .profile-card { grid-template-columns: 1fr; text-align: center; }
    .profile-card__avatar { margin-inline: auto; }
    .profile-actions { justify-content: center; }
    .profile-details { text-align: left; }
    .profile-actions a, .profile-actions button, .profile-actions input { width: 100%; }
}
