: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;
}

.nav-toggle {
  display: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 16px 12px;
  color: var(--muted);
  font-size: 13px;
  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: flex;
  }

  .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;
  padding-right: 36px;
  padding-bottom: 52px;
  animation: none;
  transform: none;
}

.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;
  overflow: hidden;
  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;
}

.shooting-star {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(247, 242, 232, 0) 0%,
    rgba(247, 242, 232, 0.22) 22%,
    #f7f2e8 58%,
    rgba(217, 185, 120, 0.95) 100%
  );
  box-shadow:
    0 0 6px rgba(247, 242, 232, 0.85),
    0 0 16px rgba(217, 185, 120, 0.5);
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 50%;
}

.shooting-star::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow:
    0 0 8px #fff,
    0 0 16px rgba(217, 185, 120, 0.9);
}

.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: 21;
  top: 22vh;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 6px 14px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(7, 9, 15, 0.72);
  border: 1px solid rgba(217, 185, 120, 0.28);
  border-right: 0;
  border-radius: 10px 0 0 10px !important;
  box-shadow: -8px 8px 20px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  transform: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, top 0.2s ease;
}

.work-meeting-tab__text {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}

.work-meeting-tab:hover,
.work-meeting-tab:focus-visible {
  background: rgba(217, 185, 120, 0.14);
  border-color: rgba(217, 185, 120, 0.5);
  transform: translateX(-2px);
}

.work-meeting-tab__label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
}

.work-meeting-tab__date {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1;
}

.meeting-ticker {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow: hidden;
  height: calc(36px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color: var(--ink);
  background: rgba(7, 9, 15, 0.78);
  border-top: 1px solid rgba(217, 185, 120, 0.28);
  pointer-events: auto;
  text-decoration: none;
  cursor: pointer;
}

.meeting-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 4.5rem;
  min-height: 38px;
  animation: meetingTicker 38s linear infinite;
}

.meeting-ticker:hover .meeting-ticker__track {
  animation-play-state: paused;
}

.meeting-ticker__item {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.meeting-ticker__item b {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meeting-ticker__item i {
  color: rgba(247, 242, 232, 0.86);
  font-style: normal;
  font-weight: 600;
}

.meeting-ticker__item > * + *::before {
  margin: 0 12px;
  color: rgba(217, 185, 120, 0.55);
  content: "·";
  font-weight: 700;
}

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

@keyframes meetingTicker {
  from {
    transform: translateX(0);
  }

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

.na-logo {
  display: inline-grid;
  justify-items: center;
  width: min(100%, 560px);
  color: var(--ink);
  text-decoration: none;
}

.na-logo__ring {
  position: relative;
  display: grid;
  width: min(100%, clamp(280px, 68vw, 520px));
  height: auto;
  aspect-ratio: auto;
  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: auto;
  max-height: min(38svh, 360px);
  object-fit: contain;
  object-position: center;
  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);
}

.next-meeting {
  display: none !important;
}

.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__human {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.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;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 3px 10px;
  width: max-content;
  max-width: min(calc(100vw - 32px), 420px);
  padding: 14px 18px;
  border: 1px solid rgba(112, 214, 156, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(23, 54, 38, 0.95), rgba(9, 22, 15, 0.5)),
    rgba(6, 7, 12, 0.96);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(127, 217, 165, 0.12);
  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::before {
  content: "\2713";
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(112, 214, 156, 0.22);
  color: #7fd9a5;
  font-size: 13px;
  font-weight: 800;
}

.servants-toast strong {
  grid-column: 2;
  color: #9fe8bd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.servants-toast span {
  grid-column: 2;
  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;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  line-height: 1;
  white-space: normal;
}

.service-assignment__weekday,
.service-assignment__notice {
  margin: 0;
  color: var(--soft);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
  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.18);
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.78);
  color: var(--ink);
}

.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 {
    padding: 11px 5px 12px;
  }

  .work-meeting-tab__label,
  .work-meeting-tab__date {
    font-size: 10px;
  }

  .meeting-ticker {
    height: calc(34px + env(safe-area-inset-bottom, 0px));
  }

  .meeting-ticker__item {
    font-size: 11px;
  }

  .na-logo {
    width: min(100%, 360px);
  }

  .na-logo__ring {
    width: min(100%, clamp(240px, 82vw, 340px));
  }

  .na-logo__image {
    width: 100%;
    height: auto;
    max-height: min(28svh, 240px);
  }

  .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: min(100%, clamp(240px, 52vw, 420px));
  }

  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;
  }

  .shooting-star {
    display: 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.38);
  border-radius: 10px;
  background: rgba(7, 9, 15, 0.82);
  color: var(--ink);
  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: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.work-free-card__main span {
  color: #f0d9a4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

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

@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-tools {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1012;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
  }

  .nav-toggle {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(247, 242, 232, 0.22);
    border-radius: 999px;
    background: rgba(3, 4, 7, 0.55);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    transform: none;
    z-index: 1012;
  }

  .nav-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 18px;
    height: 2px;
    margin: -1px 0 0 -9px;
    background: var(--ink);
    border-radius: 999px;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .nav-toggle span:nth-child(1) {
    transform: translateY(-6px);
  }

  .nav-toggle span:nth-child(3) {
    transform: translateY(6px);
  }

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

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

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

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

    width: 100%;
    height: 100svh;

    padding: 68px 18px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    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(157, 201, 168, 0.42);
  border-radius: 10px;
  background: rgba(7, 9, 15, 0.82);
  color: var(--ink);
  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: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.work-occupied-card__main span {
  color: #c5e0cc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.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 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  opacity: 1;
  transform: none;
  animation: fadeInUp 0.8s ease-out both;
}

.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;
}

@media (min-width: 769px) {
  .screen--services {
    height: 100svh;
    min-height: 100svh !important;
    max-height: 100svh;
    overflow: hidden;
    align-content: stretch;
    place-items: stretch center;
    padding: 108px 48px 64px !important;
  }

  .screen--services .services-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "free-title occupied-title"
      "free-list occupied-list"
      "back back";
    column-gap: 40px;
    row-gap: 12px;
    width: min(100%, 1120px);
    height: 100%;
    min-height: 0;
  }

  .screen--services .services-page > .services-section__title:nth-of-type(1) {
    grid-area: free-title;
    margin: 0;
    font-size: clamp(26px, 2.4vw, 32px);
    animation: none;
  }

  .screen--services .services-page > .services-section__title:nth-of-type(2) {
    grid-area: occupied-title;
    margin: 0;
    font-size: clamp(26px, 2.4vw, 32px);
    animation: none;
  }

  .screen--services .work-free-services {
    grid-area: free-list;
  }

  .screen--services .work-occupied-services {
    grid-area: occupied-list;
  }

  .screen--services .work-free-services,
  .screen--services .work-occupied-services {
    margin-top: 0;
    min-height: 0;
    overflow: auto;
    align-content: start;
    gap: 8px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 185, 120, 0.35) transparent;
  }

  .screen--services .services-page__back {
    grid-area: back;
    justify-self: start;
    margin-top: 4px;
  }

  .screen--services .work-free-card,
  .screen--services .work-occupied-card {
    min-height: 62px;
    padding: 12px 16px;
  }

  .screen--services .work-free-card__main strong,
  .screen--services .work-occupied-card__main strong {
    font-size: 16px;
  }
}

/* ===== Тема («Такова тема») ===== */

.screen--theme {
  padding: 0;
  place-items: stretch;
  overflow: hidden;
  background: #000;
  min-height: 100svh;
  height: 100svh;
  max-height: 100svh;
}

.screen--theme::before {
  display: none;
}

.theme-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding: 4px 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: #000;
}

.theme-page::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: url("/assets/img/theme-bg.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  opacity: 0.55;
  content: "";
  pointer-events: none;
}

.theme-page__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(72vw, 300px);
  height: auto;
  flex: 0 0 auto;
  margin: 0 auto;
  pointer-events: none;
  animation: themeFadeIn 0.8s both;
}

.theme-page__content {
  position: relative;
  z-index: 4;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: -18px;
  text-align: center;
}

.theme-page__lead {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  animation: themeFadeIn 1s 0.6s both;
}

.theme-page__topic {
  margin: 13px 0 0;
  max-width: 100%;
  color: #fff;
  font-size: clamp(22px, 8vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: 0 0 10px rgba(217, 185, 120, 0.58);
  animation: themeBounceUp 0.75s 1.2s both;
}

.theme-page__topic.is-changing {
  animation: themeTopicChange 0.42s both;
}

.theme-page__actions {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
  animation: themeFadeIn 0.8s 1.6s both;
}

.theme-page__action {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(217, 185, 120, 0.5);
  background: rgba(217, 185, 120, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.theme-page__action:hover,
.theme-page__action:focus-visible {
  background: rgba(217, 185, 120, 0.22);
}

.theme-page__action:focus-visible {
  outline: 2px solid rgba(217, 185, 120, 0.45);
  outline-offset: 3px;
}

.theme-page__done {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

@keyframes themeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes themeBounceUp {
  0% { opacity: 0; transform: translateY(70px); }
  60% { opacity: 1; transform: translateY(-9px); }
  80% { transform: translateY(4px); }
  100% { transform: none; }
}

@keyframes themeTopicChange {
  0% { opacity: 0; transform: translateY(28px) scale(0.96); }
  70% { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { transform: none; }
}

@media (max-height: 720px) {
  .theme-page__logo { width: min(58vw, 220px); }
  .theme-page__content { margin-top: -10px; }
}

@media (max-width: 768px) {
  .screen--theme,
  .screen.screen--theme {
    min-height: 100svh !important;
    max-height: 100svh !important;
    height: 100svh;
    padding: 0 !important;
  }
}

@media (min-width: 769px) {
  .screen--theme {
    min-height: 100svh !important;
    height: 100svh;
    max-height: 100svh !important;
    overflow: hidden;
    padding: 0 !important;
    place-items: stretch;
    background: #000;
  }

  .theme-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 108px 72px 72px;
  }

  .theme-page::before {
    opacity: 0.5;
    background-position: 78% center;
  }

  .theme-page::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.62) 36%,
      rgba(0, 0, 0, 0.22) 62%,
      transparent 84%
    );
    content: "";
    pointer-events: none;
  }

  .theme-page__logo {
    z-index: 3;
    width: min(280px, 22vw);
    margin: 0;
  }

  .theme-page__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    width: min(720px, 54vw);
    margin-top: 0;
    text-align: left;
  }

  .theme-page__lead {
    color: var(--gold);
    font-size: 22px;
    letter-spacing: 0.04em;
  }

  .theme-page__topic {
    margin-top: 18px;
    max-width: none;
    font-size: clamp(48px, 5.8vw, 92px);
    text-align: left;
    text-shadow: 0 0 18px rgba(217, 185, 120, 0.42);
  }

  .theme-page__actions {
    width: auto;
    margin-top: 0;
    padding-top: 16px;
    text-align: left;
  }

  .theme-page__action {
    min-height: 52px;
    padding: 0 28px;
    font-size: 15px;
  }

  .theme-page__done {
    font-size: 16px;
    max-width: 28ch;
  }

  .site-nav__link {
    padding: 24px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-page__logo,
  .theme-page__lead,
  .theme-page__topic,
  .theme-page__actions,
  .services-page__title,
  .services-section__title,
  .service-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}

/* ===== 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,
.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;
  }
}

/* ===== Мобильное меню: виджеты (Ежедневник / Счётчик / Рабочее собрание / Болталка) ===== */

.nav-menu {
  display: none;
}

@media (min-width: 769px) {
  .nav-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-nav__link--plain {
    display: none !important;
  }

  .nav-links {
    overflow-y: auto;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .nav-pill,
  .nav-pill--home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(247, 242, 232, 0.06);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-align: center;
  }

  .nav-pill--kassa {
    border-color: rgba(217, 185, 120, 0.55);
    background: rgba(217, 185, 120, 0.16);
    color: var(--gold);
    font-weight: 700;
  }

  .nav-pill--home {
    border-color: rgba(217, 185, 120, 0.5);
    background: rgba(217, 185, 120, 0.14);
    color: var(--gold);
    font-weight: 700;
  }

  .nav-pill-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nav-widget,
  .nav-tile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: none;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(247, 242, 232, 0.05);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
  }

  .nav-widget__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(217, 185, 120, 0.14);
    color: var(--gold);
    overflow: hidden;
  }

  .nav-widget__icon svg {
    width: 16px;
    height: 16px;
  }

  .nav-widget__icon--counter {
    background: rgba(96, 122, 105, 0.24);
    color: #a8c9b3;
  }

  .nav-widget__icon--daily {
    background: rgba(66, 94, 134, 0.26);
    color: #9fb4d8;
  }

  .nav-widget__body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
  }

  .nav-widget__eyebrow {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-widget__title {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
  }

  .nav-widget__pill {
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(247, 242, 232, 0.08);
    padding: 2px 8px;
    color: var(--soft);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-widget__arrow {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(217, 185, 120, 0.16);
    color: var(--gold);
  }

  .nav-widget__arrow svg {
    width: 16px;
    height: 16px;
  }

  .nav-tile {
    justify-content: space-between;
    border-color: rgba(217, 185, 120, 0.45);
    background: linear-gradient(135deg, rgba(217, 185, 120, 0.24), rgba(170, 103, 73, 0.16));
    font-size: 15px;
    font-weight: 700;
  }

  .nav-tile__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(7, 9, 15, 0.32);
    color: var(--gold);
  }

  .nav-tile__icon svg {
    width: 17px;
    height: 17px;
  }
}

.meeting-ticker:hover,
.meeting-ticker:focus-visible {
  background: rgba(7, 9, 15, 0.9);
  border-top-color: rgba(217, 185, 120, 0.5);
}

.meeting-ticker:focus-visible {
  outline: 2px solid rgba(217, 185, 120, 0.55);
  outline-offset: -2px;
}

/* ===== Мобильное меню в стиле LOFT ===== */

@media (max-width: 768px) {
  .nav-tools {
    top: 10px;
    right: 12px;
    gap: 8px;
  }

  .nav-toggle,
  .staff-pin__toggle,
  .staff-pin-kassa-btn {
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }

  .nav-toggle.active {
    border-color: rgba(217, 185, 120, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 2px rgba(217, 185, 120, 0.1), 0 10px 28px rgba(0, 0, 0, 0.34);
  }

  .nav-links {
    padding: 72px 11px 24px;
    display: block;
    background:
      radial-gradient(circle at 82% 5%, rgba(217, 185, 120, 0.1), transparent 30%),
      rgba(2, 3, 5, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    backdrop-filter: blur(24px) saturate(120%);
  }

  .nav-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: min(100%, 368px);
    margin: 0 auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.23), 0 20px 54px rgba(0, 0, 0, 0.36);
  }

  .nav-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background:
      radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.17), transparent 48%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.23), 0 8px 20px rgba(0, 0, 0, 0.22);
    color: #f7f2e8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  }

  .nav-card::after {
    display: none;
  }

  .nav-card:active {
    transform: scale(0.98);
  }

  .nav-card.is-active,
  .nav-card--home {
    border-color: rgba(217, 185, 120, 0.64);
    background:
      radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.2), transparent 48%),
      linear-gradient(145deg, rgba(217, 185, 120, 0.22), rgba(255, 255, 255, 0.055));
    color: #fff8e8;
  }

  .nav-card svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nav-card--home svg {
    stroke-width: 1.6;
  }

  .nav-card--wide {
    grid-column: 1 / -1;
  }

  .nav-card--detail {
    min-height: 66px;
    justify-content: flex-start;
    text-align: left;
  }

  .nav-card--detail > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
  }

  .nav-card--detail b {
    color: #f7f2e8;
    font-size: 13px;
  }

  .nav-card--detail small {
    display: -webkit-box;
    overflow: hidden;
    color: #aaa79f;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .nav-card--chat {
    min-height: 48px;
    border-color: rgba(217, 185, 120, 0.46);
    background: linear-gradient(135deg, rgba(217, 185, 120, 0.2), rgba(170, 103, 73, 0.12));
  }

  .nav-card--feature {
    min-height: 72px;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
  }

  .nav-card--feature .nav-card__copy {
    display: flex;
    flex: 0 0 116px;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
  }

  .nav-card__copy small {
    color: #94938e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .nav-card__copy b {
    color: #d9b978;
    font-size: 16px;
    line-height: 1.05;
  }

  .nav-card__value {
    display: -webkit-box;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: #f7f2e8;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .nav-card--feature > svg {
    width: 16px;
    height: 16px;
    color: #d9b978;
  }

  .nav-card--staff,
  .nav-card--kassa {
    border-color: rgba(217, 185, 120, 0.48);
    color: #d9b978;
  }

  .nav-card[hidden] {
    display: none !important;
  }

  .nav-menu .site-nav__seventh {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .nav-menu {
    gap: 7px;
    padding: 10px;
  }

  .nav-card {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 12px;
  }

  .nav-card--feature .nav-card__copy {
    flex-basis: 104px;
  }

  .nav-card__copy b {
    font-size: 15px;
  }
}

/* ===== Собрания группы ===== */

.screen--meetings {
  display: grid;
  align-items: stretch;
  place-items: stretch center;
  height: 100svh;
  min-height: 100svh !important;
  max-height: 100svh !important;
  overflow: hidden;
  padding: clamp(10px, 2.2svh, 28px) 16px clamp(10px, 2svh, 22px) !important;
}

.meetings-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.meetings-page__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.meetings-page__eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: clamp(10px, 1.4svh, 11px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meetings-page__title {
  margin: 0;
  font-size: clamp(24px, 5svh, 40px);
  font-weight: 800;
  line-height: 1.05;
}

.meetings-list {
  display: grid;
  gap: clamp(5px, 1svh, 8px);
  min-width: 0;
  margin-top: clamp(12px, 3.2svh, 24px);
}

.meetings-card {
  padding: clamp(6px, 1.1svh, 10px) 14px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 12px;
  background: rgba(247, 242, 232, 0.04);
}

.meetings-card__badge {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meetings-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.meetings-card__date {
  margin: 0;
  overflow: hidden;
  font-size: clamp(12px, 1.8svh, 16px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meetings-card__time {
  margin: 0;
  flex: 0 0 auto;
  color: var(--soft);
  font-size: clamp(11px, 1.5svh, 13px);
  font-weight: 600;
  white-space: nowrap;
}

.meetings-card.is-next {
  border-color: rgba(217, 185, 120, 0.55);
  background:
    radial-gradient(circle at 12% 0, rgba(217, 185, 120, 0.22), transparent 48%),
    rgba(217, 185, 120, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(247, 242, 232, 0.12);
}

.meetings-card.is-next .meetings-card__badge {
  color: var(--gold);
}

.meetings-card.is-live {
  border-color: rgba(96, 122, 105, 0.55);
}

.meetings-assist {
  --meetings-countdown-max: clamp(20px, 3.4svh, 28px);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-top: clamp(12px, 2.6svh, 20px);
  padding: clamp(12px, 2svh, 18px) 16px;
  border: 1px solid rgba(217, 185, 120, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0, rgba(217, 185, 120, 0.16), transparent 70%),
    rgba(3, 4, 7, 0.22);
  text-align: center;
}

.meetings-assist.is-live {
  border-color: rgba(96, 122, 105, 0.5);
  background:
    radial-gradient(circle at 50% 0, rgba(96, 122, 105, 0.22), transparent 70%),
    rgba(3, 4, 7, 0.22);
}

.meetings-assist__label {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meetings-assist__countdown {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: calc(var(--meetings-countdown-max) * 1.2);
  margin: 0;
  overflow: hidden;
  font-size: var(--meetings-countdown-max);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: calc(var(--meetings-countdown-max) * 1.2);
  white-space: nowrap;
}

.meetings-assist__hint {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: clamp(13px, 1.8svh, 15px);
  font-weight: 500;
  line-height: 1.4;
}

.meetings-notes {
  margin-top: clamp(10px, 2svh, 16px);
  padding: clamp(10px, 1.6svh, 16px) 16px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 14px;
  background: rgba(3, 4, 7, 0.28);
}

.meetings-notes__title {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meetings-notes__list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  font-size: clamp(12px, 1.7svh, 14px);
  line-height: 1.45;
}

.meetings-notes__list li + li {
  margin-top: 6px;
}

.meetings-notes__map {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.meetings-notes__map:hover,
.meetings-notes__map:focus-visible {
  text-decoration: underline;
}

.screen--meetings .daily-page__back {
  margin-top: clamp(10px, 1.8svh, 16px);
}

@media (min-width: 769px) {
  .screen--meetings {
    height: auto;
    min-height: 100svh !important;
    max-height: none !important;
    overflow: auto;
    align-content: start;
    place-items: start center;
    padding: 108px 48px 64px !important;
  }

  .meetings-page {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 48px;
    row-gap: 28px;
    width: min(100%, 1080px);
    height: auto;
  }

  .meetings-page__intro {
    grid-column: 1 / -1;
  }

  .meetings-page__eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .meetings-page__title {
    font-size: clamp(36px, 4vw, 52px);
  }

  .meetings-list {
    margin-top: 0;
    gap: 10px;
  }

  .meetings-card {
    padding: 14px 18px;
  }

  .meetings-card__badge {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .meetings-card__date {
    font-size: 18px;
  }

  .meetings-card__time {
    font-size: 14px;
  }

  .meetings-page__side {
    gap: 16px;
  }

  .meetings-assist,
  .meetings-notes {
    margin-top: 0;
  }

  .meetings-assist {
    --meetings-countdown-max: clamp(24px, 2.4vw, 32px);
    padding: 22px 20px;
  }

  .meetings-assist__hint {
    font-size: 15px;
  }

  .meetings-notes {
    padding: 18px 20px;
  }

  .meetings-notes__list {
    font-size: 14px;
  }

  .screen--meetings .daily-page__back {
    margin-top: 4px;
  }
}

@media (max-height: 640px) {
  .meetings-page__eyebrow {
    display: none;
  }

  .meetings-card__badge {
    display: none;
  }

  .meetings-card.is-next .meetings-card__badge {
    display: block;
    margin-bottom: 2px;
  }

  .meetings-assist__hint {
    display: none;
  }
}

.pwa-prompt {
  position: fixed;
  left: 50%;
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100vw - 24px), 420px);
  padding: 10px 8px 10px 10px;
  border: 1px solid rgba(217, 185, 120, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(18, 20, 28, 0.94), rgba(7, 9, 15, 0.9)),
    rgba(7, 9, 15, 0.88);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(247, 242, 232, 0.08);
  color: var(--ink);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.18, 0.9, 0.22, 1);
}

.pwa-prompt[hidden] {
  display: none !important;
}

.pwa-prompt.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pwa-prompt__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217, 185, 120, 0.28);
  border-radius: 10px;
  background: #05060a;
  object-fit: cover;
}

.pwa-prompt__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.pwa-prompt__title,
.pwa-prompt__text {
  margin: 0;
}

.pwa-prompt__title {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pwa-prompt__text {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-prompt__add {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #141108;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.pwa-prompt__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pwa-prompt__add:hover,
.pwa-prompt__add:focus-visible,
.pwa-prompt__close:hover,
.pwa-prompt__close:focus-visible {
  filter: brightness(1.08);
}

.staff-page .pwa-prompt {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

html.nav-is-open .pwa-prompt,
html.site-guard-is-locked .pwa-prompt,
html.is-pwa .pwa-prompt {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .pwa-prompt {
    transition: opacity 0.2s ease;
    transform: translateX(-50%);
  }
}
