:root {
  --paper: #fafaf9;
  --warm: #f2eeea;
  --ink: #18263a;
  --muted: #4e5a6b;
  --rose: #b04a62;
  --rose-line: #c9aeb5;
  --line: #cbd0d4;
  --control-border: #7e8794;
  --serif: Literata, Georgia, serif;
  --sans: 'Source Sans 3', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  --site-header-space: 104px;
  --site-header-height: 104px;
  scroll-behavior: auto;
  scroll-padding-top: var(--site-header-height);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  font-optical-sizing: auto;
  padding-bottom: 66px;
  isolation: isolate;
}
/* Предыдущая страница остаётся под новой, чтобы переход не давал белую вспышку. */
@media (prefers-reduced-motion: no-preference) {
  html[data-anchor-motion='smooth'] {
    scroll-behavior: smooth;
  }
  @view-transition {
    navigation: auto;
  }
  ::view-transition {
    pointer-events: none;
  }
  ::view-transition-old(root) {
    animation: none;
  }
  ::view-transition-new(root) {
    animation: page-arrive 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    mix-blend-mode: normal;
  }
}
@keyframes page-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ambient-background {
  --ambient-image: url('/assets/backgrounds/silk-fibres.webp');
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  opacity: 0.55;
}
.ambient-fallback {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 400ms ease,
    visibility 0s;
}
.ambient-layer {
  position: absolute;
  inset: -18%;
  background-image: var(--ambient-image);
  background-size: cover;
  background-position: center;
  opacity: 0.56;
  animation:
    ambient-drift 38s ease-in-out infinite alternate,
    ambient-light 24s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform, opacity;
}
.ambient-layer--far {
  inset: -25%;
  opacity: 0.22;
  animation-name: ambient-counterflow, ambient-pearl;
  animation-duration: 49s, 31s;
  animation-delay:
    -17s,
    -9s;
}
.ambient-background[data-motion='running'] .ambient-layer {
  animation-play-state: running;
}
.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 400ms ease;
}
.ambient-background[data-renderer='flow'] .ambient-canvas {
  opacity: 1;
}
.ambient-background[data-renderer='flow'] .ambient-fallback {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s, 400ms;
}
.ambient-background[data-renderer='flow'] .ambient-layer {
  animation-play-state: paused;
  will-change: auto;
}
@keyframes ambient-drift {
  from {
    transform: translate3d(-3%, -3%, 0) rotate(-3deg) scale(1.04);
  }
  to {
    transform: translate3d(4%, 4%, 0) rotate(3deg) scale(1.09);
  }
}
@keyframes ambient-counterflow {
  from {
    transform: translate3d(3%, -4%, 0) rotate(7deg) scale(-1.06, 1.06);
  }
  to {
    transform: translate3d(-4%, 3%, 0) rotate(-5deg) scale(-1.12, 1.12);
  }
}
@keyframes ambient-light {
  from {
    opacity: 0.46;
  }
  to {
    opacity: 0.72;
  }
}
@keyframes ambient-pearl {
  from {
    opacity: 0.16;
  }
  to {
    opacity: 0.3;
  }
}
@media (max-width: 760px) {
  .ambient-background {
    --ambient-image: url('/assets/backgrounds/silk-fibres-960.webp');
  }
  .ambient-layer {
    animation-duration: 44s, 28s;
  }
  .ambient-layer--far {
    animation-duration: 56s, 36s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-layer {
    animation: none;
    will-change: auto;
  }
  .ambient-layer--far {
    transform: scaleX(-1);
    opacity: 0.18;
  }
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(54px, 6.2vw, 92px);
}
h2 {
  font-size: clamp(36px, 4.2vw, 52px);
}
h3 {
  font-size: 32px;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
button,
select {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
[tabindex='-1']:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 5px;
}
.site-header > a:focus-visible,
.site-header > nav a:focus-visible,
.site-header .header-right a:focus-visible,
.site-header .mobile-menu > summary:focus-visible,
.home-page .hero .button:focus-visible,
.site-footer a:focus-visible,
.site-footer:focus-visible {
  outline-color: var(--paper);
}
::selection {
  background: #e2bfca;
  color: var(--ink);
}
[id] {
  scroll-margin-top: 35px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  background: white;
  padding: 14px;
  z-index: 90;
}
.skip-link:focus {
  top: 16px;
}
.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 48px;
}
.button {
  padding: 15px 28px;
  background: var(--rose);
  color: white;
  border: 1px solid transparent;
}
.button:hover {
  background: #943b51;
}
.text-link {
  justify-content: flex-start;
  border-bottom: 1px solid currentColor;
  min-height: 38px;
}
.text-link:hover {
  color: var(--rose);
}
.caption,
figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.lead {
  font-size: 23px;
  line-height: 1.5;
}
.section {
  padding: 100px 0;
  max-width: 1220px;
  width: calc(100% - 112px);
  margin-inline: auto;
}
.section h2 {
  margin-bottom: 30px;
}
.section p + p {
  margin-top: 20px;
}
.section .text-link {
  margin-top: 24px;
}
.brand {
  font: 500 32px/1.1 var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-copy {
  padding: 100px max(40px, 8vw);
  align-self: center;
}
.hero-copy h1 {
  margin-bottom: 28px;
}
.hero-role {
  font-size: 18px;
  max-width: 30ch;
  line-height: 1.5;
}
.hero-description {
  font-size: 16px;
  max-width: 38ch;
  margin-top: 20px;
}
.hero-copy .button {
  margin-top: 32px;
}
.hero-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 32px;
}
.hero-actions .button {
  margin: 0;
}
.hero-image {
  min-width: 0;
}
.hero-image img {
  height: 100%;
  object-fit: cover;
}
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 10%;
  align-items: start;
}
.photo-frame {
  --photo-radius: 24px;
  --photo-shadow: 0 18px 38px -20px #18263a4d, 0 5px 14px -7px #18263a26;
  position: relative;
  min-width: 0;
  border-radius: var(--photo-radius);
  background: var(--warm);
  box-shadow: var(--photo-shadow);
  overflow: hidden;
  isolation: isolate;
}
.photo-frame > img {
  border-radius: inherit;
}
.photo-frame[data-water-active]::after {
  content: '';
  position: absolute;
  left: var(--water-x);
  top: var(--water-y);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 56%, #ffffff40 62%, transparent 69%);
  pointer-events: none;
  animation: photo-water-ring 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes photo-water-ring {
  from {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  to {
    transform: translate(-50%, -50%) scale(9);
    opacity: 0;
  }
}
.about-photo img {
  height: 660px;
  object-fit: cover;
  object-position: center 25%;
}
.about-copy {
  min-width: 0;
}
.about-panels {
  display: grid;
  gap: 28px;
  padding-bottom: 8px;
}
.about-panel,
.founder-project,
.ribbon-card,
.reading-panel {
  --panel-face: linear-gradient(135deg, #fffefd 0%, #f6f2ef 68%, #eee7e2 100%);
  --panel-edge: #ddd2ca;
  position: relative;
  isolation: isolate;
  min-width: 0;
  border-radius: 28px;
}
.about-panel {
  padding: 26px 30px;
}
.about-panel::before,
.about-panel::after,
.founder-project::before,
.founder-project::after,
.ribbon-card::before,
.ribbon-card::after,
.reading-panel::before,
.reading-panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}
.about-panel::before,
.founder-project::before,
.ribbon-card::before,
.reading-panel::before {
  z-index: -1;
  inset: 0;
  background: var(--panel-face);
  border: 1px solid #ffffffc9;
  box-shadow:
    inset 1px 2px 2px #fff,
    inset -1px -2px 2px #b4a29940;
}
.about-panel::after,
.founder-project::after,
.ribbon-card::after,
.reading-panel::after {
  z-index: -2;
  inset: 8px 2px -7px 4px;
  background: var(--panel-edge);
  box-shadow:
    0 19px 28px -15px #18263a52,
    4px 7px 12px -6px #18263a30;
}
.about-panel--practice {
  --panel-face: linear-gradient(135deg, #fffaf5 0%, #f2e9e1 65%, #e9ddd3 100%);
  --panel-edge: #d7c5b8;
  margin-right: 20px;
  border-bottom-right-radius: 10px;
}
.about-panel--founder {
  --panel-face: linear-gradient(135deg, #fffafc 0%, #f5edef 65%, #eadee3 100%);
  --panel-edge: #d7c3c9;
  margin-left: 20px;
  border-top-left-radius: 10px;
}
.about-panel h3 {
  font-size: clamp(1.4375rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.about-panel > p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.about-panel .lead {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.5;
  margin: 0;
}
.education-path {
  margin-top: 18px;
}
.path-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--rose);
  height: 28px;
  pointer-events: none;
}
.path-divider::before,
.path-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--divider-line, var(--rose-line));
}
.path-divider svg {
  width: 96px;
  height: 28px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1;
  overflow: visible;
}
.path-divider .path-link {
  stroke: var(--line);
}
.path-divider circle {
  fill: var(--divider-surface, var(--paper));
}
.section-divider {
  width: calc(100% - 112px);
  max-width: 1220px;
  margin-inline: auto;
}
.item-divider,
.divider-top,
.divider-bottom,
.recommendations-divider {
  position: absolute;
  left: 0;
  right: 0;
}
.item-divider,
.divider-bottom {
  bottom: -14px;
}
.divider-top,
.recommendations-divider {
  top: -14px;
}
.article-card,
.related-list li {
  position: relative;
}
.recommendations-divider {
  display: none;
}
.related-list .path-divider svg {
  width: 64px;
  height: 20px;
}
.education {
  margin: 0;
  padding: 0;
  border: 0;
}
.education summary {
  min-height: 72px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  border-radius: 8px;
  -webkit-user-select: none;
  user-select: none;
}
.education summary::-webkit-details-marker {
  display: none;
}
.education-body {
  padding: 20px 0 12px;
}
.education-timeline {
  --year-width: 80px;
  --path-gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.education-step {
  --step-start: calc(var(--step-index, 0) * 460ms);
  position: relative;
  display: grid;
  grid-template-columns: var(--year-width) 24px minmax(0, 1fr);
  column-gap: var(--path-gap);
  padding: 0 0 34px;
  font-size: 17px;
  line-height: 1.55;
}
.education-step:last-child {
  padding-bottom: 8px;
}
.education-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: calc(var(--year-width) + var(--path-gap) + 11px);
  top: 22px;
  bottom: -22px;
  width: 1px;
  background: var(--rose-line);
  transform-origin: top;
}
.education-year {
  align-self: start;
  color: var(--rose);
  font: 400 36px/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.035em;
}
.education-node {
  position: relative;
  align-self: start;
  justify-self: center;
  width: 9px;
  height: 9px;
  margin-top: 19px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  background: var(--paper);
}
.education-node::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 3px;
  width: 20px;
  height: 12px;
  border-top: 1px solid var(--rose-line);
  border-right: 1px solid var(--rose-line);
  border-top-right-radius: 12px;
}
.education-step:first-child .education-node,
.education-step:last-child .education-node {
  background: var(--rose);
}
.education-place {
  padding-top: 8px;
  min-width: 0;
}
.education strong {
  display: block;
  font-weight: 500;
}
.education p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.education-specialization {
  display: block;
  color: var(--rose);
  font-size: 12px;
  margin-bottom: 6px;
}
.education[data-path-motion] .education-year {
  animation: education-year-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--step-start);
}
.education[data-path-motion] .education-node {
  animation: education-node-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--step-start) + 100ms);
}
.education[data-path-motion] .education-place {
  animation: education-place-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--step-start) + 160ms);
}
.education[data-path-motion] .education-node::after {
  animation: education-branch-in 180ms ease-out both;
  animation-delay: calc(var(--step-start) + 160ms);
  transform-origin: left top;
}
.education[data-path-motion] .education-step:not(:last-child)::before {
  animation: education-line-in 330ms cubic-bezier(0.45, 0, 0.55, 1) both;
  animation-delay: calc(var(--step-start) + 230ms);
}
.education[data-path-motion='paused'] :is(.education-year, .education-node, .education-place),
.education[data-path-motion='paused'] .education-node::after,
.education[data-path-motion='paused'] .education-step::before {
  animation-play-state: paused;
}
@keyframes education-year-in {
  from {
    transform: translateX(-16px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes education-node-in {
  from {
    transform: scale(0.35);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes education-place-in {
  from {
    transform: translateX(6px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes education-branch-in {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
@keyframes education-line-in {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.doctor-film {
  padding-block: 56px;
}
.doctor-film-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: var(--warm);
  border-radius: inherit;
}
.film-frame:focus-within {
  outline: 3px solid var(--rose);
  outline-offset: 5px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: start;
  margin-bottom: 30px;
}
.section-heading p {
  max-width: 33ch;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.section.projects > h2 {
  font-size: clamp(1.4375rem, 6.1vw, 3.25rem);
  max-width: none;
  margin-bottom: 48px;
  text-align: center;
}
.founder-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.founder-project {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px 16px 28px;
}
.founder-project--clinic {
  --panel-face: linear-gradient(135deg, #fffaf5 0%, #f2e9e1 65%, #e9ddd3 100%);
  --panel-edge: #d7c5b8;
  border-bottom-right-radius: 10px;
}
.founder-project--telemedicine {
  --panel-face: linear-gradient(135deg, #fffafc 0%, #f5edef 65%, #eadee3 100%);
  --panel-edge: #d7c3c9;
  border-top-left-radius: 10px;
}
.founder-project .project-artwork {
  margin-bottom: 24px;
  aspect-ratio: 4/5;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: none;
}
.project-artwork .project-scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: blur(3px);
  transform: scale(1.04);
}
.project-artwork .project-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  height: auto;
  max-height: 58%;
  object-fit: contain;
  border-radius: 0;
  transform: translate(-50%, -50%);
}
.project-artwork--academy .project-logo {
  width: 56%;
  border-radius: 50%;
}
.project-copy {
  min-width: 0;
  padding-inline: 8px;
}
.project-copy h3 {
  font-size: clamp(1.375rem, 1.8vw, 1.625rem);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.project-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}
.founder-project > .text-link {
  justify-self: center;
  margin-top: 28px;
  max-width: 100%;
  text-align: center;
}
@media (max-width: 1000px) {
  .about-panel--practice,
  .about-panel--founder {
    margin-inline: 0;
  }
  .founder-projects {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .founder-project {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: center;
  }
  .founder-project .project-artwork {
    margin-bottom: 0;
    aspect-ratio: 4/3;
  }
  .project-copy {
    padding-inline: 0 8px;
  }
  .founder-project > .text-link {
    grid-column: 1/-1;
    margin-top: 0;
  }
}
@media (max-width: 600px) {
  .section.projects > h2 {
    margin-bottom: 32px;
  }
  .founder-project {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    align-items: stretch;
  }
  .project-copy {
    padding-inline: 8px;
  }
  .project-artwork .project-scene {
    object-position: center 60%;
  }
  .project-artwork--academy .project-logo {
    width: 42%;
  }
}
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 32px;
}
.footer-inner {
  width: 92%;
  margin-inline: auto;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr);
  grid-template-areas: 'identity contact contact location';
  gap: 32px;
}
.footer-contact {
  grid-area: contact;
}
.footer-location {
  grid-area: location;
}
.footer-identity {
  grid-area: identity;
}
.site-footer h2,
.site-footer .footer-identity .brand {
  font: 400 clamp(26px, 2vw, 34px)/1.2 var(--serif);
  letter-spacing: -0.02em;
  white-space: normal;
}
.footer-contact-heading p {
  margin-top: 18px;
  max-width: 50ch;
  font-size: 19px;
  line-height: 1.5;
  color: #d4dbe4;
}
.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.footer-contact-grid h3 {
  margin-bottom: 20px;
  font: 600 22px/1.3 var(--sans);
  letter-spacing: 0;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  font-size: 19px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--control-border);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.footer-link:hover {
  color: #e2bfca;
  text-decoration-color: currentColor;
}
.footer-icon-link {
  gap: 8px;
}
.footer-phone-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.site-footer .footer-phone {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.footer-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 10px;
}
.footer-messenger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.footer-messenger img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}
.footer-messenger:hover span {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-address,
.footer-schedule {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}
.footer-address {
  margin-top: 18px;
}
.footer-address > .ui-icon,
.footer-schedule > .ui-icon {
  margin-top: 4px;
}
.footer-location address {
  max-width: 30ch;
  margin: 0;
  font-size: 19px;
  font-style: normal;
  line-height: 1.5;
}
.footer-schedule {
  margin: 16px 0 22px;
  color: #d4dbe4;
}
.footer-hours {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.footer-hours div {
  display: flex;
  gap: 24px;
}
.footer-hours dt {
  min-width: 62px;
}
.footer-hours dd {
  margin: 0;
}
.footer-maps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.footer-map {
  gap: 8px;
}
.footer-map img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}
.footer-identity p {
  max-width: 32ch;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.5;
  color: #d4dbe4;
}
.footer-identity nav {
  margin-top: 28px;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 18px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
}
.footer-documents {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 22px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 36px;
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.5;
  color: #d4dbe4;
}
.publications {
  border-top: 1px solid var(--line);
}
.publications > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.publications .publisher {
  font-weight: 500;
  font-size: 13px;
  color: var(--rose);
}
.publications h3 {
  font-size: 30px;
  margin: 16px 0;
}
.publications h3 a {
  text-decoration: none;
}
.publications article > p:last-child {
  font-size: 14px;
  color: var(--muted);
}
.home-page .brand {
  font-size: 36px;
}
.home-page .hero {
  display: block;
  min-height: 810px;
  height: calc(100svh - 30px);
  max-height: 1050px;
  background: var(--ink);
  color: white;
}
.home-page .hero-image {
  position: absolute;
  inset: 0;
}
.home-page .hero-image img {
  object-position: 50% 28%;
}
.home-page .hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 23, 35, 0.45),
    transparent 30%,
    rgba(12, 23, 35, 0.72) 65%
  );
}
.home-page .hero-copy {
  position: absolute;
  z-index: 1;
  bottom: 55px;
  left: 6%;
  padding: 0;
  width: 88%;
}
.home-page .hero h1 {
  font-size: clamp(48px, 5.6vw, 76px);
  max-width: 980px;
  line-height: 1.12;
  margin-bottom: 22px;
}
.home-page .hero-copy > p {
  font-size: 20px;
  line-height: 1.55;
  max-width: 70ch;
}
.home-page .hero .button {
  margin-top: 26px;
}
.home-page .about {
  padding-top: 130px;
  grid-template-columns: 4fr 5fr;
  gap: 13%;
}
.home-page .about-photo img {
  height: 740px;
}
.topic-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 55px;
  padding: 29px 35px;
  background: var(--warm);
  font-size: 16px;
}
.topic-strip a {
  text-decoration: none;
}
.topic-strip a:hover {
  text-decoration: underline;
}
.content-page .brand {
  font-size: 36px;
}
.article-header {
  max-width: 1220px;
  margin: auto;
  padding: 60px 0 65px;
}
.article-title h1 {
  font-size: clamp(50px, 6.1vw, 86px);
  line-height: 1.06;
  max-width: 1050px;
}
.article-lead {
  font-size: 24px;
  line-height: 1.55;
  max-width: 780px;
  color: var(--muted);
  margin-top: 30px;
}
.byline {
  display: flex;
  gap: 17px;
  align-items: center;
  text-decoration: none;
  margin-top: 28px;
  width: fit-content;
}
.byline .photo-frame {
  --photo-radius: 12px;
  --photo-shadow: 0 5px 12px -5px #18263a40;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.byline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.byline > span {
  display: grid;
  gap: 3px;
}
.byline strong {
  font-size: 14px;
  font-weight: 500;
}
.byline span span {
  font-size: 12px;
  color: var(--muted);
}
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 680px);
  gap: 80px;
  max-width: 1100px;
  padding: 70px 30px 100px;
  margin: auto;
  justify-content: center;
}
.article-body {
  font-size: 19px;
  line-height: 1.75;
  min-width: 0;
  overflow-wrap: break-word;
}
.article-body h2 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 24px;
}
.context-note h2 {
  font-size: 32px;
  margin-bottom: 15px;
}
.article-intro-photo {
  position: relative;
  max-width: 1320px;
  margin: auto;
}
.article-intro-photo img {
  height: 420px;
  object-fit: cover;
  object-position: 50% 35%;
}
.article-intro-photo > p {
  position: absolute;
  bottom: 30px;
  left: 40px;
  color: white;
  font-size: 20px;
  background: var(--ink);
  padding: 10px 18px;
}
.author-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 20px;
}
.author-card h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
}
.author-card p {
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}
.author-card .text-link {
  font-size: 13px;
  margin-top: 10px;
}
.author-card {
  margin-bottom: 35px;
}
.content-page.article .article-header {
  text-align: center;
  max-width: 1050px;
  padding: 60px 0 50px;
}
.content-page.article h1 {
  font-size: 65px;
  line-height: 1.16;
}
.content-page.article .article-lead {
  margin-inline: auto;
  max-width: 780px;
}
.content-page.article .byline {
  margin-inline: auto;
  text-align: left;
}
.content-page.article .article-intro-photo {
  max-width: 1100px;
}
.content-page.article .article-intro-photo img {
  height: 440px;
  object-position: 50% 30%;
}
.content-page.article .article-layout {
  display: block;
  max-width: 800px;
  padding-top: 45px;
}
@media (max-width: 1250px) {
  .brand,
  .content-page .brand,
  .home-page .brand {
    font-size: 29px;
  }
  .section {
    width: calc(100% - 80px);
  }
  .section-divider {
    width: calc(100% - 80px);
  }
  .article-header {
    width: calc(100% - 100px);
  }
  .article-layout {
    gap: 50px;
  }
  .content-page.article .article-header {
    width: calc(100% - 100px);
  }
}
@media (max-width: 1000px) {
  .education-step {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 30px;
    font-size: 17px;
  }
  .education-step:not(:last-child)::before {
    left: 9px;
    top: 19px;
    bottom: -19px;
  }
  .education-year {
    grid-column: 2;
    grid-row: 1;
    font-size: 36px;
  }
  .education-year:empty {
    display: none;
  }
  .education-node {
    grid-column: 1;
    grid-row: 1;
    margin-top: 16px;
  }
  .education-node::after {
    width: 18px;
    height: 9px;
    border-top-right-radius: 9px;
  }
  .education-place {
    grid-column: 2;
    padding-top: 5px;
  }
  .education p {
    font-size: 16px;
  }
  .hero-copy {
    padding-inline: 6vw;
  }
  .about {
    gap: 6%;
  }
  .about-photo img {
    height: 630px;
  }
  .section {
    padding-block: 75px;
  }
  .hero-copy h1 {
    font-size: 62px;
  }
  .home-page .hero h1 {
    font-size: 62px;
  }
  .article-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
    padding-inline: 40px;
  }
  .article-intro-photo {
    width: calc(100% - 80px);
  }
  .content-page.article h1 {
    font-size: 54px;
  }
}
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: 'identity location' 'contact contact';
    gap: 36px;
  }
  .footer-contact-grid {
    gap: 36px;
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: 90px;
  }
  .section {
    width: auto;
    margin-inline: 24px;
    padding-block: 62px;
  }
  .section h2 {
    font-size: clamp(2rem, 9.5vw, 2.625rem);
    line-height: 1.1;
  }
  .brand,
  .home-page .brand,
  .content-page .brand {
    font-size: 27px;
    white-space: normal;
    max-width: 230px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
  }
  .hero-copy {
    padding: 42px 24px;
  }
  .hero-copy h1 {
    font-size: 50px !important;
    line-height: 1.07;
  }
  .hero-role {
    font-size: 16px;
    max-width: 33ch;
  }
  .hero-description {
    font-size: 15px;
    max-width: 34ch;
  }
  .hero-image {
    height: 108vw;
    max-height: 630px;
  }
  .hero-image img {
    object-position: center 25%;
  }
  .hero-copy .button {
    margin-top: 25px;
  }
  .hero-actions .button {
    margin: 0;
  }
  .button {
    padding: 14px 23px;
    min-height: 48px;
  }
  .about {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .about-photo {
    width: 100%;
  }
  .about-photo img {
    height: 112vw;
    max-height: 600px;
    object-position: center 23%;
  }
  .about-panels {
    gap: 24px;
  }
  .about-panel {
    padding: 24px 20px;
    border-radius: 23px;
  }
  .about-panel--practice {
    border-bottom-right-radius: 9px;
  }
  .about-panel--founder {
    border-top-left-radius: 9px;
  }
  .about-panel::after,
  .founder-project::after,
  .ribbon-card::after {
    inset: 6px 2px -6px 3px;
    box-shadow:
      0 16px 22px -14px #18263a52,
      3px 6px 10px -6px #18263a30;
  }
  .about-panel .lead {
    font-size: 20px;
  }
  .about-panel > p:not(.lead) {
    font-size: 18px;
  }
  .project-copy p {
    font-size: 18px;
  }
  .photo-frame {
    --photo-radius: 19px;
    --photo-shadow: 0 12px 28px -15px #18263a4d, 0 3px 10px -5px #18263a26;
  }
  .section-divider {
    width: calc(100% - 48px);
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-heading h2 {
    margin-bottom: 16px;
  }
  .section-heading p {
    font-size: 18px;
    max-width: 33ch;
  }
  .site-footer {
    padding: 48px 0 32px;
  }
  .footer-inner {
    width: calc(100% - 48px);
  }
  .footer-main {
    grid-template-columns: 1fr;
    grid-template-areas: 'contact' 'location' 'identity';
    gap: 40px;
  }
  .footer-contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-contact-grid h3 {
    margin-bottom: 18px;
    font-size: 21px;
  }
  .footer-identity {
    display: block;
  }
  .footer-identity nav {
    margin-top: 20px;
  }
  .site-footer .brand {
    max-width: none;
  }
  .site-footer nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
  .footer-bottom {
    margin-top: 28px;
  }
  .publications > div {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .publications h3 {
    font-size: 29px;
  }
  .topic-strip {
    gap: 13px 25px;
    padding: 22px 24px;
    font-size: 14px;
    justify-content: flex-start;
  }
  .home-page .hero {
    display: block;
    height: 770px;
    min-height: 770px !important;
    max-height: none;
  }
  .home-page .hero-image {
    position: absolute;
    height: 100%;
    max-height: none;
  }
  .home-page .hero-image img {
    object-position: 53% 20%;
  }
  .home-page .hero-copy {
    bottom: 38px;
    left: 24px;
    width: calc(100% - 48px);
    padding: 0;
  }
  .home-page .hero-copy h1 {
    font-size: clamp(2rem, 10.5vw, 2.625rem) !important;
    line-height: 1.15;
    max-width: 580px;
  }
  .home-page .hero-copy > p {
    font-size: 18px;
  }
  .home-page .hero:after {
    background: linear-gradient(180deg, #18263a66, transparent 25%, #18263ac9 70%);
  }
  .home-page .hero-copy .button {
    padding-inline: 20px;
  }
  .home-page .about {
    padding-top: 65px;
    gap: 34px;
  }
  .home-page .about-photo img {
    height: 112vw;
  }
  .doctor-film {
    padding-block: 32px;
  }
  .article-header,
  .content-page.article .article-header {
    width: auto;
    margin-inline: 24px;
    padding: 32px 0 36px;
  }
  .article-title h1,
  .content-page.article h1 {
    font-size: 38px;
    line-height: 1.18;
  }
  .article-lead {
    font-size: 20px;
    margin-top: 24px;
  }
  .byline {
    gap: 13px;
    margin-top: 25px;
  }
  .byline .photo-frame {
    width: 50px;
    height: 50px;
  }
  .byline strong {
    font-size: 14px;
  }
  .byline span span {
    font-size: 13px;
    max-width: 28ch;
  }
  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 35px 24px 70px;
  }
  .article-body {
    font-size: 18px;
    line-height: 1.7;
  }
  .article-body h2 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 20px;
  }
  .article-intro-photo {
    width: auto;
    margin: 0 24px;
  }
  .article-intro-photo img,
  .content-page.article .article-intro-photo img {
    height: 70vw;
    object-position: 50% 25%;
  }
  .article-intro-photo > p {
    position: static;
    font-size: 13px;
    padding: 14px 18px;
  }
  .context-note h2 {
    font-size: 28px;
  }
  .author-card {
    display: none;
  }
  .content-page.article .article-header {
    text-align: left;
  }
  .content-page.article .byline {
    margin-inline: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* Шапка и поверхности каталога. */
body {
  padding-bottom: 0;
}
[hidden] {
  display: none !important;
}
/* Резервируем место под поиск, чтобы загрузка модуля не сдвигала карточки. */
@media (scripting: enabled) {
  .catalog-controls[hidden] {
    display: flex !important;
    visibility: hidden;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.content-page .catalog-intro {
  max-width: 1050px;
  margin: auto;
  padding: 65px 24px 50px;
  text-align: center;
}
.catalog-intro h1 {
  font-size: 65px;
  line-height: 1.16;
}
.catalog-intro .lead {
  font-size: 24px;
  line-height: 1.55;
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--muted);
}
.catalog-section {
  padding-top: 30px;
  padding-bottom: 55px;
}
.catalog-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 25px;
}
.catalog-result {
  margin: 22px 0;
  font-size: 16px;
  color: var(--muted);
}
.article-grid {
  display: grid;
  gap: 44px;
}
.article-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
  padding: 25px 0 45px;
}
.article-card-image img {
  aspect-ratio: 1.3;
  object-fit: cover;
  object-position: 60% 35%;
}
.article-card h2,
.article-card h3 {
  font-size: 34px;
  line-height: 1.22;
  margin: 0 0 15px;
}
.article-card-body > p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}
.article-card-body .article-category,
.slide-copy .article-category {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #943b51;
  overflow-wrap: anywhere;
}
.article-card-body .article-category {
  margin: 0 0 17px;
}
.article-card-body p + p {
  margin-top: 0;
}
.article-card-body .text-link {
  margin-top: 20px;
}
.empty-state {
  padding: 55px 0 70px;
  max-width: 650px;
}
.empty-state h2 {
  font-size: 46px;
  margin-bottom: 20px;
}
.empty-state p {
  color: var(--muted);
  margin-bottom: 28px;
}
.button {
  cursor: pointer;
  font-family: inherit;
}
.button--outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.button--outline:hover {
  background: var(--ink);
  color: white;
}
.catalog-author {
  padding-top: 20px;
  padding-bottom: 95px;
}
.author-profile {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  align-items: center;
  max-width: 790px;
  margin: auto;
}
.author-profile .photo-frame {
  --photo-radius: 19px;
  width: 150px;
  height: 150px;
}
.author-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-profile h2 {
  font-size: 36px;
  margin-bottom: 14px;
}
.author-profile p {
  color: var(--muted);
  font-size: 17px;
}
.author-profile .text-link {
  margin-top: 15px;
}
.article-dates {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}
.not-found {
  min-height: 60vh;
}
.not-found h1 {
  margin-bottom: 30px;
}
.not-found p {
  font-size: 20px;
  margin-bottom: 30px;
}
.button-row {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 1000px) {
  .catalog-intro h1 {
    font-size: 54px;
  }
  .article-card {
    gap: 35px;
  }
  .article-card h2,
  .article-card h3 {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  .content-page .catalog-intro {
    padding: 35px 24px 20px;
    text-align: left;
  }
  .catalog-intro h1 {
    font-size: 42px;
  }
  .catalog-intro .lead {
    font-size: 20px;
    margin-top: 24px;
  }
  .catalog-section {
    padding-top: 20px;
    padding-bottom: 45px;
  }
  .catalog-controls {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
  }
  .article-card {
    display: block;
    padding-top: 12px;
    padding-bottom: 32px;
  }
  .article-card-image {
    display: block;
    margin-bottom: 26px;
  }
  .article-card h2,
  .article-card h3 {
    font-size: 28px;
  }
  .article-card-body > p {
    font-size: 18px;
  }
  .catalog-author {
    padding-top: 0;
    padding-bottom: 65px;
  }
  .author-profile {
    display: block;
  }
  .author-profile .photo-frame {
    --photo-radius: 15px;
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
  }
  .author-profile h2 {
    font-size: 33px;
  }
  .empty-state {
    padding: 35px 0;
  }
  .empty-state h2 {
    font-size: 38px;
  }
  .not-found h1 {
    font-size: 50px;
  }
}

/* Навигация по статье. */
.article-title h1,
.catalog-intro h1,
.article-body h2 {
  text-wrap: balance;
}
.reading-start {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.article-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}
.article-navigation .text-link {
  min-height: 44px;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 850px;
}
.related-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}
.related-list h3 {
  font: 400 32px/1.25 var(--serif);
  margin: 0;
}
.related-list .text-link {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .reading-start {
    justify-content: flex-start;
  }
  .related-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .related-list h3 {
    font-size: 28px;
  }
}
@media (max-width: 360px) {
  .home-page .hero-image img {
    object-position: 48% 20%;
  }
  .article-title h1,
  .content-page.article h1 {
    font-size: 32px;
  }
}

/* Общие элементы управления. */
:root {
  --control-radius: 999px;
  --control-soft: #ede5e2;
}
.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
}
.icon-menu-scale {
  --icon: url('/assets/icons/demakova/menu-scale.svg');
}
.icon-search {
  --icon: url('/assets/icons/demakova/search.svg');
}
.icon-xmark {
  --icon: url('/assets/icons/demakova/xmark.svg');
}
.icon-plus {
  --icon: url('/assets/icons/demakova/plus.svg');
}
.icon-minus {
  --icon: url('/assets/icons/demakova/minus.svg');
}
.icon-phone {
  --icon: url('/assets/icons/demakova/phone.svg');
}
.icon-mail {
  --icon: url('/assets/icons/demakova/mail.svg');
}
.icon-certificate {
  --icon: url('/assets/icons/demakova/certificate.svg');
}
.icon-documents {
  --icon: url('/assets/icons/demakova/documents.svg');
}
.icon-location {
  --icon: url('/assets/icons/demakova/location.svg');
}
.icon-clock {
  --icon: url('/assets/icons/demakova/clock.svg');
}
.when-closed,
.when-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
details:not([open]) > summary .when-open,
details[open] > summary .when-closed {
  display: none;
}
@property --button-top {
  syntax: '<color>';
  inherits: false;
  initial-value: #fffdfb;
}
@property --button-middle {
  syntax: '<color>';
  inherits: false;
  initial-value: #f3eeea;
}
@property --button-bottom {
  syntax: '<color>';
  inherits: false;
  initial-value: #e9e1db;
}
.button,
.text-link {
  --button-top: #fffdfb;
  --button-middle: #f3eeea;
  --button-bottom: #e9e1db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 50px;
  max-width: 100%;
  padding: 14px 26px;
  border: 1px solid #fffdfb;
  border-radius: var(--control-radius);
  background: linear-gradient(
    170deg,
    var(--button-top) 0%,
    var(--button-middle) 55%,
    var(--button-bottom) 100%
  );
  color: var(--ink);
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 -1px 1px #a98e7b26,
    0 4px 0 -1px #c9b5a7,
    0 10px 16px -8px #18263a59;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    --button-top 180ms ease,
    --button-middle 180ms ease,
    --button-bottom 180ms ease;
}
.button:hover,
.text-link:hover {
  --button-top: #fffaf8;
  --button-middle: #f5eae7;
  --button-bottom: #ebd9d5;
  color: var(--ink);
  border-color: #fffafc;
  background: linear-gradient(
    170deg,
    var(--button-top) 0%,
    var(--button-middle) 55%,
    var(--button-bottom) 100%
  );
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 -1px 1px #a98e7b26,
    0 5px 0 -1px #ba8590,
    0 12px 18px -8px #18263a59;
  transform: translateY(-1px);
}
.button:active,
.text-link:active {
  --button-top: #f2eae4;
  --button-middle: #f0e7e1;
  --button-bottom: #eee5de;
  box-shadow:
    inset 0 1px 2px #a98e7b26,
    0 1px 0 #c9b5a7,
    0 4px 7px -4px #18263a59;
  transform: translateY(2px);
}
@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .text-link:hover,
  .button:active,
  .text-link:active {
    transform: none;
  }
}
.article-navigation .text-link {
  min-height: 48px;
}

.site-header-slot {
  height: var(--site-header-space);
  pointer-events: none;
}
.site-header {
  --header-full-padding: 24px;
  --header-full-min: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 104px;
  padding: 24px 4%;
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: #18263ab3;
  color: var(--paper);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transition:
    padding 220ms ease,
    min-height 220ms ease,
    transform 280ms ease,
    opacity 220ms ease;
}
.home-page.home .site-header-slot {
  margin-bottom: calc(-1 * var(--site-header-space));
}
.site-header[data-header-hidden='true'] {
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
}
.site-header:has(:focus-visible) {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}
.site-header[data-header-keyboard='true'] {
  transition: none;
}
.site-header .brand {
  grid-column: 2;
  grid-row: 1;
  font-size: 32px;
  line-height: 1.15;
  max-width: none;
  white-space: nowrap;
  text-align: center;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}
.header-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.site-header .header-messengers {
  gap: 8px;
}
.site-header .header-messengers .header-messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}
.header-messenger img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.site-header .header-messenger:focus-visible {
  outline-color: var(--paper);
}
.site-header a {
  text-decoration: none;
}
.site-header nav a {
  min-height: 52px;
  padding: 12px 16px;
  font-size: inherit;
  white-space: nowrap;
}
.mobile-menu {
  display: none;
  position: relative;
}
.mobile-menu summary {
  width: 128px;
  min-width: 128px;
  min-height: 52px;
  padding: 12px 15px;
  list-style: none;
  cursor: pointer;
  font: 600 17px/1.4 var(--sans);
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.site-header .mobile-menu nav {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: min(320px, calc(100vw - 48px));
  max-height: calc(100svh - var(--site-header-height) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 14px 14px 20px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--control-border);
  border-radius: 24px;
  box-shadow: none;
}
.site-header .mobile-menu nav a {
  min-height: 54px;
  padding: 12px 18px;
}
.disclosure-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
summary:hover .disclosure-toggle {
  background: var(--control-soft);
}
details[open] > summary .disclosure-toggle {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.education summary {
  gap: 18px;
}
.education summary > span:first-child {
  min-width: 0;
}
.education .disclosure-toggle {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  border-color: var(--rose-line);
  background: var(--warm);
  color: var(--rose);
}
.education summary:hover .disclosure-toggle {
  background: var(--control-soft);
  border-color: var(--rose);
}
.education[open] > summary .disclosure-toggle {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--paper);
}

.catalog-topics {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  flex: 1 1 0;
}
.filter-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.filter-list button {
  appearance: none;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  font: 600 17px/1.4 var(--sans);
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.filter-list button[aria-pressed='true'],
.topic-picker[open] > .topic-toggle,
.topic-picker[data-extra='true'] > .topic-toggle,
.site-header nav a[aria-current],
.mobile-menu[open] > summary {
  --button-top: #fff8f9;
  --button-middle: #f2dfe4;
  --button-bottom: #e5c3cc;
  color: var(--ink);
  border-color: #fff7f9;
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 -1px 1px #9e5c7133,
    0 4px 0 -1px #b77789,
    0 10px 16px -8px #18263a59;
}
.topic-picker {
  min-width: 0;
  max-width: 100%;
}
.topic-toggle {
  list-style: none;
  min-height: 52px;
  padding: 13px 20px;
  gap: 12px;
  border-radius: 28px;
  font-size: 17px;
  cursor: pointer;
}
.topic-toggle::-webkit-details-marker {
  display: none;
}
.topic-toggle .when-closed,
.topic-toggle .when-open {
  flex-shrink: 0;
}
.topic-toggle-value {
  display: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.topic-selection {
  flex-basis: 100%;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.topic-options {
  position: absolute;
  z-index: 6;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(600px, 100%);
  max-height: min(360px, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid #fffdfb;
  border-radius: 24px;
  background: linear-gradient(160deg, #fffdfb, #f2eeea);
  box-shadow: 0 12px 30px #18263a24;
}
.topic-option {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: 600 17px/1.4 var(--sans);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.topic-option::after {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: transparent;
}
.topic-option:hover {
  background: #ede5e2;
}
.topic-option[aria-pressed='true'] {
  background: #f2dfe4;
}
.topic-option[aria-pressed='true']::after {
  background: var(--rose);
}
.search-field {
  display: grid;
  gap: 12px;
  position: relative;
  width: 380px;
  max-width: 100%;
  flex-shrink: 0;
}
.search-field label {
  margin-left: 26px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
}
.search-field input {
  appearance: none;
  width: 100%;
  min-height: 64px;
  padding: 16px 22px 16px 54px;
  border: 1px solid #fffdfb;
  border-radius: var(--control-radius);
  background: linear-gradient(170deg, #fffdfb 0%, #f6f2ef 55%, #eee7e2 100%);
  color: var(--ink);
  font: 18px/1.5 var(--sans);
  caret-color: var(--rose);
  box-shadow:
    inset 0 2px 2px #fff,
    inset 0 -1px 1px #a98e7b26,
    0 4px 0 -1px #c9b5a7,
    0 12px 20px -9px #18263a59;
  transition: border-color 160ms ease;
}
.search-field input:not(:placeholder-shown) {
  padding-right: 58px;
}
.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-field input:hover {
  border-color: var(--rose-line);
}
.search-field input:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-decoration {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 24px;
  height: 24px;
  color: var(--rose);
  pointer-events: none;
}
.search-decoration .ui-icon {
  width: 24px;
  height: 24px;
}
.search-clear {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.search-clear:hover {
  background: var(--warm);
  color: var(--ink);
}

/* Компоновка статьи. */
.article-reading {
  min-width: 0;
}
.content-page.article .article-layout.has-recommendations {
  display: grid;
  grid-template-columns: minmax(0, 680px) 280px;
  gap: 64px;
  max-width: 1100px;
}
.article-recommendations {
  align-self: start;
  min-width: 0;
}
.article-recommendations > h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.article-recommendations .related-list li {
  display: block;
  padding-block: 20px;
}
.article-recommendations .related-list h3 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.article-recommendations .text-link {
  padding: 10px 18px;
  min-height: 44px;
}
.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.catalog-pagination .pagination-link,
.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: var(--control-radius);
  font-size: 14px;
  line-height: 1.45;
}
.pagination-current {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.pagination-gap {
  padding-inline: 3px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .content-page.article .article-layout.has-recommendations {
    display: block;
    max-width: 800px;
  }
  .article-recommendations {
    position: relative;
    margin-top: 48px;
    padding-top: 32px;
  }
  .recommendations-divider {
    display: flex;
  }
  .article-recommendations .related-list li {
    display: flex;
  }
  .article-recommendations .related-list h3 {
    font-size: 28px;
    margin: 0;
  }
}

@media (max-width: 1200px) {
  html {
    --site-header-space: 96px;
    --site-header-height: 96px;
  }
  .site-header {
    --header-full-padding: 22px;
    --header-full-min: 96px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 96px;
    padding: 22px 5%;
    gap: 16px;
  }
  .site-header .header-left,
  .site-header .header-right {
    display: none;
  }
  .site-header .brand {
    grid-column: 1;
    justify-self: start;
    font-size: 29px;
    text-align: left;
    white-space: normal;
  }
  .header-actions {
    grid-column: 2;
  }
  .mobile-menu {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}
@media (max-width: 1100px) {
  .catalog-controls {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
  }
  .search-field {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .site-header {
    --header-full-padding: 18px;
    --header-full-min: 90px;
    min-height: 90px;
    padding: 18px 24px;
    gap: 12px;
  }
  .site-header .brand {
    font-size: 26px;
    max-width: 225px;
  }
  .button,
  .text-link {
    padding: 12px 20px;
    font-size: 17px;
  }
  .catalog-topics {
    display: block;
  }
  .filter-list,
  .topic-toggle-label,
  .topic-selection {
    display: none;
  }
  .topic-picker {
    width: 100%;
  }
  .topic-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .topic-toggle-value {
    display: block;
  }
  .topic-picker[data-selected='true'] > .topic-toggle {
    --button-top: #fff8f9;
    --button-middle: #f2dfe4;
    --button-bottom: #e5c3cc;
    border-color: #fff7f9;
    box-shadow:
      inset 0 1px 1px #fff,
      inset 0 -1px 1px #9e5c7133,
      0 4px 0 -1px #b77789,
      0 10px 16px -8px #18263a59;
  }
  .topic-options {
    position: static;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 14px;
    max-height: min(360px, 50vh);
  }
  .search-field input {
    font-size: 17px;
  }
  .article-navigation {
    gap: 12px;
  }
}
@media (max-width: 360px) {
  .mobile-menu summary {
    width: 112px;
    min-width: 112px;
    padding-inline: 10px;
  }
  .site-header .brand {
    font-size: 25px;
  }
}

@media (max-width: 520px) {
  html {
    --site-header-space: 132px;
    --site-header-height: 132px;
  }
  .site-header {
    --header-full-padding: 14px;
    --header-full-min: 132px;
    min-height: 132px;
    padding-block: 14px;
  }
  .header-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .header-actions .mobile-menu {
    position: static;
  }
}

.site-header[data-header-compact='true'] {
  min-height: 76px;
  padding-block: 8px;
}
.site-header[data-header-compact='true'] nav a,
.site-header[data-header-compact='true'] .mobile-menu summary {
  min-height: 44px;
  padding-block: 9px;
}
.site-header[data-header-compact='true'] .mobile-menu nav a {
  min-height: 48px;
  padding-block: 12px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-header {
    transition: none;
  }
}

/* Лента сохраняет нативную прокрутку без JavaScript. */
.reading-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 30px;
}
.reading-top .section-heading {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}
.reading-top .section-heading h2 {
  margin-bottom: 18px;
}
.reading-top .section-heading p {
  max-width: 60ch;
  margin-inline: auto;
}
.article-strip {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 2.25);
  gap: 32px;
  list-style: none;
  margin: 0 -20px;
  padding: 22px 20px 40px;
  border: 1px solid #ffffffd9;
  border-radius: 34px;
  background: linear-gradient(135deg, #fffefdd9 0%, #f6f2efe6 68%, #eee7e2e6 100%);
  box-shadow:
    inset 1px 2px 2px #fff,
    inset -1px -2px 2px #b4a29940,
    inset 0 0 0 5px #ffffff66,
    0 8px 0 -1px #d7c9c1,
    0 28px 42px -16px #18263a52,
    5px 12px 18px -8px #18263a40;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 20px;
  scroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rose-line) var(--warm);
}
.article-strip[data-enhanced] {
  scroll-snap-type: none;
}
.article-strip[data-enhanced][data-mouse-down] {
  user-select: none;
  -webkit-user-select: none;
}
.article-strip[data-dragging],
.article-strip[data-dragging] * {
  cursor: grabbing;
}
@media (hover: hover) and (pointer: fine) {
  .article-strip[data-enhanced]:not([data-dragging]) {
    cursor: grab;
  }
}
.article-strip[data-enhanced] > .article-slide {
  transform: translate3d(var(--ribbon-fraction, 0px), 0, 0);
}
.article-strip[data-looping] {
  overflow-anchor: none;
  scrollbar-width: none;
}
.article-strip[data-looping]::-webkit-scrollbar {
  display: none;
}
.article-strip:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 5px;
}
.article-slide {
  min-width: 0;
  scroll-snap-align: start;
}
.ribbon-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 28px;
  border-bottom-right-radius: 10px;
}
.slide-photo {
  margin-bottom: 28px;
}
.slide-photo .photo-frame {
  border-radius: 18px;
  box-shadow: none;
}
.slide-photo img {
  aspect-ratio: 1.45;
  object-fit: cover;
  object-position: 60% 35%;
}
.slide-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  padding-inline: 8px;
}
.slide-copy .article-category {
  margin: 0 0 14px;
}
.slide-copy h3 {
  font-size: 28px;
  line-height: 1.23;
  margin-bottom: 18px;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.slide-copy > p:not(.article-category) {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 26px;
}
.reading .slide-copy .text-link {
  margin-top: auto;
  align-self: center;
  max-width: 100%;
  text-align: center;
}
.reading-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}
.reading-footer .text-link {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .reading-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .article-strip {
    grid-auto-columns: 62%;
  }
}
@media (max-width: 760px) {
  .reading-top {
    margin-bottom: 14px;
  }
  .article-strip {
    grid-auto-columns: 88%;
    gap: 24px;
    margin-inline: -10px;
    padding-inline: 10px;
    padding-top: 16px;
    border-radius: 26px;
    scroll-padding-inline: 10px;
    box-shadow:
      inset 1px 2px 2px #fff,
      inset -1px -2px 2px #b4a29940,
      inset 0 0 0 3px #ffffff66,
      0 6px 0 -1px #d7c9c1,
      0 22px 30px -13px #18263a52,
      3px 9px 14px -7px #18263a40;
  }
  .slide-photo {
    margin-bottom: 24px;
  }
  .slide-copy h3 {
    font-size: 26px;
  }
  .reading-footer {
    justify-content: flex-start;
    margin-top: 32px;
  }
}

/* Общие поверхности главной и статей. */
.reading-panel {
  border-bottom-right-radius: 10px;
}
.catalog-counter.reading-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  width: fit-content;
  max-width: 100%;
  padding: 18px 28px;
  margin: 24px 0 40px;
  border-radius: 24px;
  border-bottom-right-radius: 10px;
  color: var(--ink);
}
.catalog-counter-label {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
.catalog-counter-values {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
}
.catalog-counter-values strong {
  font: 500 44px/1.2 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--rose);
  overflow-wrap: anywhere;
}
.article-card.reading-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
  padding: 16px 32px 24px 16px;
}
.article-card.reading-panel .photo-frame {
  border-radius: 18px;
  box-shadow: none;
}
.article-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.article-card-body > .text-link {
  align-self: center;
  margin-top: 24px;
}
.article-card-body > p:not(.article-category) {
  font-size: 20px;
}
.author-profile.reading-panel {
  padding: 32px;
  gap: 28px;
}
.article .byline .photo-frame {
  --photo-radius: 19px;
  width: 64px;
  height: 64px;
}
.article .byline strong {
  font-size: 17px;
  font-weight: 600;
}
.article .byline span span {
  font-size: 16px;
}
.content-page.article .article-layout {
  width: calc(100% - 112px);
  max-width: 800px;
  margin-top: 48px;
  padding: 0 0 100px;
}
.content-page.article .article-layout.has-recommendations {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  max-width: 1100px;
}
.article-body {
  font-size: 20px;
  line-height: 1.7;
}
.article-body.reading-panel,
.article-footer.reading-panel {
  padding: 32px;
}
.article-footer {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}
.article-footer .article-navigation {
  justify-content: center;
  gap: 16px;
}
.article-body:focus {
  outline: none;
}
.article-body:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 5px;
}
/* Содержимое статьи, совместимое с обычной разметкой WordPress. */
.entry-content {
  display: flow-root;
}
.entry-content > * {
  margin-block: 0;
}
.entry-content > * + * {
  margin-top: 24px;
}
.entry-content :is(h2, h3, h4, h5, h6) {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  text-wrap: pretty;
  margin-block: 48px 18px;
}
.entry-content h3 {
  font-size: 28px;
}
.entry-content :is(h4, h5, h6) {
  font-size: 24px;
}
.entry-content > :first-child {
  margin-top: 0;
}
.entry-content :is(h2, h3, h4, h5, h6) + * {
  margin-top: 0;
}
.entry-content :is(ul, ol) {
  padding-left: 1.35em;
}
.entry-content li {
  padding-left: 0.2em;
}
.entry-content li + li {
  margin-top: 12px;
}
.entry-content li > :is(ul, ol) {
  margin-top: 12px;
}
.entry-content figure {
  max-width: 100%;
  margin-inline: 0;
}
.entry-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 18px;
  box-shadow: 0 10px 20px -12px #18263a52;
}
.entry-content figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.entry-content :is(.alignwide, .alignfull) {
  width: auto;
  max-width: 100%;
  margin-inline: 0;
}
.entry-content blockquote {
  margin-inline: 0;
  padding-left: 24px;
  border-left: 2px solid var(--rose-line);
  color: var(--muted);
}
.entry-content blockquote p + p {
  margin-top: 20px;
}
.article .context-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.article .context-note p {
  font-size: 20px;
  line-height: 1.6;
}
.article-recommendations > h2 {
  margin-bottom: 24px;
}
.article-recommendations .related-list {
  display: grid;
  gap: 24px;
}
.article-recommendations .related-list li.reading-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 24px;
}
.recommendation-image {
  min-width: 0;
  flex-shrink: 0;
}
.recommendation-image .photo-frame {
  --photo-radius: 16px;
  box-shadow: none;
}
.recommendation-image img {
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center 30%;
}
.recommendation-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
}
.article-recommendations .related-list h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}
.article-recommendations .text-link {
  align-self: center;
  min-height: 50px;
  padding: 14px 26px;
}
@media (max-width: 1250px) {
  .content-page.article .article-layout {
    width: calc(100% - 80px);
  }
}
@media (max-width: 1100px) {
  .content-page.article .article-layout.has-recommendations {
    max-width: 800px;
  }
  .article-recommendations .related-list li.reading-panel {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .recommendation-image {
    width: 200px;
  }
}
@media (max-width: 760px) {
  .reading-panel {
    border-radius: 23px;
    border-bottom-right-radius: 10px;
  }
  .catalog-counter.reading-panel {
    gap: 8px 22px;
    padding: 18px 22px;
    margin-bottom: 34px;
  }
  .catalog-counter-label,
  .catalog-counter-values {
    font-size: 18px;
  }
  .catalog-counter-values strong {
    font-size: 38px;
  }
  .article-card.reading-panel {
    display: block;
    padding: 12px 12px 28px;
  }
  .article-card-body {
    padding-inline: 8px;
  }
  .article-card-body > p:not(.article-category) {
    font-size: 18px;
  }
  .article-card-body > .text-link {
    margin-top: 24px;
  }
  .author-profile.reading-panel {
    padding: 24px;
  }
  .article .byline .photo-frame {
    width: 60px;
    height: 60px;
  }
  .article .byline span span {
    font-size: 15px;
  }
  .content-page.article .article-layout {
    width: calc(100% - 32px);
    margin-top: 36px;
    padding-bottom: 64px;
  }
  .article-body {
    font-size: 18px;
    line-height: 1.7;
  }
  .article-body.reading-panel,
  .article-footer.reading-panel {
    padding: 26px 20px;
  }
  .article-footer {
    margin-top: 32px;
  }
  .entry-content :is(h2, h3, h4, h5, h6) {
    margin-top: 36px;
  }
  .entry-content > :first-child {
    margin-top: 0;
  }
  .entry-content h3 {
    font-size: 25px;
  }
  .entry-content :is(h4, h5, h6) {
    font-size: 22px;
  }
  .entry-content img {
    border-radius: 14px;
  }
  .article .context-note p {
    font-size: 18px;
  }
  .article-navigation {
    justify-content: center;
    gap: 16px;
  }
  .article-recommendations .related-list li.reading-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
  }
  .recommendation-image {
    width: auto;
  }
  .article-recommendations .related-list h3 {
    font-size: 26px;
  }
}
