/* ==========================================================================
   Токени
   Шкала шрифтів: 12 / 13 / 14 / 15 / 16 / 18 / 20 px + заголовки (clamp).
   Відступи: кратні 4 px. Радіуси: 28 / 20 / 14 px.
   ========================================================================== */

:root {
	--navy: #0b1f3a;
	--navy-soft: #183a68;
	--blue: #2d6bd6;
	--sky: #eef5fc;
	--sky-strong: #d8e8f8;
	--gold: #c8a24c;
	--gold-light: #e3c47d;
	--gold-dark: #8a6a22;
	--gold-soft: #f7f0de;
	--white: #ffffff;
	--text: #1d2939;
	--muted: #5b687a;
	--border: #e2e9f2;
	--radius-lg: 28px;
	--radius: 20px;
	--radius-sm: 14px;
	--shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
	--shadow: 0 14px 36px rgba(11, 31, 58, 0.09);
	--shadow-lg: 0 26px 60px rgba(11, 31, 58, 0.16);
	--container: 1200px;
	--gutter: 16px;
	--header-h: 64px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
	:root { --gutter: 24px; --header-h: 76px; }
}

@media (min-width: 1200px) {
	:root { --gutter: 32px; }
}

/* ==========================================================================
   Основа
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html:has(.modal[open]) { overflow: hidden; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
/* Підвал завжди внизу екрана, навіть на коротких сторінках (404, пошук без результатів). */
main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--navy-soft); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p, li, summary, figcaption { text-wrap: pretty; }

.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip-path: none; height: auto; width: auto; margin: 0; top: 12px; left: 12px; z-index: 1000; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--white); color: var(--navy); box-shadow: var(--shadow); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ==========================================================================
   Кнопки та підписи
   ========================================================================== */

.btn, .search-submit, .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; padding: 0.75rem 1.5rem; border: 0; border-radius: 999px;
	background: var(--navy); color: var(--white); font-size: 1rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover, .search-submit:hover, .comment-form .submit:hover { background: var(--navy-soft); }
.btn:active, .search-submit:active, .comment-form .submit:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.875rem; white-space: nowrap; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0; border: 0; background: none; color: var(--navy); font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.link-arrow .icon { width: 18px; height: 18px; color: var(--gold-dark); transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--gold-dark); }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--gold); }

/* Підйом при наведенні — лише для миші, щоб на сенсорних екранах елементи не «залипали». */
@media (hover: hover) and (pointer: fine) {
	.btn:hover, .search-submit:hover, .comment-form .submit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
	.btn:active { transform: translateY(0); }
	.btn:hover .icon { transform: translateX(3px); }
	.link-arrow:hover .icon { transform: translateX(4px); }
}

/* ==========================================================================
   Секції
   ========================================================================== */

.section { padding-block: 64px; }
.section-sky { background: var(--sky); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.section-lead { max-width: 58ch; margin: 1rem auto 0; font-size: 1.125rem; color: var(--muted); }
.section-more { margin-top: 40px; text-align: center; }

@media (min-width: 768px) {
	.section { padding-block: 96px; }
	.section-head { margin-bottom: 56px; }
}

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

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.admin-bar .site-header { top: 46px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; }
.logo-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.custom-logo-link img { width: auto; max-height: 44px; }

.main-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 4px var(--gutter) 16px; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s; }
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-menu { list-style: none; }
.nav-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1.125rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.nav-menu li:last-child a { border-bottom: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--white); cursor: pointer; }
.menu-toggle-bar { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform 0.25s var(--ease), opacity 0.25s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 359px) {
	.header-inner { gap: 8px; }
	.header-actions { gap: 4px; }
	.logo { font-size: 1.125rem; }
	.header-actions .btn-sm { padding-inline: 0.75rem; font-size: 0.8125rem; }
}

@media (min-width: 783px) {
	.admin-bar .site-header { top: 32px; }
}

@media (min-width: 1024px) {
	.logo { font-size: 1.5rem; }
	.main-nav { position: static; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
	.nav-menu { display: flex; gap: 32px; }
	.nav-menu a { position: relative; padding: 8px 0; border: 0; font-size: 0.9375rem; font-weight: 500; color: var(--text); }
	.nav-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
	.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--navy); }
	.nav-menu a:hover::after { transform: scaleX(1); }
	.menu-toggle { display: none; }
	.header-actions .btn-sm { min-height: 44px; padding-inline: 1.25rem; }
}

/* ==========================================================================
   Головний екран
   ========================================================================== */

.hero { padding: 12px var(--gutter) 0; }
.hero-inner { position: relative; isolation: isolate; display: flex; align-items: flex-end; max-width: 1440px; min-height: min(78svh, 640px); margin-inline: auto; overflow: hidden; border-radius: var(--radius-lg); color: var(--white); background: var(--navy); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; animation: hero-zoom 1.8s var(--ease) both; }
.hero-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 31, 58, 0.1) 0%, rgba(11, 31, 58, 0.4) 40%, rgba(11, 31, 58, 0.9) 100%); }
.hero-content { max-width: 660px; padding: 32px 24px; }
.hero-content > * { animation: fade-up 0.9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: 0.1s; }
.hero-content > :nth-child(3) { animation-delay: 0.2s; }
.hero-content > :nth-child(4) { animation-delay: 0.3s; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero h1, .hero-text, .hero .eyebrow { text-shadow: 0 1px 16px rgba(11, 31, 58, 0.35); }
.hero h1 { margin: 16px 0; font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.hero-text { max-width: 520px; margin-bottom: 32px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: rgba(255, 255, 255, 0.88); }

@media (min-width: 768px) {
	.hero-content { padding: 56px; }
}

@media (min-width: 900px) {
	.hero-inner { align-items: center; min-height: min(84vh, 720px); }
	.hero-inner::before { background: linear-gradient(90deg, rgba(11, 31, 58, 0.85) 0%, rgba(11, 31, 58, 0.5) 45%, rgba(11, 31, 58, 0.05) 80%); }
}

@media (min-width: 1200px) {
	.hero-content { padding: 72px 80px; }
}

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Картки (напрямки, статті, архіви)
   ========================================================================== */

.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.section-sky .card { border-color: transparent; box-shadow: var(--shadow-sm); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-strong); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card-placeholder { display: grid; place-items: center; height: 100%; color: var(--navy-soft); }
.card-placeholder .icon { width: 48px; height: 48px; opacity: 0.35; }
.card-tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); font-size: 0.75rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.03em; color: var(--navy); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.card-meta .icon { width: 16px; height: 16px; color: var(--gold-dark); }
.card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--navy); }
.card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.card-title a:hover { color: var(--gold-dark); }
.card-text { color: var(--muted); }
.card-body .link-arrow { align-self: flex-start; margin-top: auto; padding-top: 4px; }

@media (hover: hover) and (pointer: fine) {
	.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
	.card:hover .card-media img { transform: scale(1.06); }
}

@media (min-width: 640px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1024px) {
	.card-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* ==========================================================================
   Про нас
   ========================================================================== */

.about-grid { display: grid; gap: 48px; align-items: center; }
.about-media { position: relative; margin-bottom: 24px; }
.about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.about-badge { position: absolute; left: 16px; bottom: -24px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 16px 20px; border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-lg); font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.about-badge strong { display: block; font-size: 0.9375rem; color: var(--navy); }
.about-badge-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-dark); }
.about-content .eyebrow { margin-bottom: 0.75rem; }
.about-text { margin-top: 20px; font-size: 1.125rem; }
.about-text p + p { margin-top: 16px; }
.feature-list { display: grid; gap: 20px; margin-top: 32px; list-style: none; }
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--sky); color: var(--navy); }
.feature-title { display: block; color: var(--navy); }
.feature-text { display: block; font-size: 0.9375rem; color: var(--muted); }

@media (min-width: 900px) {
	.about-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
	.about-media { margin-bottom: 0; }
	.about-badge { left: auto; right: -20px; bottom: 32px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { display: grid; gap: 12px; max-width: 720px; margin-inline: auto; }
.faq-list details { background: var(--white); border: 1px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s var(--ease), border-color 0.3s; }
.faq-list details[open] { border-color: var(--sky-strong); box-shadow: var(--shadow); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; list-style: none; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--navy); cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform 0.3s var(--ease), background-color 0.3s; }
.faq-list details[open] > summary::after { transform: rotate(180deg); background-color: var(--gold-soft); }
.faq-list details > :not(summary) { max-width: calc(68ch + 48px); padding-inline: 24px; color: var(--muted); }
.faq-list details > :last-child { padding-bottom: 24px; }
.faq-list details > p + p { margin-top: 12px; }

@media (min-width: 768px) {
	.faq-list summary { font-size: 1.125rem; }
}

@supports selector(::details-content) {
	.faq-list { interpolate-size: allow-keywords; }
	.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
	.faq-list details[open]::details-content { block-size: auto; }
}

/* ==========================================================================
   Розсилка
   ========================================================================== */

.newsletter-card { position: relative; isolation: isolate; overflow: hidden; padding: 48px 24px; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); text-align: center; }
.newsletter-card::before, .newsletter-card::after { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; }
.newsletter-card::before { top: -220px; right: -160px; background: radial-gradient(circle, rgba(125, 175, 240, 0.35), transparent 65%); }
.newsletter-card::after { bottom: -260px; left: -180px; background: radial-gradient(circle, rgba(200, 162, 76, 0.28), transparent 65%); }
.newsletter-card .eyebrow { color: var(--gold-light); }
.newsletter-card .eyebrow::before { background: var(--gold-light); }
.newsletter-card h2 { max-width: 560px; margin: 16px auto 12px; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.newsletter-text { max-width: 520px; margin-inline: auto; color: rgba(255, 255, 255, 0.8); }
.newsletter-form, .newsletter-plugin { max-width: 520px; margin: 32px auto 0; text-align: left; }
.field-label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.newsletter-row { display: flex; flex-direction: column; gap: 12px; }
.newsletter-row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 2px solid transparent; border-radius: 999px; background: var(--white); color: var(--text); font-size: 1rem; }
.newsletter-row input::placeholder { color: #8a96a8; }
.newsletter-row input:focus { outline: none; border-color: var(--gold-light); }
.newsletter-row .btn { min-height: 52px; }
.newsletter-notice { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); text-align: center; font-weight: 600; }
.newsletter-notice:empty { display: none; }
.newsletter-notice.is-success { background: rgba(34, 197, 94, 0.18); }
.newsletter-notice.is-error { background: rgba(248, 113, 113, 0.22); }
.newsletter-consent { margin-top: 16px; font-size: 0.8125rem; text-align: center; color: rgba(255, 255, 255, 0.65); }
.newsletter-consent a { color: var(--white); }
.tw-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 560px) {
	.newsletter-row { flex-direction: row; }
}

@media (min-width: 768px) {
	.newsletter-card { padding: 72px 48px; }
}

/* ==========================================================================
   Контакти
   На вузьких екранах іконка зліва від тексту, на широких — картки у 4 колонки.
   ========================================================================== */

.contacts-grid { display: grid; gap: 12px; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: 16px; row-gap: 2px; padding: 16px 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.contact-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--sky); color: var(--navy); }
.contact-label { align-self: end; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-value { align-self: start; font-size: 1rem; font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: break-word; transition: color 0.2s; }
a.contact-value:hover { color: var(--gold-dark); }
.socials-wrap { margin-top: 40px; text-align: center; }
.socials-label { margin-bottom: 16px; font-weight: 600; color: var(--navy); }
.socials { display: flex; justify-content: center; gap: 12px; list-style: none; }
.social-link { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease); }
.social-link:hover { background: var(--gold); color: var(--navy); }

@media (hover: hover) and (pointer: fine) {
	.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
	.social-link:hover { transform: translateY(-3px); }
}

@media (min-width: 640px) {
	.contacts-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 1200px) {
	.contacts-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
	.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; }
	.contact-icon { margin-bottom: 8px; }
	.contact-label, .contact-value { align-self: auto; }
	.contact-value { font-size: 1.125rem; }
}

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

.site-footer { padding: 56px 0 28px; background: var(--navy); color: rgba(255, 255, 255, 0.72); }
.footer-top { display: grid; gap: 32px; }
.site-footer .logo { color: var(--white); }
.site-footer .logo-mark { box-shadow: 0 0 0 4px rgba(200, 162, 76, 0.25); }
.footer-about { max-width: 380px; margin-top: 12px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; }
.footer-nav a { display: inline-block; padding-block: 8px; color: rgba(255, 255, 255, 0.88); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.875rem; text-align: center; color: rgba(255, 255, 255, 0.55); }

@media (min-width: 900px) {
	.footer-top { grid-template-columns: minmax(0, 380px) 1fr; gap: 48px; align-items: center; }
	.footer-nav ul { justify-content: flex-end; }
}

/* ==========================================================================
   Модальні вікна
   Плавне відкриття й закриття: @starting-style + перехід display/overlay.
   Браузери без підтримки просто показують і ховають вікно без анімації.
   ========================================================================== */

.modal { width: min(760px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: visible; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--text); opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), overlay 0.3s allow-discrete, display 0.3s allow-discrete; }
.modal[open] { opacity: 1; transform: none; }
.modal::backdrop { background: rgba(11, 31, 58, 0); transition: background-color 0.3s, overlay 0.3s allow-discrete, display 0.3s allow-discrete; }
.modal[open]::backdrop { background: rgba(11, 31, 58, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@starting-style {
	.modal[open] { opacity: 0; transform: translateY(24px) scale(0.98); }
	.modal[open]::backdrop { background: rgba(11, 31, 58, 0); }
}
.modal-panel { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; background: var(--white); box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--navy); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.25s var(--ease); }
.modal-close:hover { transform: rotate(90deg); }
.modal-media { background: var(--sky-strong); }
.modal-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal-body { padding: 32px 24px; }
.modal-title { margin: 12px 48px 16px 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); }
.modal-media + .modal-body .modal-title { margin-right: 0; }
.modal .entry-content { font-size: 1rem; }

@media (min-width: 768px) {
	.modal-body { padding: 40px 48px 48px; }
}

/* ==========================================================================
   Записи та сторінки
   ========================================================================== */

.entry-wrap { max-width: calc(760px + var(--gutter) * 2); margin-inline: auto; padding: 48px var(--gutter) 80px; }
.entry-header { margin-bottom: 28px; }
.entry-header .eyebrow { margin-bottom: 0.75rem; }
.entry-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.entry-meta a { color: var(--gold-dark); text-decoration: none; }
.entry-thumb { width: 100%; margin-bottom: 32px; border-radius: var(--radius-lg); }

.entry-content { font-size: 1.125rem; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; line-height: 1.3; color: var(--navy); }
.entry-content h3 { font-size: 1.25rem; }
.entry-content :is(h2, h3, h4) + * { margin-top: 0.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content li::marker { color: var(--gold-dark); }
.entry-content a { color: var(--navy-soft); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold-dark); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { padding: 0.75em 1.25em; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sky); color: var(--navy); }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.entry-content pre { overflow-x: auto; padding: 1rem; border-radius: var(--radius-sm); background: var(--navy); color: #e2e8f0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.5em 0.75em; border: 1px solid var(--border); text-align: left; }
.entry-content figcaption, .wp-caption-text { margin-top: 0.5em; font-size: 0.875rem; text-align: center; color: var(--muted); }
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

/* Навігація між записами, пагінація */
.post-navigation { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.post-navigation a { font-weight: 600; color: var(--navy); text-decoration: none; transition: color 0.2s; }
.post-navigation a:hover { color: var(--gold-dark); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); color: var(--navy); text-decoration: none; }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
a.page-numbers:hover { border-color: var(--gold); }

/* Пошук, 404 */
.empty-state, .not-found { text-align: center; }
.empty-state p, .not-found > p:not(.eyebrow) { max-width: 58ch; margin: 16px auto 24px; color: var(--muted); }
.not-found .eyebrow { margin-bottom: 0.75rem; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 24px; }
.search-form label { display: flex; flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: 0 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); font-size: 1rem; }

/* Коментарі */
.comments-area { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.comments-title, .comment-reply-title { margin-bottom: 20px; font-size: 1.5rem; color: var(--navy); }
.comment-list, .comment-list .children { list-style: none; }
.comment-list .children { padding-left: 1.5rem; }
.comment-body { margin-bottom: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.comment-author { display: flex; align-items: center; gap: 0.5rem; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: inherit; }
.comment-content p + p { margin-top: 0.75em; }
.reply a { font-size: 0.875rem; font-weight: 600; color: var(--gold-dark); text-decoration: none; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ==========================================================================
   Анімація появи (лише з JavaScript)
   ========================================================================== */

.js .reveal {
	opacity: 0;
	translate: 0 24px;
	transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
	transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s;
}
.js .reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.js .reveal { opacity: 1; translate: none; }
}
