/* Стиль спецпроекта «Город за рекой» (общий для страницы и статей) */

@font-face {
    font-family: 'Mont';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/wp-content/themes/pennews-child/fonts/Mont-SemiBold.woff2') format('woff2'),
         url('/wp-content/themes/pennews-child/fonts/Mont-SemiBold.woff') format('woff');
}

body.gorod-za-rekoy { background: #A11A1C none !important; }

/* Логотип спецпроекта — фоном слева, симметрично белым полоскам справа */
body.gorod-za-rekoy::before {
    content: "";
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 120px;
    background: url('/wp-content/uploads/2025/02/gorky_logo.png') no-repeat center / contain;
    pointer-events: none;
    z-index: 9998;
}

body.gorod-za-rekoy::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    right: 8px;
    width: 120px;
    background: repeating-linear-gradient(
        to right,
        #ffffff 0,
        #ffffff 16px,
        transparent 16px,
        transparent 32px
    );
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 1540px) {
    body.gorod-za-rekoy::after, body.gorod-za-rekoy::before {
        display: none;
    }
}

@media (max-width: 1650px) {
    body.gorod-za-rekoy::before {
        width: 140px;
        left: 40px;
    }
}

body.gorod-za-rekoy .penci-comment-count { display: none; }

.gorod-back-wrap { padding: 18px 0; text-align: center; }
.gorod-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Mont', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #A11A1C;
    text-decoration: none;
    transition: color .2s ease;
}
.gorod-back-arrow { font-size: 16px; line-height: 1; }
.gorod-back-link:hover { color: #ee7f1a; }

.gorod-hero-badge {
    display: inline-block;
    background-color: #9f1c22;
    color: #ffffff;
    padding: 6px 25px;
    border-radius: 50px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 29px;
    line-height: 100%;
    letter-spacing: 0;
}

.gorod-hero-desc {
    font-family: 'Mont', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    text-align: center;
    letter-spacing: 0;
    color: #000000;
}

.gorod-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 72px;
    line-height: 100%;
    letter-spacing: 0;
    color: #9f1c22;
    text-transform: uppercase;
    margin-top: 60%;
}

.gorod-hero-br { display: none; }

.gorod-hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-right: auto;
    padding-top: 10px;
}
.site-branding {
    padding-top: 20px;
}
.vc_section.vc_section-has-fill {
    padding-top: 0px!important;
}

body.gorod-za-rekoy .special-project-header .gorod-hero-top {
    min-width: 0;
    padding-bottom: 16px;
}

body.gorod-za-rekoy .special-project-header .gorod-hero-desc {
    margin: 8px 0 0;
    line-height: 1.4;
}


@media (max-width: 768px) {
    .gorod-hero-title { font-size: 52px; margin-top: 70%; }
    .gorod-hero-br { display: block; }

    /* На мобильных: лого по центру сверху, надписи — по центру ниже (между шапкой и контентом) */
    body.gorod-za-rekoy .special-project-header .header-content__container {
        flex-direction: column;
        align-items: center!important;
        justify-content: center;
    }
    body.gorod-za-rekoy .special-project-header .site-branding {
        order: 1;
        padding-top: 0px;
    }
    body.gorod-za-rekoy .special-project-header .gorod-hero-top {
        order: 2;
        align-items: center;
        text-align: center;
        margin-right: 0;
    }
}

body.gorod-za-rekoy .special-project-header .header-content__container {
    display: flex;
    align-items: start;
    justify-content: flex-end;
    gap: 16px;
}

body.gorod-za-rekoy .site-content {
    margin-top: 0;
    margin-bottom: 0;
}

/* Дисклеймер внизу страницы */
.gorod-disclaimer {
    margin: 24px 0 0;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #8a8a8a;
}
.gorod-disclaimer a {
    color: inherit;
    text-decoration: underline;
}

/* === Баннер спецпроекта === */

/* Внешняя обёртка: по центру, не шире 790px */
.banner-gorod {
    display: block;
    max-width: 790px;
    margin: 0 auto;
    width: 100%;
}

/* Внутренний баннер: фон + пропорции */
.banner-gorod__inner {
    position: relative;
    width: 100%;
    aspect-ratio: 790 / 373;
    background-image: url('/wp-content/uploads/2025/02/banner-gorod-za-rekoy.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 12px;
}

/* Верхний левый блок: заголовок + подзаголовок */
.banner-gorod__head {
    position: absolute;
    top: 5%;
    left: 4%;
    right: 4%;
}

.banner-gorod__label {
    display: block;
    color: #a11a1c;
    font-weight: 800;
    font-size: clamp(18px, 4vw, 28px);
    line-height: 1.2;
}

.banner-gorod__sub {
    margin: 4px 0 0;
    color: #222;
    font-weight: 500;
    font-size: clamp(10px, 2vw, 15px);
    line-height: 1.35;
}

/* Нижняя левая плашка «ГОРОД ЗА РЕКОЙ» */
.banner-gorod__badge {
    position: absolute;
    bottom: 8%;
    left: 4%;
    color: #ffffff;
    background-color: #a11a1c;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
    padding: 0.2em 0.8em;
    border-radius: 100px;
    font-size: clamp(20px, 5vw, 36px);
    line-height: 1.2;
}
