@font-face {
  font-family: "Grandis Extended Regular";
  src: url("/brand-fonts/grandis-regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Grandis Extended Black";
  src: url("/brand-fonts/grandis-black.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f3fbff;
  --card: #ffffff;
  --text: #000000;
  --muted: #334559;
  --line: #d9edf4;
  --primary: #00bdf1;
  --primary-hover: #09a7d3;
  --accent: #fe4408;
  --shadow: 0 18px 40px rgba(0, 107, 140, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Grandis Extended Regular", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #e3f8ff 0, #f3fbff 35%, #f3fbff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 14px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: min(58vw, 430px);
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.15s ease;
}

.main-nav a:hover {
  color: #000;
  background: rgba(0, 189, 241, 0.1);
}

.page-content {
  padding: 28px 0 50px;
  flex: 1 0 auto;
  display: grid;
  gap: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  margin-top: auto;
}

.footer-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial,
    sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  border: 1px solid #d5dceb;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.social-link img {
  width: 22px;
  height: 22px;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  display: block;
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.social-link--vk {
  background: #fff;
  border-color: #d5dceb;
}

.social-link--max {
  background: linear-gradient(135deg, #0f57ff, #7b4dff);
  border-color: transparent;
}

.social-link--max img {
  width: 24px;
  height: 24px;
  max-width: 74%;
  max-height: 74%;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card p {
  margin: 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -26% auto auto -8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 189, 241, 0.14), rgba(0, 189, 241, 0));
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-lead {
  margin-top: 6px !important;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #243041;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 189, 241, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #1e3347;
  font-size: 0.94rem;
  font-weight: 600;
}

.hero-aside {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 189, 241, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(227, 248, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-aside__title {
  margin: 0 0 10px;
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial,
    sans-serif;
  font-size: 0.95rem;
}

.hero-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #243041;
  line-height: 1.55;
}

.hero-end {
  margin-top: 12px !important;
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial,
    sans-serif;
  color: #1e3347;
  font-size: 0.92rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.filters {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(0, 189, 241, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.95), #fff);
}

.filters__title {
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial,
    sans-serif;
}

.filters__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-scroll-shell {
  position: relative;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-btn--ghost,
.filter-btn--link {
  text-decoration: none;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.grid .card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  background: linear-gradient(180deg, #ffffff, #f9fdff);
  border-color: rgba(0, 189, 241, 0.12);
}

.grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 189, 241, 0.16);
  border-color: rgba(0, 189, 241, 0.28);
}

.grid .card:hover .card__photo,
.grid .card:focus-visible .card__photo {
  transform: scale(1.02);
}

.card__photo {
  width: 100%;
  height: 176px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  margin-bottom: 14px;
  transition: transform 0.22s ease;
}

.card__name {
  margin: 8px 0 10px;
  font-size: 1.18rem;
  line-height: 1.14;
}

.card__tracks {
  margin: 0;
  color: var(--primary-hover);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 189, 241, 0.14);
  background: rgba(0, 189, 241, 0.07);
  color: #20405a;
  font-size: 0.82rem;
  font-weight: 600;
}

.card__next-slot-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card__next-slot {
  margin: 6px 0 0;
  color: #13283d;
  font-size: 1.04rem;
  font-weight: 700;
}

.card__slots {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card__cta {
  width: 100%;
  margin-top: 16px;
  border-color: rgba(0, 189, 241, 0.14);
  background: linear-gradient(180deg, rgba(241, 251, 255, 0.95), #fff);
  color: #14344c;
  box-shadow: 0 10px 24px rgba(0, 189, 241, 0.08);
}

.card__cta:hover {
  border-color: rgba(0, 189, 241, 0.28);
  background: linear-gradient(180deg, #ffffff, rgba(232, 248, 255, 0.96));
}

.grid-empty {
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(243, 251, 255, 0.8);
  color: var(--muted);
  line-height: 1.6;
}

.loading-state,
.dialog-loading {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(0, 189, 241, 0.16);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dialog {
  width: min(760px, 96vw);
  border: none;
  border-radius: 16px;
  padding: 52px 20px 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 189, 241, 0.08);
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.close-btn:hover {
  background: rgba(0, 189, 241, 0.14);
  color: #13283d;
}

.detail__head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.detail__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.detail__name {
  margin: 0 0 6px;
}

.detail__category {
  margin: 0;
  color: var(--muted);
}

.detail__winner {
  margin: 6px 0 0;
  color: var(--primary-hover);
  font-size: 0.92rem;
}

.detail__help {
  margin: 16px 0;
  line-height: 1.5;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.slot-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.slot-btn.active {
  background: rgba(0, 189, 241, 0.1);
  border-color: var(--primary);
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  min-height: 42px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(0, 189, 241, 0.25);
  border-color: var(--primary);
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.filter-btn,
.slot-btn,
.primary-btn {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.filter-btn:hover:not(:disabled),
.slot-btn:hover:not(:disabled),
.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-btn:hover {
  background: #de3c09;
  box-shadow: 0 12px 22px rgba(231, 74, 21, 0.22);
}

.primary-btn:disabled,
.filter-btn:disabled,
.slot-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-message {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
}

.limit-message {
  margin: -6px 0 4px;
  color: var(--primary-hover);
  font-size: 0.92rem;
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.consent-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.consent-check span {
  display: block;
  flex: 1;
}

.consent-check input {
  min-height: 18px;
  width: 18px;
  margin-top: 2px;
  padding: 0;
}

.consent-check--optional {
  margin-top: 6px;
}

.consent-check--optional span {
  max-width: none;
}

.consent-email-hint {
  margin: -2px 0 10px 28px;
  max-width: none;
  width: calc(100% - 28px);
  line-height: 1.45;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
}

.cookie-banner__content {
  width: min(820px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(19, 40, 61, 0.96);
  color: #fff;
  box-shadow: 0 18px 38px rgba(10, 24, 38, 0.22);
}

.cookie-banner__content p {
  margin: 0;
  line-height: 1.55;
}

.cookie-banner__content a {
  color: #9de6ff;
}

.confirmation-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(237, 250, 255, 0.9), rgba(255, 255, 255, 0.98));
}

.confirmation-card h4 {
  margin: 0;
}

.confirmation-card p {
  margin: 8px 0;
  line-height: 1.5;
}

.confirmation-list {
  margin: 8px 0 12px;
  padding-left: 18px;
  color: #203244;
  line-height: 1.5;
}

.confirmation-warning {
  color: #8a3b12;
  background: #fff2e8;
  border: 1px solid #ffd2b3;
  border-radius: 10px;
  padding: 10px 12px;
}

.confirmation-note-title {
  margin: 14px 0 6px !important;
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial,
    sans-serif;
  font-size: 0.92rem;
}

.confirmation-notes {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #203244;
  line-height: 1.55;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 107, 140, 0.04);
}

.faq-list details + details {
  margin-top: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial,
    sans-serif;
}

.faq-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 189, 241, 0.35);
  outline-offset: 2px;
}

.tracks-checks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tracks-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.program-access-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.program-access-control {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(260px, 1.5fr);
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.program-access-control:last-child {
  border-bottom: 0;
}

.program-access-control__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1.05rem;
}

.program-access-control .detail__category {
  margin: 0;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 600;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch__slider {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.toggle-switch__slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-switch__slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-switch__slider::after {
  transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-switch__slider {
  outline: 3px solid rgba(0, 189, 241, 0.3);
  outline-offset: 3px;
}

.toggle-switch input:disabled + .toggle-switch__slider {
  opacity: 0.55;
}

.program-access-status {
  margin: 0;
}

.admin-compact-card .admin-actions .filter-btn {
  flex: 1 1 180px;
}

.delete-btn {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.2);
  background: #fff5f4;
}

.delete-btn:hover {
  background: #fee4e2;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-toolbar label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.admin-compact-card {
  display: grid;
  gap: 10px;
}

.admin-compact-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.admin-compact-main h3 {
  margin-bottom: 8px;
}

.admin-compact-photo {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.admin-photo-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 6px 0;
  display: block;
}

.photo-focus-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.95), #fff);
}

.photo-focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-focus-title,
.photo-focus-side__title {
  margin: 0;
  font-weight: 700;
}

.photo-focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 16px;
  align-items: start;
}

.photo-focus-stage {
  position: relative;
  width: min(100%, 320px);
  height: 176px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, rgba(0, 189, 241, 0.06) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(-45deg, rgba(0, 189, 241, 0.06) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(45deg, transparent 75%, rgba(0, 189, 241, 0.06) 75%) 0 0 / 18px 18px,
    linear-gradient(-45deg, transparent 75%, rgba(0, 189, 241, 0.06) 75%) 0 0 / 18px 18px,
    #f8fcff;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.photo-focus-stage:active {
  cursor: grabbing;
}

.photo-focus-stage img,
.photo-focus-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-focus-marker {
  position: absolute;
  left: var(--focus-x, 50%);
  top: var(--focus-y, 50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: rgba(231, 74, 21, 0.85);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.photo-focus-marker::before,
.photo-focus-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.photo-focus-marker::before {
  width: 2px;
  height: 26px;
}

.photo-focus-marker::after {
  width: 26px;
  height: 2px;
}

.photo-focus-hint {
  margin: 8px 0 0;
  max-width: 44ch;
}

.photo-focus-side {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.photo-focus-avatar {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f8fcff;
}

.slots-admin {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.slot-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.slot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 189, 241, 0.1);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.slot-badge.booked {
  background: rgba(254, 68, 8, 0.1);
}

.slot-add-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.slot-picker-title {
  margin: 0 0 8px;
  font-weight: 600;
}

.slot-picker-field {
  display: grid;
  gap: 6px;
  min-width: 180px;
  font-weight: 600;
}

.slot-picker-field--time {
  min-width: 90px;
}

.slot-picker-add {
  min-height: 44px;
}

.chips-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.create-slot-chip {
  cursor: pointer;
  border: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial,
    sans-serif;
  font-size: 0.88rem;
  background: rgba(243, 251, 255, 0.9);
}

.admin-table__request {
  min-width: 240px;
  white-space: normal;
}

.admin-table__summary {
  min-width: 240px;
  white-space: normal;
}

.admin-table--audit {
  min-width: 1180px;
}

.audit-details {
  margin: 0;
  min-width: 260px;
  max-width: 420px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #314255;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial,
    sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

a {
  color: var(--primary);
}

@media (max-width: 900px) {
  .header-row {
    min-height: auto;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 2px;
  }

  .main-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    padding: 14px;
  }

  .section-head {
    flex-direction: column;
  }

  .photo-focus-layout {
    grid-template-columns: 1fr;
  }

  .photo-focus-side {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 20px);
  }

  .brand-logo {
    height: 34px;
    max-width: 92vw;
  }

  .page-content {
    padding: 16px 0 28px;
  }

  .card {
    padding: 14px;
    border-radius: 12px;
  }

  .program-access-control {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .filters {
    padding: 14px;
  }

  .filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-right: -2px;
    scrollbar-width: none;
  }

  .filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .filter-scroll-shell::before,
  .filter-scroll-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 4px;
    width: 22px;
    pointer-events: none;
    z-index: 1;
  }

  .filter-scroll-shell::before {
    left: 0;
    background: linear-gradient(90deg, #f6fcff 0%, rgba(246, 252, 255, 0) 100%);
  }

  .filter-scroll-shell::after {
    right: 0;
    background: linear-gradient(270deg, #f6fcff 0%, rgba(246, 252, 255, 0) 100%);
  }

  .filter-btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }

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

  .grid .card {
    padding: 16px;
  }

  .card__photo {
    height: 168px;
  }

  .card__name {
    font-size: 1.08rem;
  }

  .card__next-slot {
    font-size: 0.98rem;
  }

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

  .detail__photo {
    width: 92px;
    height: 92px;
  }

  .admin-compact-main {
    flex-direction: column;
  }

  .admin-compact-photo {
    width: 92px;
    height: 92px;
  }

  .admin-compact-card .admin-actions .filter-btn {
    width: 100%;
    flex-basis: 100%;
  }

  .footer-row {
    min-height: 56px;
    gap: 10px;
    font-size: 0.82rem;
  }

  .dialog {
    width: min(100vw - 12px, 100vw);
    padding: 50px 14px 16px;
    border-radius: 14px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
}

/* Управление записями (email + код) */
.manage-intro {
  max-width: 58ch;
  margin-bottom: 1rem;
}

.manage-form {
  max-width: 420px;
}

.manage-step {
  margin-top: 8px;
}

.manage-bookings-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manage-booking-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.manage-booking-card__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1.05rem;
}

.manage-booking-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.manage-booking-card__name {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.manage-booking-card__actions {
  flex-shrink: 0;
}

#btn-back-email {
  margin-top: 8px;
}

#btn-exit-session {
  margin-top: 4px;
}

/* Страница выбора программы */
.page-select {
  align-content: center;
  padding-top: 16px;
  padding-bottom: 24px;
}

.hero-card--select {
  padding-top: 18px;
  padding-bottom: 18px;
}

.hero-card--select .hero-lead {
  margin-bottom: 0 !important;
}

.program-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(0, 107, 140, 0.16);
  border-color: var(--primary);
}

.program-card::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 189, 241, 0.18), rgba(0, 189, 241, 0));
  pointer-events: none;
}

.program-card--vd::before {
  background: radial-gradient(circle, rgba(254, 68, 8, 0.16), rgba(254, 68, 8, 0));
}

.program-card--hackathon::before {
  background: radial-gradient(circle, rgba(113, 72, 232, 0.16), rgba(113, 72, 232, 0));
}

.program-card--locked {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.68;
}

.program-card--locked:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.program-card > * {
  position: relative;
  z-index: 1;
}

.program-card__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-hover);
  background: rgba(0, 189, 241, 0.12);
}

.program-card--vd .program-card__badge {
  color: var(--accent);
  background: rgba(254, 68, 8, 0.12);
}

.program-card--hackathon .program-card__badge {
  color: #6240c7;
  background: rgba(113, 72, 232, 0.12);
}

.program-card__title {
  margin: 0;
  font-family: "Grandis Extended Black", "Grandis Extended Regular", "Segoe UI", Arial, sans-serif;
  font-size: 1.45rem;
}

.program-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.program-card__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: #243041;
  font-size: 0.9rem;
}

.program-card__cta {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary-hover);
}

.program-card--vd .program-card__cta {
  color: var(--accent);
}

.program-card--hackathon .program-card__cta {
  color: #6240c7;
}

/* Карточка сотрудника «Вдохновляю» */
.card__position {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail__position {
  font-weight: 600;
}

/* Бейдж программы в админке */
.program-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-hover);
  background: rgba(0, 189, 241, 0.12);
}

.program-badge--vdohnovlyayu {
  color: var(--accent);
  background: rgba(254, 68, 8, 0.12);
}

.program-badge--online_hackathon {
  color: #6240c7;
  background: rgba(113, 72, 232, 0.12);
}
