/* Pozdravlenija.su — visual refresh v1. Loaded after the existing style.css. */
:root {
    --pv-bg: #fbf8f5;
    --pv-surface: #ffffff;
    --pv-surface-soft: #f5eef3;
    --pv-ink: #382b46;
    --pv-text: #554b5d;
    --pv-muted: #837989;
    --pv-accent: #c96d83;
    --pv-accent-dark: #a94e68;
    --pv-lilac: #8976a6;
    --pv-border: #eee5eb;
    --pv-shadow: 0 12px 34px rgba(56, 43, 70, .07);
    --pv-radius: 18px;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--pv-bg) !important;
    color: var(--pv-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.65;
}
body, button, input, select, textarea { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--pv-accent-dark); transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
a:hover { color: var(--pv-ink); }
img { max-width: 100%; }

/* Header and navigation */
.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--pv-border);
    box-shadow: 0 4px 18px rgba(56,43,70,.035);
}
.site-header-inner {
    width: min(1280px, calc(100% - 44px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--pv-ink); text-decoration: none !important; }
.site-brand:hover { color: var(--pv-accent-dark); }
.site-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: #f7e9ed; color: var(--pv-accent); font-size: 25px; line-height: 1; }
.site-brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.site-brand-name span { color: var(--pv-accent); font-family: inherit; font-size: .72em; }
.site-navigation { flex: 1 1 auto; }
.site-nav-list { display: flex; align-items: center; justify-content: flex-end; gap: 3px; width: 100%; }
.site-navigation .nav-link { padding: 11px 12px !important; color: var(--pv-ink) !important; font-size: 14px; font-weight: 600; border-radius: 10px; white-space: nowrap; }
.site-navigation .nav-link:hover,
.site-navigation .nav-link:focus,
.site-navigation .show > .nav-link { color: var(--pv-accent-dark) !important; background: #fbf1f3; }
.site-navigation .dropdown-menu { min-width: 210px; max-height: min(70vh, 480px); overflow-y: auto; padding: 9px; border: 1px solid var(--pv-border); border-radius: 13px; box-shadow: var(--pv-shadow); }
.site-navigation .dropdown-menu-rubrics { min-width: 245px; max-height: min(72vh, 560px); }
.site-navigation .dropdown-item-text { display: block; padding: 8px 11px; color: var(--pv-muted); font-size: 13px; }
.site-navigation .dropdown-item { padding: 8px 11px; border-radius: 8px; color: var(--pv-text); font-size: 14px; }
.site-navigation .dropdown-item:hover,
.site-navigation .dropdown-item:focus { color: var(--pv-accent-dark); background: #fbf1f3; }
.site-nav-toggle { display: none; margin-left: auto; padding: 8px 10px; border: 1px solid var(--pv-border); border-radius: 10px; }
.site-nav-toggle-lines { display: flex; flex-direction: column; gap: 4px; width: 21px; }
.site-nav-toggle-lines i { display: block; height: 2px; border-radius: 2px; background: var(--pv-ink); }

/* Home page */
.site-main { width: 100%; }
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(1280px, calc(100% - 44px));
    margin: 30px auto 42px;
    padding: clamp(34px, 5vw, 66px);
    border: 1px solid #f0e5e9;
    border-radius: 26px;
    background: linear-gradient(118deg, #fff 0%, #fff8f6 55%, #f5edf5 100%);
    box-shadow: var(--pv-shadow);
}
.home-hero::before,
.home-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.home-hero::before { width: 330px; height: 330px; right: 4%; top: -190px; background: rgba(201,109,131,.11); }
.home-hero::after { width: 230px; height: 230px; right: 18%; bottom: -180px; background: rgba(137,118,166,.10); }
.home-hero-content { max-width: 760px; }
.home-hero-kicker { margin: 0 0 13px; color: var(--pv-accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.home-hero h1 { max-width: 720px; margin: 0 0 16px; color: var(--pv-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4.5vw, 54px); font-weight: 700; line-height: 1.12; letter-spacing: -.8px; }
.home-hero .lead { max-width: 690px; margin: 0; color: var(--pv-muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; }
.home-hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.home-hero-link { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 17px; border: 1px solid var(--pv-border); border-radius: 999px; background: #fff; color: var(--pv-ink); font-size: 14px; font-weight: 700; text-decoration: none !important; }
.home-hero-link.primary { border-color: var(--pv-accent); background: var(--pv-accent); color: #fff; }
.home-hero-link:hover { transform: translateY(-2px); border-color: var(--pv-accent); color: var(--pv-accent-dark); }
.home-hero-link.primary:hover { background: var(--pv-accent-dark); color: #fff; }

.latest-news { width: min(1200px, calc(100% - 44px)); margin: 0 auto 48px; padding: 0; }
.latest-news > h2,
.home-directory h2 { margin: 0 0 20px !important; color: var(--pv-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3vw, 32px); font-weight: 700; line-height: 1.2; text-align: left !important; }
.latest-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.latest-news-item { min-width: 0; padding: 22px; border: 1px solid var(--pv-border); border-radius: var(--pv-radius); background: var(--pv-surface); box-shadow: 0 5px 18px rgba(56,43,70,.035); transition: transform .2s ease, box-shadow .2s ease; }
.latest-news-item:hover { transform: translateY(-3px); box-shadow: var(--pv-shadow); }
.latest-news-item h3 { margin: 0 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; line-height: 1.3; }
.latest-news-item h3 a { color: var(--pv-ink); text-decoration: none; }
.latest-news-item h3 a:hover { color: var(--pv-accent-dark); }
.latest-news-meta { margin-bottom: 13px; color: var(--pv-muted); font-size: 12px; }
.latest-news-preview { display: flex; align-items: flex-start; gap: 16px; }
.latest-news-image { flex: 0 0 154px; width: 154px; }
.latest-news-image img { display: block; width: 154px; height: 112px; object-fit: cover; border-radius: 11px; }
.latest-news-description { min-width: 0; flex: 1; }
.latest-news-description p { margin: 0 0 10px; color: var(--pv-text); font-size: 14px; line-height: 1.55; }
.latest-news-more { display: inline-flex; align-items: center; gap: 6px; color: var(--pv-accent-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.latest-news-more::after { content: "→"; font-size: 16px; }
.latest-news-more:hover { color: var(--pv-ink); text-decoration: none; }

.home-directory { padding: 44px 0 58px; background: #f6f1f4; border-top: 1px solid #eee6eb; }
.home-directory > .container { max-width: 1200px; }
.home-directory > .container > h2 { margin-top: 34px !important; }
.home-directory > .container > h2:first-child { margin-top: 0 !important; }
.home-directory .lead { max-width: 900px; margin: 0 0 30px; color: var(--pv-muted); font-size: 16px; line-height: 1.7; }
.home-directory h2 { padding-bottom: 12px; border-bottom: 1px solid #e8dfe6; }
.buttons-group { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 34px !important; }
.home-directory .buttons-group .button,
.home-directory .buttons-group a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; margin: 0; padding: 7px 13px; border: 1px solid #e9dfe6; border-radius: 999px; background: #fff; color: var(--pv-text); font-size: 13px; font-weight: 600; line-height: 1.25; text-decoration: none; box-shadow: 0 2px 6px rgba(56,43,70,.025); }
.home-directory .buttons-group .button:hover,
.home-directory .buttons-group a.button:hover { border-color: #d9a8b7; background: #fff7f8; color: var(--pv-accent-dark); transform: translateY(-1px); }
.home-directory .buttons-group .button:focus-visible,
.home-hero-link:focus-visible,
.site-navigation a:focus-visible { outline: 3px solid rgba(201,109,131,.35); outline-offset: 2px; }

/* Article and rubric templates */
.container-fluid { width: min(1280px, calc(100% - 44px)); margin-right: auto; margin-left: auto; padding-right: 0; padding-left: 0; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 276px; align-items: start; gap: 26px; max-width: 1240px; margin: 36px auto 64px; }
.news-content { min-width: 0; max-width: none; margin: 0; padding: 0; }
.news-sidebar { min-width: 0; }
.news-sidebar-card { position: sticky; top: 24px; padding: 23px 20px; border: 1px solid var(--pv-border); border-radius: 18px; background: var(--pv-surface); box-shadow: 0 8px 26px rgba(56,43,70,.045); }
.news-sidebar-title { margin: 0 0 5px; color: var(--pv-ink); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700; line-height: 1.25; }
.news-sidebar-intro { margin: 0 0 15px; color: var(--pv-muted); font-size: 13px; }
.news-sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.news-sidebar-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--pv-text); font-size: 14px; line-height: 1.35; text-decoration: none; transition: background .16s ease, color .16s ease; }
.news-sidebar-nav a:hover, .news-sidebar-nav a:focus { background: #fbf1f3; color: var(--pv-accent-dark); }
.news-sidebar-nav a.is-current { background: #f8edf1; color: var(--pv-accent-dark); font-weight: 700; }
.news-sidebar-arrow { flex: 0 0 auto; color: var(--pv-accent); font-size: 20px; line-height: 1; }
.news-sidebar-empty { margin: 0; color: var(--pv-muted); font-size: 14px; }
.news-article { padding: clamp(22px, 4vw, 48px); border: 1px solid var(--pv-border); border-radius: 22px; background: var(--pv-surface); box-shadow: 0 8px 28px rgba(56,43,70,.045); }
.news-article > h1 { margin: 0 0 13px !important; color: var(--pv-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1.18; text-align: left !important; }
.news-meta { margin: 0 0 22px; color: var(--pv-muted); font-size: 13px; text-align: left !important; }
.news-rubric a { color: var(--pv-accent-dark); font-weight: 700; text-decoration: none; }
.news-main-image { margin: 24px 0 30px; text-align: center; }
.news-main-image img { max-width: 100%; max-height: 620px; height: auto; border-radius: 14px; object-fit: contain; }
.news-text { color: #49404f; font-size: 17px; line-height: 1.82; overflow-wrap: anywhere; }
.news-text h2, .news-text h3, .news-text h4 { margin: 1.7em 0 .65em; color: var(--pv-ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.3; }
.news-text h2 { font-size: 29px; }
.news-text h3 { font-size: 23px; }
.news-text p { margin: 0 0 1.15em; }
.news-text img { max-width: 100%; height: auto; border-radius: 12px; }
.news-text a { color: var(--pv-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-text blockquote { margin: 26px 0; padding: 18px 22px; border: 0; border-left: 4px solid var(--pv-accent); border-radius: 0 12px 12px 0; background: #fbf2f4; color: #5b4b58; font-size: 16px; }
.news-edit-button { border: 0; border-radius: 999px; background: var(--pv-accent); color: #fff !important; font-weight: 700; }
.news-edit-button:hover { background: var(--pv-accent-dark); }
.latest-news .latest-news-list { display: flex; flex-direction: column; gap: 16px; }
.latest-news .latest-news-item { padding: 22px; }
.news-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin: 28px auto 0; font-size: 14px; }
.news-pagination a, .news-pagination span { display: inline-flex; padding: 8px 12px; border: 1px solid var(--pv-border); border-radius: 999px; background: #fff; color: var(--pv-text); text-decoration: none; }
.news-pagination a:hover { border-color: var(--pv-accent); color: var(--pv-accent-dark); }
.news-pagination .pagination-disabled { color: #aaa; }

.footer-wrapper { margin-top: 0; padding: 12px 22px 4px; background: var(--pv-ink) !important; }
.footer-wrapper .text-light { color: rgba(255,255,255,.82) !important; font-size: 13px; line-height: 1.6; }
.footer-wrapper a { color: #fff !important; }

@media (max-width: 991.98px) {
    .site-header-inner { min-height: 70px; flex-wrap: wrap; gap: 0; padding: 13px 0; }
    .site-nav-toggle { display: block; }
    .site-navigation { flex-basis: 100%; padding-top: 12px; }
    .site-nav-list { align-items: stretch; gap: 2px; }
    .site-navigation .nav-link { padding: 10px 12px !important; }
    .site-navigation .dropdown-menu { max-height: none; box-shadow: none; border-color: #f1e8ed; }
    .latest-news-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .site-header-inner, .home-hero, .latest-news, .container-fluid { width: min(100% - 28px, 1280px); }
    .site-brand-name { font-size: 21px; }
    .home-hero { margin: 18px auto 30px; padding: 29px 23px; border-radius: 20px; }
    .home-hero h1 { font-size: clamp(31px, 9vw, 40px); }
    .latest-news { margin-bottom: 36px; }
    .latest-news-item { padding: 18px; }
    .latest-news-item h3 { font-size: 19px; }
    .latest-news-preview { flex-direction: column; }
    .latest-news-image, .latest-news-image img { width: 100%; }
    .latest-news-image { flex: none; }
    .latest-news-image img { height: auto; max-height: 250px; aspect-ratio: 16 / 9; }
    .home-directory { padding: 34px 0 42px; }
    .home-directory h2, .latest-news > h2 { font-size: 26px; }
    .home-directory .buttons-group .button, .home-directory .buttons-group a.button { min-height: 34px; padding: 7px 11px; font-size: 12px; }
    .news-layout { grid-template-columns: 1fr; gap: 20px; margin: 18px auto 40px; }
    .news-content { margin: 0; }
    .news-sidebar-card { position: static; padding: 20px 17px; }
    .news-sidebar-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .news-article { padding: 23px 19px; border-radius: 16px; }
    .news-article > h1 { font-size: 30px; }
    .news-text { font-size: 16px; line-height: 1.75; }
    .news-text h2 { font-size: 25px; }
    .news-text h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Ensure the Bootstrap collapsed navigation is expanded on desktop.
   The mobile menu remains controlled by the hamburger button. */
@media (min-width: 992px) {
    .site-header .site-navigation.collapse {
        display: flex !important;
        flex-basis: auto;
    }
}
