/* terapiawarszawa.eu — тема поверх Bootstrap 5.3 */
:root {
  --tw-ink: #3a2b33;
  --tw-text: #4f4249;
  --tw-brand: #8a3f5c;
  --tw-brand-dark: #6e2f48;
  --tw-accent: #b5765a;
  --tw-sage: #f6e9ee;
  --tw-cream: #faf7f3;
  --tw-line: #eadfe3;
  --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bs-body-color: var(--tw-text);
  --bs-body-bg: #fff;
  --bs-link-color-rgb: 138, 63, 92;
  --bs-link-hover-color-rgb: 110, 47, 72;
}

body { font-size: 1.0625rem; line-height: 1.7; padding-bottom: 56px; }
@media (min-width: 992px) { body { padding-bottom: 0; } }

h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .navbar-brand span, .footer-brand {
  font-family: "Lora", Georgia, serif; color: var(--tw-ink); font-weight: 600;
}

a { text-underline-offset: .2em; text-decoration-color: rgba(138, 63, 92, .35); }
a:hover { text-decoration-color: currentColor; }

.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* Шапка */
.site-header { background: #fff; border-bottom: 1px solid var(--tw-line); position: sticky; top: 0; z-index: 1030; }
.navbar { padding: .75rem 0; }
.navbar-brand { line-height: 1.15; white-space: normal; }
.navbar-brand small { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tw-accent); }
.navbar-brand span { font-size: 1.2rem; }
.nav-link { color: var(--tw-text); font-weight: 600; }
.nav-link:hover, .nav-link:focus { color: var(--tw-brand); }
.nav-link.active { color: var(--tw-brand) !important; box-shadow: inset 0 -2px 0 var(--tw-accent); }
.lang-switch { font-weight: 400; border: 1px solid var(--tw-line); border-radius: 2rem; padding-inline: .9rem !important; }

/* Кнопки */
.btn-brand { --bs-btn-bg: var(--tw-brand); --bs-btn-border-color: var(--tw-brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--tw-brand-dark); --bs-btn-hover-border-color: var(--tw-brand-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--tw-brand-dark); }
.btn-outline-brand { --bs-btn-color: var(--tw-brand); --bs-btn-border-color: var(--tw-brand);
  --bs-btn-hover-bg: var(--tw-brand); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--tw-brand); }

/* Баннер страниц */
.page-hero { background: linear-gradient(135deg, var(--tw-cream), var(--tw-sage)); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--tw-line); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.page-hero .lead { max-width: 46rem; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: .75rem; }

/* Главная */
.home-hero { background: linear-gradient(135deg, var(--tw-cream) 0%, var(--tw-sage) 100%); padding: 4rem 0 3.5rem; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.2; }
.home-hero .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--tw-accent); font-weight: 700; }
.hero-card { background: #fff; border-radius: 1rem; box-shadow: 0 1rem 2.5rem rgba(58, 43, 51, .08); }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--tw-cream); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.chip { display: inline-block; background: #fff; border: 1px solid var(--tw-line); border-radius: 2rem; padding: .3rem .9rem; margin: 0 .35rem .5rem 0; font-size: .95rem; }

.feature-card, .person-card, .side-card, .news-card { border: 1px solid var(--tw-line); border-radius: 1rem; }
.feature-card { height: 100%; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: 0 .75rem 2rem rgba(58, 43, 51, .08); transform: translateY(-2px); }
.feature-card h3 { font-size: 1.15rem; }

.avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 96px;
  background: linear-gradient(135deg, var(--tw-brand), #c27b98); color: #fff; font-family: "Lora", serif; font-size: 2rem; }

/* Контент */
.content-wrap { padding-top: 2.5rem; padding-bottom: 3rem; }
.entry h2 { font-size: 1.5rem; margin-top: 2rem; }
.entry h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.entry p, .entry li { text-align: justify; hyphens: auto; }
.entry ul { padding-left: 1.25rem; }
.entry li { margin-bottom: .4rem; }
.entry li::marker { color: var(--tw-accent); }
.callout { background: var(--tw-cream); border-left: 4px solid var(--tw-accent); border-radius: .5rem; padding: 1rem 1.25rem; }
.toc { background: var(--tw-cream); border-radius: .75rem; padding: 1rem 1.25rem; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }

.accordion { --bs-accordion-active-bg: var(--tw-cream); --bs-accordion-active-color: var(--tw-ink); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(138, 63, 92, .2); }
.accordion-button { font-weight: 600; }

/* Сайдбар */
.sidebar { position: sticky; top: 6rem; }
.side-person, .side-place { padding: .9rem 0; border-top: 1px solid var(--tw-line); }
.side-person:first-of-type, .side-place:first-of-type { border-top: 0; padding-top: 0; }
.map-frame iframe { border: 0; border-radius: .5rem; }
.map-lg { border-radius: 1rem; overflow: hidden; }
.map-lg iframe { border: 0; }

/* Новости */
.news-card { padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; scroll-margin-top: 6rem; }
.news-card h2 { font-size: 1.25rem; margin: 0 0 .35rem; }
.news-card time { font-size: .9rem; color: var(--tw-accent); font-weight: 600; }

/* Подвал */
.site-footer { background: var(--tw-ink); color: #ddd5e2; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #fff; }
.site-footer hr { border-color: rgba(255, 255, 255, .2); }
.footer-brand { color: #fff; font-size: 1.1rem; }
.footer-head { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }

/* Мобильная панель звонка */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); }
.call-bar a { flex: 1; text-align: center; padding: .7rem .5rem; background: var(--tw-brand); color: #fff; text-decoration: none; font-size: .9rem; line-height: 1.2; }
.call-bar a + a { background: var(--tw-brand-dark); }
.call-bar span { font-weight: 700; display: block; }

@media (max-width: 991.98px) {
  .sidebar { position: static; }
  .navbar-nav .nav-link.active { box-shadow: none; text-decoration: underline; }
}

/* Длинные e-mail/телефоны в карточках не распирают экран */
.person-card .card-body > div:last-child, .side-person, .hero-card div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .person-card .card-body { flex-direction: column; gap: 1rem !important; }
  .avatar { width: 72px; height: 72px; flex-basis: 72px; font-size: 1.5rem; }
}

/* Статьи: подпись автора, блок автора, источники, таблицы */
.byline { display: flex; gap: .85rem; align-items: center; margin-top: 1.25rem; font-size: .95rem; }
.author-photo { border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--tw-sage); }
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; border: 1px solid var(--tw-line); border-radius: 1rem; padding: 1.25rem; background: #fff; }
.sources { border-top: 1px solid var(--tw-line); padding-top: 1rem; margin-top: 2rem; }
.sources li { text-align: left; overflow-wrap: anywhere; }
.article-body h2 { scroll-margin-top: 6rem; }
.article-body .table { font-size: .95rem; }
.article-body .table th { background: var(--tw-sage); color: var(--tw-ink); }
.alert-red { background: #fff1f1; border-left: 4px solid #c0392b; border-radius: .5rem; padding: 1rem 1.25rem; }
.side-head { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--tw-accent); margin-bottom: .75rem; }
.side-cta { background: var(--tw-sage); }
.article-card { height: 100%; }
.article-card .cat { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tw-accent); font-weight: 700; }
.article-card h3 { font-size: 1.15rem; margin: .35rem 0 .5rem; }
.disclaimer { opacity: .85; }
@media (max-width: 575.98px) { .author-box { flex-direction: column; } }
