@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Cormorant SC';
    src: url('fonts/CormorantSC-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant SC';
    src: url('fonts/CormorantSC-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg: #f6f4f1;
    --paper: #fbf8f1;
    --text: #13294b;
    --text-soft: #46556f;
    --muted: #7f8794;
    --line: rgba(19, 41, 75, 0.12);
    --blue: #13294b;
    --blue-2: #102232;
    --gold: #b79247;
    --white: #ffffff;

    --side: 140px;
    --logo-width: 110px;
    --logo-gap: 6px;
    --content-start: calc(var(--side) + var(--logo-width) + var(--logo-gap) - 10px);
    --content-end: var(--content-start);
    --content: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f7f5f1 46%, #f6f4f1 100%);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    background: linear-gradient(180deg, #13294b 0%, #102232 100%);
    color: #ffffff;
}

.header-inner {
    min-height: 76px;
    padding: 8px var(--content-end) 6px var(--side);
    display: grid;
    grid-template-columns: minmax(360px, 440px) 1fr auto;
    align-items: center;
    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logo {
    width: 120px;
    flex: 0 0 120px;
    filter: invert(1);
    transform: translateY(8px);
}

.brand-name {
    display: block;
    margin-left: -18px;
    padding-top: 0;
    font-family: "Cormorant SC", serif;
    font-size: 15px;
    line-height: 1.06;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 46px;
    padding-top: 0;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    font-family: "Cormorant SC", serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 1px;
    background: #ffffff;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-btn {
    display: none;
}

/* PAGE */

.news-page {
    padding: 70px var(--content-end) 120px var(--content-start);
}

.news-hero {
    margin-bottom: 42px;
}

.news-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 60px;
    align-items: end;
}

.news-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(56px, 5vw, 88px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: var(--blue);
}

.news-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.news-search {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.news-search span {
    font-size: 24px;
    color: var(--blue);
}

.news-search input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: "Playfair Display", serif;
    font-size: 15px;
    color: var(--blue);
}

.filter-toggle-btn {
    height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.is-active {
    background: var(--blue);
    color: #ffffff;
}

/* LAYOUT */

.news-layout {
    position: relative;
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr);
    gap: 0;
    transition: grid-template-columns 0.35s ease, gap 0.35s ease;
}

.news-layout.filter-open {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
}

.news-filter-panel {
    overflow: hidden;
    opacity: 0;
    transform: translateX(-16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-layout.filter-open .news-filter-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.news-filter-panel {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    padding: 26px 24px;
    min-height: 500px;
}

.filter-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 34px;
}

.filter-panel-head h2,
.filter-block h3 {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
}

.filter-panel-head button {
    border: none;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.filter-block {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
}

.filter-month {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 20px;
    color: var(--blue);
    font-size: 13px;
}

.filter-month button {
    border: none;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font-size: 18px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px 10px;
    text-align: center;
}

.calendar-weekdays {
    margin-bottom: 14px;
    font-size: 10px;
    color: var(--muted);
}

.calendar-day {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font-size: 11px;
}

.calendar-day.is-muted {
    color: rgba(19, 41, 75, 0.25);
}

.calendar-day.is-active {
    background: var(--blue);
    color: #ffffff;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.category-list button {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    text-align: left;
    font-size: 13px;
}

.category-list button.is-active {
    color: var(--blue);
    font-weight: 700;
}

/* NEWS LIST */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-row {
    display: grid;
    grid-template-columns: 120px 1fr minmax(260px, 420px);
    gap: 34px;
    align-items: stretch;

    padding: 28px 0;
    border-top: 1px solid var(--line);

    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.news-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.news-date {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    line-height: 1.2;
    color: var(--blue);
}

.news-date span {
    display: block;
}

.news-content {
    padding-right: 20px;
}

.news-tag {
    margin-bottom: 18px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
}

.news-title {
    max-width: 540px;
    margin-bottom: 16px;
    font-family: "Playfair Display", serif;
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.news-description {
    max-width: 560px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-soft);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
}

.news-link span {
    font-size: 22px;
    color: var(--gold);
}

.news-media {
    width: 100%;
    height: 190px;
    min-height: 190px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.62);
}

.news-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.news-media.is-empty {
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-media.is-empty::before {
    content: "АР";
    font-family: "Cormorant SC", serif;
    font-size: 52px;
    color: rgba(19, 41, 75, 0.14);
}

.empty-state {
    padding: 60px 0;
    font-size: 15px;
    color: var(--muted);
}

/* ========================= */
/* NEWS DETAIL */
/* ========================= */

.news-detail {
    max-width: none;
    width: 100%;

    padding-top: 8px;
    padding-bottom: 90px;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 0;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--blue);

    transition: opacity 0.25s ease;
}

.news-back-link:hover {
    opacity: 0.72;
}

.news-detail h1 {
    width: 100%;
    max-width: none;

    margin: 54px 0 0;

    font-family: "Cormorant SC", serif;
     font-size: clamp(38px, 4.2vw, 64px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.03em;

    color: var(--blue);
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-top: 26px;
    margin-bottom: 58px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--gold);
}

.news-detail-meta span {
    position: relative;
}

.news-detail-meta span:not(:last-child)::after {
    content: "";

    position: absolute;
    right: -12px;
    top: 50%;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: currentColor;

    transform: translateY(-50%);
}

.news-detail-image {
    width: 100%;
    max-height: 720px;

    margin-top: 54px;
    margin-bottom: 54px;

    object-fit: cover;

    border-radius: 22px;
}

.news-detail-lead {
    max-width: 760px;

    margin-bottom: 40px;

    font-size: 18px;
    line-height: 1.95;

    color: var(--text-soft);
}

.news-detail-text {
    max-width: 760px;
}

.news-detail-text p {
    margin-bottom: 24px;

    font-size: 16px;
    line-height: 1.95;

    color: var(--text-soft);
}

.news-detail-text .ql-align-center {
    text-align: center;
}

.news-detail-text .ql-align-right {
    text-align: right;
}

.news-detail-text .ql-align-justify {
    text-align: justify;
}

/* FOOTER */

.site-footer {
    position: relative;
    margin-top: 60px;
    padding: 10px var(--content-end) 10px var(--content-start);
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-2) 100%);
    color: #ffffff;
    transition: padding 0.3s ease;
}

.site-footer.is-form-collapsed {
    padding-top: 150px;
}

.footer-contact-card {
    position: absolute;
    left: 50%;
    top: -72px;
    z-index: 5;
    width: min(820px, calc(100% - 80px));
    min-height: 210px;
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 46px;
    padding: 34px 44px 36px;
    background: #f7f4ee;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 18px;
    color: #111111;
    transform: translateX(-50%);
    transform-origin: bottom center;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
    transition: top 0.3s ease, min-height 0.3s ease, padding 0.3s ease;
}

.footer-contact-card.is-collapsed {
    top: 46px;
    min-height: 92px;
    grid-template-columns: 1fr;
    padding: 26px 44px;
}

.footer-contact-info h2 {
    font-family: "Cormorant SC", serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.12;
    color: var(--blue);
    padding-right: 42px;
}

.footer-contact-line {
    width: 44px;
    height: 1px;
    margin: 18px 0 20px;
    background: var(--gold);
}

.footer-contact-info p {
    max-width: 230px;
    font-size: 12px;
    line-height: 1.75;
    color: #4d4a43;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-form,
.footer-contact-line,
.footer-contact-info p {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-contact-card.is-collapsed .footer-form,
.footer-contact-card.is-collapsed .footer-contact-line,
.footer-contact-card.is-collapsed .footer-contact-info p {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.footer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: transparent;
    padding: 10px 12px;
    font-size: 11px;
    color: #111111;
    outline: none;
}

.footer-form textarea {
    min-height: 62px;
    resize: vertical;
}

.footer-form button {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 34px;
    margin-top: 2px;
    border: none;
    background: transparent;
    color: #111111;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

.footer-form button span {
    font-size: 20px;
    color: var(--gold);
}

.footer-form-toggle {
    position: absolute;
    right: 5px;
    top: 10px;
    z-index: 8;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(19, 41, 75, 0.16);
    border-radius: 50%;
    background: #f7f4ee;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.footer-shell {
    display: grid;
    grid-template-columns: 220px 180px 260px;
    gap: 70px;
    align-items: start;
    width: min(820px, calc(100% - 80px));
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-brand {
    width: 170px;
    height: 95px;
    overflow: hidden;
}

.footer-logo {
    width: 170px;
    height: auto;
    filter: invert(1);
    transform: translateY(-8px);
}

.footer-nav,
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-contacts a,
.footer-contacts p {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 1px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-bottom div {
    display: flex;
    gap: 28px;
}

/* SCROLL TOP */

.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(19, 41, 75, 0.18);
    border-radius: 50%;
    background: #f7f4ee;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    :root {
        --side: 30px;
        --content-start: 30px;
        --content-end: 30px;
    }

    .news-hero-head {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .news-layout.filter-open {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 24px;
    }

    .news-row {
        grid-template-columns: 95px 1fr 300px;
    }
}

@media (max-width: 900px) {
    :root {
        --side: 18px;
        --content-start: 18px;
        --content-end: 18px;
    }

    .header-inner {
        min-height: 82px;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 10px 18px;
        gap: 10px;
    }

    .brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .brand-logo {
        width: 82px;
        flex: 0 0 82px;
        transform: none;
    }

    .brand-name {
        margin-left: -12px;
        max-width: 210px;
        padding-top: 0;
        font-size: 10px;
        line-height: 1.12;
        color: #ffffff;
    }

    .main-nav {
        position: fixed;
        right: 18px;
        top: 72px;
        z-index: 120;
        display: none;
        width: 210px;
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(19, 41, 75, 0.12);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        font-size: 15px;
        color: var(--blue);
    }

    .main-nav a::after {
        background: var(--blue);
    }

    .mobile-menu-btn {
        display: flex;
        width: 46px;
        height: 46px;
        border: none;
        border-radius: 50%;
        background: var(--gold);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 18px;
        height: 2px;
        background: var(--blue);
    }

    .news-page {
        padding: 46px 18px 90px;
    }

    .news-hero h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .news-tools {
        grid-template-columns: 1fr;
    }

    .news-layout,
    .news-layout.filter-open {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-filter-panel {
        display: none;
    }

    .news-layout.filter-open .news-filter-panel {
        display: block;
    }

    .news-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-media {
        min-height: 190px;
    }

    .news-detail h1 {
    font-size: clamp(42px, 12vw, 72px);
    line-height: 0.96;
}

.news-detail-meta {
    margin-top: 18px;
    margin-bottom: 40px;
}

.news-detail-image {
    border-radius: 18px;
}

    .site-footer {
        margin-top: 80px;
        padding: 20px 18px 22px;
    }

    .site-footer.is-form-collapsed {
        padding-top: 150px;
    }

    .footer-contact-card {
        top: -58px;
        width: calc(100% - 36px);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 22px;
        border-radius: 18px;
    }

    .footer-contact-card.is-collapsed {
        top: 46px;
        min-height: 86px;
        padding: 24px 22px;
    }

    .footer-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-shell {
        width: 100%;
        grid-template-columns: 80px 1fr 1fr;
        gap: 16px;
        padding-top: 26px;
    }

    .footer-brand {
        width: 88px;
        height: 62px;
    }

    .footer-logo {
        width: 118px;
    }

    .footer-nav a,
    .footer-contacts a,
    .footer-contacts p {
        font-size: 8px;
        line-height: 1.35;
        letter-spacing: 0.08em;
    }

    .footer-bottom {
        font-size: 8px;
    }
}