/* Shared calm-book styles for внутренние страницы */
:root {
  --page-bg: #F4EFE6;
  --text: #1E2430;
  --muted: #6B7280;
  --accent: #D2BFAB;
  --accent-ink: #1E2430;
  --link: #4B5BA9;
  --border: rgba(30,36,48,.14);
  --soft-card: color-mix(in oklab, #fff 80%, var(--page-bg) 20%);
  --shadow: 0 20px 46px rgba(108, 93, 80, .15);
  --radius: 22px;
  --maxw: 960px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  background: var(--page-bg) url("../img/paper_texture.png") repeat;
  color: var(--text);
  line-height: 1.7;
  overflow-wrap: break-word;
}
img, picture, video {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
strong { font-weight: 600; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px 80px; }
.page-header { padding: 32px 0 12px; }
.breadcrumbs {
  display: flex;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  align-items: center;
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--muted); }
.page-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 5vw, 60px);
  margin: 0 0 10px;
  line-height: 1.1;
}
.lead { font-size: clamp(18px, 2.4vw, 22px); color: color-mix(in oklab, var(--text), white 25%); margin: 0 0 18px; }
.section-title,
.section h2,
.section h3,
.card h2,
.card h3 { font-family: "Playfair Display", Georgia, serif; margin: 0 0 12px; line-height: 1.25; }
.section { margin-top: 2.5rem; }
.card {
  background: var(--soft-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}
.two-column { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
ul { padding-left: 20px; margin: 0 0 16px; }
ul li { margin-bottom: .5rem; }
blockquote {
  margin: 0;
  padding: 18px 26px;
  border-left: 4px solid color-mix(in oklab, var(--link), transparent 35%);
  border-radius: 0 16px 16px 0;
  background: #fff;
  color: var(--muted);
  font-style: italic;
}
blockquote footer { margin-top: .5rem; font-size: .95rem; font-style: normal; color: var(--muted); }
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent), white 25%);
  color: color-mix(in oklab, var(--accent-ink), transparent 20%);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-intro {
  display: flex;
  gap: clamp(18px, 4vw, 40px);
  align-items: center;
  margin-bottom: 16px;
}
.profile-intro .profile-photo {
  width: min(320px, 38vw);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.profile-intro .profile-text { flex: 1; }
@media (max-width: 720px) {
  .profile-intro { flex-direction: column; text-align: center; }
  .profile-intro .profile-text { text-align: left; }
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; justify-content: center; }
}
.btn {
  appearance: none;
  border: 1px solid color-mix(in oklab, var(--accent-ink), transparent 70%);
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: .01em;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-shadow: 0 18px 36px rgba(0,0,0,.1);
  transition: transform .15s ease, filter .15s ease;
  text-decoration: none;
}
.btn:hover,
.btn:focus-visible { filter: brightness(1.05); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.btn-secondary:hover,
.btn-secondary:focus-visible { color: var(--link); }
.details-list { margin-top: 1.5rem; }
.contact-icon { margin-right: .35rem; }
.article-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.article-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card h3 { margin: 0; font-size: 1.2rem; }
.article-card p { margin: 0; }
.article-card .btn { align-self: flex-start; margin-top: auto; }
.article-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 1.5rem;
}
.badge {
  background: rgba(255,255,255,.75);
  border-radius: 18px;
  border: 1px dashed var(--border);
  padding: 16px;
  box-shadow: 0 18px 36px rgba(0,0,0,.07);
  font-size: .95rem;
}
.badge span { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.article-content h2 { margin-top: 1.5rem; }
.article-content ol { padding-left: 20px; }
footer {
  margin-top: 52px;
  padding: 32px 0 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: inherit; text-decoration: underline; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 12px;
  z-index: 999;
}
