/* ==========================================================================
   23beauty refresh — layered on top of star.css.
   Keeps the theme orange (--bs-primary) and Montserrat; adds the logo navy.
   ========================================================================== */

:root {
    --brand: #ff891e;
    --brand-dark: #e8740c;
    --brand-soft: #fff3e8;
    --navy: #0f3a52;
    --navy-soft: #e8f0f4;
    --ink: #1c2530;
    --muted: #6b7680;
    --line: #e7e9ec;
    --surface: #ffffff;
    --page: #f6f7f9;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
    --shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .12);
}

body {
    background: var(--page);
    color: var(--ink);
}

a { transition: color .15s ease; }

/* ---------- Header ---------- */

.header .nav-menuzord {
    background: var(--surface);
    box-shadow: 0 1px 0 var(--line);
}

.header .menuzord-brand img { height: 40px; width: auto; }

.header .menuzord-menu > li > a {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    position: relative;
}

.header .menuzord-menu > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 22px;
    height: 2px;
    background: var(--brand);
    transition: left .2s ease, right .2s ease;
}

.header .menuzord-menu > li > a::before { display: none; }

.header .menuzord-menu > li.active > a,
.header .menuzord-menu > li > a:hover { color: var(--brand); }

.header .menuzord-menu > li.active > a::after,
.header .menuzord-menu > li > a:hover::after { left: 15px; right: 15px; }

.header-tg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: #fff !important;
    border-radius: 999px;
    padding: 7px 16px !important;
    margin: 22px 0 22px 10px;
    line-height: 1.2;
}

.header-tg:hover { background: var(--brand-dark); }
.header .menuzord-menu > li > a.header-tg { margin: 30px 0 30px 10px; }
.header .menuzord-menu > li > a.header-tg::after { display: none; }

@media (max-width: 991px) {
    /* star.css makes the nav absolute on mobile, so it covered the top ad slot */
    .header .nav-menuzord:not(.navbar-sticky) { position: relative; }
    .header .menuzord-menu > li > a::after { display: none; }
    .header .menuzord-menu > li > a.header-tg { margin: 10px 0; display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10, 30, 45, .88) 0%, rgba(10, 30, 45, .55) 55%, rgba(10, 30, 45, .25) 100%);
}

.hero > .container {
    position: relative;
    padding-top: 56px;
    padding-bottom: 56px;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.hero__title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    margin: 0;
}

.hero__title a { color: inherit; }

.hero__subtitle {
    color: rgba(255, 255, 255, .8);
    margin: 12px 0 0;
    max-width: 560px;
}

/* ---------- Layout ---------- */

.page-section { padding: 40px 0; }
.page-section + .page-section { padding-top: 8px; }

.with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

.with-sidebar__aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
}

@media (max-width: 991px) {
    .with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .with-sidebar__aside { align-items: center; }
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.post-grid > .ad-slot { grid-column: 1 / -1; }

@media (max-width: 1199px) {
    .post-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .post-grid, .post-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .post-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .post-grid--4 { gap: 12px; }
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--brand);
    line-height: 1.2;
}

.section-head a.section-head__more {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}

.section-head a.section-head__more:hover { color: var(--brand-dark); }

/* ---------- Post card ---------- */

.post-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}

.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.post-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--navy-soft);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.post-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.post-card__chip {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 10px;
}

.post-card__chip:hover { background: var(--brand); color: #fff; }

.post-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand); }

.post-card__intro {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.post-card--featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 320px; }
.post-card--featured .post-card__body { padding: 32px; justify-content: center; gap: 14px; }
.post-card--featured .post-card__title { font-size: clamp(22px, 2.4vw, 30px); }
.post-card--featured .post-card__intro { font-size: 15px; }
.post-card__more { align-self: flex-start; margin-top: 6px; border-radius: 999px; padding: 10px 22px; }

@media (max-width: 767px) {
    .post-card--featured { grid-template-columns: minmax(0, 1fr); }
    .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 10; }
    .post-card--featured .post-card__body { padding: 20px; }
}

.post-card--compact .post-card__body { padding: 12px 14px 16px; gap: 8px; }
.post-card--compact .post-card__title { font-size: 14px; }

/* Dark "Факты и истории" band */
.band-dark {
    background: var(--navy);
    padding: 40px 0;
    margin: 24px 0;
}

.band-dark .section-head h2 { color: #fff; }
.band-dark .post-card { background: rgba(255, 255, 255, .06); box-shadow: none; }
.band-dark .post-card__title a { color: #fff; }
.band-dark .post-card__title a:hover { color: var(--brand); }
.band-dark .post-card__meta { color: rgba(255, 255, 255, .6); }

/* Sidebar list */
.side-list {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
}

.side-list h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 12px;
}

.side-list__item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.side-list__item:first-of-type { border-top: 0; padding-top: 0; }

.side-list__item img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.side-list__item a { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35; }
.side-list__item a:hover { color: var(--brand); }
.side-list__item time { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- Article ---------- */

.article {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article__cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }

.article__inner { padding: 32px clamp(18px, 4vw, 48px) 40px; }

.article__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin: 12px 0 20px;
}

.article__content {
    font-size: 17px;
    line-height: 1.75;
}

.article__content img { max-width: 100%; height: auto; border-radius: 10px; }
.article__content h2, .article__content h3 { color: var(--navy); margin-top: 1.6em; }

.article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.article__tags a {
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 13px;
    border-radius: 999px;
    padding: 4px 12px;
}

.article__tags a:hover { background: var(--brand); color: #fff; }

.tg-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--navy-soft);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--navy);
}

.tg-cta .btn { border-radius: 999px; }

.ad-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
}

/* ---------- Pagination ---------- */

.pagination { justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-link {
    border-radius: 10px !important;
    border: 1px solid var(--line);
    color: var(--navy);
    min-width: 40px;
    text-align: center;
}
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Ad slots ---------- */

.ad-slot {
    width: 100%;
    max-width: var(--ad-w);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ad-slot__label {
    display: block;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9aa3ab;
    margin-bottom: 4px;
}

.ad-slot__body {
    min-height: var(--ad-h);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-slot--sticky { position: sticky; top: 96px; }

/* Full container width; the creative sets its own height (90px desktop). */
.ad-slot.ad-slot--full { max-width: none; }
.ad-slot.ad-slot--full .ad-slot__body { min-height: 0; }
.ad-slot--full .ad-slot__label { text-align: left; }

.ad-slot--preview .ad-slot__body {
    border: 2px dashed #c9d2da;
    border-radius: 10px;
    background: repeating-linear-gradient(45deg, #f4f6f8, #f4f6f8 10px, #eef1f4 10px, #eef1f4 20px);
}

.ad-slot__hint { font-size: 12px; color: #7d8a96; font-family: monospace; }

@media (max-width: 767px) {
    .ad-slot { max-width: var(--ad-mw); }
    .ad-slot__body { min-height: var(--ad-mh); }
    .ad-slot--sticky { position: static; }
}

.ad-row { padding-top: 20px; padding-bottom: 20px; }

/* ---------- SeasonJobs.at banner (728x90 / 320x100, full width) ---------- */

.sj-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    background:
        radial-gradient(120% 180% at 100% 0, rgba(235, 100, 55, .28), transparent 55%),
        linear-gradient(100deg, #0e2f4b, #123b5d);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    text-align: left;
    transition: border-color .2s;
}

.sj-banner:hover { border-color: #eb6437; color: #fff; }

.sj-banner__logo {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff;
}

.sj-banner__logo img { width: 40px; height: 40px; }

.sj-banner__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sj-banner__brand {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.sj-banner__brand b { color: #eb6437; }

.sj-banner__text {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .78);
}

.sj-banner__text--desktop { display: none; }

.sj-banner__cta {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eb6437;
    color: #fff;
    font-weight: 700;
}

.sj-banner__cta-label { display: none; }

@media (min-width: 728px) {
    .sj-banner { min-height: 90px; gap: 18px; padding: 14px 22px; }
    .sj-banner__logo { width: 60px; height: 60px; border-radius: 12px; }
    .sj-banner__logo img { width: 50px; height: 50px; }
    .sj-banner__brand { font-size: 22px; }
    .sj-banner__text--desktop { display: block; }
    .sj-banner__text--mobile { display: none; }

    .sj-banner__cta {
        display: inline-flex;
        gap: 8px;
        width: auto;
        height: auto;
        padding: 11px 18px;
        border-radius: 999px;
        font-size: 14px;
        white-space: nowrap;
        transition: background .2s;
    }

    .sj-banner__cta-label { display: inline; }
    .sj-banner:hover .sj-banner__cta { background: #ff7a4d; }
}

/* ---------- AZ Design banner (300x600, compact on mobile) ---------- */

.az-banner {
    display: flex;
    flex-direction: column;
    width: 300px;
    max-width: 100%;
    height: 600px;
    overflow: hidden;
    background: #f7f5f0;
    border: 1px solid #e4e0d6;
    border-radius: var(--radius);
    color: #1b1b1b;
    text-align: left;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.az-banner:hover { color: #1b1b1b; border-color: #1b1b1b; box-shadow: var(--shadow-hover); }

.az-banner__logo {
    display: flex;
    justify-content: center;
    padding: 16px 0 14px;
}

.az-banner__logo img { width: 125px; height: auto; }

.az-banner__media {
    position: relative;
    display: block;
    height: 250px;
    flex: none;
}

.az-banner__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.az-banner__badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: #1b1b1b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
}

.az-banner__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
    gap: 6px;
}

.az-banner__title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.az-banner__text { font-size: 13px; color: #5e5a52; }

.az-banner__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0 4px;
}

.az-banner__facts span {
    background: #fff;
    border: 1px solid #e4e0d6;
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 11px;
    color: #5e5a52;
    text-align: center;
    line-height: 1.25;
}

.az-banner__facts b { display: block; font-size: 14px; color: #1b1b1b; }

.az-banner__price { font-size: 14px; color: #5e5a52; }
.az-banner__price b { font-size: 20px; color: #1b1b1b; }
.az-banner__note { font-size: 12px; color: #2f6b3f; }

.az-banner__cta {
    margin-top: auto;
    display: block;
    background: #1b1b1b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    border-radius: 999px;
    transition: background .2s ease;
}

.az-banner:hover .az-banner__cta { background: #2f6b3f; }

@media (max-width: 767px) {
    .az-banner { height: auto; }
    .az-banner__logo { padding: 12px 0 10px; }
    .az-banner__logo img { width: 100px; }
    .az-banner__media { height: 150px; }
    .az-banner__facts, .az-banner__note { display: none; }
    .az-banner__body { padding: 12px 14px 14px; }
    .az-banner__title { font-size: 17px; }
    .az-banner__cta { margin-top: 8px; padding: 10px; }
}

/* ---------- SAPE links & footer ---------- */

.sape-links { font-size: 12px; color: var(--muted); padding: 16px 0; }
.sape-links ul { padding: 0; margin: 0; }

.footer .footer-bg-color { background: var(--navy); }
.footer .copyright { background: #0a2c3f; }
.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-about { color: rgba(255, 255, 255, .7); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-nav a { color: rgba(255, 255, 255, .75); font-size: 14px; }
.footer-nav a:hover { color: var(--brand); }
.footer-nav li { margin-bottom: 8px; }
