/* Содержимое блоков, ссылки и фотографии хранятся в HTML статьи в БД. */
.christmas-story { --christmas-gold: #e8c875; }
.christmas-story__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 26px;
  color: #3c3527;
  border: 1px solid #eee8dc;
  background: radial-gradient(ellipse at top right, #f9f4e966 0%, transparent 65%), #fffefa;
}
.christmas-story__eyebrow { display: flex; gap: 9px; align-items: center; color: #8a6b2f; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fond-work-page .fond-richtext .christmas-story__hero h2 { max-width: 620px; margin: 1.1rem 0; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.13; color: #3c3527 !important; text-wrap: balance; }
.christmas-story__lead { font-size: 1.05rem; line-height: 1.7; color: #655e50; }
.fond-work-page .fond-richtext .christmas-story__hero p { color: #655e50; }
.fond-work-page .fond-richtext .christmas-story__hero strong { color: #3c3527; }
.christmas-story__appeal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.5rem 0; }
.christmas-story__appeal-block { padding: 12px 10px; border: 1px solid #f1ede5; border-radius: 12px; background: #ffffff44; }
.christmas-story__appeal-block > i { margin-bottom: 12px; color: #96712e; font-size: 1.15rem; }
.fond-work-page .fond-richtext .christmas-story__appeal-block p { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.55; text-align: left; }
.fond-work-page .fond-richtext .christmas-story__appeal-block p:last-child { margin-bottom: 0; }
.christmas-story__goal { display: flex; align-items: center; gap: 18px; margin: 1.8rem 0; }
.christmas-story__goal > i { font-size: 2rem; color: #a17c31; }
.christmas-story__goal strong { display: block; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; }
.fond-work-page .fond-richtext .christmas-story__goal p { margin: 0; }
.fond-work-page .fond-richtext .christmas-story__goal-label { font-size: .9rem; color: #716958; }
.fond-work-page .fond-richtext .christmas-story a:not(.christmas-story__donate) {
  color: light-dark(#765318, #edca83) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fond-work-page .fond-richtext .christmas-story a:not(.christmas-story__donate):hover {
  color: light-dark(#49320d, #ffe7b8) !important;
}
.fond-richtext a.christmas-story__donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--fond-accent-color, #c9a030);
  color: var(--fond-accent-on, #242116) !important;
  text-decoration: none;
  font-weight: 700;
  border: none;
  box-shadow: 0 18px 44px rgba(var(--fond-accent-rgb, 201,160,48), .22);
}
.fond-richtext a.christmas-story__donate:hover { background: var(--fond-accent-hover, #b58e26); }
.christmas-story__intro { margin: 2.3rem 0 1.5rem; }
.christmas-story__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1.8rem 0; }
.christmas-story__steps article { padding: 20px 16px; border: 1px solid light-dark(#f0ede6, #49453d); border-radius: 16px; background: transparent; }
.christmas-story__steps article > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: light-dark(#f4ead1, #493e28); color: light-dark(#88631e, #e8c875); font-size: 1.2rem; }
.fond-richtext .christmas-story__steps h3 { margin: 1rem 0 .7rem; font-size: 1.08rem; }
.christmas-story__steps p { margin: 0; font-size: .9rem; line-height: 1.6; }
.christmas-story__applications { display: flex; gap: 16px; margin: 1.8rem 0; padding: 22px 16px; border: 1px solid light-dark(#f1ece1, #49453d); border-radius: 16px; background: light-dark(#fdfbf5, #2d291f); }
.christmas-story__applications > i { margin-top: 3px; font-size: 1.4rem; color: light-dark(#88631e, #e8c875); }
.christmas-story__applications p { margin: .5rem 0 0; font-size: .95rem; }
.christmas-story__closing { padding: clamp(22px, 4vw, 35px); margin: 2rem 0 0; border: 1px solid light-dark(#f1ede5, #49453d); border-radius: 24px; background: transparent; text-align: center; }
.christmas-story__closing > i { font-size: 1.8rem; color: light-dark(#88631e, #e8c875); }
.fond-richtext .christmas-story__closing h2 { margin: 1rem 0; text-wrap: balance; }
.christmas-story__photo-note { font-size: .95rem; opacity: .85; }
.christmas-story__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 10px 6px; margin: 1.2rem 0 2rem; }
.fond-work-page .fond-recipient-fulltext .christmas-story__photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  margin: -3px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  z-index: 1;
  transform: rotate(-2deg);
}
.fond-work-page .fond-recipient-fulltext .christmas-story__photo:nth-child(3n+2) { transform: rotate(2deg) translateY(5px); z-index: 2; }
.fond-work-page .fond-recipient-fulltext .christmas-story__photo:nth-child(3n) { transform: rotate(-1deg) translateY(-4px); }
.fond-work-page .fond-recipient-fulltext .christmas-story__photo:hover { z-index: 3; }
.fond-work-page .fond-recipient-fulltext .christmas-story__photo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 30%;
  border: 0 !important;
  border-radius: 4px;
  filter: drop-shadow(0 2px 3px #0002);
  margin: 0;
  cursor: zoom-in;
}
.christmas-story__photo-zoom {
  position: absolute;
  display: grid;
  place-items: center;
  right: 7px;
  bottom: 7px;
  width: 23px;
  height: 23px;
  font-size: 11px;
  border-radius: 50%;
  background: #fffdf8e8;
  color: #72551e;
  pointer-events: none;
}
.article-history {
  margin: 2.5rem 0;
  padding: clamp(18px, 4vw, 30px);
  border: 0;
  border-radius: 24px;
  background: light-dark(#fffefa, #29261f);
}
.article-history__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: light-dark(#8b6725, #e1bd70);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-history h2 { margin: .6rem 0 1rem; }
.article-history__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.5rem 0;
}
.article-history__card {
  min-width: 0;
  padding: 20px;
  border: 1px solid light-dark(#efeae0, #49453d);
  border-radius: 16px;
  background: transparent;
}
.article-history__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.article-history__year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.article-history__year h3 { margin: 0; font-size: 1.6rem; }
.article-history__year > i { color: light-dark(#a57b2f, #e1bd70); font-size: 1.2rem; }
.article-history__card p { margin: .8rem 0; font-size: .94rem; line-height: 1.55; }
.article-history__card p.article-history__amount { margin: .7rem 0 .15rem; font-size: 1.15rem; }
.article-history__card p.article-history__label { margin: 0 0 .8rem; font-size: .82rem; opacity: .75; }
.article-history__card p.article-history__people { font-weight: 700; color: light-dark(#88631e, #e8c875); }
.article-history__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; }
.article-history__links p { margin: 0; font-size: inherit; line-height: inherit; }
.fond-work-page .fond-richtext .article-history__links a { color: light-dark(#805916, #e8c875) !important; text-decoration-color: light-dark(#bba16c, #a88a4b); text-underline-offset: 3px; }
.fond-work-page .fond-richtext .article-history__links a:hover { color: light-dark(#51380f, #ffe3a3) !important; }
.article-history__note { margin: 0; font-size: .82rem; opacity: .8; }
.article-gallery {
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: light-dark(#f2ede3, #211f1a);
  outline-offset: 4px;
}
.article-gallery .carousel-inner { aspect-ratio: 4 / 3; }
.article-gallery .carousel-item { height: 100%; margin-bottom: 0; }
.article-gallery .carousel-item picture { display: block; width: 100%; height: 100%; }
.fond-work-page .fond-recipient-fulltext .article-gallery .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
  object-position: center 30%;
  margin: 0;
  border-radius: 0;
}
.article-gallery .carousel-control-prev,
.article-gallery .carousel-control-next { width: 64px; opacity: 1; bottom: 58px; }
.article-gallery__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(25, 24, 21, .7);
  color: white;
  box-shadow: 0 3px 12px #0003;
}
.article-gallery__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 15px;
  background: light-dark(#fffdf9, #29261f);
  font-size: .85rem;
}
.article-gallery__toolbar > span:first-child { flex: 1; }
.article-gallery__toolbar [data-gallery-counter] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.article-gallery__toolbar button {
  width: 38px;
  height: 38px;
  border: 1px solid light-dark(#ddcda9, #75603b);
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.article-gallery:not(.article-gallery--ready) .carousel-control-prev,
.article-gallery:not(.article-gallery--ready) .carousel-control-next,
.article-gallery:not(.article-gallery--ready) [data-gallery-toggle] { display: none; }
@media (max-width: 575px) {
  .christmas-story__appeal { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .christmas-story__appeal-block { padding: 16px; }
  .christmas-story__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .christmas-story__steps { grid-template-columns: minmax(0, 1fr); }
  .christmas-story__hero { padding: 24px 20px; }
  .christmas-story__applications { padding: 18px 14px; gap: 12px; }
  .article-history__grid { grid-template-columns: minmax(0, 1fr); }
  .article-history__card { padding: 16px; }
  .article-gallery .carousel-inner { aspect-ratio: 1 / 1; }
  .article-gallery .carousel-control-prev,
  .article-gallery .carousel-control-next { width: 48px; }
  .article-gallery__arrow { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-gallery .carousel-item { transition: none; }
}
