:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #22201d;
  --muted: #6b6a67;
  --accent: #b5652f;
  --border: #e6e3dd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site-header {
  border-bottom: 2px solid var(--text);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

header.site-header a {
  color: var(--text);
  text-decoration: none;
}

header.site-header h1 {
  font-size: 28px;
  margin: 0;
}

header.site-header .tagline {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.article-list-item h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.article-list-item a {
  color: var(--text);
  text-decoration: none;
}

.article-list-item a:hover {
  color: var(--accent);
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

article.full h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

article.full h2 {
  font-size: 22px;
  margin-top: 32px;
}

article.full p {
  margin: 16px 0;
}

article.full a {
  color: var(--accent);
}

.admin-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.admin-form button {
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  cursor: pointer;
}

.admin-form button:hover { opacity: 0.9; }

.alert {
  font-family: Arial, sans-serif;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert.error { background: #fdecea; color: #a12f27; border: 1px solid #f3c1bb; }
.alert.notice { background: #e9f6ec; color: #276b3d; border: 1px solid #bfe3c7; }

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
table.admin-table form { display: inline; }
table.admin-table button.link-btn {
  background: none;
  border: none;
  color: #a12f27;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
  margin-bottom: 24px;
}
.topbar a, .topbar button {
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================================
   Public homepage (index.php) — hero, reviews grid, video, footer
   ============================================================ */

header.public-nav {
  background: #1c130d;
  padding: 18px 20px;
}
header.public-nav .public-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
}
header.public-nav .brand {
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.hero {
  background: linear-gradient(135deg, #2b1c10, #4a2c12);
  color: #fff6ec;
  padding: 64px 20px 56px;
  text-align: center;
}
.hero h1 {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 18px;
  letter-spacing: 0.3px;
}
.hero p {
  font-family: Arial, sans-serif;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 30px;
  color: #f1e3d5;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.btn-primary:hover { opacity: 0.9; }

.reviews-section {
  padding: 56px 20px 40px;
  max-width: 1080px;
  margin: 0 auto;
}
.reviews-section h2 {
  font-family: Arial, sans-serif;
  font-size: 30px;
  text-align: center;
  margin: 0 0 8px;
}
.reviews-section .section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 36px;
  font-family: Arial, sans-serif;
  font-size: 15px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.review-card .eyebrow {
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.review-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}
.review-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.review-card h3 a:hover { color: var(--accent); }
.review-card .read-more {
  display: inline-block;
  margin-top: 4px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.review-card .read-more:hover { text-decoration: underline; }

.intro-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.intro-section h2 {
  font-family: Arial, sans-serif;
  font-size: 26px;
  margin-bottom: 14px;
}

.video-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 56px;
}
.video-section p.lead {
  font-family: Arial, sans-serif;
  color: var(--muted);
  margin-bottom: 16px;
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer.site-footer {
  background: #1c130d;
  color: #cfc3b8;
  padding: 44px 20px 28px;
  margin-top: 24px;
  font-family: Arial, sans-serif;
}
footer.site-footer .footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
}
footer.site-footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 18px;
}
footer.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
footer.site-footer .footer-links a {
  color: #cfc3b8;
  text-decoration: none;
  font-size: 14px;
}
footer.site-footer .footer-links a:hover { color: #fff; }
footer.site-footer .copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #3a2e24;
  font-size: 12px;
  color: #8a7d70;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
}

/* Логотип у шапці публічних сторінок (index.php, article.php) */
header.public-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
header.public-nav .brand-logo {
  height: 36px;
  width: auto;
}
