/* ============================================
   Духовное управление мусульман г. Омска и Омской области
   Основные стили
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    /* Цветовая палитра */
    --green-deep: #1B5E2C;
    --green-dark: #144523;
    --green-soft: #2D7A47;
    --gold: #C9A961;
    --gold-soft: #D9BD81;
    --cream: #FAF6EE;
    --cream-warm: #F5EFE0;
    --ink: #2A2A24;
    --ink-soft: #5C5C52;
    --line: #E0D9C5;

    /* Типографика */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Размеры */
    --container: 1240px;
    --gap: 24px;

    /* Скругления и тени */
    --radius: 4px;
    --radius-lg: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    background-image:
        radial-gradient(circle at 10% 0%, rgba(201, 169, 97, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(27, 94, 44, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--green-deep);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================
   Типографика
   ============================================ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--green-dark);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: inline-block;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ============================================
   Орнаментальный разделитель
   ============================================ */

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 18px;
    color: var(--gold);
    opacity: 0.7;
}

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 50%, transparent);
    flex: 1;
    max-width: 120px;
}

.divider svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ============================================
   Шапка
   ============================================ */

.header {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(250, 246, 238, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    line-height: 1.25;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--green-dark);
    letter-spacing: 0.005em;
}

.brand-region {
    font-size: 0.78rem;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.01em;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--green-deep);
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--green-dark);
}

.nav-toggle svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   Hero — главный экран
   ============================================ */

.hero {
    position: relative;
    padding: 96px 0 64px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 94, 44, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 24px;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: italic;
    color: var(--green-deep);
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Кнопки
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-primary {
    background: var(--green-deep);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--green-dark);
    color: var(--cream);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27, 94, 44, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--green-deep);
    border-color: var(--green-deep);
}

.btn-outline:hover {
    background: var(--green-deep);
    color: var(--cream);
}

/* ============================================
   Виджет расписания намазов на hero
   ============================================ */

.prayer-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 1px 0 rgba(27, 94, 44, 0.04), 0 8px 24px rgba(42, 42, 36, 0.06);
    position: relative;
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--gold);
    opacity: 0.4;
}

.prayer-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.prayer-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--green-dark);
}

.prayer-card-date {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.prayer-card-city {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
    letter-spacing: 0.02em;
}

.prayer-list {
    list-style: none;
    border-top: 1px solid var(--line);
}

.prayer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    transition: padding 0.2s;
}

.prayer-row:last-child { border-bottom: none; }

.prayer-row.is-next {
    color: var(--green-deep);
    font-weight: 600;
    padding-left: 14px;
    padding-right: 14px;
    margin: 0 -14px;
    background: rgba(201, 169, 97, 0.1);
    border-bottom-color: transparent;
    border-radius: var(--radius);
}

.prayer-row.is-passed {
    color: var(--ink-soft);
    opacity: 0.65;
}

.prayer-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prayer-name-arabic {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--gold);
}

.prayer-time {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.prayer-row.is-next .prayer-name-arabic {
    color: var(--green-deep);
}

/* ============================================
   Секции
   ============================================ */

.section {
    padding: 96px 0;
    position: relative;
}

.section-tight { padding: 64px 0; }

.section-cream {
    background: var(--cream-warm);
}

.section-green {
    background: var(--green-deep);
    color: var(--cream);
}

.section-green h1, .section-green h2, .section-green h3 {
    color: var(--cream);
}

.section-green .eyebrow { color: var(--gold-soft); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-head .lead { margin-top: 16px; }

/* Секция «О муфтии» / «О мечети» — 2 колонки */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-reverse {
    grid-template-columns: 1fr 1fr;
}

.split-reverse > *:first-child { order: 2; }

.split-image {
    position: relative;
}

.split-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(42, 42, 36, 0.12);
}

.split-image::before {
    content: '';
    position: absolute;
    inset: -16px -16px 16px 16px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
}

.split-content h2 { margin-bottom: 24px; }
.split-content p { color: var(--ink); line-height: 1.75; }
.split-content p + p { margin-top: 16px; }

.bio-meta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: 0.9rem;
}

.bio-meta dt {
    color: var(--ink-soft);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bio-meta dd {
    font-weight: 500;
    color: var(--ink);
}

/* ============================================
   Карточки — новости, услуги
   ============================================ */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(42, 42, 36, 0.08);
}

.card-meta {
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    flex: 1;
}

/* Пустое состояние новостей */
.empty-state {
    text-align: center;
    padding: 80px 32px;
    background: var(--cream);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 24px;
}

.empty-state p {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* ============================================
   Подвал
   ============================================ */

.footer {
    background: var(--green-dark);
    color: var(--cream);
    padding: 64px 0 32px;
    margin-top: 64px;
}

.footer a {
    color: var(--cream);
    opacity: 0.85;
}

.footer a:hover {
    color: var(--gold-soft);
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 12px;
    line-height: 1.3;
}

.footer-brand-desc {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.6;
    max-width: 320px;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-soft);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.footer-contact-item {
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-contact-item span {
    display: block;
    opacity: 0.7;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(250, 246, 238, 0.12);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    opacity: 0.65;
}

.footer-bottom .ar {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-soft);
    font-size: 1rem;
    opacity: 1;
}

/* ============================================
   Хиро внутренних страниц
   ============================================ */

.page-hero {
    padding: 80px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(27, 94, 44, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 18px;
}

.page-hero .lead {
    max-width: 640px;
    margin: 0 auto;
}

.page-hero .eyebrow { margin-bottom: 16px; }

/* ============================================
   Карточка мечети
   ============================================ */

.mosque-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(42, 42, 36, 0.06);
    margin-bottom: 32px;
}

.mosque-card-image {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.mosque-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosque-card-content { padding: 48px; }

.mosque-card-content h2 { margin-bottom: 8px; }

.mosque-card-content .eyebrow { margin-bottom: 8px; }

.mosque-card-content > p { color: var(--ink); line-height: 1.7; margin-top: 16px; }

.mosque-info-list {
    margin-top: 28px;
    list-style: none;
    border-top: 1px solid var(--line);
}

.mosque-info-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    align-items: baseline;
}

.mosque-info-list li:last-child { border-bottom: none; }

.mosque-info-list dt,
.mosque-info-list .info-label {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ============================================
   Карта
   ============================================ */

.map-embed {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--cream-warm);
    box-shadow: 0 4px 20px rgba(42, 42, 36, 0.06);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ============================================
   Таблица расписания намазов на весь период
   ============================================ */

.prayer-table-wrap {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(42, 42, 36, 0.04);
}

.prayer-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.prayer-table thead {
    background: var(--green-deep);
    color: var(--cream);
}

.prayer-table th {
    padding: 18px 16px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.prayer-table th:first-child { text-align: left; padding-left: 24px; }

.prayer-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--ink);
}

.prayer-table td:first-child {
    text-align: left;
    padding-left: 24px;
    font-weight: 500;
}

.prayer-table tbody tr:last-child td { border-bottom: none; }

.prayer-table tbody tr:hover { background: var(--cream-warm); }

.prayer-table tr.is-today {
    background: rgba(201, 169, 97, 0.12);
    color: var(--green-deep);
    font-weight: 600;
}

.prayer-table tr.is-today:hover { background: rgba(201, 169, 97, 0.18); }

.prayer-table tr.is-friday td:first-child { color: var(--green-deep); }

.prayer-table .day-num { font-weight: 600; }
.prayer-table .day-name { color: var(--ink-soft); margin-left: 6px; font-size: 0.85rem; font-weight: 400; }

.prayer-table tr.is-today .day-name { color: var(--green-deep); }

/* ============================================
   Контакты
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-item {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.25s;
}

.contact-item:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 42, 36, 0.06);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(27, 94, 44, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    margin-bottom: 18px;
}

.contact-item-icon svg { width: 22px; height: 22px; }

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.contact-item-value {
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.5;
    word-break: break-word;
}

.contact-item-value a { color: inherit; }
.contact-item-value a:hover { color: var(--green-deep); }

.contact-item-note {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 6px;
}

/* ============================================
   Карточка ценности / услуги (универсальная)
   ============================================ */

.value-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s;
    height: 100%;
}

.value-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(42, 42, 36, 0.06);
}

.value-card-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
    line-height: 1;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================================
   Заметки на странице расписания
   ============================================ */

.prayer-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.prayer-legend-item {
    padding: 20px 24px;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.prayer-legend-item-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--green-dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.prayer-legend-item-name .ar {
    font-style: italic;
    color: var(--gold);
    font-size: 0.85rem;
    margin-left: 8px;
}

.prayer-legend-item-desc {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   Адаптивность
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .split { grid-template-columns: 1fr; gap: 48px; }
    .split-reverse > *:first-child { order: 0; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .mosque-card { grid-template-columns: 1fr; }
    .mosque-card-image { min-height: 320px; aspect-ratio: 16/10; }
    .mosque-card-content { padding: 36px; }
}

@media (max-width: 720px) {
    .container { padding: 0 20px; }
    .hero { padding: 56px 0 40px; }
    .section { padding: 64px 0; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--cream); flex-direction: column; padding: 20px;
        border-bottom: 1px solid var(--line); gap: 4px; }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 0; width: 100%; }
    .nav-toggle { display: block; }
    .header-inner { padding: 14px 0; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name { font-size: 1rem; }
    .brand-region { font-size: 0.72rem; }
    .cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .bio-meta { grid-template-columns: 1fr; }
    .prayer-card { padding: 22px; }
    .mosque-card-content { padding: 28px 24px; }
    .mosque-info-list li { grid-template-columns: 1fr; gap: 4px; }
    .page-hero { padding: 56px 0 40px; }
    .prayer-table { font-size: 0.85rem; }
    .prayer-table th, .prayer-table td { padding: 10px 6px; }
    .prayer-table th:first-child, .prayer-table td:first-child { padding-left: 12px; }
    .contact-item { padding: 24px 22px; }
}

/* ============================================
   Новости — страница поста и карточки со ссылкой
   ============================================ */

/* Карточка-ссылка (использует существующий .card,
   но как <a>, поэтому убираем подчёркивание и наследуем цвет) */
a.card {
    text-decoration: none;
    color: inherit;
}

a.card h3 {
    color: var(--green-dark);
    transition: color 0.2s;
}

a.card:hover h3 {
    color: var(--green-deep);
}

/* Кнопка "Все новости" под последними новостями на главной */
.news-all-link {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   Страница одной новости
   ============================================ */

.news-article {
    max-width: 820px;
    margin: 0 auto;
}

.news-hero-image {
    margin-bottom: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(42, 42, 36, 0.12);
    position: relative;
}

.news-hero-image::before {
    content: '';
    position: absolute;
    inset: -12px -12px 12px 12px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
}

.news-hero-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.news-text {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--ink);
}

.news-text p {
    margin-bottom: 22px;
}

.news-text p:last-child {
    margin-bottom: 0;
}

.news-text p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--green-deep);
    float: left;
    line-height: 1;
    margin: 4px 12px 0 0;
}

.news-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
}

.news-gallery figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(42, 42, 36, 0.08);
}

.news-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.news-gallery figure:hover img {
    transform: scale(1.03);
}

.news-back {
    text-align: center;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

/* Адаптив для страницы новости */
@media (max-width: 720px) {
    .news-text { font-size: 1rem; }
    .news-text p:first-child::first-letter { font-size: 2.6rem; }
    .news-gallery { grid-template-columns: 1fr; gap: 16px; }
    .news-hero-image { margin-bottom: 32px; }
    .news-hero-image img { aspect-ratio: 4 / 3; }
}

/* ============================================
   Карточка новости с превью-картинкой
   ============================================ */

a.card.card-with-image {
    padding: 0;
    overflow: hidden;
}

.card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cream-warm);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

a.card.card-with-image:hover .card-image img {
    transform: scale(1.04);
}

.card-with-image .card-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-with-image .card-body p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    flex: 1;
}
