/* Home redesign.
 * Hex и палитра редактора — в theme.json. Алиасы --* на body.yugopolis
 * дублируются в styles.css theme.json (редактор) и здесь как fallback фронта.
 */

body.yugopolis {
    --ac: var(--wp--preset--color--accent, #E12B22);
    --ac-dk: var(--wp--custom--color--accent-dark, #B4201A);
    --font: var(--wp--preset--font-family--body, 'Golos Text', system-ui, sans-serif);
    --mono: var(--wp--preset--font-family--mono, 'Golos Text', system-ui, sans-serif);
    --text: var(--wp--preset--color--text, #17161A);
    --muted: var(--wp--preset--color--muted, #6D6862);
    --border: var(--wp--preset--color--border, #ECE8E2);
    --bg: var(--wp--preset--color--background, #FBFAF8);
    --surface: var(--wp--preset--color--surface, #FFFFFF);
    --placeholder: var(--wp--preset--color--placeholder, #EFECE7);
    --container: var(--wp--custom--layout--container, 1200px);

    margin: 0;
    font-family: var(--font);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
}

body.yugopolis a {
    text-decoration: none;
    color: inherit;
}

@media (min-width: 1440px) {
    body.yugopolis {
        --container: var(--wp--custom--layout--container-wide, 1440px);
    }

    .header__search {
        max-width: 640px;
    }
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header__top {
    background: var(--text);
    color: #CFCAC2;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    font-size: 12.5px;
}

.header__top-left,
.header__top-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header__top-right {
    gap: 22px;
}

.header__city {
    color: #fff;
    font-weight: 600;
}

.header__date {
    color: #98938B;
}

.header__weather {
    color: var(--ac);
    font-weight: 600;
}

.header__sep {
    width: 1px;
    height: 12px;
    background: #3A3831;
    flex-shrink: 0;
}

.header__top-link {
    color: #CFCAC2;
}

.header__top-link:hover {
    color: #fff;
}

.header__top-socials {
    display: flex;
    gap: 8px;
}

.header__social {
    width: 24px;
    height: 24px;
    background: #26241F;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 11px var(--font);
    color: #CFCAC2;
}

.header__social:hover {
    color: #fff;
    background: #33312B;
}

.header__main {
    padding: 26px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.header__logo img {
    display: block;
    height: 26px;
    width: auto;
}

.header__search {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F5F3F0;
    border: 1px solid var(--border);
    height: 46px;
    padding: 0 16px;
    margin: 0;
}

.header__search-icon {
    color: #A8A29A;
    font-size: 17px;
    flex-shrink: 0;
}

.header__search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font: 500 14.5px var(--font);
    color: var(--text);
    min-width: 0;
}

.header__search-input::placeholder {
    color: #A8A29A;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header__magazine {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    font: 700 13px var(--font);
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.header__magazine:hover {
    color: var(--ac);
}

.header__magazine-cover-wrap {
    position: relative;
    flex-shrink: 0;
    line-height: 0;
}

.header__magazine-cover {
    display: block;
    width: 48px;
    height: auto;
    box-shadow: 0 2px 10px rgba(23, 22, 26, 0.14);
}

.header__magazine-label {
    white-space: nowrap;
    font: 700 13px var(--font);
    letter-spacing: 0.01em;
}

.header__magazine-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font: 800 8px var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ac);
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.4;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.header__nav {
    padding: 0 34px;
    display: flex;
    gap: 26px;
    overflow: hidden;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.header__nav-link {
    padding: 14px 0 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.header__nav-link.is-active,
.header__nav-link:hover {
    color: var(--text);
    font-weight: 700;
}

.header__nav-link.is-active {
    border-bottom-color: var(--ac);
}

/* Ticker */
.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    width: 100%;
}

.ticker__inner {
    display: flex;
    align-items: stretch;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 34px;
    box-sizing: border-box;
    width: 100%;
}

.ticker__label {
    background: var(--ac);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    font: 700 12px var(--font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: ticker-pulse 1.4s ease infinite;
}

@keyframes ticker-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

.ticker__content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 22px;
    min-width: 0;
    position: relative;
    min-height: 36px;
}

.ticker__item {
    display: none;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ticker__item.is-active {
    display: flex;
}

.ticker__category {
    font: 700 11px var(--font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ac);
    white-space: nowrap;
}

.ticker__headline {
    font-size: 14px;
    color: #2C2A27;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker__item:hover .ticker__headline {
    color: var(--ac);
}

.ticker__dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 22px;
}

.ticker__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #DDD8D1;
}

.ticker__dot.is-active {
    background: var(--ac);
}

/* Footer */
.footer {
    background: var(--text);
    padding: 44px 34px 34px;
    color: #98938B;
    margin-top: 0;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2A2822;
    max-width: var(--container);
    margin: 0 auto;
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer__logo img {
    display: block;
    height: 23px;
    width: auto;
}

.footer__desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

.footer__cols {
    display: flex;
    gap: 60px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 13.5px;
}

.footer__col-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 3px;
}

.footer__link {
    color: #98938B;
}

.footer__link:hover {
    color: #fff;
}

.footer__socials {
    display: flex;
    gap: 9px;
}

.footer__social {
    width: 34px;
    height: 34px;
    background: #26241F;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 12px var(--font);
    color: #CFCAC2;
}

.footer__social:hover {
    color: #fff;
}

.footer__bottom {
    padding-top: 22px;
    font-size: 12px;
    color: #6F6A63;
    display: flex;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
}

.main {
    font-family: var(--font);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
}

.main a {
    text-decoration: none;
    color: inherit;
}

.inner {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    padding-left: 34px;
    padding-right: 34px;
    box-sizing: border-box;
}

.preview-banner {
    background: #17161A;
    color: #CFCAC2;
    text-align: center;
    padding: 10px 20px;
    font: 500 12px/1.4 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ad {
    margin: 22px 0 0;
    position: relative;
    border: 1px solid #E7E3DD;
    background: repeating-linear-gradient(
        135deg,
        #F1EEEA,
        #F1EEEA 13px,
        #E9E5DE 13px,
        #E9E5DE 26px
    );
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad:empty::after {
    content: '[ Рекламная растяжка ]';
    font: 500 12px var(--mono);
    color: #B3ADA3;
    letter-spacing: 0.08em;
}

.hero-grid,
.layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 48px;
    padding: 30px 0;
    align-items: start;
}

.hero {
    position: relative;
    overflow: hidden;
    background: #222;
    min-height: 560px;
    box-shadow: inset 0 0 120px rgba(225, 43, 34, 0.08);
}

.hero__track {
    display: flex;
    height: 560px;
    transition: transform 0.6s ease-out;
}

.hero__slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 560px;
    background: #222 center / cover no-repeat;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 13, 11, 0.92) 0%,
        rgba(15, 13, 11, 0.32) 46%,
        rgba(15, 13, 11, 0) 70%
    );
}

.hero__content,
.hero__ad-content {
    position: relative;
    z-index: 2;
    padding: 40px 40px 80px;
    color: #fff;
}

.hero__slide--ad .hero__overlay {
    background: linear-gradient(135deg, rgba(225, 43, 34, 0.95), rgba(180, 32, 26, 0.95));
}

.hero__slide--ad {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero__ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
}

.hero__slide--banner {
    justify-content: flex-end;
    background: #111 center / cover no-repeat;
}

.hero__slide--banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__ad-label {
    font: 700 11px var(--font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge {
    background: var(--ac);
    color: #fff;
    font: 700 10px var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 13px;
}

.hero__meta-text {
    color: #CFCAC2;
    font-size: 12.5px;
}

.hero__title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 38px;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.018em;
    max-width: 800px;
    text-wrap: balance;
    margin: 0;
}

.hero__title--ad {
    font-size: 42px;
}

.hero__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.btn {
    display: inline-block;
    font: 600 15px var(--font);
    padding: 14px 32px;
    margin-top: 12px;
}

.btn--white {
    background: #fff;
    color: var(--ac);
}

.hero__nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font: 700 18px var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.hero__arrow--accent {
    background: var(--ac);
    border: none;
}

.hero__dots {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
    align-items: center;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
    transition: 0.3s;
}

.hero__dot.is-active {
    background: #fff;
}

.sidebar {
    border: 1px solid var(--border);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    height: 560px;
    min-height: 560px;
    max-height: 560px;
    background: var(--surface);
    align-self: start;
    box-sizing: border-box;
}

.sidebar__head {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.sidebar__title {
    margin: 0;
    font-family: var(--font);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.018em;
    color: var(--text);
}

.sidebar__title a:hover {
    color: var(--ac);
}

.sidebar__list {
    flex: 1;
    overflow-y: auto;
}

.sidebar__item {
    display: block;
    padding: 15px 0;
    border-top: 1px solid #F0ECE6;
}

.sidebar__item:first-child {
    border-top: none;
    padding-top: 0;
}

.sidebar__date {
    display: block;
    font: 500 11.5px var(--mono);
    color: #A19B91;
    margin-bottom: 5px;
}

.sidebar__headline {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.32;
    color: #232120;
}

.sidebar__item:hover .sidebar__headline {
    color: var(--ac);
}

.sidebar__more {
    display: block;
    padding-top: 16px;
    border-top: 1px solid #F0ECE6;
    font: 600 12px var(--font);
    color: var(--ac);
    flex-shrink: 0;
    margin-top: auto;
}

.featured-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.featured-section__title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.018em;
    color: var(--text);
    margin: 0;
}

.featured-section__more {
    font: 600 13px var(--font);
    color: var(--ac);
    white-space: nowrap;
}

.featured-section__more:hover {
    color: var(--text);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 0 30px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.card__image {
    position: relative;
    height: 212px;
    overflow: hidden;
    background: var(--placeholder) center / cover no-repeat;
}

.card__ad-label {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--text);
    color: #fff;
    font: 600 9px var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 10px;
}

.card__category {
    font: 700 11px var(--font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ac);
}

.card__title {
    font-family: var(--font);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.2;
    color: #1C1A19;
    margin: -4px 0 0;
}

.card:hover .card__title {
    color: var(--ac);
}

.headline {
    margin-bottom: 30px;
}

.headline__link {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.headline__image {
    min-height: 280px;
    background: #E9E5DF center / cover no-repeat;
}

.headline__body {
    padding: 48px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.headline__label {
    font: 700 12px var(--font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 14px;
}

.headline__title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    text-wrap: balance;
}

.headline__link:hover .headline__title {
    color: var(--ac);
}

.social {
    margin-bottom: 34px;
    background: var(--ac);
    padding: 32px 50px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.social--compact {
    padding: 16px 22px;
    gap: 24px;
    margin-bottom: 30px;
}

.social--compact .social__eyebrow {
    margin-bottom: 4px;
}

.social--compact .social__title {
    font-size: 22px;
    line-height: 1.2;
}

.social--compact .social__links {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.social--compact .social__link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    gap: 0;
    justify-content: center;
    background: var(--text);
}

.social--compact .social__icon {
    width: 44px;
    height: 44px;
    font-size: 0;
    background: transparent;
}

.social--compact .social__icon svg {
    display: block;
    width: 20px;
    height: 20px;
    color: #fff;
}

.social--compact .social__name {
    display: none;
}

.social__eyebrow {
    font: 700 12px var(--font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
}

.social__title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    text-wrap: balance;
}

.social__desc {
    font-size: 15.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 14px 0 0;
    max-width: 440px;
}

.social__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social__link {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    padding: 14px 18px;
    min-width: 190px;
}

.social__icon {
    width: 30px;
    height: 30px;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 12px var(--font);
    color: #fff;
    flex-shrink: 0;
}

.social__name {
    font: 600 15px var(--font);
    color: var(--text);
}

.social__link:hover .social__name {
    color: var(--ac);
}

.quote {
    margin-bottom: 34px;
}

.quote__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    background: var(--text);
    padding: 52px 60px;
    color: #98938B;
}

.quote__text {
    font-family: var(--font);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.32;
    color: #F4F1EC;
    margin: 0;
    text-wrap: pretty;
}

.quote__author {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.quote__line {
    width: 38px;
    height: 2px;
    background: var(--ac);
    flex-shrink: 0;
}

.quote__mark {
    font-family: var(--font);
    font-size: 130px;
    line-height: 0.6;
    color: var(--ac);
    font-weight: 900;
    opacity: 0.9;
}

.quote__inner:hover .quote__text {
    color: #fff;
}

.podcasts {
    background: #100F12;
    margin: 0 calc(50% - 50vw) 34px;
    padding: 44px calc(50vw - 50% + 0px) 50px;
}

.podcasts__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.podcasts__eyebrow {
    font: 700 12px var(--font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 10px;
}

.podcasts__title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 32px;
    color: #fff;
    margin: 0;
}

.podcasts__all {
    font: 600 13px var(--font);
    color: var(--text);
    background: #fff;
    border: none;
    padding: 12px 20px;
    white-space: nowrap;
}

.podcasts__all:hover {
    background: var(--ac);
    color: #fff;
}

.podcasts__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 22px;
    max-width: var(--container);
    margin: 0 auto;
}

.podcast-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.podcast-card__media {
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.podcast-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.podcast-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 8, 0.3);
}

.podcast-card__placeholder {
    position: absolute;
    inset: 0;
    background: #262626;
}

.podcast-card__play {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--ac);
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-card:not(.podcast-card--featured) .podcast-card__play {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(2px);
}

.podcast-card__play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.podcast-card:not(.podcast-card--featured) .podcast-card__play::after {
    border-left-width: 14px;
    border-top-width: 8px;
    border-bottom-width: 8px;
    margin-left: 4px;
}

.podcast-card__title {
    font-family: var(--font);
    font-weight: 700;
    font-size: 21px;
    line-height: 1.24;
    color: #fff;
    margin: 0;
}

.podcast-card:not(.podcast-card--featured) .podcast-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #E9E6E2;
}

.podcast-card:hover .podcast-card__title {
    color: var(--ac);
}

.materials {
    padding: 80px 0 60px;
    background: var(--bg);
    border-top: 1px solid #DDD6CE;
}

.materials__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.materials__eyebrow {
    font: 700 12px var(--font);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 14px;
}

.materials__title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 48px;
    letter-spacing: -0.018em;
    color: var(--text);
    margin: 0;
}

.materials__all {
    font: 600 13px var(--font);
    color: var(--text);
    border-bottom: 2px solid var(--ac);
    padding-bottom: 3px;
    white-space: nowrap;
}

.materials__all:hover {
    color: var(--ac);
}

.materials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
}

.material-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.material-card__image {
    position: relative;
    height: 262px;
    overflow: hidden;
    background: var(--placeholder) center / cover no-repeat;
}

.material-card__category {
    font: 700 11px var(--font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ac);
}

.material-card__title {
    font-family: var(--font);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: #1C1A19;
    margin: -7px 0 0;
}

.material-card__excerpt {
    font-size: 14px;
    line-height: 1.58;
    color: var(--muted);
    margin: 0;
}

.material-card__meta {
    font: 500 11.5px var(--mono);
    color: #A19B91;
    margin-top: 2px;
}

.material-card:hover .material-card__title {
    color: var(--ac);
}

.materials__footer {
    text-align: center;
    margin-top: 48px;
}

.materials__end {
    margin-top: 48px;
}

.materials__load-more {
    font: 600 14px var(--font);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 14px 36px;
    cursor: pointer;
    transition: 0.2s;
}

.materials__load-more:hover {
    border-color: var(--ac);
    color: var(--ac);
}

.materials__load-more:disabled {
    opacity: 0.5;
    cursor: default;
}

.magazine-teaser {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px 28px;
}

.magazine-teaser__cover {
    display: block;
    width: 92px;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(23, 22, 26, 0.18);
}

.magazine-teaser__cover img {
    display: block;
    width: 92px;
    height: auto;
}

.magazine-teaser__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.magazine-teaser__eyebrow {
    font: 700 11px var(--font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ac);
}

.magazine-teaser__title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.magazine-teaser__meta {
    font: 500 13px var(--font);
    color: var(--muted);
}

.magazine-teaser__cta {
    font: 600 13px var(--font);
    color: #fff;
    background: var(--ac);
    padding: 13px 20px;
    white-space: nowrap;
}

.magazine-teaser:hover .magazine-teaser__title {
    color: var(--ac);
}

/* Cookie consent bar */
.cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--surface);
    border-top: 2px solid var(--ac);
    box-shadow: 0 -4px 24px rgba(23, 22, 26, 0.1);
}

.cookie__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
}

.cookie__text {
    font: 400 13px/1.5 var(--font);
    color: var(--text);
    margin: 0;
}

.cookie__text a {
    color: var(--ac);
    text-decoration: underline;
}

.cookie__btn {
    font: 600 13px var(--font);
    color: #fff;
    background: var(--ac);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie__btn:hover {
    background: var(--ac-dk);
}

@media (max-width: 640px) {
    .cookie__inner {
        flex-direction: column;
        padding: 14px 20px;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    body.yugopolis,
    .main {
        min-width: 0;
    }

    .header__main,
    .header__nav,
    .header__top,
    .ticker__inner,
    .footer__top,
    .footer__bottom,
    .inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header__main,
    .header__nav,
    .ticker__inner {
        max-width: none;
    }

    .layout,
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px 0;
    }

    .sidebar {
        min-height: 0;
        height: auto;
        max-height: 480px;
        order: 1;
    }

    .sidebar__item:nth-child(n+6) {
        display: none;
    }

    .hero {
        min-height: 420px;
    }

    .hero__track {
        height: 420px;
    }

    .hero__slide {
        min-height: 420px;
    }

    .hero__title {
        font-size: 32px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .social {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 24px;
    }

    .social--compact {
        padding: 16px 18px;
        gap: 14px;
    }

    .social__links {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .social--compact .social__links {
        display: flex;
    }

    .social__link {
        min-width: 0;
    }

    .magazine-teaser {
        grid-template-columns: auto 1fr;
        gap: 18px;
    }

    .magazine-teaser__cta {
        grid-column: 1 / -1;
        text-align: center;
    }

    .quote__inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 36px 28px;
    }

    .quote__text {
        font-size: 22px;
    }

    .quote__mark {
        display: none;
    }

    .materials__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }

    .materials__title {
        font-size: 36px;
    }

    .podcasts__grid {
        grid-template-columns: 1fr 1fr;
    }

    .podcast-card--featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .header__main {
        flex-wrap: wrap;
        gap: 16px;
    }

    .header__search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .header__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header__top-right {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header__nav {
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ticker__inner {
        flex-direction: row;
        align-items: center;
    }

    .ticker__label {
        display: none;
    }

    .ticker__dots {
        display: none;
    }

    .ticker__content {
        padding: 8px 0;
    }

    .hero__content,
    .hero__ad-content {
        padding: 24px 24px 64px;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero__nav {
        display: none;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card__image {
        height: 180px;
    }

    .social {
        padding: 24px 20px;
    }

    .social--compact {
        padding: 14px 16px;
    }

    .social--compact .social__title {
        font-size: 18px;
    }

    .social__title {
        font-size: 26px;
    }

    .social__links {
        grid-template-columns: 1fr;
    }

    .social--compact .social__links {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .sidebar__item:nth-child(n+6) {
        display: none;
    }

    .magazine-teaser {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .magazine-teaser__title {
        font-size: 20px;
    }

    .sidebar {
        max-height: none;
        height: auto;
        padding: 18px 16px;
    }

    .sidebar__title {
        font-size: 22px;
    }

    .materials {
        padding: 48px 0 40px;
    }

    .materials__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .materials__title {
        font-size: 28px;
    }

    .materials__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__top {
        flex-direction: column;
        gap: 28px;
    }

    .footer__cols {
        flex-direction: column;
        gap: 24px;
    }

    .footer {
        padding-bottom: 68px;
    }
}

/* ===== Mobile header controls ===== */
.header__mobile-controls {
    display: none;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 17px;
}

.header__mobile-search-btn,
.header__mobile-burger {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}

/* ===== Mobile overlay menu ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--text);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 18px 18px;
}

.mobile-menu__logo img {
    height: 18px;
    width: auto;
    display: block;
}

.mobile-menu__close {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #CFCAC2;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu__nav {
    padding: 0 22px;
    display: flex;
    flex-direction: column;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font: 700 22px var(--font);
    color: #fff;
    text-decoration: none;
}

.mobile-menu__link.is-active {
    color: var(--ac);
}

.mobile-menu__arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 15px;
}

.mobile-menu__footer {
    margin-top: auto;
    padding: 20px 22px 26px;
}

.mobile-menu__cta {
    background: var(--ac);
    padding: 18px;
}

.mobile-menu__cta-title {
    font: 800 17px var(--font);
    color: #fff;
}

.mobile-menu__cta-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 5px;
    line-height: 1.4;
}

/* ===== Bottom tab bar ===== */
.bottom-bar {
    display: none;
}

/* ===== Mobile category tabs (nav replacement) ===== */
.mobile-tabs {
    display: none;
}

@media (max-width: 768px) {
    .header__top {
        display: none;
    }

    .header__search {
        display: none;
    }

    .header__search.is-open {
        display: flex;
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .header__actions {
        display: none;
    }

    .header__mobile-controls {
        display: flex;
    }

    .header__main {
        padding: 6px 18px 12px;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--border);
    }

    .header__nav {
        display: none;
    }

    .header__logo img {
        height: 18px;
    }

    .bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9990;
        height: 60px;
        background: var(--surface);
        border-top: 1px solid var(--border);
        align-items: center;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .bottom-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font: 500 11px var(--font);
        color: var(--muted);
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        text-decoration: none;
    }

    .bottom-bar__item.is-active {
        color: var(--ac);
        font-weight: 600;
    }

    .bottom-bar__icon {
        font-size: 16px;
        line-height: 1;
    }

    .ticker {
        border-top: none;
    }

    .layout {
        flex-direction: column;
    }

    .hero {
        border-radius: 0;
    }

    .hero__content,
    .hero__ad-content {
        padding: 16px 18px 56px;
    }

    .hero__title {
        font-size: 19px;
        line-height: 1.14;
    }

    .hero__label {
        font-size: 9px;
        padding: 4px 8px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .card {
        display: flex;
        gap: 13px;
        border: none;
    }

    .card__image {
        width: 96px;
        height: 72px;
        flex-shrink: 0;
        border-radius: 0;
    }

    .card__image img {
        border-radius: 0;
    }

    .card__body {
        padding: 0;
    }

    .card__category {
        font-size: 9.5px;
    }

    .card__title {
        font-size: 15px;
        line-height: 1.2;
        margin-top: 5px;
        -webkit-line-clamp: 3;
    }

    .card__meta {
        display: none;
    }

    .inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .featured-section__head {
        margin-bottom: 16px;
    }

    .featured-section__title {
        font-size: 20px;
    }

    .podcasts__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .podcasts__title {
        font-size: 22px;
    }

    .podcasts__grid {
        grid-template-columns: 1fr 1fr;
    }

    .podcast-card--featured {
        grid-column: 1 / -1;
    }

    .podcast-card__title {
        font-size: 14px;
    }

    .materials__title {
        font-size: 22px;
    }

    .footer__top {
        flex-direction: column;
        gap: 28px;
    }

    .footer__cols {
        flex-direction: column;
        gap: 24px;
    }

    .footer {
        padding-bottom: 68px;
    }

    .cookie {
        bottom: 68px;
    }
}

/* Ensure "Статьи" stays in one horizontal row on phones */
@media (max-width: 640px) {
    .cards {
        display: flex;
        grid-template-columns: unset;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 18px;
        scroll-snap-type: x mandatory;
    }

    .card {
        flex: 0 0 270px;
        scroll-snap-align: start;
    }

    .cards::-webkit-scrollbar {
        display: none;
    }
}
