:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-deep: #030407;
  --ink: #f7f2e8;
  --muted: #b9b4aa;
  --soft: rgba(247, 242, 232, 0.72);
  --line: rgba(247, 242, 232, 0.18);
  --gold: #d9b978;
  --copper: #aa6749;
  --blue: #425e86;
  --green: #607a69;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 26% 22%, rgba(66, 94, 134, 0.28), transparent 28rem),
    radial-gradient(circle at 74% 82%, rgba(96, 122, 105, 0.18), transparent 24rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 48%, #101117);
  color: var(--ink);
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

.app-shell {
  min-height: 100vh;
}

/* === DESKTOP NAV (широкое, без подложки, тонкий шрифт) === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  background: transparent;
  border: none;
  backdrop-filter: none;
  transform: none;
}

@media (max-width: 768px) {

  .nav-toggle {
    background: transparent !important; /* убираем фон */
    border: none !important;
    box-shadow: none !important;
    padding: 4px 6px; /* меньше область */
  }

  .nav-toggle span {
    width: 32px;      /* было 24px */
    height: 1px;
    margin: 7px 0;    /* было 5px — полоски ближе */
    border-radius: 2px;
    background: var(--ink);
    transition: .3s ease;
  }

}

.nav-links {
  display: flex;
  gap: 0;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300; /* Тонкое начертание */
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

/* Тонкая линия-подчёркивание при наведении/активности */
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--ink);
}

.site-nav__link.is-active::after {
  width: 100%;
  left: 0;
}

/* === MOBILE NAV (полноэкранное оверлей-меню) === */
@media (max-width: 768px) {
  .site-nav {
    justify-content: space-between;
    padding: 0 16px;
    height: 60px;
    background: rgba(3, 4, 7, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  /* Анимация гамбургера в крестик */
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__link {
    font-size: 22px;
    font-weight: 400;
    padding: 18px 0;
    color: var(--ink);
    letter-spacing: 0.02em;
  }

  .site-nav__link::after { display: none; }
  .site-nav__link.is-active { color: var(--gold); }
}

/* Отступ для контента, чтобы не прятался под фиксированным меню */
@media (min-width: 769px) {
  .app-shell { padding-top: 0; }
  .screen { padding-top: clamp(24px, 6vw, 72px); }
}
@media (max-width: 768px) {
  .app-shell { padding-top: 60px; }
}

.screen {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 72px);
  place-items: center;
  overflow: hidden;
  animation: screen-enter 360ms ease both;
}

.screen--home {
  min-height: 100svh;
  max-height: 100svh;
}

.screen[hidden] {
  display: none;
}

.screen.is-leaving {
  position: absolute;
  inset: 0;
  width: 100%;
  animation: screen-leave 320ms ease both;
  pointer-events: none;
}

.screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 72%);
  pointer-events: none;
}

.night-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    0 0 10px rgba(247, 242, 232, 0.82),
    0 0 24px rgba(217, 185, 120, 0.38);
  opacity: 0.78;
  animation: star-twinkle 6s ease-in-out infinite;
}

.star--one {
  top: 16%;
  left: 19%;
  animation-duration: 7.4s;
}

.star--two {
  top: 23%;
  right: 18%;
  opacity: 0.46;
  animation-delay: 1.8s;
  animation-duration: 8.6s;
}

.star--three {
  right: 29%;
  bottom: 18%;
  opacity: 0.58;
  animation-delay: 3.2s;
  animation-duration: 6.8s;
}

.star--four {
  bottom: 28%;
  left: 13%;
  opacity: 0.38;
  animation-delay: 4.7s;
  animation-duration: 9.2s;
}

.star--five {
  top: 36%;
  left: 31%;
  opacity: 0.42;
  animation-delay: 2.6s;
  animation-duration: 7.8s;
}

.star--six {
  top: 58%;
  right: 12%;
  opacity: 0.64;
  animation-delay: 5.2s;
  animation-duration: 8.9s;
}

.star--seven {
  top: 11%;
  left: 58%;
  opacity: 0.5;
  animation-delay: 0.9s;
  animation-duration: 6.4s;
}

.star--eight {
  right: 38%;
  bottom: 9%;
  opacity: 0.36;
  animation-delay: 3.9s;
  animation-duration: 10.2s;
}

.home-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 760px);
  max-height: calc(100svh - clamp(48px, 12vw, 144px));
  grid-template-rows: auto auto auto minmax(0, auto) auto auto;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.home-panel > * {
  opacity: 0;
  transform: translateY(18px);
  animation: homeFadeIn 0.9s ease-out forwards;
}

.home-panel > *:nth-child(1) {
  animation-delay: 0.2s;
}

.home-panel > *:nth-child(2) {
  animation-delay: 0.35s;
}

.home-panel > *:nth-child(3) {
  animation-delay: 0.55s;
}

.home-panel > *:nth-child(4) {
  animation-delay: 0.75s;
}

.home-panel > *:nth-child(5) {
  animation-delay: 0.95s;
}

.home-panel > *:nth-child(6) {
  animation-delay: 1.1s;
}

.work-meeting-tab {
  position: fixed;
  z-index: 4;
  top: auto;
  right: clamp(18px, 4vw, 48px);
  bottom: 0;
  display: grid;
  min-width: 112px;
  padding: 10px 14px 12px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: rgba(9, 10, 15, 0.42);
  border: 1px solid rgba(217, 185, 120, 0.28);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  transform: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.work-meeting-tab__track {
  display: grid;
}

.work-meeting-tab:hover {
  background: rgba(217, 185, 120, 0.12);
  border-color: rgba(217, 185, 120, 0.48);
  transform: translateY(-4px);
}

.work-meeting-tab__track span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.work-meeting-tab strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.work-meeting-tab small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.work-meeting-tab b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.work-meeting-tab i {
  color: rgba(247, 242, 232, 0.86);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.work-meeting-tab em {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

@keyframes homeFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes workMeetingTicker {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}

.na-logo {
  display: inline-grid;
  justify-items: center;
  color: var(--ink);
  text-decoration: none;
}

.na-logo__ring {
  position: relative;
  display: grid;
  width: clamp(220px, min(38vw, 38svh), 456px);
  aspect-ratio: 1;
  place-items: center;
}

.na-logo__ring::before,
.na-logo__ring::after {
  display: none;
}

.na-logo__ring::before {
  inset: 13%;
}

.na-logo__ring::after {
  inset: 26%;
  border-color: rgba(217, 185, 120, 0.28);
}

.na-logo__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.38));
}

.group-name {
  color: var(--muted);
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.group-name {
  margin: 0 0 clamp(12px, 2.4vh, 20px);
  color: var(--gold);
}

h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6.2vw, 68px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.title-link {
  color: inherit;
  text-decoration: none;
}

.title-link:hover {
  color: var(--gold);
}

.daily-text {
  width: min(100%, 720px);
  max-height: min(28svh, 260px);
  margin: clamp(18px, 3vh, 28px) 0 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--soft);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.46;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 185, 120, 0.44) transparent;
}

.daily-text::-webkit-scrollbar {
  width: 4px;
}

.daily-text::-webkit-scrollbar-thumb {
  background: rgba(217, 185, 120, 0.44);
  border-radius: 999px;
}

.daily-text p {
  margin: 0;
  text-indent: 1.6em;
}

.daily-text p + p {
  margin-top: 0.65em;
}

.daily-audio {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  width: min(100%, 720px);
  margin-top: clamp(14px, 2.4vh, 24px);
}

.daily-audio__player {
  display: none;
}

.daily-audio.has-error .daily-audio__button {
  border-color: rgba(170, 103, 73, 0.7);
}

.daily-audio button.daily-audio__button,
.daily-audio__button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(247, 242, 232, 0.22);
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.daily-audio button.daily-audio__button:hover,
.daily-audio__button:hover {
  border-color: rgba(217, 185, 120, 0.52);
  background: rgba(217, 185, 120, 0.14);
  transform: translateY(-1px);
}

.daily-audio button.daily-audio__button:focus-visible,
.daily-audio__button:focus-visible {
  outline: 2px solid rgba(217, 185, 120, 0.72);
  outline-offset: 4px;
}

.daily-audio__icon {
  display: block;
  width: 0;
  height: 0;
}

.daily-audio__icon--play {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  transform: translateX(2px);
}

.daily-audio__icon--pause {
  display: none;
  width: 11px;
  height: 14px;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.daily-audio.is-playing .daily-audio__icon--play {
  display: none;
}

.daily-audio.is-playing .daily-audio__icon--pause {
  display: block;
}

.daily-audio.is-loading .daily-audio__button {
  opacity: 0.72;
  pointer-events: none;
}

.daily-audio__text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.daily-link {
  justify-self: start;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.daily-link:hover {
  color: var(--gold);
}

.daily-link--secondary {
  margin-top: 8px;
  color: rgba(185, 180, 170, 0.72);
}

.work-page {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 760px);
  justify-items: center;
  text-align: center;
}

.work-page__eyebrow {
  margin: 90 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.work-page__title {
  white-space: normal;
}

.work-page__date {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 300;
}

.work-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin-top: clamp(22px, 4vh, 36px);
}

.work-timer span {
  display: grid;
  gap: 5px;
  padding: 16px 10px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.055);
}

.work-timer strong {
  color: var(--ink);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

.work-timer small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.work-page__note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.placeholder-page {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 720px);
  justify-items: center;
  text-align: center;
}

.placeholder-page__eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.placeholder-page__title {
  white-space: normal;
}

.placeholder-page__text {
  width: min(100%, 520px);
  margin: 18px 0 0;
  color: var(--soft);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.5;
}

.clean-counter {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  width: min(100%, 860px);
  justify-items: center;
  text-align: center;
}

.clean-counter > * {
  opacity: 0;
  animation: cleanCounterRise 0.72s cubic-bezier(.18,.9,.22,1) forwards;
}

.clean-counter > *:nth-child(1) {
  animation-delay: 0.12s;
}

.clean-counter > *:nth-child(2) {
  animation-delay: 0.28s;
}

.clean-counter > *:nth-child(3) {
  animation-delay: 0.42s;
}

.clean-counter > *:nth-child(4) {
  animation-delay: 0.58s;
}

.clean-counter__intro {
  display: grid;
  gap: 12px;
}

.clean-counter__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.clean-counter__title {
  white-space: normal;
}

.clean-counter__form,
.clean-counter__result {
  display: grid;
  gap: 16px;
  width: min(100%, 620px);
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(217, 185, 120, 0.12), transparent 38%),
    rgba(3, 4, 7, 0.56);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.clean-counter__form[hidden],
.clean-counter__result[hidden] {
  display: none;
}

.clean-counter__form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: left;
}

.clean-counter__form label {
  display: grid;
  gap: 7px;
}

.clean-counter__form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.clean-counter__form input {
  min-height: 46px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 8px;
  background: rgba(3, 4, 7, 0.58);
  color: var(--ink);
}

.clean-counter__form button,
.clean-counter__edit {
  min-height: 46px;
  border: 1px solid rgba(217, 185, 120, 0.42);
  border-radius: 999px;
  background: rgba(217, 185, 120, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.clean-counter__form button {
  grid-column: 1 / -1;
}

.clean-counter__form button:hover,
.clean-counter__edit:hover {
  background: rgba(217, 185, 120, 0.18);
}

.clean-counter__name {
  margin: 0;
  color: var(--gold);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 800;
}

.clean-counter__time {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
}

.clean-counter__time span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 8px;
  border: 1px solid rgba(217, 185, 120, 0.24);
  border-radius: 10px;
  background: rgba(247, 242, 232, 0.055);
  box-shadow:
    -8px 0 18px rgba(217, 185, 120, 0.08),
    8px 0 18px rgba(66, 94, 134, 0.08);
  opacity: 0;
  animation: cleanCounterTile 0.75s cubic-bezier(.18,.9,.22,1) forwards;
}

.clean-counter__time span:nth-child(1) { animation-delay: 0.48s; }
.clean-counter__time span:nth-child(2) { animation-delay: 0.56s; }
.clean-counter__time span:nth-child(3) { animation-delay: 0.64s; }

.clean-counter__time strong {
  color: var(--ink);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.clean-counter__time small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.clean-counter__since {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.clean-counter__since span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.clean-counter__since strong {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(217, 185, 120, 0.34);
  border-radius: 999px;
  background: rgba(217, 185, 120, 0.1);
  color: var(--gold);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.2;
  animation: cleanCounterDateGlow 2.8s ease-in-out infinite;
}

.clean-counter__privacy {
  width: min(100%, 620px);
  margin: -6px 0 0;
  color: rgba(185, 180, 170, 0.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.clean-counter__edit {
  justify-self: center;
  padding: 0 18px;
}

@keyframes cleanCounterRise {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes cleanCounterTile {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.94);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cleanCounterDateGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(217, 185, 120, 0);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 24px rgba(217, 185, 120, 0.14);
    transform: translateY(-1px);
  }
}

.servants-admin-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  overflow-x: hidden;
}

.servants-admin {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  color: var(--soft);
}

.servants-admin__header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.servants-admin__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.servants-admin__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  white-space: normal;
}

.servants-admin__text,
.servants-admin__notice {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.servants-admin__notice {
  margin-bottom: 18px;
  color: var(--gold);
}

.servants-toast {
  position: fixed;
  right: clamp(16px, 4vw, 42px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 10000;
  display: grid;
  gap: 5px;
  width: min(calc(100vw - 32px), 380px);
  padding: 14px 16px;
  border: 1px solid rgba(217, 185, 120, 0.38);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217, 185, 120, 0.14), rgba(96, 122, 105, 0.16)),
    rgba(6, 7, 12, 0.96);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  backdrop-filter: blur(14px);
  animation:
    servantsToastIn 0.45s cubic-bezier(.18,.9,.22,1) both,
    servantsToastOut 0.35s ease 5.2s forwards;
}

.servants-toast strong {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.servants-toast span {
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.servants-form {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.055);
}

.servants-form__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.servants-form__top h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.servants-form__top a,
.servants-table__edit {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.servants-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.servants-form label {
  display: grid;
  gap: 6px;
}

.servants-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.servants-form input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 6px;
  background: rgba(3, 4, 7, 0.55);
  color: var(--ink);
}

.servants-form textarea,
.servants-form select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 6px;
  background: rgba(3, 4, 7, 0.55);
  color: var(--ink);
}

.servants-form textarea {
  resize: vertical;
  line-height: 1.55;
}

.servants-form__check {
  align-content: end;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.servants-form__check input {
  position: relative;
  width: 46px;
  min-height: 26px;
  margin: 0;
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(3, 4, 7, 0.55);
  cursor: pointer;
}

.servants-form__check input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.servants-form__check input:checked {
  border-color: rgba(217, 185, 120, 0.58);
  background: rgba(217, 185, 120, 0.18);
}

.servants-form__check input:checked::before {
  background: var(--gold);
  transform: translateX(20px);
}

.servants-form__check span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.servants-form__submit {
  justify-self: start;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(217, 185, 120, 0.42);
  border-radius: 999px;
  background: rgba(217, 185, 120, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.servants-table-wrap {
  overflow: auto;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(3, 4, 7, 0.34);
}

.servants-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.servants-table th,
.servants-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(247, 242, 232, 0.1);
  text-align: left;
  vertical-align: top;
}

.servants-table th {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.servants-table td {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.servants-table td strong,
.servants-table td span {
  display: block;
}

.servants-table td strong {
  color: var(--ink);
  font-size: 14px;
}

.servants-table td span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.servants-mobile-list {
  display: none;
}

.daily-admin__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.daily-admin__dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: calc(100vh - 220px);
  min-height: 320px;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(3, 4, 7, 0.34);
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 185, 120, 0.44) transparent;
}

.daily-admin__date {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(247, 242, 232, 0.1);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.daily-admin__date.is-filled {
  color: var(--soft);
  background: rgba(247, 242, 232, 0.045);
}

.daily-admin__date.is-active {
  border-color: rgba(217, 185, 120, 0.58);
  background: rgba(217, 185, 120, 0.14);
  color: var(--gold);
}

.daily-admin__form {
  margin-bottom: 0;
}

.daily-admin__form .servants-form__top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.daily-admin__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-admin__wide {
  grid-column: 1 / -1;
}

.site-settings-admin__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-settings-admin__wide {
  grid-column: 1 / -1;
}

.site-settings-admin__form {
  margin-bottom: 0;
}

.daily-index {
  display: grid;
  gap: 28px;
}

.daily-index__month {
  display: grid;
  gap: 12px;
}

.daily-index__month h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}

.daily-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.daily-index-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  align-items: start;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.055);
  color: var(--soft);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.daily-index-card:hover {
  border-color: rgba(217, 185, 120, 0.42);
  background: rgba(217, 185, 120, 0.1);
  transform: translateY(-1px);
}

.daily-index-card span {
  grid-row: span 2;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(217, 185, 120, 0.28);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.daily-index-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-index-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.servants-mobile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main name"
    "main icons";
  gap: 8px 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.055);
  color: var(--soft);
}

.servants-mobile-card.is-attention {
  border-color: rgba(170, 103, 73, 0.58);
  background: rgba(170, 103, 73, 0.08);
}

.servants-mobile-card__main {
  grid-area: main;
  display: grid;
  gap: 9px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.servants-mobile-card__main strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.servants-mobile-card__main small,
.servants-mobile-card__clean {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.servants-mobile-card__clean {
  line-height: 1.35;
}

.servants-mobile-card__name {
  grid-area: name;
  max-width: 8rem;
  overflow: hidden;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.servants-mobile-card.is-attention .servants-mobile-card__name {
  color: var(--copper);
  font-size: 11px;
  text-transform: uppercase;
}

.servants-mobile-card__bottom {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.servants-mobile-card__icons {
  grid-area: icons;
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.servants-mobile-card__icons a,
.servants-mobile-card__icons span {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  width: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.servants-mobile-card__icons iconify-icon {
  display: block;
}

.servants-mobile-card__icons .is-muted {
  color: rgba(185, 180, 170, 0.44);
}

.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  overflow: hidden;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
}

.login-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(3, 4, 7, 0.62);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.login-form__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-form__title {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  white-space: normal;
}

.login-form__text,
.login-form__error {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-form__error {
  color: var(--gold);
}

.login-form__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(217, 185, 120, 0.42);
  border-radius: 999px;
  background: rgba(217, 185, 120, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.login-form__link:hover {
  background: rgba(217, 185, 120, 0.18);
}

.login-form__actions {
  display: grid;
  gap: 10px;
}

.login-form label {
  display: grid;
  gap: 6px;
}

.login-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-form input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 6px;
  background: rgba(247, 242, 232, 0.06);
  color: var(--ink);
}

.login-form button {
  min-height: 44px;
  border: 1px solid rgba(217, 185, 120, 0.42);
  border-radius: 999px;
  background: rgba(217, 185, 120, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.login-form__remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-form__remember input {
  width: 16px;
  min-height: 16px;
}

.service-page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 72px);
  place-items: center;
  overflow: hidden;
}

.service-page,
.services-page {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
}

.service-page__back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.regulation-page {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  display: grid;
  gap: 24px;
  padding-bottom: 40px;
}

.regulation-page__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.regulation-page__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
}

.regulation-cards {
  display: grid;
  gap: 16px;
}

.regulation-card {
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 18px;
  background: rgba(3, 4, 7, 0.55);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.regulation-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  background: rgba(247, 242, 232, 0.03);
  flex-wrap: wrap;
}

.regulation-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(217, 185, 120, 0.14);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.regulation-card summary::-webkit-details-marker {
  display: none;
}

.regulation-card__summary::after {
  content: "▼";
  transition: transform 0.2s ease;
}

.regulation-card[open] .regulation-card__summary::after {
  transform: rotate(-180deg);
}

.regulation-card__body {
  padding: 0 24px 22px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid rgba(247, 242, 232, 0.06);
}

.regulation-card__body p,
.regulation-card__body ul {
  margin: 0;
}

.regulation-card__body ul {
  margin-top: 14px;
  padding-left: 18px;
}

.regulation-card__body li {
  margin-bottom: 10px;
}

.regulation-toc__wrapper {
  margin-bottom: 32px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 18px;
  background: rgba(3, 4, 7, 0.55);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.regulation-toc__toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  background: rgba(247, 242, 232, 0.03);
  list-style: none;
}

.regulation-toc__toggle::after {
  content: "▼";
  transition: transform 0.2s ease;
}

.regulation-toc__wrapper[open] .regulation-toc__toggle::after {
  transform: rotate(-180deg);
}

.regulation-toc {
  padding: 0 24px 24px;
}

.regulation-toc__title {
  margin: 0 0 16px 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.regulation-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.regulation-toc__list li {
  margin: 0;
}

.regulation-toc__list a {
  color: var(--soft);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.regulation-toc__list a:hover {
  color: var(--ink);
}

.regulation-toc__list ul {
  list-style: none;
  padding-left: 20px;
  margin: 4px 0 0 0;
}

.regulation-subcards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.regulation-subcard {
  border: 1px solid rgba(247, 242, 232, 0.08);
  border-radius: 12px;
  background: rgba(247, 242, 232, 0.02);
  overflow: hidden;
}

.regulation-subcard summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  background: rgba(247, 242, 232, 0.01);
}

.regulation-subcard summary::-webkit-details-marker {
  display: none;
}

.regulation-subcard__summary::after {
  content: "▼";
  transition: transform 0.2s ease;
  font-size: 14px;
}

.regulation-subcard[open] .regulation-subcard__summary::after {
  transform: rotate(-180deg);
}

.regulation-subcard__body {
  padding: 0 20px 16px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid rgba(247, 242, 232, 0.04);
}

.regulation-subcard__body p {
  margin: 0;
}

@media (max-width: 768px) {
  .regulation-toc {
    padding: 18px;
  }

  .regulation-toc__title {
    font-size: 18px;
  }

  .regulation-card summary {
    font-size: 16px;
    padding: 18px 20px;
  }

  .regulation-card__body {
    padding: 0 20px 18px;
  }

  .regulation-card__body p,
  .regulation-card__body ul,
  .regulation-card__body table {
    font-size: 14px;
  }

  .regulation-card__body ul {
    padding-left: 16px;
  }
}

.regulation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.regulation-table th,
.regulation-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(247, 242, 232, 0.08);
}

.regulation-table th {
  color: var(--ink);
  font-weight: 600;
  background: rgba(247, 242, 232, 0.03);
}

.regulation-table td {
  color: var(--soft);
}

.service-assignment {
  display: grid;
  gap: 18px;
}

.service-assignment__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.service-assignment__title {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
  white-space: normal;
}

.service-assignment__weekday,
.service-assignment__notice {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.5;
}

.service-assignment__grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.service-person {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.055);
}

.service-person__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-person__header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}

.service-person__badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(217, 185, 120, 0.32);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.service-person__free-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.service-person__free-label {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-person__free-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.service-person__free-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.service-person__info {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, 0.32);
  background: rgba(217, 185, 120, 0.08);
  color: var(--gold);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.service-person__info::before {
  content: "📖";
  display: block;
  font-size: 18px;
  line-height: 1;
}

.service-person__info:hover {
  background: rgba(217, 185, 120, 0.14);
  transform: scale(1.05);
}

.service-person__meta {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.service-person__meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.service-editor {
  margin-top: 14px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.045);
}

.service-editor--assign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
}

.service-editor--details {
  padding: 12px;
}

.service-editor summary {
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-editor__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.service-editor label,
.service-editor__form label {
  display: grid;
  gap: 6px;
}

.service-editor label span,
.service-editor__form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-editor input,
.service-editor select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 6px;
  background: rgba(3, 4, 7, 0.58);
  color: var(--ink);
}

.service-editor input[readonly] {
  border-color: rgba(217, 185, 120, 0.24);
  color: var(--soft);
}

.service-editor__calculated {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(217, 185, 120, 0.24);
  border-radius: 6px;
  background: rgba(3, 4, 7, 0.36);
  color: var(--soft);
  font-size: 16px;
  font-weight: 500;
}

.service-editor button {
  align-self: end;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(217, 185, 120, 0.42);
  border-radius: 999px;
  background: rgba(217, 185, 120, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-editor__list-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.service-editor__check {
  align-content: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-editor__check input {
  width: 16px;
  min-height: 16px;
}

.service-editor__switch {
  align-content: end;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.service-editor__switch input {
  position: relative;
  width: 46px;
  min-height: 26px;
  margin: 0;
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(3, 4, 7, 0.58);
  cursor: pointer;
}

.service-editor__switch input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.service-editor__switch input:checked {
  border-color: rgba(217, 185, 120, 0.58);
  background: rgba(217, 185, 120, 0.18);
}

.service-editor__switch input:checked::before {
  background: var(--gold);
  transform: translateX(20px);
}

.service-editor__status {
  align-content: end;
  display: grid;
  grid-template-columns: minmax(0, auto) 46px minmax(0, auto);
  align-items: center;
  justify-content: start;
  gap: 9px;
  min-height: 40px;
}

.service-editor__status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-editor__status input {
  position: relative;
  width: 46px;
  min-height: 26px;
  margin: 0;
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(3, 4, 7, 0.58);
  cursor: pointer;
}

.service-editor__status input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.service-editor__status input:checked {
  border-color: rgba(217, 185, 120, 0.58);
  background: rgba(217, 185, 120, 0.18);
}

.service-editor__status input:checked::before {
  background: var(--gold);
  transform: translateX(20px);
}

.daily-page {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
}

.daily-page > * {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInSoft 0.75s ease-out forwards;
}

.daily-page > *:nth-child(1) {
  animation-delay: 0.18s;
}

.daily-page > *:nth-child(2) {
  animation-delay: 0.45s;
}

.daily-page > *:nth-child(3) {
  animation-delay: 0.72s;
}

.daily-page__back {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.daily-entry {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  max-height: calc(100vh - 164px);
  overflow: auto;
  color: var(--soft);
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 242, 232, 0.28) transparent;
}

@keyframes fadeInSoft {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.daily-entry__date {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.daily-entry__title {
  margin-bottom: 20px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.16;
  white-space: normal;
}

.daily-entry__section {
  margin-top: 22px;
}

.daily-entry__section h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.daily-entry__section--today h2 {
  color: var(--muted);
}

.daily-entry__section p {
  margin: 0;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 300;
  line-height: 1.55;
  text-indent: 0;
}

.daily-entry__section p + p {
  margin-top: 0.65em;
}

@media (max-width: 520px) {
  body {
    min-height: 100svh;
  }

  .servants-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .app-shell,
  .screen {
    min-height: calc(100svh - 60px);
  }

  .screen {
    padding: 18px 18px 52px;
  }

  .screen--home {
    min-height: calc(100svh - 60px);
    max-height: calc(100svh - 60px);
    animation: none;
    transform: none !important;
  }

  .home-panel {
    max-height: calc(100svh - 112px);
    transform: translateY(-1vh);
  }

  .work-meeting-tab {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-items: start;
    min-width: 0;
    max-width: none;
    min-height: 38px;
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: rgba(9, 10, 15, 0.58);
    border: 1px solid rgba(217, 185, 120, 0.28);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    transform: none;
    white-space: nowrap;
    z-index: 999;
  }

  .work-meeting-tab:hover {
    transform: none;
  }

  .work-meeting-tab__track {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
    padding: 9px 18px;
    animation: workMeetingTicker 30s linear infinite;
  }

  .work-meeting-tab__track::before,
  .work-meeting-tab__track::after {
    color: rgba(217, 185, 120, 0.58);
    content: "•";
    font-size: 14px;
    line-height: 1;
  }

  .work-meeting-tab:hover .work-meeting-tab__track {
    animation-play-state: paused;
  }

  .work-meeting-tab__track span {
    font-size: 11px;
  }

  .work-meeting-tab em {
    display: block;
    margin-top: 0;
  }

  .work-meeting-tab strong {
    display: block;
    margin-top: 0;
    font-size: 13px;
  }

  .work-meeting-tab small {
    margin-top: 0;
    font-size: 11px;
  }

  .work-meeting-tab b {
    color: var(--gold);
    font-size: 11px;
  }

  .work-meeting-tab i {
    color: rgba(247, 242, 232, 0.9);
    font-size: 11px;
  }

  .na-logo__ring {
    width: clamp(210px, min(64vw, 36svh), 312px);
  }

  .na-logo__image {
    width: 100%;
    height: 100%;
  }

  .group-name {
    font-size: 12px;
  }

  .group-name {
    margin: 0 0 10px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1;
  }

  .daily-text {
    width: min(100%, 34rem);
    max-height: clamp(108px, 25svh, 190px);
    margin-top: 14px;
    font-size: clamp(13px, 3.8vw, 15px);
    line-height: 1.38;
  }

  .daily-audio {
    width: min(100%, 34rem);
    margin-top: 12px;
  }

  .daily-audio__button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .daily-audio__text {
    font-size: 12px;
  }

  .daily-link {
    justify-self: start;
    font-size: 12px;
  }

  .work-timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 18rem);
  }

  .work-timer span {
    padding: 13px 8px;
  }

  .screen--work {
    padding-bottom: 126px;
  }

  .work-map-cta {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-right: 0;
    border-left: 0;
    border-radius: 10px 10px 0 0;
    opacity: 1;
    transform: none;
  }

  .work-map-cta .work-services-link {
    min-height: 44px;
  }

  .daily-entry {
    max-height: calc(100svh - 132px);
  }

  .daily-entry__title {
    font-size: clamp(19px, 5.4vw, 24px);
  }

  .daily-entry__section {
    margin-top: 18px;
  }

  .daily-entry__section p {
    font-size: 13px;
    line-height: 1.45;
  }

  .clean-counter {
    gap: 16px;
    width: 100%;
  }

  .clean-counter__title {
    font-size: clamp(30px, 10vw, 42px);
  }

  .clean-counter__form,
  .clean-counter__result {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
  }

  .clean-counter__form {
    grid-template-columns: 1fr;
  }

  .clean-counter__time {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .clean-counter__time span {
    padding: 12px 8px;
  }

  .clean-counter__time strong {
    font-size: clamp(26px, 9vw, 36px);
  }

  .servants-admin-shell {
    padding: 22px;
  }

  .servants-form {
    padding: 16px;
  }

  .servants-form__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .servants-form__grid {
    grid-template-columns: 1fr;
  }

  .daily-admin__layout {
    grid-template-columns: 1fr;
  }

  .daily-admin__dates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 220px;
    min-height: 0;
  }

  .daily-admin__date {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .daily-admin__grid {
    grid-template-columns: 1fr;
  }

  .site-settings-admin__grid {
    grid-template-columns: 1fr;
  }

  .daily-index__grid {
    grid-template-columns: 1fr;
  }

  .servants-table-wrap {
    display: none;
  }

  .servants-mobile-list {
    display: grid;
    gap: 10px;
  }

  .servants-admin__header {
    margin-bottom: 18px;
  }

  .servants-admin__title {
    font-size: 30px;
  }

  .service-page-shell {
    padding: 22px;
    place-items: start;
  }

  .service-person__meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service-editor--assign,
  .service-editor__form {
    grid-template-columns: 1fr;
  }

  .service-editor button {
    width: 100%;
  }

  .service-editor__status {
    grid-template-columns: auto 46px minmax(0, 1fr);
  }
}

@media (min-width: 521px) and (max-width: 1024px) {
  body {
    min-height: 100svh;
  }

  .app-shell,
  .screen {
    min-height: 100svh;
  }

  .screen {
    padding: clamp(28px, 5vw, 48px);
  }

  .home-panel {
    width: min(100%, 680px);
    max-height: calc(100svh - clamp(56px, 10vw, 96px));
    transform: translateY(-1vh);
  }

  .group-name {
    margin-bottom: clamp(10px, 1.8vh, 16px);
    font-size: 13px;
  }

  .na-logo__ring {
    width: clamp(190px, min(34vw, 34svh), 330px);
  }

  h1 {
    font-size: clamp(42px, 6.6vw, 58px);
  }

  .daily-text {
    width: min(100%, 620px);
    max-height: min(26svh, 220px);
    margin-top: clamp(14px, 2.4vh, 22px);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.42;
  }

  .daily-audio {
    width: min(100%, 620px);
    margin-top: clamp(12px, 2vh, 18px);
  }

  .daily-link {
    margin-top: 12px;
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(1);
    box-shadow:
      0 0 10px rgba(247, 242, 232, 0.42),
      0 0 22px rgba(217, 185, 120, 0.18);
  }

  42% {
    opacity: 0.68;
    transform: scale(1.28);
    box-shadow:
      0 0 14px rgba(247, 242, 232, 0.66),
      0 0 30px rgba(217, 185, 120, 0.26);
  }

  48% {
    opacity: 1;
    transform: scale(1.9);
    box-shadow:
      0 0 20px rgba(247, 242, 232, 0.95),
      0 0 42px rgba(217, 185, 120, 0.52);
  }

  56% {
    opacity: 0.56;
    transform: scale(1.12);
    box-shadow:
      0 0 12px rgba(247, 242, 232, 0.48),
      0 0 26px rgba(217, 185, 120, 0.2);
  }
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes screen-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none;
  }

  .screen,
  .screen.is-leaving {
    animation: none;
  }
}
/* ===== Свободные служения в списке ===== */

.servants-mobile-card--free {
  order: -100;
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  min-height: 84px;

  padding: 16px 18px; /* ← ВОТ ЭТО главное */

  border: 1px solid rgba(217, 185, 120, 0.32);
  border-radius: 8px;

  background: rgba(247, 242, 232, 0.055);

  box-shadow:
    -8px 0 18px rgba(170, 60, 45, 0.10),
    8px 0 18px rgba(170, 60, 45, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.22);
}


/* ===== Рабочее собрание ===== */

.screen--work {
  align-items: start;
  place-items: start center;
  padding-top: 50px;
  padding-bottom: 132px;
}

.screen--work .work-page {
  margin-top: 50px;
}

.screen--work .work-timer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 620px);
  gap: 8px;
}

.screen--work .work-timer span {
  min-width: 0;
  padding: 12px 6px;
}

.screen--work .work-timer strong {
  font-size: clamp(22px, 6vw, 36px);
}

.screen--work .work-timer small {
  font-size: 9px;
}

.work-services-links {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 24px;
}

.work-services-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(217, 185, 120, 0.12);
  border: 1px solid rgba(217, 185, 120, 0.24);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(26px);
  animation: fadeInUp 0.55s ease-out forwards;
  transition: background 0.2s ease, transform 0.2s ease;
}

.work-services-link:nth-child(1) {
  animation-delay: 1.1s;
}

.work-services-link:nth-child(2) {
  animation-delay: 1.3s;
}

.work-services-link:nth-child(3) {
  animation-delay: 1.5s;
}

.work-services-link:hover {
  background: rgba(217, 185, 120, 0.18);
  transform: translateY(-1px);
}

.work-map-cta {
  position: fixed;
  z-index: 5;
  right: clamp(18px, 4vw, 48px);
  bottom: 0;
  display: grid;
  gap: 8px;
  width: min(100% - 36px, 320px);
  padding: 14px 16px 16px;
  border: 1px solid rgba(217, 185, 120, 0.28);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(9, 10, 15, 0.58);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.6s ease-out 1.45s forwards;
}

.work-map-cta p {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.work-map-cta .work-services-link {
  min-height: 48px;
  opacity: 1;
  transform: none;
  animation: none;
}

@media (max-width: 520px) {
  .screen--work {
    min-height: 100vh !important;
    min-height: 100svh !important;
    height: 100vh;
    height: 100svh;
    padding-bottom: 154px;
    overflow: hidden;
    animation: none !important;
    transform: none !important;
  }

  .work-map-cta {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none;
    box-sizing: border-box;
    display: grid !important;
    gap: 8px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 10px 10px 0 0;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translateY(0);
    animation: workMapRiseFromBottom 0.62s cubic-bezier(.18,.9,.22,1) 0.35s both;
  }

  .work-map-cta .work-services-link {
    display: inline-flex !important;
    width: 100%;
    min-height: 44px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
  }

  .work-map-cta p {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@keyframes workMapRiseFromBottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Свободные служения под таймером ===== */

.work-free-services,
.work-occupied-services {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: 20px;
}

.work-free-card,
.work-occupied-card {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 185, 120, 0.32);
  border-radius: 10px;
  background: rgba(247, 242, 232, 0.055);
  color: inherit;
  text-decoration: none;
  box-shadow:
    -8px 0 18px rgba(170, 60, 45, 0.10),
    8px 0 18px rgba(170, 60, 45, 0.07);
}


/* ===== Work screen animations ===== */

.screen--work .work-page__eyebrow,
.screen--work .work-page__title,
.screen--work .work-page__date,
.screen--work .work-page__note,
.screen--work .daily-page__back {
  animation: workFadeUp .65s ease both;
}

.screen--work .work-page__eyebrow { animation-delay: .05s; }
.screen--work .work-page__title { animation-delay: .12s; }
.screen--work .work-page__date { animation-delay: .2s; }
.screen--work .work-page__note { animation-delay: .55s; }
.screen--work .daily-page__back { animation-delay: .85s; }

.screen--work .work-timer span {
  animation: workTileFromBottom .7s cubic-bezier(.2,.8,.2,1) both;
}

.screen--work .work-timer span:nth-child(1) {
  animation-name: workTileFromLeft;
  animation-delay: .28s;
}

.screen--work .work-timer span:nth-child(2) {
  animation-name: workTileFromBottom;
  animation-delay: .36s;
}

.screen--work .work-timer span:nth-child(3) {
  animation-name: workTileFromBottom;
  animation-delay: .44s;
}

.screen--work .work-timer span:nth-child(4) {
  animation-name: workTileFromRight;
  animation-delay: .52s;
}

.screen--work .work-free-card {
  animation: workCardFromBottom .75s cubic-bezier(.2,.8,.2,1) both;
}

.screen--work .work-free-card:nth-child(1) {
  animation-delay: .65s;
}

.screen--work .work-free-card:nth-child(2) {
  animation-delay: .78s;
}

@keyframes workFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes workTileFromLeft {
  from {
    opacity: 0;
    transform: translateX(-46px) translateY(12px) scale(.92);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes workTileFromRight {
  from {
    opacity: 0;
    transform: translateX(46px) translateY(12px) scale(.92);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes workTileFromBottom {
  from {
    opacity: 0;
    transform: translateY(38px) scale(.92);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes workCardFromBottom {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.97);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen--work *,
  .screen--work *::before,
  .screen--work *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* ===== Исправление клика по книжке и модалки описания служения ===== */

/* Свободная карточка: левая часть — ссылка на страницу, книжка — отдельная кнопка */
.servants-mobile-card--free {
  order: -100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "main icon";
  align-items: center;
  gap: 8px 12px;
  min-height: 84px;
  padding: 14px;
}

.servants-mobile-card__free-main {
  grid-area: main;
  display: grid;
  gap: 6px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.servants-mobile-card__free-main strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.servants-mobile-card__free-main em {
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.servants-mobile-card__free-info,
.servants-mobile-card__info {
  grid-area: icon;
  display: inline-grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}

.servants-mobile-card__free-info iconify-icon,
.servants-mobile-card__info iconify-icon {
  display: block;
  pointer-events: none;
}

/* Фолбэк, если iconify не загрузился */
.servants-mobile-card__free-info:empty::before,
.servants-mobile-card__info:empty::before {
  content: "📖";
  font-size: 15px;
  line-height: 1;
}
.service-info-is-open {
  overflow: hidden;
}

.work-free-card__main {
  display: grid;
  gap: 6px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.work-free-card__main strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.work-free-card__main span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

/* ===== Мобильный бургер: прозрачный и поверх сайта ===== */

@media (max-width: 768px) {
  .app-shell {
    padding-top: 0 !important;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;

    width: auto;
    height: auto;
    min-height: 0;

    padding: 0;

    display: block;

    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none !important;

    z-index: 1000;
  }

  .nav-toggle {
    position: fixed;
    top: 14px;
    right: 14px;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid rgba(247, 242, 232, 0.14);
    border-radius: 999px;

    background: rgba(3, 4, 7, 0.16);
    backdrop-filter: blur(8px);

    transform: none;
    z-index: 1002;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 2px 0;

    background: var(--ink);
    border-radius: 999px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .nav-links {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100svh;

    padding: 82px 22px 32px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    background: rgba(3, 4, 7, 0.78);
    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;

    z-index: 1001;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__link {
    width: min(100%, 320px);

    justify-content: center;

    padding: 14px 18px;

    border-radius: 999px;

    background: rgba(247, 242, 232, 0.045);

    color: var(--ink);

    font-size: 18px;
    font-weight: 500;
    text-align: center;
  }

  .site-nav__link.is-active {
    background: rgba(217, 185, 120, 0.14);
    color: var(--gold);
  }

  .site-nav__link::after {
    display: none;
  }

  .screen {
    padding-top: 18px;
  }
}
/* ===== Одинаковый стиль всех свободных/просроченных служений ===== */

.servants-mobile-card.is-attention,
.servants-mobile-card--free {
  border: 1px solid rgba(217, 185, 120, 0.32) !important;

  background: rgba(247, 242, 232, 0.055) !important;

  box-shadow:
    -8px 0 18px rgba(170, 60, 45, 0.10),
    8px 0 18px rgba(170, 60, 45, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

/* Имя справа */

.servants-mobile-card.is-attention .servants-mobile-card__name {
  color: var(--gold) !important;
  font-size: 14px !important;
  text-transform: none !important;
}

/* Текст "Ищем служащего" */

.servants-mobile-card.is-attention .servants-mobile-card__main small,
.servants-mobile-card.is-attention .servants-mobile-card__clean {
  color: var(--gold) !important;

  font-size: 11px;
  font-weight: 700;
}

/* Отступы как у свободных */

.servants-mobile-card.is-attention {
  padding: 16px 18px !important;
}
/* ===== Work screen: красивая анимация всех плиток ===== */

.screen--work .work-timer span,
.screen--work .work-free-card {
  opacity: 0;
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(.18,.9,.22,1);
  animation-fill-mode: both;
  will-change: transform, opacity, filter;
}

/* Плитки таймера */
.screen--work .work-timer span:nth-child(1) {
  animation-name: workFlyLeft;
  animation-delay: .24s;
}

.screen--work .work-timer span:nth-child(2) {
  animation-name: workFlyBottom;
  animation-delay: .34s;
}

.screen--work .work-timer span:nth-child(3) {
  animation-name: workFlyTop;
  animation-delay: .44s;
}

.screen--work .work-timer span:nth-child(4) {
  animation-name: workFlyRight;
  animation-delay: .54s;
}

/* Все карточки служений, сколько бы их ни было */
.screen--work .work-free-card:nth-child(4n + 1) {
  animation-name: workFlyLeft;
  animation-delay: .66s;
}

.screen--work .work-free-card:nth-child(4n + 2) {
  animation-name: workFlyRight;
  animation-delay: .76s;
}

.screen--work .work-free-card:nth-child(4n + 3) {
  animation-name: workFlyBottom;
  animation-delay: .86s;
}

.screen--work .work-free-card:nth-child(4n + 4) {
  animation-name: workFlyTop;
  animation-delay: .96s;
}

@keyframes workFlyLeft {
  from {
    opacity: 0;
    transform: translateX(-70px) translateY(10px) scale(.9);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes workFlyRight {
  from {
    opacity: 0;
    transform: translateX(70px) translateY(10px) scale(.9);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes workFlyBottom {
  from {
    opacity: 0;
    transform: translateY(60px) scale(.9);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes workFlyTop {
  from {
    opacity: 0;
    transform: translateY(-48px) scale(.9);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
/* ===== Service info modal: paged 3/4 screen ===== */

.service-info-modal[hidden] {
  display: none !important;
}

.service-info-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: grid;
  place-items: center;

  width: 100vw;
  height: 100vh;
  height: 100svh;

  padding: 18px;

  background: rgba(3, 4, 7, 0.78);
  backdrop-filter: blur(14px);
}

.service-info-modal__panel {
  width: min(100%, 680px);
  height: 75vh;
  height: 75svh;

  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 14px;

  padding: 22px;

  border: 1px solid rgba(217, 185, 120, 0.34);
  border-radius: 22px;

  background:
    radial-gradient(circle at top, rgba(66, 94, 134, 0.2), transparent 34%),
    rgba(6, 7, 12, 0.98);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.03);

  overflow: hidden;
}

.service-info-modal__eyebrow {
  margin: 0;

  color: var(--gold);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-info-modal h2 {
  margin: 0;

  color: var(--ink);

  font-size: clamp(25px, 6vw, 40px);
  line-height: 1.05;

  white-space: normal;
}

.service-info-modal__content {
  min-height: 0;
  overflow: hidden;

  color: var(--soft);

  font-size: 15px;
  line-height: 1.65;

  white-space: pre-line;
}

.service-info-modal__pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;

  padding-top: 8px;
  border-top: 1px solid rgba(247, 242, 232, 0.1);
}

.service-info-modal__pager span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.service-info-modal__pager button,
.service-info-modal__close {
  min-height: 42px;
  border: 1px solid rgba(217, 185, 120, 0.34);
  border-radius: 999px;

  background: rgba(217, 185, 120, 0.12);
  color: var(--ink);

  cursor: pointer;

  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-info-modal__pager button:disabled {
  opacity: 0.32;
  cursor: default;
}

.service-info-modal__close {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
}

html.service-info-is-open,
body.service-info-is-open {
  overflow: hidden !important;
}

@media (max-width: 520px) {
  .service-info-modal {
    padding: 12px;
  }

  .service-info-modal__panel {
    width: 100%;
    height: 76svh;
    padding: 18px;
    border-radius: 18px;
  }

  .service-info-modal__content {
    font-size: 14px;
    line-height: 1.62;
  }

  .service-info-modal__pager {
    gap: 7px;
  }

  .service-info-modal__pager button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }

  .service-info-modal__close {
    min-height: 46px;
  }
}
/* ===== Work screen book icon ===== */

.work-free-card__right {
  all: unset;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: var(--gold);

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.work-free-card__right:hover {
  transform: scale(1.08);
  opacity: .9;
}

.work-free-card__right::before {
  content: "📖";

  display: block;

  font-size: 24px;
  line-height: 1;
}

.work-free-card__right iconify-icon {
  display: none !important;
}

/* ===== Занятые служения ===== */

.work-occupied-services {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: 20px;
}

.work-occupied-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 122, 105, 0.44);
  border-radius: 10px;
  background: rgba(96, 122, 105, 0.12);
  color: inherit;
  text-decoration: none;
  box-shadow:
    -8px 0 18px rgba(96, 122, 105, 0.18),
    8px 0 18px rgba(96, 122, 105, 0.12);
}

.work-occupied-card__main {
  display: grid;
  gap: 6px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.work-occupied-card__main strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.work-occupied-card__main span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.work-occupied-card__right {
  all: unset;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: var(--gold);

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.work-occupied-card__right:hover {
  transform: scale(1.08);
  opacity: .9;
}

.work-occupied-card__right::before {
  content: "📖";

  display: block;

  font-size: 24px;
  line-height: 1;
}

.work-occupied-card__right iconify-icon {
  display: none !important;
}

/* Анимации для страницы служений */
/* Анимации для заголовков */
.services-page__title,
.services-section__title {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.services-page__title {
  animation-delay: 0.2s;
}

.services-section__title {
  animation-delay: 0.4s;
}

/* Анимации для плашек */
.service-card {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInLeft 0.6s ease-out forwards;
}

/* Ступенчатая анимация для плашек */
.service-card:nth-child(1) { animation-delay: 0.6s; }
.service-card:nth-child(2) { animation-delay: 0.8s; }
.service-card:nth-child(3) { animation-delay: 1.0s; }
.service-card:nth-child(4) { animation-delay: 1.2s; }
.service-card:nth-child(5) { animation-delay: 1.4s; }
.service-card:nth-child(6) { animation-delay: 1.6s; }
.service-card:nth-child(7) { animation-delay: 1.8s; }
.service-card:nth-child(8) { animation-delay: 2.0s; }

.services-page__back {
  display: inline-flex;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, 0.36);
  background: rgba(217, 185, 120, 0.12);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.services-page__back:hover,
.services-page__back:focus-visible {
  background: rgba(217, 185, 120, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.services-page__back:focus-visible {
  outline: 2px solid rgba(217, 185, 120, 0.45);
  outline-offset: 4px;
}

/* ===== Button radius cap ===== */

button,
[type="button"],
[type="submit"],
.daily-audio__button,
.login-form__link,
.servants-form__submit,
.service-editor button,
.service-editor__list-link,
.service-person__info,
.work-services-link,
.work-meeting-tab,
.clean-counter__form button,
.clean-counter__edit,
.services-page__back,
.service-info-modal__pager button,
.service-info-modal__close,
.servants-mobile-card__icons a,
.servants-mobile-card__icons span,
.servants-mobile-card__free-info,
.servants-mobile-card__info,
.work-free-card__right,
.work-occupied-card__right {
  border-radius: 10px !important;
}

/* Ключевые кадры */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes servantsToastIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes servantsToastOut {
  to {
    opacity: 0;
    transform: translateY(12px) scale(.98);
    visibility: hidden;
  }
}
