.header nav .about-navigation {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.about-navigation summary {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
}

.about-navigation summary::-webkit-details-marker {
  display: none;
}

.about-navigation summary svg {
  transition: transform .2s;
}

.about-navigation details[open] summary svg {
  transform: rotate(180deg);
}

.header nav .about-document-link {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--header-paper);
  color: var(--ink);
  box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
}

@media (max-width: 1050px) {
  .header nav .about-navigation {
    display: block;
  }

  .header nav .about-navigation > a {
    display: block;
    margin-right: 44px;
  }

  .about-navigation summary {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 44px;
  }

  .header nav .about-document-link {
    position: static;
    display: block;
    margin-bottom: 8px;
    padding: 10px 12px;
    white-space: normal;
    box-shadow: none;
  }

}

.contact-emails {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.contact-requisites {
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
}

.about-links {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.service-card-links,
.service-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}

.service-detail-intro,
.service-detail-steps {
  display: grid;
  gap: clamp(20px, 4vw, 52px);
}

.service-detail-intro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  margin: 24px 0 56px;
}

.service-detail h1 {
  color: var(--ink);
  font: 500 clamp(2rem, 3.8vw, 3.5rem)/1.1 var(--heading-font);
  letter-spacing: -.035em;
  margin: 0 0 20px;
}

.service-detail .button {
  margin-top: 12px;
  width: fit-content;
}

.service-detail figure { margin: 0; }
.service-detail figcaption { margin-top: 8px; }
.service-detail figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--editorial-image-radius);
}

.service-detail-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.service-detail-steps article {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 720px) {
  .service-detail-intro,
  .service-detail-steps { grid-template-columns: 1fr; }
}

#gallery .gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.gallery-zoom {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.gallery-controls button[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
}

#gallery .gallery-frame.is-zoomed {
  overflow: auto;
  overscroll-behavior: contain;
}

#gallery .gallery-frame.is-zoomed #gallery-frame-button {
  width: var(--photo-scale);
  height: var(--photo-scale);
  cursor: grab;
}

#gallery .gallery-frame.is-panning #gallery-frame-button {
  cursor: grabbing;
  user-select: none;
}

#gallery-image {
  -webkit-user-drag: none;
  user-select: none;
}

.back-to-top:not([hidden]) {
  position: fixed;
  z-index: 30;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--header-paper);
  color: var(--ink);
  box-shadow: 0 4px 14px rgb(0 0 0 / 16%);
}

.back-to-top:hover {
  background: var(--paper);
  color: var(--copper);
}

.back-to-top:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


:root[data-theme="light"] .new-year {
  --page-base: #ecdfcf;
  --paper: #eadbce;
  --clay: #e4cdbd;
  --process-surface: #e7d3c3;
  --header-tint: 231 211 192;
  --header-paper: rgb(var(--header-tint));
}

.new-year .brand {
  position: relative;
  overflow: visible;
}

.new-year-hat {
  position: absolute;
  top: 50%;
  left: 18%;
  width: clamp(18px, 16%, 32px);
  aspect-ratio: 1.55;
  transform-origin: 50% 85%;
  transform: translate(-50%, -195%) rotate(25deg);
  pointer-events: none;
}

.new-year-hat::before {
  content: "";
  position: absolute;
  inset: 3% 12% 18% 0;
  border-radius: 65% 60% 10% 12%;
  background: linear-gradient(140deg, #ed525b, #b91832 72%);
  clip-path: polygon(0 100%, 12% 61%, 33% 21%, 55% 0, 76% 10%, 95% 47%, 100% 73%, 73% 50%, 70% 100%);
}

.new-year-hat::after {
  content: "";
  position: absolute;
  inset: 72% 24% 0 0;
  border-radius: 45% 45% 36% 36%;
  background: linear-gradient(#fffaf1 45%, #e8dfd3);
  box-shadow: 0 1px 2px #30241f59;
}

.new-year-hat i {
  position: absolute;
  top: 52%;
  right: 7%;
  width: 23%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffaf1;
  box-shadow: 0 1px 3px #4427274a;
}

.new-year-tree {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, #467761, #214b3a 77%);
  clip-path: polygon(50% 4%, 72% 34%, 62% 34%, 84% 61%, 72% 61%, 98% 90%, 58% 90%, 58% 100%, 42% 100%, 42% 90%, 2% 90%, 28% 61%, 16% 61%, 38% 34%, 28% 34%);
}

.new-year-logo-tree {
  position: absolute;
  top: 50%;
  left: calc(100% + 5px);
  width: clamp(16px, 15%, 28px);
  transform: translateY(-45%);
  pointer-events: none;
}

.new-year-star {
  display: block;
  width: 9px;
  aspect-ratio: 1;
  background: #dcaa50;
  clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 81% 100%, 50% 76%, 19% 100%, 30% 60%, 0 38%, 38% 36%);
}

.new-year-logo-tree .new-year-star {
  position: absolute;
  z-index: 1;
  top: -5px;
  left: calc(50% - 4.5px);
}

.new-year-logo-tree .new-year-tree {
  background:
    radial-gradient(circle at 44% 44%, #f6cf73 0 1px, transparent 1.5px),
    radial-gradient(circle at 60% 62%, #ed5867 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 30% 75%, #f6cf73 0 1px, transparent 1.5px),
    linear-gradient(155deg, #467761, #214b3a 77%);
}

.new-year .edge-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
  padding-inline: 3px;
}

.new-year .edge-ornament::before,
.new-year .edge-ornament::after {
  content: none;
}

.new-year .edge-ornament .new-year-tree {
  flex: none;
  max-width: 29px;
}

.new-year .edge-ornament .new-year-star {
  flex: none;
  width: 7px;
}

.new-year .sprig {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.new-year .sprig::before,
.new-year .sprig::after {
  content: none;
}

.new-year .sprig .new-year-tree {
  width: 42%;
  max-width: 36px;
}

.new-year .sprig .new-year-star {
  align-self: flex-start;
  margin-top: 12%;
}

.new-year .sprig-placement-hero .new-year-tree {
  background: linear-gradient(155deg, #c0d0ad, #72957f 77%);
}

.new-year-snow {
  position: fixed;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.new-year-snow::before,
.new-year-snow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  animation: new-year-snowfall var(--snow-duration) linear infinite;
}

.new-year-snow::before {
  --snow-duration: 27s;
  --snow-x: 181px;
  --snow-y: 271px;
  opacity: .77;
  background-size: 181px 271px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22181%22%20height%3D%22271%22%20viewBox%3D%220%200%20181%20271%22%3E%3Cdefs%3E%3Cpath%20id%3D%22a%22%20d%3D%22M0%200V-10M-3.1-7.9%200-5.3%203.1-7.9M-2.8-4.9%200-2.6%202.8-4.9%22%2F%3E%3Cg%20id%3D%22f%22%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(0)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(60)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(120)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(180)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(240)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(300)%22%2F%3E%3C%2Fg%3E%3Cg%20id%3D%22t%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cuse%20href%3D%22%23f%22%20transform%3D%22translate(22%2033)%20rotate(8)%20scale(0.390)%22%2F%3E%3Cuse%20href%3D%22%23f%22%20transform%3D%22translate(113%20151)%20rotate(31)%20scale(0.277)%22%2F%3E%3Cuse%20href%3D%22%23f%22%20transform%3D%22translate(53%20229)%20rotate(16)%20scale(0.413)%22%2F%3E%3C%2Fg%3E%3C%2Fdefs%3E%3Cuse%20href%3D%22%23t%22%20stroke%3D%22%23685951%22%20stroke-opacity%3D%22.62%22%20stroke-width%3D%222.9%22%2F%3E%3Cuse%20href%3D%22%23t%22%20stroke%3D%22%23fffaf4%22%20stroke-width%3D%221.55%22%2F%3E%3C%2Fsvg%3E");
}

.new-year-snow::after {
  --snow-duration: 38s;
  --snow-x: -211px;
  --snow-y: 307px;
  opacity: .86;
  background-size: 211px 307px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22211%22%20height%3D%22307%22%20viewBox%3D%220%200%20211%20307%22%3E%3Cdefs%3E%3Cpath%20id%3D%22a%22%20d%3D%22M0%200V-10M-3.1-7.9%200-5.3%203.1-7.9M-2.8-4.9%200-2.6%202.8-4.9%22%2F%3E%3Cg%20id%3D%22f%22%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(0)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(60)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(120)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(180)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(240)%22%2F%3E%3Cuse%20href%3D%22%23a%22%20transform%3D%22rotate(300)%22%2F%3E%3C%2Fg%3E%3Cg%20id%3D%22t%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cuse%20href%3D%22%23f%22%20transform%3D%22translate(73%2087)%20rotate(25)%20scale(0.593)%22%2F%3E%3Cuse%20href%3D%22%23f%22%20transform%3D%22translate(159%20253)%20rotate(3)%20scale(0.480)%22%2F%3E%3C%2Fg%3E%3C%2Fdefs%3E%3Cuse%20href%3D%22%23t%22%20stroke%3D%22%23685951%22%20stroke-opacity%3D%22.62%22%20stroke-width%3D%222.9%22%2F%3E%3Cuse%20href%3D%22%23t%22%20stroke%3D%22%23fffaf4%22%20stroke-width%3D%221.55%22%2F%3E%3C%2Fsvg%3E");
}

@keyframes new-year-snowfall {
  to { background-position: var(--snow-x) var(--snow-y); }
}

@media (max-width: 720px) {
  .new-year-snow::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .new-year-snow {
    display: none;
  }
}
