/* ---------- Кабинет воспитателя ---------- */

.lk-body {
  background: #fbfbfc;
}

[hidden] {
  display: none !important;
}

/* ---------- Оболочка ---------- */

.lk {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.lk-side {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 26px 22px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.lk-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lk-brand img {
  height: 40px;
  width: auto;
}

.lk-role {
  padding: 10px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 18%, #fff);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.lk-nav {
  display: grid;
  gap: 2px;
}

.lk-nav a {
  position: relative;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.96rem;
  transition: background 0.16s ease, color 0.16s ease;
}

.lk-nav a:hover {
  background: color-mix(in srgb, var(--blue) 8%, #fff);
}

.lk-nav a[aria-current] {
  background: color-mix(in srgb, var(--blue) 12%, #fff);
  color: var(--blue-deep);
}

.lk-nav a[aria-current]::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateY(-50%);
}

.lk-side-foot {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.lk-side-foot a:hover {
  color: var(--blue);
}

.lk-work {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lk-top {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 clamp(18px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.lk-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 1.15rem;
  cursor: pointer;
}

.lk-top-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lk-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lk-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  transition: background 0.16s ease;
}

.lk-user:hover {
  background: color-mix(in srgb, var(--blue) 8%, #fff);
}

.lk-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.lk-user-name {
  display: grid;
  line-height: 1.2;
}

.lk-user-name strong {
  font-size: 0.9rem;
}

.lk-user-name span {
  color: var(--muted);
  font-size: 0.76rem;
}

.lk-signout {
  padding: 9px 15px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.lk-signout:hover {
  border-color: var(--red);
  color: var(--red);
}

.lk-content {
  flex: 1;
  padding: clamp(24px, 3.4vw, 44px) clamp(18px, 3vw, 38px) 80px;
  max-width: 1220px;
  width: 100%;
}

/* ---------- Заголовки и панели ---------- */

.lk-head {
  margin-bottom: clamp(20px, 2.6vw, 32px);
}

.lk-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.lk-head-note {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.lk-grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.lk-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(70, 112, 181, 0.06);
}

.lk-panel-title {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lk-panel--wide {
  grid-column: 1 / -1;
}

/* ---------- Карточка воспитателя ---------- */

.lk-me {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lk-me .lk-avatar {
  width: 62px;
  height: 62px;
  font-size: 1.16rem;
}

.lk-me-name {
  font-size: 1.1rem;
  font-weight: 800;
}

.lk-me-role {
  color: var(--muted);
  font-size: 0.9rem;
}

.lk-props {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lk-props div {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.lk-props dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lk-props dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lk-props dd.lk-props-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Маршрут занятия ---------- */

.lk-steps {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: lkstep;
}

.lk-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  counter-increment: lkstep;
}

.lk-steps li::before {
  content: counter(lkstep);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 26%, #fff);
  color: var(--blue-deep);
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  font-weight: 700;
}

.lk-steps strong {
  grid-column: 2;
  display: block;
  font-size: 0.98rem;
}

.lk-steps span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lk-steps--compact span {
  display: none;
}

.lk-dash-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk-dash-quick li {
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, #fff);
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

/* ---------- Списки ---------- */

.lk-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lk-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.lk-photo-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* ---------- Загрузка фото доброго дела ---------- */

.lk-drop {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  min-height: 260px;
  padding: 26px 22px 20px;
  border: 2px solid transparent;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 8% 0%, color-mix(in srgb, var(--green) 16%, transparent), transparent 42%),
    radial-gradient(80% 70% at 100% 12%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 40%),
    radial-gradient(90% 80% at 90% 100%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 46%),
    #fff;
  cursor: pointer;
  outline: none;
  box-shadow: 0 16px 34px rgba(70, 112, 181, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lk-drop::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background-image: linear-gradient(
    120deg,
    var(--green),
    var(--blue),
    var(--gold),
    var(--orange),
    var(--red),
    var(--green)
  );
  background-size: 280% 280%;
  opacity: 0.92;
  animation: brand-shimmer 7s linear infinite;
}

.lk-drop:hover,
.lk-drop:focus-visible,
.lk-drop.is-drag {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(70, 112, 181, 0.16);
}

.lk-drop:hover::before,
.lk-drop:focus-visible::before,
.lk-drop.is-drag::before {
  animation-duration: 2.2s;
}

.lk-drop--filled {
  min-height: 0;
  cursor: default;
  background: #fff;
}

.lk-drop.is-invalid::before {
  background: var(--red);
  animation: none;
  opacity: 1;
}

.lk-drop.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

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

.lk-drop-invite {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px 4px;
  text-align: center;
}

.lk-drop-stack {
  position: relative;
  width: 108px;
  height: 28px;
}

.lk-drop-stack span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 46px;
  height: 54px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(47, 82, 144, 0.16);
}

.lk-drop-stack span:nth-child(1) {
  background: var(--gold);
  transform: translate(-50%, 4px) rotate(-18deg) translateX(-22px);
}

.lk-drop-stack span:nth-child(2) {
  background: var(--orange);
  transform: translate(-50%, 4px) rotate(16deg) translateX(22px);
}

.lk-drop-stack span:nth-child(3) {
  background: var(--blue);
  transform: translate(-50%, 0);
}

.lk-drop-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-top: 10px;
  margin-bottom: 4px;
  border-radius: 22px;
  background: #fff;
  color: var(--blue-deep);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px color-mix(in srgb, var(--blue) 28%, transparent),
    0 10px 20px rgba(70, 112, 181, 0.16);
}

.lk-drop-icon svg {
  width: 42px;
  height: 42px;
}

.lk-drop-title {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.lk-drop-text {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.lk-drop-dots {
  display: flex;
  gap: 7px;
  margin-top: 2px;
}

.lk-drop-dots i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.lk-drop-dots i:nth-child(1) { background: var(--green); }
.lk-drop-dots i:nth-child(2) { background: var(--blue); }
.lk-drop-dots i:nth-child(3) { background: var(--gold); }
.lk-drop-dots i:nth-child(4) { background: var(--orange); }
.lk-drop-dots i:nth-child(5) { background: var(--red); }

.lk-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(70, 112, 181, 0.22);
}

.lk-drop-count {
  justify-self: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lk-drop-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
}

.lk-drop-thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(47, 82, 144, 0.16);
}

.lk-drop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lk-drop-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.72);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.lk-drop-remove:hover {
  background: var(--red);
}

.lk-drop-add {
  display: grid;
  place-content: center;
  place-items: center;
  gap: 6px;
  aspect-ratio: 1;
  border: 2px dashed color-mix(in srgb, var(--blue) 32%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--blue) 6%, #fff);
  color: var(--blue-deep);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.lk-drop-add:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--gold) 16%, #fff);
}

.lk-drop-add-plus {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.lk-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.lk-item:hover {
  border-color: color-mix(in srgb, var(--blue) 34%, #fff);
  transform: translateY(-1px);
}

.lk-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.lk-item-title {
  font-size: 1rem;
  font-weight: 800;
}

.lk-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.lk-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.lk-chip {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lk-chip--published {
  background: color-mix(in srgb, var(--green) 16%, #fff);
  color: color-mix(in srgb, var(--green) 78%, #000);
}

.lk-chip--draft {
  background: color-mix(in srgb, var(--gold) 24%, #fff);
  color: #7a5306;
}

.lk-chip--quality {
  background: color-mix(in srgb, var(--blue) 12%, #fff);
  color: var(--blue-deep);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.lk-empty {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 22px;
  border: 2px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Кнопки ---------- */

.lk-btn,
.lk-btn--ghost,
.lk-btn--soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lk-btn {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(70, 112, 181, 0.24);
}

.lk-btn:hover {
  background: var(--blue-deep);
}

.lk-btn--ghost {
  background: #fff;
  border-color: var(--blue);
  color: var(--blue-deep);
}

.lk-btn--ghost:hover {
  background: var(--blue);
  color: #fff;
}

.lk-btn--soft {
  min-height: 40px;
  padding: 0 15px;
  background: color-mix(in srgb, var(--blue) 9%, #fff);
  color: var(--blue-deep);
  font-size: 0.88rem;
}

.lk-btn--soft:hover {
  background: color-mix(in srgb, var(--blue) 18%, #fff);
}

.lk-btn--danger {
  background: none;
  border-color: var(--line);
  color: var(--muted);
}

.lk-btn--danger:hover {
  border-color: var(--red);
  color: var(--red);
}

.lk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Формы ---------- */

.lk-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lk-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.lk-field--wide {
  grid-column: 1 / -1;
}

.lk-field-label {
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lk-field input,
.lk-field select,
.lk-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.lk-field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.6;
}

.lk-field input:focus-visible,
.lk-field select:focus-visible,
.lk-field textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
}

.lk-field input.is-readonly,
.lk-field input[readonly] {
  background: color-mix(in srgb, var(--blue) 5%, #fff);
  color: var(--muted);
  cursor: default;
}

.lk-field input.is-invalid,
.lk-field select.is-invalid,
.lk-field textarea.is-invalid {
  border-color: var(--red);
}

.lk-module-now {
  margin: 0 0 8px;
  color: var(--blue-deep, #163a66);
  font-size: 0.98rem;
  line-height: 1.4;
}

.lk-now {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--tone, var(--gold)) 28%, var(--line));
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--tone, var(--gold)) 16%, #fff),
      color-mix(in srgb, var(--blue) 6%, #fff)
    );
  box-shadow: var(--shadow);
}

.lk-now-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lk-now-quality {
  margin: 0;
  color: var(--blue-deep, #163a66);
  font-family: "Caveat", "Nunito", cursive;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.05;
}

.lk-now-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lk-now-actions {
  margin-top: 10px;
}

.lk-diary-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.lk-diary-day {
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 92px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--blue-deep, #163a66);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lk-diary-week {
  min-width: 168px;
}

.lk-diary-day:hover {
  border-color: var(--blue);
}

.lk-diary-day-wd {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.lk-diary-day-n {
  font-size: 0.95rem;
  font-weight: 800;
}

.lk-diary-day-st {
  font-size: 0.72rem;
  color: var(--muted);
}

.lk-diary-day.is-active {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, #fff);
}

.lk-diary-day.is-done:not(.is-active) {
  border-color: color-mix(in srgb, var(--green) 50%, var(--line));
}

.lk-diary-day.is-future {
  opacity: 0.72;
}

.lk-diary-q {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.lk-diary-q:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.lk-diary-q-text {
  margin: 0;
  font-weight: 800;
  line-height: 1.4;
}

.lk-diary-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lk-diary-n {
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--blue-deep, #163a66);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lk-diary-n:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, #fff);
}

.lk-diary-n.is-on,
.lk-diary-n.is-on:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.lk-diary-meter {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.lk-diary-meter-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.lk-diary-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.lk-diary-bar > span {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.lk-diary-bar--low > span {
  background: var(--orange);
}

.lk-diary-bar--mid > span {
  background: var(--gold);
}

.lk-diary-bar--high > span {
  background: var(--green);
}

.lk-diary-band--low {
  color: #b25a00;
}

.lk-diary-band--mid {
  color: #7a5306;
}

.lk-diary-band--high {
  color: color-mix(in srgb, var(--green) 78%, #000);
}

.lk-field-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.lk-field-error {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
}

.lk-field-error:empty {
  display: none;
}

/* ---------- Фильтры ---------- */

.lk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.lk-filters input,
.lk-filters select {
  min-height: 46px;
  padding: 0 15px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.lk-filters input {
  flex: 1 1 220px;
  min-width: 0;
}

.lk-filters input:focus-visible,
.lk-filters select:focus-visible {
  outline: none;
  border-color: var(--blue);
}

.lk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.lk-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.lk-tabs button[aria-selected="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* ---------- Серии в кабинете ---------- */

.lk-films {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}

.lk-film {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.lk-film-no {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lk-film-quality {
  color: color-mix(in srgb, var(--tone) 76%, #1c1c1c);
  font-family: "Caveat", cursive;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.05;
}

/* ---------- Новости ---------- */

.lk-news {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lk-news li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.lk-news li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lk-news time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.lk-news a {
  font-weight: 800;
}

.lk-news a:hover {
  color: var(--blue);
}

.lk-news p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Вход и регистрация ---------- */

.lk-gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.lk-card {
  width: 100%;
  max-width: 520px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lk-card--wide {
  max-width: 720px;
}

.lk-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.lk-card-brand img {
  height: 42px;
}

.lk-card h1 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lk-card-lead {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.lk-card form {
  display: grid;
  gap: 16px;
}

.lk-card .lk-form {
  display: grid;
}

.lk-alert {
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--red) 10%, #fff);
  color: color-mix(in srgb, var(--red) 84%, #000);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.lk-alert--calm {
  background: color-mix(in srgb, var(--blue) 9%, #fff);
  color: var(--blue-deep);
}

.lk-card-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.lk-card-foot a {
  color: var(--blue);
  font-weight: 800;
}

.lk-card-foot a:hover {
  border-bottom: 2px solid var(--gold);
}

/* ---------- Шаги регистрации ---------- */

.lk-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.lk-progress-step {
  display: grid;
  gap: 8px;
}

.lk-progress-step span {
  color: var(--muted);
  font-family: "Caveat", cursive;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1;
}

.lk-progress-step svg {
  display: block;
  width: 100%;
  height: 9px;
  overflow: visible;
}

.lk-progress-step svg path {
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
  stroke-linecap: round;
}

.lk-progress-step.is-done svg path,
.lk-progress-step.is-active svg path {
  stroke: var(--gold);
}

.lk-progress-step.is-active span {
  color: var(--ink);
}

.lk-code {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .lk-progress-step span {
    font-size: 0.98rem;
  }
}

/* ---------- Умный поиск садика ---------- */

.lk-place-cascade {
  display: grid;
  gap: 14px;
}

.lk-place-cascade .lk-form {
  margin-top: 0;
}

.lk-top-actions {
  flex-wrap: wrap;
}

.lk-pick-list {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lk-pick-list[hidden] {
  display: none;
}

.lk-pick-list button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lk-pick-list button:hover,
.lk-pick-list button:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--blue) 10%, #fff);
}

.lk-pick-list small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.lk-chosen {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 2px solid color-mix(in srgb, var(--green) 40%, #fff);
  border-radius: 18px;
  background: color-mix(in srgb, var(--green) 7%, #fff);
}

.lk-chosen strong {
  font-size: 1rem;
}

.lk-chosen span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Карта в модальном окне ---------- */

.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 28, 28, 0.42);
}

.lk-modal[hidden] {
  display: none;
}

.lk-modal-box {
  display: grid;
  gap: 14px;
  width: min(1080px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(28, 28, 28, 0.28);
}

.lk-modal-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lk-modal-top h2 {
  font-size: 1.16rem;
  font-weight: 800;
}

.lk-modal-close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.lk-modal-close:hover {
  border-color: var(--red);
  color: var(--red);
}

.lk-modal .map-stage {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.lk-modal-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.lk-modal-box--text {
  width: min(720px, 100%);
}

.lk-modal-text {
  margin: 0;
  padding: 16px 18px;
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafafa;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Мобильные ---------- */

.lk-scrim {
  position: fixed;
  inset: 0;
  z-index: 14;
  border: 0;
  padding: 0;
  background: rgba(28, 28, 28, 0.38);
}

.lk-scrim[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .lk {
    grid-template-columns: minmax(0, 1fr);
  }

  .lk-side {
    position: fixed;
    z-index: 16;
    top: 0;
    left: 0;
    width: 286px;
    transform: translateX(-102%);
    transition: transform 0.24s ease;
  }

  .lk-side.is-open {
    transform: none;
  }

  .lk-burger {
    display: grid;
    place-items: center;
  }

  .lk-props div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-side,
  .lk-item,
  .lk-user,
  .lk-drop {
    transition: none;
  }

  .lk-drop:hover::before,
  .lk-drop:focus-visible::before,
  .lk-drop.is-drag::before {
    animation: none;
  }
}

.lk-place-cascade {
  display: grid;
  gap: 14px;
}

.lk-place-cascade .lk-form {
  margin-top: 0;
}

