/* Forpost Theme — main.css (собранный файл)
   Значения выверены по детальному аудиту реального сайта forpost.media
   (computed styles через DevTools) — не приближение. */

/* ===== Header / Nav — один ряд: лого слева, меню + поиск справа ===== */
html { min-height: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

.site-header__top { background: var(--color-header-bg); }
.site-header__row {
    display: flex; align-items: center; justify-content: center;
    position: relative;
    height: 60px; gap: 16px;
}
.site-logo { position: absolute; left: 15px; }
.site-logo img { display: block; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 24px; width: 100%; }
.site-nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 18px; flex-wrap: wrap; }
.site-nav__list a {
    position: relative;
    display: inline-block;
    font-family: var(--font-nav);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-nav-text);
    padding: 4px 0;
    text-transform: uppercase;
}
.site-nav__list a::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
}
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current-menu-ancestor > a::after,
.site-nav__list .current_page_item > a::after {
    transform: scaleX(1);
}
.menu-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 2px;
    color: #fff;
    vertical-align: middle;
    text-transform: uppercase;
}
.menu-badge--red { background: var(--color-accent); }
.menu-badge--blue { background: var(--color-brand); }
.menu-badge--green { background: #2e8b57; }

.site-search-toggle { position: absolute; right: 15px; background: none; border: none; cursor: pointer; color: var(--color-nav-text); padding: 4px; }
.site-search-panel { border-top: 1px solid var(--color-border); padding: 12px 0; }
.site-search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 8px; }
.search-form__input { flex: 1; padding: 8px 12px; border: 1px solid var(--color-border); font-size: 16px; }
.search-form__submit { padding: 8px 16px; background: var(--color-brand); color: #fff; border: none; cursor: pointer; font-size: 16px; }
.site-header__sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: #fff;
    border-top: 2px solid #212121;
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform .2s ease, opacity .2s ease;
}
.site-header__sticky.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.site-header__sticky-row {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-nav--sticky { position: relative; }
.site-nav--sticky .site-nav__list {
    justify-content: center;
    gap: 22px;
    width: 100%;
}
.site-nav--sticky .site-nav__list a {
    font-size: 12px;
    padding: 12px 0 10px;
}
.site-search-toggle--sticky {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===== Mobile menu (гамбургер + off-canvas панель) ===== */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--color-nav-text); font-size: 22px; }
.mobile-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.85);
    opacity: 0; pointer-events: none; transition: opacity .4s cubic-bezier(.22,.61,.36,1) .1s;
    z-index: 998;
}
.mobile-menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
    position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 85vw;
    background: #fff; z-index: 999;
    transform: translate3d(-100%,0,0);
    transition: transform .3s cubic-bezier(.25,.46,.45,.94);
    overflow-y: auto; padding: 20px;
}
.mobile-menu-panel.is-open { transform: translateZ(0); }
.mobile-menu-close {
    background: none; border: none; cursor: pointer; font-size: 20px;
    color: var(--color-nav-text); position: absolute; top: 20px; right: 20px;
    transition: transform .2s ease .3s;
}
.mobile-menu-list { list-style: none; margin: 40px 0 0; padding: 0; }
.mobile-menu-list li { border-bottom: 1px solid var(--color-border); }
.mobile-menu-list a {
    display: block; padding: 12px 0;
    color: var(--color-nav-text); font-size: 18px; font-weight: 700;
}
/* Бейдж намеренно НЕ выводится в мобильном меню — так и на прод-сайте */
.mobile-menu-list .menu-badge { display: none; }

@media (max-width: 1024px) {
    .site-nav__list { display: none; }
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    .site-header__row { justify-content: center; }
    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .site-nav { justify-content: flex-end; width: 100%; }
    .site-search-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    .site-header__sticky { display: none; }
}

/* ===== Front page layout ===== */
.front-page__columns { display: grid; grid-template-columns: 7fr 3fr; gap: 24px; margin: 24px 0; }
.front-page__side { display: flex; flex-direction: column; gap: 20px; }
.front-page__full-width { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 768px) {
    .front-page__columns { grid-template-columns: 1fr; }
}

.feed-block { margin-bottom: 20px; }
.front-page__main > .feed-block,
.front-page__main > .row-block { margin-bottom: 8px; }
.front-page__main > .hero-slider + .feed-block { margin-top: 15px; }
.front-page__side .feed-block { margin-bottom: 0; }
.feed-block__grid { display: grid; gap: 12px; }
.feed-block--card-grid-4 .feed-block__grid,
.feed-block--photo-grid .feed-block__grid { grid-template-columns: repeat(4, 1fr); }
.front-page__side .feed-block--card-grid-4 .feed-block__grid,
.front-page__side .feed-block--photo-grid .feed-block__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.front-page__side .feed-block--card-grid-4 .post-card--side-overlay .post-card__media,
.front-page__side .feed-block--photo-grid .post-card--side-overlay .post-card__media {
    aspect-ratio: 322/230;
}
.feed-block--hero-grid .feed-block__grid { grid-template-columns: 1.4fr 1fr; }
.feed-block--list-with-time .feed-block__grid { display: flex; flex-direction: column; gap: 0; }
.feed-block--carousel .feed-block__grid { display: flex; flex-direction: column; gap: 30px; }
@media (max-width: 992px) {
    .feed-block--card-grid-4 .feed-block__grid,
    .feed-block--photo-grid .feed-block__grid { grid-template-columns: repeat(2, 1fr); }
}
.feed-block__all-link {
    display: block; text-align: center;
    background: var(--color-button-brand); color: #fff;
    padding: 12px 24px; font-family: Roboto, sans-serif;
    font-size: 15px; font-weight: 500;
    margin-top: -8px; margin-bottom: 20px;
}
.front-page__side .feed-block__all-link { margin-top: -10px; }

.front-page__about {
    max-width: 860px;
    margin: 36px auto 20px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}
.front-page__about h1 {
    color: #212121;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
}
.front-page__about-content {
    color: #53585C;
    font-size: 15px;
    line-height: 1.75;
}
.front-page__about-content p { margin: 0 0 16px; }
.front-page__about-content p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
    .front-page__about {
        margin-top: 28px;
        padding-top: 18px;
    }
    .front-page__about h1 { font-size: 26px; }
}

/* Row block (Новини + Блоги) — 50/50, подтверждено измерением */
.row-block { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 768px) {
    .row-block { grid-template-columns: 1fr; }
}

/* ===== Post cards ===== */
.post-card { position: relative; }
.post-card__media { position: relative; display: block; overflow: hidden; background: #F7F7F7; aspect-ratio: 16/9; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__badge { position: absolute; top: 8px; left: 8px; z-index: 2; }

/* Заголовок ПОВЕРХ фото (слайдер) — не используется для Відео дня/Фото дня,
   у них заголовок ПІД фото, см. .post-card--below ниже */
.post-card--overlay .post-card__overlay-text {
    position: absolute; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0,0,0,0) 0px, rgba(0,0,0,.65) 70%);
    color: #fff; padding: 60px 40px 20px 12px;
}
.post-card--overlay .post-card__title { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.post-card--overlay .post-card__meta { color: #fff; font-size: 11px; margin: 0; }

.post-card--side-overlay .post-card__media {
    aspect-ratio: 322/230;
    background: #111;
}
.post-card--side-overlay .post-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.22) 38%, rgba(0,0,0,.84));
    z-index: 1;
}
.post-card--side-overlay .post-card__badge { top: 12px; left: 12px; z-index: 3; }
.post-card--side-overlay .post-card__overlay-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    color: #fff;
    padding: 70px 16px 18px;
}
.post-card--side-overlay .post-card__title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
.post-card--side-overlay .post-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

.post-card--below .post-card__body { padding-top: 10px; }
.post-card--below .post-card__title { font-size: 14px; font-weight: 700; line-height: 19.6px; margin: 0 0 6px; }
.post-card--below .post-card__title a { color: #212121; }
.post-card--below .post-card__meta { color: #A0A0A0; font-size: 11px; display: flex; align-items: center; gap: 4px; }

.post-row { display: flex; gap: 10px; padding: 10px 0; align-items: baseline; }
.post-row--text-only {
    gap: 14px;
    padding: 7px 0;
    line-height: 1.45;
}
.post-row--text-only .post-row__time {
    color: #8B1A1A;
    font-size: 13px;
    font-weight: 500;
    width: 36px;
    flex-shrink: 0;
}
.post-row--text-only .post-row__title {
    color: #40464B;
    font-size: 15px;
    font-weight: 400;
    transition: color .15s ease;
}
.post-row--text-only .post-row__title:hover { color: var(--color-brand); }
.post-row--author { align-items: center; }
.post-row--author .post-row__avatar img { border-radius: 50%; width: 71.84px; height: 71.84px; }
.post-row--author .post-row__author-body { display: flex; flex-direction: column; gap: 2px; padding-left: 15px; }
.post-row--author .post-row__author-name { color: #6EC1E4; font-weight: 600; font-size: 14px; }
.post-row--author .post-row__title { font-size: 14px; color: #282828; }
.post-row--blog-author {
    align-items: center;
    gap: 22px;
    padding: 12px 0;
}
.post-row--blog-author .post-row__avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    border-radius: 50%;
    background: #ECF0F5;
}
.post-row--blog-author .post-row__avatar img,
.post-row--blog-author .post-row__avatar .avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}
.post-row--blog-author .post-row__author-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.post-row--blog-author .post-row__author-name {
    color: #6EC1E4;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
}
.post-row--blog-author .post-row__title {
    color: #111;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.15;
}
.post-row--blog-author .post-row__title:hover { color: var(--color-brand); }

/* ===== Hero slider (Tiny Slider) ===== */
.hero-slider { position: relative; margin-bottom: 8px; }
.hero-slider__slides { position: relative; aspect-ratio: 2/1; overflow: hidden; background: #222; }
.hero-slider__slide {
    position: absolute; inset: 0; display: block;
    opacity: 0; pointer-events: none;
    transition: transform .3s ease;
    transform: translateX(100%);
}
.hero-slider__slide.is-active { opacity: 1; pointer-events: auto; transform: translateX(0); }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__badge { position: absolute; top: 12px; left: 12px; }
.hero-slider__text {
    position: absolute; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0,0,0,0) 0px, rgba(0,0,0,.65) 70%);
    color: #fff; padding: 60px 40px 30px 12px;
}
.hero-slider__title { font-size: 34px; font-weight: 700; line-height: 37.4px; margin: 0 0 6px; color: #fff; }
.hero-slider__meta { font-size: 11px; color: #fff; margin: 0; }

/* Стрелки: вертикальный блок справа, как на прод-слайдере */
.hero-slider__nav {
    position: absolute; right: 0;
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: none; cursor: pointer; font-size: 30px; line-height: 1; z-index: 3;
    font-family: Arial, sans-serif;
    transition: background .2s ease, color .2s ease;
}
.hero-slider__nav--next { bottom: 40px; background: var(--color-accent); color: #fff; }
.hero-slider__nav--prev { bottom: 0; background: #fff; color: #212121; }

.hero-slider__thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0;
    margin-top: 6px;
    scrollbar-width: none; /* Firefox — визуально скрываем скроллбар, скролл остаётся */
}
.hero-slider__thumbs::-webkit-scrollbar { display: none; }
.hero-slider__thumb {
    flex: 0 0 calc((100% - 0px) / 7);
    padding: 0 10px 0 0; border: none;
    overflow: hidden; cursor: pointer; aspect-ratio: 16/9; background: #ccc;
}
.hero-slider__thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
    .hero-slider__thumb { flex: 0 0 calc((100% - 0px) / 4); }
}

@media (max-width: 768px) {
    .hero-slider__text { padding: 70px 20px 8px; }
    .hero-slider__title { font-size: 21px; line-height: 1.2; }
    .hero-slider__badge { top: 20px; left: 20px; }
}

/* ===== Category archive ===== */
.category-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; margin: 20px 0 40px; align-items: stretch; }
.category-hero .post-card:first-child { height: 100%; }
.category-hero .post-card:first-child .post-card__media { height: 100%; aspect-ratio: auto; }
.category-hero__side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }
.category-hero__side .post-card__media { height: 100%; aspect-ratio: auto; }
@media (max-width: 1024px) {
    .category-hero { grid-template-columns: 1fr; }
    .category-hero .post-card:first-child .post-card__media { aspect-ratio: 16/9; }
    .category-hero__side { grid-template-columns: 1fr 1fr; overflow-x: auto; }
    .category-hero__side .post-card__media { aspect-ratio: 4/3; }
}

.breadcrumbs { font-size: 12px; color: #A0A0A0; margin: 0 0 20px; }
.breadcrumbs a { color: #53585C; }

.category-archive__columns { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.category-archive__main h1 { font-size: 36px; font-weight: 700; color: #212121; margin: 0 0 20px; }

.category-list-item {
    display: grid; grid-template-columns: 360px 1fr; gap: 0;
    margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border);
    align-items: start;
}
.category-list-item__media { position: relative; display: block; overflow: hidden; aspect-ratio: 360/257; background: #F7F7F7; margin-right: 30px; }
.category-list-item__media img { width: 100%; height: 100%; object-fit: cover; }
.category-list-item__body { display: flex; flex-direction: column; max-height: 257px; overflow: hidden; }
.category-list-item__body h2 { font-size: 22px; font-weight: 700; line-height: 30.8px; color: #212121; margin: 0 0 6px; }
.category-list-item__meta { font-size: 11px; margin: 0 0 8px; }
.category-list-item__author { color: var(--color-accent); font-weight: 700; }
.category-list-item__excerpt {
    font-size: 14px; line-height: 22.4px; color: #53585C; margin: 14px 0 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    align-self: flex-start;
    width: auto;
    min-width: 118px;
    padding: 6px 18px;
    border: 1px solid #E0E0E0; color: #53585C; font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn-outline:hover { border-color: var(--color-brand); color: var(--color-brand); background: #F7FAFD; }

@media (max-width: 768px) {
    .category-archive__columns { grid-template-columns: 1fr; }
    .category-archive__main h1 { font-size: 27px; }
    .category-list-item {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }
    .category-list-item__media {
        width: 132px;
        aspect-ratio: 132/96;
        margin-right: 0;
    }
    .category-list-item__body {
        max-height: none;
        overflow: visible;
    }
    .category-list-item__body h2 {
        font-size: 18px;
        line-height: 1.22;
        margin-bottom: 7px;
    }
    /* На мобильном excerpt и кнопка "Читати далі" скрыты целиком — подтверждено на проде */
    .category-list-item__excerpt,
    .category-list-item .btn-outline { display: none; }
}

@media (max-width: 768px) {
    .category-hero {
        display: block;
        margin: 20px 0 18px;
    }
    .category-hero .post-card:first-child .post-card__media {
        aspect-ratio: 445/260;
    }
    .category-hero > .post-card:first-child {
        margin-bottom: 4px;
    }
    .category-hero > .post-card:first-child .post-card__overlay-text {
        padding: 72px 24px 24px;
    }
    .category-hero > .post-card:first-child .post-card__title {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 8px;
        max-width: 92%;
    }
    .category-hero__side {
        display: none;
    }
}

/* Пагинация */
.pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    font-size: 13px; font-weight: 700;
    border: 1px solid #E2E7ED; color: #212121;
    background: #fff;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pagination a:hover { border-color: var(--color-brand); color: var(--color-brand); background: #F7FAFD; }
.pagination .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.pagination .dots { border-color: transparent; background: transparent; min-width: 18px; padding: 0 2px; color: #8B939B; }
.pagination .prev,
.pagination .next { width: auto; min-width: 78px; }

.sidebar-widget { margin-bottom: 24px; }
.sidebar-widget > :last-child { margin-bottom: 0; }
.category-archive__sidebar { padding-top: 4px; }
.single-post__sidebar { padding-top: 36px; }
@media (min-width: 1025px) {
    .category-archive__sidebar,
    .single-post__sidebar {
        position: sticky;
        top: 80px;
        align-self: start;
    }
}
.sidebar-widget--weather [data-async-weather] {
    min-height: 108px;
    background: #F7F9FC;
    border: 1px solid #B7C8DE;
}
.post-row--popular {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.post-row--popular .post-row__thumb {
    display: block;
    width: 82px;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #ECF0F5;
}
.post-row--popular .post-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-row--popular .post-row__title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.post-row--popular .post-row__title:hover { color: var(--color-brand); }
.sidebar-widget__empty {
    color: #8B939B;
    font-size: 13px;
    margin: 10px 0 0;
}

/* ===== Single post ===== */
.site-main > .single-post { padding-top: 30px; }
.single-post__columns {
    display: grid;
    grid-template-columns: minmax(0, 750px) 350px;
    gap: 45px;
    align-items: start;
}
.single-post__main h1 { font-size: 42px; font-weight: 700; line-height: 48.3px; color: #212121; margin: 0 0 16.8px; }
.single-post__meta { color: #A0A0A0; font-size: 13px; }
.single-post__author { color: #A0A0A0; font-weight: 400; }
.single-post__image {
    max-width: 100%;
    margin: 0 0 30px;
}
.single-post__image-link {
    display: block;
    max-width: 100%;
    cursor: zoom-in;
}
.single-post__image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.single-post__image figcaption { font-size: 11px; color: #A0A0A0; margin-top: 3px; }
.single-post__image figcaption { text-align: right; }
.single-post__counters { display: flex; align-items: center; gap: 6px; margin: 22px 0 28px; }
.counter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    color: #8B939B;
    font-size: 11px;
    line-height: 1.2;
}
.counter + .counter {
    border-left: 1px solid #E2E7ED;
    padding-left: 12px;
    margin-left: 6px;
}
.counter strong { font-size: 26px; font-weight: 700; }
.counter:nth-child(1) strong { color: var(--color-accent); } /* Поділилися */
.counter:nth-child(2) strong { color: #53585C; } /* Перегляди */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 268px;
    height: 38px;
    padding: 0 28px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.share-btn[data-network="facebook"] { background: #4569AD; }
.share-btn[data-network="twitter"] { background: #000; }
.share-btn[data-network="facebook"]::before {
    content: "f";
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.share-btn[data-network="twitter"]::before {
    content: "X";
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}
.share-btn--native {
    min-width: 44px;
    width: 44px;
    padding: 0;
    background: #C9CDD2;
    color: #fff;
    font-size: 22px;
}
.single-post__content { font-size: 16px; line-height: 26px; color: #333333; }
.single-post__content p { margin-bottom: 20px; }
.single-post__content a { color: var(--color-accent); }
.single-post__content img,
.single-post__content figure,
.single-post__content .wp-caption {
    max-width: 100% !important;
}
.single-post__content figure,
.single-post__content .wp-caption {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.single-post__content img {
    width: auto;
    height: auto;
}
.single-post__content a:has(img) {
    display: inline-block;
    max-width: 100%;
    cursor: zoom-in;
}
.single-post__content figure img,
.single-post__content .wp-caption img,
.single-post__content p > img,
.single-post__content p > a > img {
    display: block;
    max-width: 100%;
}
.single-post__content figcaption,
.single-post__content .wp-caption-text {
    color: #8B939B;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 6px;
}
.forpost-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: rgba(0,0,0,.86);
}
.forpost-lightbox.is-open { display: flex; }
.forpost-lightbox__image {
    display: block;
    max-width: min(100%, 1180px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.forpost-lightbox__close {
    position: fixed;
    top: 14px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    background: rgba(255,255,255,.92);
    color: #111;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}
.single-post__nav {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 24px; padding-top: 16px; padding-left: 10px;
    border-left: 10px solid var(--color-border);
    font-size: 16px; font-weight: 700; color: #212121; line-height: 22.4px;
}

@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 996;
    }
    body.admin-bar .site-header { top: 46px; }
    .single-post__columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }
    .single-post__main,
    .single-post__sidebar {
        min-width: 0;
        width: 100%;
    }
    .single-post__main h1 {
        font-size: 32px;
        line-height: 1.15;
    }
    .single-post__meta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .single-post__image img {
        width: 100%;
        object-fit: cover;
    }
    .single-post__counters {
        flex-wrap: nowrap;
        gap: 4px;
        overflow: visible;
        margin: 20px 0 28px;
    }
    .counter {
        width: 56px;
        min-width: 56px;
        flex: 0 0 56px;
        font-size: 0;
    }
    .counter + .counter {
        padding-left: 9px;
        margin-left: 0;
    }
    .counter strong { font-size: 24px; }
    .counter::after {
        display: block;
        margin-top: 2px;
        color: #8B939B;
        font-size: 15px;
        line-height: 1;
    }
    .counter:nth-child(1)::after { content: "↗"; }
    .counter:nth-child(2)::after {
        content: "";
        width: 16px;
        height: 10px;
        border: 1.5px solid #8B939B;
        border-radius: 50%;
        position: relative;
    }
    .counter:nth-child(2)::before {
        content: "";
        order: 3;
        width: 4px;
        height: 4px;
        margin-top: -7px;
        border-radius: 50%;
        background: #8B939B;
        position: relative;
        z-index: 1;
    }
    .share-btn {
        min-width: 0;
        width: 115px;
        flex: 1 1 115px;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
    }
    .share-btn--native {
        width: 44px;
        flex: 0 0 44px;
        padding: 0;
        font-size: 20px;
    }
}

/* Search */
.search-results h1 span { color: var(--color-brand); }

/* ===== Static pages ===== */
.static-page {
    padding-top: 34px;
    padding-bottom: 70px;
}
.static-page__article {
    max-width: 860px;
    margin: 0 auto;
}
.static-page__header {
    margin-bottom: 26px;
}
.static-page__header h1 {
    color: #212121;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}
.static-page__content {
    color: #53585C;
    font-size: 16px;
    line-height: 1.8;
}
.static-page__content p {
    margin: 0 0 22px;
}
.static-page__content a {
    color: var(--color-brand);
    font-weight: 700;
}
.static-page__content strong {
    color: #212121;
}
.static-page__content ul,
.static-page__content ol {
    margin: 0 0 22px;
    padding-left: 22px;
}
.static-page__article--kontakti .static-page__content,
.static-page__article--contacts .static-page__content {
    display: grid;
    gap: 16px;
}
.static-page__article--kontakti .static-page__content p,
.static-page__article--contacts .static-page__content p {
    margin: 0;
    padding: 16px 18px;
    border-left: 4px solid var(--color-brand);
    background: #F7F9FC;
}

/* ===== Footer ===== */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); margin-top: 40px; }
.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 60px 15px 34px;
}
.site-footer__about {
    max-width: 640px;
    font-size: 14px;
    line-height: 1.7;
}
.site-footer__about p { margin: 0 0 14px; }
.site-footer__logo { filter: brightness(0) invert(1); opacity: .9; }
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 15px 36px;
    border-top: 1px solid rgba(255,255,255,.16);
}
.site-footer__list { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; }
.site-footer__list li {
    display: flex;
    align-items: center;
}
.site-footer__list li + li::before {
    content: "/";
    margin: 0 10px;
    color: rgba(255,255,255,.45);
}
.site-footer__list a { color: #fff; font-size: 13px; font-weight: 700; }
.site-footer__list a:hover { color: #BFD7F3; }
.site-footer__copy {
    font-size: 13px; color: var(--color-footer-text);
    margin: 0;
}
@media (max-width: 992px) {
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
    .static-page__header h1 { font-size: 30px; }
}
