/*
Theme Name: Пуща — Оздоровчий центр
Theme URI: https://puscha.kyiv.ua/
Author: Оздоровчий центр Пуща
Description: Кастомна WordPress тема для оздоровчого центру «Пуща».
Version: 3.0.0
License: Private
Text Domain: puscha
*/

/* ══════════════════════════════════════════════════════
   DESIGN TOKENS — медичний блакитний (з логотипу)
══════════════════════════════════════════════════════ */
:root {
  /* Primary palette */
  --blue-deep:   #2C5F7F;   /* глибокий медичний блакитний — primary */
  --blue:        #5B9EC9;   /* блакитний з логотипу */
  --blue-soft:   #8FB9D5;   /* м'який блакитний */
  --blue-bg:     #EAF2F7;   /* дуже світлий блакитний фон */
  --blue-bg-dk:  #DBE7EE;
  --olive:       #6B8C3A;   /* олива з логотипу — тонкий акцент */
  --olive-soft:  #ECF1E0;

  /* Neutrals */
  --white:       #FFFFFF;
  --bg:          #FAFBFC;   /* майже білий, теплий */
  --bg-soft:     #F4F7FA;
  --text:        #14283A;   /* темно-синьо-сірий */
  --text-mid:    #4A6275;
  --text-lt:     #7E8FA0;
  --border:      #E0E6EC;
  --border-lt:   #ECF0F4;

  /* Type */
  --font-serif:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --r-sm: .375rem;
  --r:    .75rem;
  --r-lg: 1.25rem;
  --r-xl: 2rem;

  --sh-sm: 0 1px 3px rgba(20,40,58,.06);
  --sh-md: 0 4px 16px rgba(20,40,58,.08);
  --sh-lg: 0 12px 40px rgba(20,40,58,.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font-family: inherit; cursor: pointer; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--blue-deep);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 500; }
h4 { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; }
p  { color: var(--text-mid); line-height: 1.7; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
section { padding: 4.5rem 0; }
@media (min-width: 768px) { section { padding: 6.5rem 0; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 2rem; border-radius: var(--r);
  font-family: var(--font-sans); font-weight: 500;
  font-size: .95rem; letter-spacing: .015em;
  border: none; min-height: 50px;
  transition: all .25s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--blue-deep); color: #fff;
  box-shadow: 0 4px 14px rgba(44,95,127,.25);
}
.btn-primary:hover {
  background: #1F4A66; color: #fff;
  box-shadow: 0 6px 20px rgba(44,95,127,.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
}
.btn-outline:hover { background: var(--blue-deep); color: #fff; }

.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; min-height: 56px; }

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999; padding: .5rem 0;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border-lt), 0 4px 24px rgba(20,40,58,.06) !important;
  transition: padding .3s;
}
#site-header.scrolled {
  padding: .25rem 0;
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; height: 70px;
}

/* Logo lockup — circle bg + wordmark */
.site-logo {
  display: flex; align-items: center; gap: .65rem;
  flex-shrink: 0;
}
.site-logo-mark {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .25s;
}
.site-logo-mark img {
  width: 44px; height: 44px;
  object-fit: contain;
}
.site-logo:hover .site-logo-mark {
  box-shadow: 0 4px 14px rgba(20,40,58,.18);
  transform: scale(1.04);
}
.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: .01em;
  line-height: 1;
  display: none;
}
@media (min-width: 480px) { .site-logo-text { display: block; } }

/* Nav */
.main-nav {
  display: none; align-items: center;
  list-style: none; gap: .25rem;
}
@media (min-width: 960px) { .main-nav { display: flex; } }
.main-nav a {
  display: block;
  padding: .5rem 1rem;
  font-size: .875rem; font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: background .18s, color .18s;
}
.main-nav a:hover { background: rgba(44,95,127,.08); color: var(--blue-deep); }

.header-actions {
  display: none; align-items: center; gap: .85rem;
}
@media (min-width: 960px) { .header-actions { display: flex; } }

.social-links { display: flex; gap: .15rem; }
.social-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); border-radius: var(--r-sm);
  transition: background .18s, color .18s;
}
.social-link:hover { background: rgba(44,95,127,.08); color: var(--blue-deep); }
.social-link svg { width: 17px; height: 17px; }

.h-divider {
  width: 1px; height: 20px;
  background: var(--border); opacity: .55;
}

.header-cta {
  display: inline-block;
  background: var(--blue-deep); color: #fff !important;
  padding: .55rem 1.4rem;
  border-radius: var(--r);
  font-size: .875rem; font-weight: 500;
  letter-spacing: .015em;
  box-shadow: 0 2px 10px rgba(44,95,127,.28);
  transition: all .22s;
}
.header-cta:hover {
  background: #1F4A66 !important;
  box-shadow: 0 4px 16px rgba(44,95,127,.4) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none;
  color: var(--text); border-radius: var(--r-sm);
  transition: background .18s;
}
.mobile-toggle:hover { background: rgba(44,95,127,.08); }
@media (min-width: 960px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-lt);
  box-shadow: 0 10px 36px rgba(20,40,58,.10);
  padding: .75rem 1.5rem 1.25rem; gap: .15rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: .65rem .75rem;
  font-weight: 500; font-size: .95rem;
  color: var(--text); border-radius: var(--r-sm);
}
.mobile-menu a:hover { background: rgba(44,95,127,.06); color: var(--blue-deep); }
.m-divider { height: 1px; background: var(--border-lt); margin: .4rem 0; }
.mobile-socials { display: flex; gap: .5rem; padding: .4rem .75rem; }
.mobile-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-deep);
  transition: background .18s, color .18s;
  padding: 0;
}
.mobile-socials a:hover { background: var(--blue-deep); color: #fff; }
.mobile-socials svg { width: 17px; height: 17px; }
.mobile-cta {
  display: block; width: 100%; margin-top: .5rem;
  text-align: center;
  background: var(--blue-deep); color: #fff !important;
  padding: .9rem; border-radius: var(--r);
  font-weight: 500; font-size: .95rem;
}
.mobile-cta:hover { background: #1F4A66 !important; }

/* ══════════════════════════════════════════════════════
   HERO  — clean, photo-forward, one focal point
══════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: var(--blue-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 65%;
  filter: saturate(.82) brightness(.95) contrast(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20,40,58,.45) 0%,
      rgba(20,40,58,.20) 30%,
      rgba(20,40,58,.55) 100%),
    linear-gradient(135deg,
      rgba(44,95,127,.35) 0%,
      rgba(20,40,58,.10) 100%);
}
.hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(20,40,58,.35) 100%);
}

.hero-content {
  position: relative; z-index: 10;
  text-align: center; color: #fff;
  padding: 8rem 1.5rem 5rem;
  max-width: 760px;
  margin: 0 auto;
}

.hero-medallion {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.4),
    0 12px 40px rgba(0,0,0,.30),
    inset 0 0 0 6px rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
}
.hero-medallion img {
  width: 88px; height: 88px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .hero-medallion { width: 92px; height: 92px; margin-bottom: 1.5rem; }
  .hero-medallion img { width: 72px; height: 72px; }
}

.hero-content h1 {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 500;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.92);
}

.hero-sub {
  font-size: clamp(.92rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.85);
  font-family: var(--font-sans);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1.05rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  background: #fff;
  color: var(--blue-deep);
  min-height: 56px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  transition: all .25s;
}
.hero-cta:hover {
  background: var(--blue-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
}
.hero-cta svg { width: 18px; height: 18px; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.7); }
  50% { opacity: .9; transform: scaleY(1); }
}
@media (max-width: 600px) { .hero-scroll { display: none; } }

/* ══════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════ */
.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.sec-head .eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.sec-head h2 { color: var(--blue-deep); margin-bottom: .8rem; }
.sec-head p { color: var(--text-mid); font-size: 1rem; line-height: 1.7; }

.accent-line {
  display: block;
  width: 40px; height: 1px;
  background: var(--blue);
  margin: 1.25rem auto 0;
}
.accent-line--left { margin: 1rem 0 0; }

/* ══════════════════════════════════════════════════════
   PROGRAMS
══════════════════════════════════════════════════════ */
#programs { background: var(--white); }

.program-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .program-cards { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.program-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-lt);
  box-shadow: var(--sh-sm);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.program-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: var(--blue-soft);
}

.prog-img {
  position: relative;
  height: 230px; overflow: hidden;
}
@media (min-width: 768px) { .prog-img { height: 290px; } }
.prog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.program-card:hover .prog-img img { transform: scale(1.04); }

.prog-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: .35rem 1rem;
  border-radius: 9999px;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-light { background: rgba(255,255,255,.94); color: var(--blue-deep); }
.badge-deep { background: var(--blue-deep); color: #fff; }

.prog-body {
  padding: 1.75rem;
  flex: 1;
  display: flex; flex-direction: column;
}
@media (min-width: 768px) { .prog-body { padding: 2.25rem; } }

.prog-body h3 {
  color: var(--blue-deep);
  margin-bottom: .65rem;
}
.prog-body > p {
  font-size: .92rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin-top: auto;
  display: flex; flex-direction: column; gap: .55rem;
  border-top: 1px solid var(--border-lt);
  padding-top: 1.25rem;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .88rem; color: var(--text-mid);
}
.check-wrap {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--olive);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.check-wrap svg { width: 10px; height: 10px; }

/* Symptoms block */
.symptoms-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--blue-bg);
  border-radius: var(--r-xl);
  padding: 2rem;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) {
  .symptoms-block {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    padding: 3.5rem;
  }
}
.sym-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
@media (min-width: 1024px) {
  .sym-img { aspect-ratio: 4/5; }
}
.sym-img img { width: 100%; height: 100%; object-fit: cover; }

.sym-content h3 {
  color: var(--blue-deep);
  margin-bottom: 1.5rem;
}

.sym-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.sym-list li {
  display: flex; gap: .9rem;
  align-items: flex-start;
}
.sym-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
  margin-top: .15rem;
  min-width: 1.6rem;
}
.sym-list h4 {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .25rem;
  color: var(--text);
}
.sym-list p {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.sym-note {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(44,95,127,.15);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--blue-deep);
}

/* Benefits */
.benefits-title {
  text-align: center;
  color: var(--blue-deep);
  margin-bottom: 2.5rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.benefit-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-lt);
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.benefit-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--blue-soft);
}
.ben-img { height: 130px; overflow: hidden; }
@media (min-width: 768px) { .ben-img { aspect-ratio: 4/3; height: auto; } }
.ben-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.benefit-card:hover .ben-img img { transform: scale(1.05); }

.ben-body { padding: 1.1rem 1.25rem 1.5rem; }
@media (min-width: 768px) { .ben-body { padding: 1.5rem 1.75rem 1.75rem; } }
.ben-icon { color: var(--blue); margin-bottom: .6rem; }
.ben-icon svg { width: 22px; height: 22px; }
.ben-body h4 {
  color: var(--blue-deep);
  font-size: .95rem;
  margin-bottom: .35rem;
}
@media (min-width: 768px) { .ben-body h4 { font-size: 1.1rem; } }
.ben-body p {
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.6;
}
@media (min-width: 768px) { .ben-body p { font-size: .88rem; } }

/* ══════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════ */
#pricing {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
}

.pricing-head { text-align: center; margin-bottom: 3rem; }
.pricing-head h2 { margin-bottom: .5rem; }
.pricing-head p {
  color: var(--text-mid);
  max-width: 480px; margin: 1rem auto 0;
  font-size: .95rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: 7fr 5fr; gap: 3rem; }
}

.tab-buttons {
  display: inline-flex;
  background: rgba(44,95,127,.08);
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: .55rem 1.6rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .88rem;
  color: var(--text-mid);
  transition: all .22s;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 3px 10px rgba(44,95,127,.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.price-row {
  display: flex; flex-direction: column; gap: .35rem;
  justify-content: space-between;
  background: #fff;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r);
  border: 1px solid var(--border-lt);
  margin-bottom: .65rem;
  box-shadow: var(--sh-sm);
  transition: all .2s;
}
@media (min-width: 600px) {
  .price-row { flex-direction: row; align-items: center; }
}
.price-row:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
  border-color: var(--blue-soft);
}
.price-title {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
}
.price-extra {
  font-size: .78rem;
  color: var(--text-lt);
  margin-top: .15rem;
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-deep);
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-cta { margin-top: 1.5rem; }

/* Included */
.included-box, .add-box {
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh-sm);
}
.included-box { margin-bottom: 1.25rem; }
.included-box h4, .add-box h4 {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}

.inc-list {
  list-style: none;
  display: flex; flex-direction: column; gap: .55rem;
}
.inc-list li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .88rem; color: var(--text-mid);
}
.inc-list svg {
  width: 14px; height: 14px;
  color: var(--olive);
  flex-shrink: 0; margin-top: 3px;
}

.add-box .sub {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: .4rem;
}
.add-box ul { list-style: disc; padding-left: 1.2rem; }
.add-box li, .add-box p {
  font-size: .85rem;
  color: var(--text-mid);
  margin-bottom: .3rem;
  line-height: 1.6;
}
.add-divider {
  border: none;
  border-top: 1px solid var(--border-lt);
  margin: .85rem 0;
}

/* ══════════════════════════════════════════════════════
   CONTACTS
══════════════════════════════════════════════════════ */
#contacts { background: var(--white); }

.contacts-head { text-align: center; margin-bottom: 2.75rem; }
.contacts-head h2 { margin-bottom: .5rem; }

.contact-card {
  max-width: 580px; margin: 0 auto;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--border-lt);
}
@media (min-width: 768px) {
  .contact-card { padding: 3rem 3.5rem; }
}

.contact-org {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--blue-deep);
  margin-bottom: .35rem;
}
@media (min-width: 768px) { .contact-org { font-size: 1.85rem; } }
.contact-tagline {
  color: var(--text-lt);
  font-size: .9rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex; align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.4rem;
}
.ci-icon {
  width: 44px; height: 44px;
  background: var(--blue-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-deep);
  flex-shrink: 0;
  transition: background .25s, color .25s;
}
.contact-item:hover .ci-icon {
  background: var(--blue-deep); color: #fff;
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .25rem;
}
.ci-val {
  font-size: .88rem;
  color: var(--text-lt);
  display: block;
  padding: .12rem 0;
}
.ci-val:hover { color: var(--blue-deep); }

.card-socials-wrap {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-lt);
  margin-top: .5rem;
}
.card-socials-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .9rem;
}
.card-socials { display: flex; gap: .6rem; }

.card-social {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
  transition: background .22s, transform .22s;
}
.card-social:hover {
  background: var(--blue-deep);
  transform: scale(1.08);
}
.card-social svg { width: 19px; height: 19px; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
#site-footer {
  background: var(--blue-deep);
  padding: 2rem 0;
  text-align: center;
}
.footer-license {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.footer-copy {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  font-family: var(--font-serif);
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════
   ЖУРНАЛ — nav active state
══════════════════════════════════════════════════════ */
.main-nav a.active {
  color: var(--blue-deep);
  font-weight: 600;
}
.main-nav a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 1px;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════
   ЖУРНАЛ — archive (home.php)
══════════════════════════════════════════════════════ */
.journal-archive {
  padding: 5rem 0 6rem;
  padding-top: calc(70px + 3.5rem);
  min-height: 60vh;
}
@media (max-width: 959px) {
  .journal-archive {
    padding-top: calc(70px + 2rem);
  }
}

.journal-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}
.journal-eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.journal-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  color: var(--blue-deep);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.journal-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Grid */
.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .journal-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.journal-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-lt);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.journal-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}

.journal-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-bg);
}
.journal-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.journal-card:hover .journal-card__thumb img {
  transform: scale(1.04);
}

.journal-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.journal-card__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .65rem;
  display: block;
}
.journal-card__title-wrap {
  margin-bottom: .9rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border-lt);
}
.journal-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.3;
  margin: 0;
}
.journal-card__title a { color: inherit; font-weight: 700; }
.journal-card__title a:hover { color: var(--blue); }
.journal-card__excerpt {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}
.journal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-lt);
}
.journal-card__date {
  font-size: .8rem;
  color: var(--text-lt);
}
.journal-card__link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: .02em;
  transition: color .2s;
}
.journal-card__link:hover { color: var(--blue); }

/* Pagination */
.journal-pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}
.journal-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.journal-pagination .page-numbers li a,
.journal-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  transition: all .2s;
}
.journal-pagination .page-numbers li a:hover {
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}
.journal-pagination .page-numbers li .current {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}

/* Empty state */
.journal-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-mid);
}
.journal-empty p { margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════
   ЖУРНАЛ — single post (single.php)
══════════════════════════════════════════════════════ */
.journal-single {
  padding: 3rem 0 6rem;
  padding-top: calc(70px + 2.5rem);
}
@media (max-width: 959px) {
  .journal-single {
    padding-top: calc(70px + 1.5rem);
  }
}

/* Breadcrumb */
.journal-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-lt);
  margin-bottom: 2.5rem;
}
.journal-breadcrumb a { color: var(--text-lt); }
.journal-breadcrumb a:hover { color: var(--blue-deep); }
.journal-breadcrumb span:last-child {
  color: var(--text-mid);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

/* Article layout */
.journal-article {
  max-width: 780px;
  margin: 0 auto;
}

/* Header */
.article-header { margin-bottom: 2rem; }
.article-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  color: var(--blue-deep);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-lt);
}
.article-meta__sep { opacity: .4; }

/* Banner */
.article-banner {
  margin-bottom: 2.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--blue-bg);
}
.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 3rem;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-deep);
  margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--blue-deep);
  margin: 2rem 0 .75rem;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--blue); }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--blue-bg);
  border-radius: 0 var(--r) var(--r) 0;
}
.article-body blockquote p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--blue-deep);
  margin: 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: .93rem;
}
.article-body th, .article-body td {
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
.article-body th {
  background: var(--blue-bg);
  font-weight: 600;
  color: var(--blue-deep);
  font-family: var(--font-sans);
}

/* CTA aside */
.article-cta {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1a3d55 100%);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
@media (min-width: 640px) { .article-cta { padding: 3rem 4rem; } }
.article-cta__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .6rem;
}
.article-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: .75rem;
}
.article-cta__text {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 1.75rem;
}
.article-cta .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.article-cta .btn-primary:hover {
  background: var(--blue-bg);
  color: var(--blue-deep);
}

/* Back link */
.article-back { padding-top: 1rem; }
.article-back__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-lt);
  transition: color .2s;
}
.article-back__link:hover { color: var(--blue-deep); }
