/*
Theme Name: Maiak Odesa
Theme URI: https://maiak-odesa.com.ua
Author: Maiak Odesa Team
Author URI: https://maiak-odesa.com.ua
Description: Сучасний міський портал Одеси — новини, афіша, довідник, транспорт, погода, стан моря. Тема в стилі "нічний маяк" з темною палітрою, золотими акцентами та морською бірюзою.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maiak-odesa
Tags: news, city-portal, dark, custom-colors, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ───────────────────────────────────────
   MAIAK ODESA — DESIGN TOKENS
   ─────────────────────────────────────── */
:root {
    --bg-deep:        #0A1A2E;
    --bg-deeper:      #061224;
    --bg-card:        #0F2541;
    --bg-elev:        #15314F;
    --line:           rgba(212, 175, 96, 0.18);
    --line-strong:    rgba(212, 175, 96, 0.35);
    --text:           #F0E5D2;
    --text-mute:      #A8B4C8;
    --text-dim:       #6B7A92;
    --gold:           #D4AF60;
    --gold-bright:    #F0C975;
    --beam:           #FFE5A8;
    --turq:           #4FB8A9;
    --coral:          #E07856;
    --alert:          #E8553D;
    --green:          #6FD09C;

    --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --display: 'Playfair Display', Georgia, serif;
    --sans:    'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;

    --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
      radial-gradient(ellipse 1200px 600px at 80% -10%, rgba(212, 175, 96, 0.12), transparent 60%),
      radial-gradient(ellipse 900px 500px at 10% 20%, rgba(79, 184, 169, 0.08), transparent 60%),
      linear-gradient(180deg, var(--bg-deeper) 0%, var(--bg-deep) 40%, var(--bg-deeper) 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 2;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px; width: 1px;
    overflow: hidden;
}

/* ─────────── TOPBAR ─────────── */
.topbar {
    background: rgba(6, 18, 36, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-mute);
    position: sticky;
    top: 0;
    z-index: 200;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
}
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left .label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.topbar-left .date-short { display: none; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-right a { transition: color 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.topbar-right a:hover { color: var(--gold-bright); }
.tb-icon { color: var(--gold); font-weight: 600; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ─────────── HEADER (sticky) ─────────── */
.site-header {
    position: sticky;
    top: 38px;
    z-index: 150;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 26, 46, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 24px;
}
.logo, a.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.logo-mark {
    width: 48px; height: 48px;
    position: relative;
    flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-text .name {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}
.logo-text .name em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.logo-text .tagline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-top: 4px;
}

.main-nav { display: flex; gap: 6px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mute);
    border-radius: var(--r-sm);
    transition: all 0.2s;
    position: relative;
    display: inline-block;
}
.main-nav a:hover { color: var(--gold-bright); background: rgba(212, 175, 96, 0.06); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a.active { color: var(--gold); }
.main-nav .current-menu-item > a::after,
.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 1px;
    background: var(--gold);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.header-cta:hover { background: var(--gold); color: var(--bg-deeper); }

/* mobile burger */
.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--gold);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ─────────── HERO ─────────── */
.hero {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -200px;
    width: 800px; height: 800px;
    background: conic-gradient(from 200deg, transparent 0deg, rgba(255, 229, 168, 0.05) 20deg, rgba(255, 229, 168, 0.12) 30deg, rgba(255, 229, 168, 0.05) 40deg, transparent 60deg, transparent 360deg);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 24px;
}
.hero-eyebrow::before {
    content: '';
    width: 30px; height: 1px;
    background: var(--gold);
}
.hero-headline {
    font-family: var(--serif);
    font-size: 64px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.hero-headline em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.hero-headline .accent {
    color: var(--turq);
    font-style: italic;
    font-weight: 400;
}
.hero-lead {
    font-size: 17px;
    color: var(--text-mute);
    max-width: 580px;
    margin-bottom: 32px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.stat .num {
    font-family: var(--serif);
    font-size: 36px;
    color: var(--gold);
    line-height: 1;
    font-weight: 600;
}
.stat .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* стан моря */
.sea-widget {
    background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.sea-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--turq), var(--gold), var(--coral));
}
.sea-widget h3 {
    font-family: var(--display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 18px;
}
.sea-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.sea-row:last-child { border-bottom: none; }
.sea-row .key { font-size: 13px; color: var(--text-mute); }
.sea-row .val { font-family: var(--serif); font-size: 22px; color: var(--text); font-weight: 500; }
.sea-row .val.big { font-size: 32px; color: var(--gold); }
.sea-row .val small { font-family: var(--sans); font-size: 12px; color: var(--text-dim); margin-left: 6px; }
.sea-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: rgba(79, 184, 169, 0.15);
    border-radius: 999px;
    font-size: 12px;
    color: var(--turq);
}

/* ─────────── SECTION ─────────── */
.section {
    padding: 60px 0;
    position: relative;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    gap: 24px;
}
.section-title {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-link {
    font-size: 13px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.section-link:hover { border-bottom-color: var(--gold); }

/* ─────────── НОВИНИ ─────────── */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}
.news-main {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    display: block;
}
.news-main:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.news-main-img {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #0E7490 0%, #164E63 50%, #0F2541 100%);
    position: relative;
    overflow: hidden;
}
.news-main-img img { width: 100%; height: 100%; object-fit: cover; }
.news-main-img.no-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 30% 70%, rgba(212, 175, 96, 0.4), transparent 40%),
      radial-gradient(circle at 70% 20%, rgba(79, 184, 169, 0.3), transparent 50%),
      url("data:image/svg+xml,%3Csvg viewBox='0 0 200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 25 30, 50 50 T 100 50 T 150 50 T 200 50' stroke='rgba(255,255,255,0.06)' fill='none'/%3E%3Cpath d='M0 60 Q 25 40, 50 60 T 100 60 T 150 60 T 200 60' stroke='rgba(255,255,255,0.08)' fill='none'/%3E%3Cpath d='M0 70 Q 25 50, 50 70 T 100 70 T 150 70 T 200 70' stroke='rgba(255,255,255,0.06)' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
}
.news-main-content { padding: 28px; }
.news-cat {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--coral);
    margin-bottom: 12px;
}
.news-main h2 {
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}
.news-main p { color: var(--text-mute); font-size: 15px; margin-bottom: 18px; }
.news-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-meta .dot { color: var(--gold); }

.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px;
    transition: all 0.2s;
    display: block;
}
.news-item:hover { border-color: var(--gold); background: var(--bg-elev); }
.news-item .news-cat { margin-bottom: 8px; }
.news-item h3 {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 8px;
}
.news-item .news-meta { font-size: 11px; }

/* ─────────── ШВИДКІ КАРТКИ ─────────── */
.quick-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 50px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-card);
}
.quick-card {
    padding: 26px;
    border-right: 1px solid var(--line);
    transition: background 0.2s;
    position: relative;
    display: block;
}
.quick-card:last-child { border-right: none; }
.quick-card:hover { background: var(--bg-elev); }
.quick-card .icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    margin-bottom: 14px;
}
.quick-card .icon svg { width: 100%; height: 100%; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.quick-card h4 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}
.quick-card p { font-size: 13px; color: var(--text-mute); }
.quick-card .arrow {
    position: absolute; top: 26px; right: 26px;
    color: var(--text-dim);
    transition: all 0.2s;
}
.quick-card:hover .arrow { color: var(--gold); transform: translate(2px, -2px); }

/* ─────────── РАЙОНИ ─────────── */
.districts {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 40px;
}
.districts-intro h2 {
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 18px;
}
.districts-intro h2 em { font-style: italic; color: var(--gold); }
.districts-intro p { color: var(--text-mute); font-size: 16px; margin-bottom: 24px; }
.districts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.district {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.district::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.2s;
    transform-origin: bottom;
}
.district:hover::before { transform: scaleY(1); }
.district:hover { background: var(--bg-elev); border-color: var(--line-strong); padding-left: 26px; }
.district .nm { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.district .ct { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ─────────── INFO CARDS ─────────── */
.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
}
.info-card .head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.info-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.info-card .head span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; }

.currency-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.currency-row:last-child { border-bottom: none; padding-bottom: 0; }
.currency-row .left { display: flex; align-items: center; gap: 12px; }
.currency-row .flag {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg-elev);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.currency-row .label { font-size: 14px; color: var(--text); }
.currency-row .value { font-family: var(--serif); font-size: 22px; color: var(--gold); font-weight: 600; }
.currency-row .change.up { color: var(--green); font-size: 11px; }
.currency-row .change.down { color: #E08883; font-size: 11px; }

.weather-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.weather-cell {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-elev);
    border-radius: var(--r-md);
}
.weather-cell .city { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.weather-cell .temp { font-family: var(--serif); font-size: 24px; color: var(--gold); font-weight: 600; }
.weather-cell .desc { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

/* ─────────── АФІША ─────────── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    display: block;
}
.event-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.event-img {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-elev), var(--bg-deeper));
    position: relative;
}
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-img.kind-1 { background: linear-gradient(135deg, #C2410C 0%, #7C2D12 100%); }
.event-img.kind-2 { background: linear-gradient(135deg, #0E7490 0%, #164E63 100%); }
.event-img.kind-3 { background: linear-gradient(135deg, #CA8A04 0%, #713F12 100%); }
.event-img .date {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(6, 18, 36, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: var(--r-sm);
    text-align: center;
    border: 1px solid var(--line);
}
.event-img .date .d { font-family: var(--serif); font-size: 22px; color: var(--gold); line-height: 1; font-weight: 700; }
.event-img .date .m { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-mute); margin-top: 2px; }
.event-content { padding: 20px; }
.event-content .type { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--coral); margin-bottom: 8px; }
.event-content h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 8px; line-height: 1.2; }
.event-content .place { font-size: 13px; color: var(--text-mute); display: flex; align-items: center; gap: 6px; }

/* ─────────── КОРИСНЕ (PLITKY) ─────────── */
.useful-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.useful-tile {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: all 0.2s;
    position: relative;
    display: block;
}
.useful-tile:hover { background: var(--bg-elev); transform: translateY(-2px); }
.useful-tile .icon { font-size: 26px; margin-bottom: 12px; }
.useful-tile h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.useful-tile p { font-size: 12px; color: var(--text-dim); }

/* ─────────── PROSE ─────────── */
.prose-block {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 48px 56px;
    margin-top: 60px;
    position: relative;
}
.prose-block::before {
    content: '';
    position: absolute;
    top: 0; left: 50px;
    width: 60px; height: 2px;
    background: var(--gold);
    transform: translateY(-1px);
}
.prose-block h2 {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.prose-block h2 em { font-style: italic; color: var(--gold); }
.prose-block p {
    font-size: 16px;
    color: var(--text-mute);
    margin-bottom: 16px;
    max-width: 920px;
    line-height: 1.7;
}
.prose-block strong { color: var(--text); font-weight: 600; }
.prose-block a { color: var(--gold); border-bottom: 1px solid rgba(212, 175, 96, 0.3); transition: border-color 0.2s; }
.prose-block a:hover { border-bottom-color: var(--gold); }

/* ─────────── SINGLE / ARCHIVE ─────────── */
.page-header {
    padding: 60px 0 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
}
.page-header .crumbs {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}
.page-header .crumbs a:hover { color: var(--gold); }
.page-header h1 {
    font-family: var(--serif);
    font-size: 56px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.page-header h1 em { font-style: italic; color: var(--gold); }
.page-header .lead {
    font-size: 18px;
    color: var(--text-mute);
    max-width: 760px;
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 60px;
    padding: 30px 0 80px;
}
.single-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
}
.single-content > * { margin-bottom: 24px; }
.single-content h2 {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.single-content h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 36px; margin-bottom: 14px; }
.single-content h4 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-top: 28px; margin-bottom: 10px; }
.single-content p { color: var(--text); }
.single-content a { color: var(--gold); border-bottom: 1px solid rgba(212, 175, 96, 0.4); }
.single-content a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.single-content ul, .single-content ol { padding-left: 26px; color: var(--text-mute); }
.single-content li { margin-bottom: 8px; }
.single-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    color: var(--text);
}
.single-content figure { margin: 30px 0; }
.single-content img { border-radius: var(--r-md); }
.single-content figcaption {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}
.single-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.single-content table th,
.single-content table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.single-content table th { background: var(--bg-elev); color: var(--gold); font-weight: 600; font-family: var(--serif); }
.single-content code {
    background: var(--bg-elev);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--gold-bright);
}
.single-content pre {
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: var(--r-md);
    overflow-x: auto;
}
.single-content pre code { background: none; padding: 0; color: var(--text); }

.single-meta {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.single-meta .dot { color: var(--gold); }
.single-meta a { color: var(--gold); }

.single-featured {
    margin-bottom: 36px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}
.single-featured img { width: 100%; height: auto; display: block; }

.sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}
.widget {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.widget h3, .widget .widget-title {
    font-family: var(--display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; }
.widget ul li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.widget ul li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget ul a {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.3;
    color: var(--text);
    transition: color 0.2s;
    display: block;
}
.widget ul a:hover { color: var(--gold); }
.widget .meta {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ─────────── ARCHIVE GRID ─────────── */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 0 60px;
}
.archive-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.archive-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.archive-card-img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0E7490 0%, #164E63 100%);
    position: relative;
}
.archive-card-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-img.no-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 30% 70%, rgba(212, 175, 96, 0.3), transparent 40%),
      url("data:image/svg+xml,%3Csvg viewBox='0 0 200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 25 30, 50 50 T 100 50 T 150 50 T 200 50' stroke='rgba(255,255,255,0.05)' fill='none'/%3E%3C/svg%3E");
}
.archive-card-content { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.archive-card .news-cat { margin-bottom: 10px; }
.archive-card h2, .archive-card h3 {
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 10px;
}
.archive-card p { font-size: 14px; color: var(--text-mute); margin-bottom: 14px; flex: 1; }
.archive-card .news-meta { margin-top: auto; }

/* пагінація */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0 60px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text-mute);
    font-size: 14px;
    transition: all 0.2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: var(--bg-deeper); border-color: var(--gold); font-weight: 600; }

/* ─────────── ОРГАНІЗАЦІЇ ─────────── */
.org-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s;
    display: block;
}
.org-card:hover { border-color: var(--line-strong); }
.org-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 14px;
}
.org-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.org-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elev);
    padding: 6px 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    flex-shrink: 0;
}
.org-card .desc { color: var(--text-mute); font-size: 14px; margin-bottom: 16px; }
.org-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 13px;
}
.org-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-mute);
}
.org-info-item .ico { color: var(--gold); flex-shrink: 0; }

.single-organization-hero {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px;
    margin-bottom: 30px;
}
.org-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.org-meta-item .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.org-meta-item .val { font-family: var(--serif); font-size: 18px; color: var(--text); }
.org-meta-item .val a { color: var(--gold); }

/* ─────────── FOOTER ─────────── */
.site-footer {
    background: var(--bg-deeper);
    border-top: 1px solid var(--line);
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h5 {
    font-family: var(--display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: 14px; color: var(--text-mute); transition: color 0.2s; }
.site-footer ul a:hover { color: var(--gold-bright); }
.footer-desc {
    font-size: 14px;
    color: var(--text-mute);
    max-width: 380px;
    margin-top: 14px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 14px;
}
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* анімація */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.8s ease forwards;
}
.reveal.d1 { animation-delay: 0.1s; }
.reveal.d2 { animation-delay: 0.2s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.4s; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

/* ─────────── responsive ─────────── */
@media (max-width: 1100px) {
    .single-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .hero-headline { font-size: 44px; }
    .page-header h1 { font-size: 40px; }
    .hero-grid, .news-grid, .districts, .info-row, .events-grid { grid-template-columns: 1fr; }
    .quick-strip, .useful-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-card:nth-child(2) { border-right: none; }
    .quick-card:nth-child(1), .quick-card:nth-child(2) { border-bottom: 1px solid var(--line); }
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .main-nav.open {
        display: block;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-deeper);
        border-bottom: 1px solid var(--line);
        padding: 20px 28px;
    }
    .main-nav.open ul { flex-direction: column; gap: 4px; }
    .main-nav.open a { display: block; padding: 12px 14px; }
    .section-title { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-cta { display: none; }
}
@media (max-width: 720px) {
    /* TOPBAR — компактна форма: все вміщується в один рядок */
    .topbar { font-size: 11px; }
    .topbar-inner { height: 34px; gap: 6px; }
    .topbar-left { gap: 8px; flex-shrink: 0; }
    .topbar-left .label { font-size: 10px; letter-spacing: 0.5px; }
    .topbar-left .date-full { display: none; }
    .topbar-left .date-short { display: inline; color: var(--text-mute); font-size: 11px; }
    .topbar-right { gap: 8px; font-size: 11px; flex-shrink: 0; }
    .topbar-right a { gap: 3px; }
    .topbar-right a .tb-icon { font-size: 10px; }
    .site-header { top: 34px; }
}
@media (max-width: 580px) {
    .container { padding: 0 18px; }
    .hero-headline { font-size: 34px; }
    .page-header h1 { font-size: 32px; }
    .hero-stats { gap: 24px; }
    .quick-strip, .useful-grid, .weather-grid, .footer-grid, .archive-grid, .org-info, .org-meta-grid { grid-template-columns: 1fr; }
    .quick-card { border-right: none; border-bottom: 1px solid var(--line); }
    .quick-card:last-child { border-bottom: none; }
    .prose-block { padding: 30px 24px; }
    .single-organization-hero { padding: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .news-main-content { padding: 22px; }
    .news-main h2 { font-size: 24px; }
}

/* ============================================================
   v1.0.2 — ОНОВЛЕННЯ ГОЛОВНОЇ СТОРІНКИ
   ============================================================ */

/* ─── Hero: маяк SVG замість віджету моря ─── */
.hero-mayak {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
}
.hero-mayak-svg {
    max-width: 260px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(212, 175, 96, 0.15));
    animation: mayakGlow 4s ease-in-out infinite;
}
@keyframes mayakGlow {
    0%, 100% { filter: drop-shadow(0 8px 24px rgba(212, 175, 96, 0.15)); }
    50%      { filter: drop-shadow(0 8px 28px rgba(212, 175, 96, 0.32)); }
}
.hero-mayak-svg .rays {
    transform-origin: 120px 48px;
    animation: mayakRays 6s ease-in-out infinite;
}
@keyframes mayakRays {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.55; }
}
.hero-mayak-caption {
    text-align: center;
    font-family: var(--serif);
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.5;
    max-width: 280px;
}
.hero-mayak-caption strong {
    color: var(--gold);
    font-weight: 600;
}

/* ─── Новини: 3 колонки × 5 рядків без зображень ─── */
.news-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: var(--r-lg, 12px);
    overflow: hidden;
}
.news-col-item {
    padding: 20px 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.2s ease;
    min-height: 130px;
}
.news-col-item:hover {
    background: var(--bg-elev, rgba(255,255,255,0.02));
}
.news-col-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 4px;
    font-weight: 600;
}
a.news-col-cat:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}
.news-col-title {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 8px;
    flex: 1;
}
.news-col-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}
.news-col-title a:hover {
    color: var(--gold);
}
.news-col-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: auto;
}
.news-col-meta .dot {
    color: var(--gold);
    opacity: 0.5;
}

/* ─── Адаптив для нової news-сітки ─── */
@media (max-width: 980px) {
    .news-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .news-cols { grid-template-columns: 1fr; }
    .news-col-item { min-height: auto; padding: 16px 18px; }
    .news-col-title { font-size: 16px; }
}

/* ─── Адаптив для hero-mayak ─── */
@media (max-width: 980px) {
    .hero-mayak { order: -1; padding: 0; }
    .hero-mayak-svg { max-width: 180px; }
    .hero-mayak-caption { font-size: 13px; }
}

/* ============================================================
   v1.0.3 — Афіша категорії, клікабельна погода, SEO h3
   ============================================================ */

/* Афіша — 4 категорії */
.afisha-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.afisha-cat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 22px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.afisha-cat:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.afisha-cat-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 4px;
}
.afisha-cat h3 {
    font-family: var(--serif);
    font-size: 20px;
    margin: 0 0 4px;
    color: var(--text);
    font-weight: 600;
}
.afisha-cat p {
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.45;
    margin: 0;
}
@media (max-width: 980px) {
    .afisha-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .afisha-cats { grid-template-columns: 1fr; }
    .afisha-cat { padding: 18px 20px; }
}

/* Погода — клікабельні комірки */
a.weather-cell {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    cursor: pointer;
}
a.weather-cell:hover {
    background: var(--bg-elev, rgba(255,255,255,0.03));
    border-color: var(--gold);
}
a.weather-cell .city {
    transition: color 0.15s ease;
}
a.weather-cell:hover .city {
    color: var(--gold);
}

.info-card .head .head-link {
    font-size: 12px;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.info-card .head .head-link:hover {
    text-decoration: underline;
}

/* SEO prose block — підрозділи */
.prose-block h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--gold);
    letter-spacing: -0.3px;
}
.prose-block h3:first-of-type {
    margin-top: 24px;
}
