/*
 * Application-wide styles for the MVP shell.
 * Keep this file lightweight until feature-specific styles are added.
 */

:root {
  color-scheme: light;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 2rem;
  background: #f7f8fc;
  color: #1d2a44;
}

a {
  color: #2f4fe8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
}

.public-header {
  width: min(1120px, 100%);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.public-header__brand {
  color: #07184a;
  font-weight: 800;
  text-decoration: none;
}

.locale-switcher {
  padding: 0.25rem;
  border: 1px solid #e6eaf3;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  gap: 0.2rem;
}

.locale-switcher__link {
  min-width: 2.2rem;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  color: #66708a;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.locale-switcher__link--active {
  background: #2f4fe8;
  color: #fff;
}

.home-page {
  width: min(430px, 100%);
  min-height: calc(100vh - 7rem);
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 1.25rem;
}

.home-page h1 {
  margin: 0;
  color: #07184a;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  line-height: 1.06;
}

.home-search-form {
  box-sizing: border-box;
  border: 1px solid #e6eaf3;
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  display: grid;
  gap: 0.8rem;
  box-shadow: 0 16px 40px rgba(7, 24, 74, 0.06);
}

.home-search-field {
  position: relative;
  display: grid;
  min-width: 0;
}

.home-date-field {
  position: relative;
  display: grid;
}

.home-date-field--mobile {
  display: none;
}

.home-search-field__shell {
  position: relative;
  box-sizing: border-box;
  min-height: 54px;
  width: 100%;
  border: 1px solid #d7deee;
  border-radius: 12px;
  padding: 0 0.75rem;
  background: #fff;
  display: flex;
  align-items: center;
}

.home-search-field__shell--date {
  color: #07184a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-search-field__control {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  border: 0;
  padding: 0;
  background: transparent;
  color: #66708a;
  font: inherit;
  font-weight: 500;
  outline: none;
}

.home-search-field__date-placeholder {
  color: #66708a;
  font-weight: 500;
  pointer-events: none;
}

.home-date-picker {
  position: absolute;
  z-index: 8;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 2rem));
  box-sizing: border-box;
  justify-self: center;
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 0.75rem;
  background: #fff;
  box-shadow: 0 16px 32px rgba(7, 24, 74, 0.08);
  margin-top: 0.5rem;
}

.home-date-picker__head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  color: #07184a;
  text-align: center;
}

.home-date-picker__nav {
  width: 38px;
  height: 34px;
  border: 1px solid #d7deee;
  border-radius: 10px;
  background: #fff;
  color: #07184a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.home-date-picker__month-weekdays,
.home-date-picker__month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.home-date-picker__weekdays {
  display: none;
  margin-bottom: 0.35rem;
  color: #66708a;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.home-date-picker__month-weekdays {
  color: #66708a;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.home-date-picker__days-viewport {
  overflow: hidden;
}

.home-date-picker__days {
  display: flex;
  transform: translateX(-100%);
  will-change: transform;
}

.home-date-picker__month-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 100%;
  gap: 0.8rem;
}

.home-date-picker__month {
  display: grid;
  gap: 0.5rem;
}

.home-date-picker__month-title {
  display: block;
  margin: 0;
  color: #07184a;
  font-size: 1rem;
  line-height: 1.2;
}

.home-date-picker__day {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f5f7fc;
  color: #07184a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.home-date-picker__day:hover {
  border-color: #2f4fe8;
}

.home-date-picker__day--muted {
  background: transparent;
  color: #a4adbf;
}

.home-date-picker__day--selected {
  background: #2f4fe8;
  color: #fff;
}

.home-date-picker__confirm {
  display: none;
}

.home-search-form__submit {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #2f4fe8;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 681px) {
  .home-page {
    box-sizing: border-box;
    align-content: start;
    padding-top: clamp(1rem, 5vh, 3rem);
    padding-bottom: 2rem;
  }
}

.admin-nav {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  padding: 0.45rem;
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  box-shadow: 0 12px 30px rgba(7, 24, 74, 0.05);
}

.admin-nav__link {
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  color: #07184a;
  font-weight: 700;
  text-decoration: none;
}

.admin-nav__link:hover {
  background: #f5f7fc;
  color: #2f4fe8;
}

.admin-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.admin-page__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-page__header h1 {
  margin: 0;
  color: #07184a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.admin-page__subtitle {
  max-width: 680px;
  margin: 0.55rem 0 0;
  color: #66708a;
  font-size: 1rem;
}

.admin-eyebrow {
  margin: 0 0 0.45rem;
  color: #2f4fe8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-card {
  border: 1px solid #e6eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(7, 24, 74, 0.06);
  padding: 1.25rem;
}

.admin-card__header {
  margin-bottom: 1rem;
}

.admin-card__header--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-card__header h2 {
  margin: 0;
  color: #07184a;
  font-size: 1.2rem;
}

.admin-card__header p {
  margin: 0.25rem 0 0;
  color: #66708a;
}

.admin-button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07184a;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-button--primary {
  background: #2f4fe8;
  color: #fff;
}

.admin-button--secondary {
  border-color: #d7deee;
  background: #fff;
  color: #2f4fe8;
}

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

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

.admin-table th {
  padding: 0.75rem;
  border-bottom: 1px solid #e6eaf3;
  color: #66708a;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #edf1f7;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table__id {
  color: #66708a;
  font-weight: 800;
  white-space: nowrap;
}

.admin-table__title {
  color: #07184a;
  font-weight: 800;
}

.admin-status {
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: #eef3ff;
  color: #2f4fe8;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-actions a {
  border-radius: 9px;
  padding: 0.38rem 0.55rem;
  background: #f5f7fc;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-actions .admin-link-danger {
  color: #b42318;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-detail-item {
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 0.8rem;
  background: #fbfcff;
}

.admin-detail-item--wide {
  grid-column: 1 / -1;
}

.admin-detail-label {
  display: block;
  margin-bottom: 0.25rem;
  color: #66708a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-detail-value {
  color: #07184a;
  font-weight: 700;
  line-height: 1.45;
}

.admin-detail-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.admin-list li {
  border: 1px solid #e6eaf3;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fbfcff;
}

.admin-muted {
  color: #66708a;
}

.admin-empty {
  margin: 0;
  border: 1px dashed #d7deee;
  border-radius: 14px;
  padding: 1rem;
  color: #66708a;
  background: #fbfcff;
}

.admin-errors {
  border-color: #ffd7d2;
  background: #fff8f7;
  color: #7a271a;
}

.admin-errors h3 {
  margin: 0 0 0.5rem;
}

.admin-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-field {
  display: grid;
  gap: 0.4rem;
}

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

.admin-field label,
.admin-check {
  color: #07184a;
  font-weight: 800;
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-field input[type="date"],
.admin-field input[type="time"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7deee;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fbfcff;
  color: #07184a;
  font: inherit;
}

.admin-field textarea {
  resize: vertical;
}

.admin-field small,
.admin-note {
  margin: 0;
  color: #66708a;
  line-height: 1.4;
}

.admin-field input[type="file"] {
  padding: 0.65rem;
  background: #fff;
}

.admin-field input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  background: #eef3ff;
  color: #2f4fe8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-upload-preview {
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 0.7rem;
  background: #fbfcff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-upload-preview__image {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-upload-preview__placeholder {
  width: 120px;
  height: 80px;
  border: 1px dashed #c7d1e5;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f5f7fc;
  color: #66708a;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.admin-upload-preview p {
  margin: 0;
  color: #66708a;
  font-weight: 700;
}

.admin-check {
  min-height: 45px;
  border: 1px solid #d7deee;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fbfcff;
}

.admin-check input {
  width: 1rem;
  height: 1rem;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-recurring-settings {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.admin-recurring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.admin-weekday-item {
  position: relative;
  cursor: pointer;
}

.admin-weekday-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-weekday-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d7deee;
  border-radius: 50%;
  background: #fff;
  color: #07184a;
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.admin-weekday-item input:checked + span {
  background: #2f4fe8;
  border-color: #2f4fe8;
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 79, 232, 0.25);
}

@media (max-width: 760px) {
  body {
    padding: 1rem;
  }

  .admin-page__header,
  .admin-card__header--split {
    flex-direction: column;
  }

  .admin-page__header .admin-button,
  .admin-card__header--split .admin-button,
  .admin-form-actions .admin-button {
    width: 100%;
  }

  .admin-card {
    border-radius: 14px;
    padding: 1rem;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
  }

  .admin-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .admin-table tr {
    border: 1px solid #e6eaf3;
    border-radius: 14px;
    padding: 0.85rem;
    background: #fbfcff;
  }

  .admin-table td {
    border-bottom: 0;
    padding: 0.5rem 0;
  }

  .admin-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: #66708a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .admin-actions a {
    flex: 1 1 auto;
    text-align: center;
  }

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

  .admin-detail-item--wide {
    grid-column: auto;
  }

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

.search-calendar-bar {
  border: 0;
  border-radius: 16px;
  padding: 0.8rem;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
  box-shadow: 0 16px 40px rgba(7, 24, 74, 0.06);
}

.search-calendar-bar__days-controls {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 0.45rem;
  align-items: center;
}

.search-calendar-bar__month-card {
  border: 1px solid #e6eaf3;
  border-radius: 16px;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  background: #fff;
}

.search-calendar-bar__month-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: #f5f7fc;
  color: #2f4fe8;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.search-calendar-bar__month {
  margin: 0;
  font-weight: 700;
  color: #07184a;
  font-size: 0.85rem;
  text-transform: capitalize;
}

.search-calendar-bar__change-link {
  width: max-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2f4fe8;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}


.search-calendar-bar__month-content {
  display: grid;
  gap: 0.6rem;
  width: 100%;
}

.search-calendar-bar__quick-date-form {
  position: relative;
  display: grid;
  gap: 0.2rem;
}

.search-calendar-bar__quick-date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
  opacity: 0;
  pointer-events: none;
}

.lessons-date-picker {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.45rem);
  left: 0;
  width: min(320px, calc(100vw - 2rem));
  box-sizing: border-box;
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 0.75rem;
  background: #fff;
  box-shadow: 0 16px 32px rgba(7, 24, 74, 0.1);
}

.lessons-date-picker-backdrop {
  display: none;
}

.lessons-date-picker__drag-zone,
.lessons-date-picker__handle {
  display: none;
}

.lessons-date-picker-backdrop[hidden] {
  display: none;
}

.lessons-date-picker__head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  color: #07184a;
  text-align: center;
  text-transform: capitalize;
}

.lessons-date-picker__nav {
  width: 36px;
  height: 34px;
  border: 1px solid #d7deee;
  border-radius: 10px;
  background: #fff;
  color: #07184a;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.lessons-date-picker__weekdays,
.lessons-date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.lessons-date-picker__weekdays {
  margin-bottom: 0.35rem;
  color: #66708a;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.lessons-date-picker__viewport {
  overflow: hidden;
}

.lessons-date-picker__months {
  display: flex;
  transform: translateX(-100%);
  will-change: transform;
}

.lessons-date-picker__month {
  flex: 0 0 100%;
}

.lessons-date-picker__day {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f5f7fc;
  color: #07184a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.lessons-date-picker__day:hover {
  border-color: #2f4fe8;
}

.lessons-date-picker__day--muted {
  background: transparent;
  color: #a4adbf;
}

.lessons-date-picker__day--selected {
  background: #2f4fe8;
  color: #fff;
}

.search-calendar-bar__arrow {
  border: 1px solid #e1e6f2;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #37476a;
  font-size: 1.3rem;
  height: 100%;
  min-height: 58px;
}

.search-calendar-days-viewport {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.search-calendar-days-viewport--mobile {
  display: none;
}

.search-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.search-calendar-day {
  border: 1px solid #d7deee;
  border-radius: 9px;
  padding: 0.45rem;
  background: #f9fbff;
  color: #273658;
  display: grid;
  gap: 0.2rem;
  justify-items: start;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.search-calendar-day--active {
  background: #2f63ff;
  border-color: #2f63ff;
  color: #fff;
}

.search-calendar-day__weekday {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.search-calendar-day__weather {
  font-size: 0.78rem;
  opacity: 0.8;
}

.search-calendar-day__temperature {
  font-weight: 600;
  font-size: 0.9rem;
}

.lessons-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.quick-filters {
  width: min(1120px, 100%);
  margin: -0.35rem auto 1rem;
  display: none;
  gap: 0.45rem;
}

.quick-filter {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #33415e;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(7, 24, 74, 0.04);
}

.quick-filter--active {
  background: #2f4fe8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 79, 232, 0.2);
}

.lessons-layout__filters {
  border: 0;
  border-radius: 16px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(7, 24, 74, 0.06);
}

.lessons-layout__results {
  padding: 0;
  background: transparent;
}

.filters-form {
  display: grid;
  gap: 1rem;
}

.filters-body {
  display: grid;
  gap: 1rem;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.filters-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.filters-reset {
  font-size: 0.95rem;
  text-decoration: none;
  color: #2f63ff;
}

.filters-toggle {
  display: none;
}

.filters-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.filters-radio-list {
  display: grid;
  gap: 0.45rem;
}

.filters-radio-list label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #2e3c59;
}

.filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filters-chips label {
  display: inline-flex;
}

.filters-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filters-chips span {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #d7deee;
  background: #f4f6fb;
  color: #33415e;
  font-size: 0.85rem;
}

.filters-chips input:checked + span {
  background: #2f63ff;
  border-color: #2f63ff;
  color: #fff;
}

.filters-list {
  display: grid;
  gap: 0.45rem;
}

.filters-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d7deee;
  border-radius: 10px;
  background: #fbfcff;
  color: #07184a;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filters-list label:hover {
  border-color: #2f4fe8;
  background: #fff;
}

.filters-list input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: #2f4fe8;
}

.filters-select,
.filters-hidden-date,
.filters-submit {
  width: 100%;
}

.filters-select,
.filters-hidden-date {
  border: 1px solid #d7deee;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.95rem;
}

.filters-hidden-date {
  display: none;
}

.filters-submit {
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: #dfe6ff;
  color: #2146bd;
  font-weight: 700;
}


.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.results-head p {
  margin: 0;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-sort .filters-select {
  width: auto;
  min-width: 190px;
}

.results-sort__select {
  border-color: #edf1f7;
  background: #fff;
  color: #07184a;
  font-weight: 700;
}

.lesson-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.lesson-card {
  border: 1px solid #e1e6f2;
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) minmax(180px, 220px);
  gap: 0.9rem;
  align-items: stretch;
  background: #fff;
}

.lesson-card__media {
  position: relative;
}

.lesson-card__image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.lesson-card__image--placeholder {
  display: grid;
  place-items: center;
  background: #eef2fb;
  color: #63708a;
  font-weight: 600;
}

.lesson-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
}

.lesson-badge--private {
  background: #2f63ff;
}

.lesson-badge--group {
  background: #2ca46d;
}

.lesson-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.lesson-card h2 {
  margin: 0;
  font-size: 1.8rem;
}

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

.lesson-card__title-link:hover {
  color: #2f4fe8;
}

.lesson-card__heart {
  font-size: 1.5rem;
  line-height: 1;
  color: #7f8aa5;
}

.lesson-card__meta {
  margin: 0.5rem 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: #45526b;
}

.lesson-card__description {
  margin: 0;
  color: #2e3c59;
}

.lesson-card__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 0.8rem;
  min-width: 0;
}

.lesson-card__price {
  margin: 0;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  white-space: nowrap;
}

.lesson-card__cta {
  display: inline-block;
  background: #2f63ff;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

.lesson-detail-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.lesson-detail-back {
  color: #2f4fe8;
  font-weight: 800;
  text-decoration: none;
}

.lesson-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.lesson-detail-main {
  display: grid;
  gap: 1rem;
}

.lesson-detail-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 16px;
  background: #eef2fb;
  box-shadow: 0 16px 40px rgba(7, 24, 74, 0.08);
}

.lesson-detail-hero .lesson-badge {
  top: 1.2rem;
  left: 1.2rem;
}

.lesson-detail-heart {
  position: absolute;
  z-index: 1;
  top: 1.2rem;
  right: 1.2rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #07184a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lesson-detail-hero__image,
.lesson-detail-hero__placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
}

.lesson-detail-hero__image {
  object-fit: cover;
}

.lesson-detail-hero__placeholder {
  display: grid;
  place-items: center;
  color: #66708a;
  font-weight: 800;
}

.lesson-detail-card,
.lesson-booking-card {
  border: 1px solid #e6eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(7, 24, 74, 0.06);
}

.lesson-detail-card {
  padding: 1.35rem;
}

.lesson-detail-card h2,
.lesson-booking-card h1 {
  margin: 0;
  color: #07184a;
}

.lesson-detail-card p {
  color: #2e3c59;
  line-height: 1.7;
}

.lesson-detail-school {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.lesson-detail-eyebrow {
  margin: 0 0 0.25rem;
  color: #2f4fe8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-detail-school__logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #eef3ff;
  color: #2f4fe8;
  font-size: 2rem;
  font-weight: 900;
}

.lesson-detail-school__meta,
.lesson-detail-school__contact {
  margin: 0.35rem 0;
  color: #66708a;
  font-weight: 700;
}

.lesson-detail-school__name-link {
  color: #07184a;
  text-decoration: none;
}

.lesson-detail-school__name-link:hover {
  color: #2f4fe8;
}

.school-page {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}

.school-page__eyebrow {
  margin: 0 0 0.3rem;
  color: #2f4fe8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.school-hero {
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.9rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 24, 74, 0.04);
}

.school-hero__logo {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: #eef2fb;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #2f4fe8;
  font-size: 2rem;
  font-weight: 900;
}

.school-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-hero__content h1 {
  margin: 0;
  color: #07184a;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.school-hero__content p {
  margin: 0.45rem 0 0;
  color: #2e3c59;
}

.school-hero__meta,
.school-hero__contact {
  font-weight: 800;
}

.school-section {
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 24, 74, 0.04);
}

.school-section__header {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.school-section__header h2 {
  margin: 0;
  color: #07184a;
  font-size: 1.2rem;
}

.school-section__header p {
  margin: 0;
  color: #66708a;
  font-weight: 700;
}

.school-gallery-slider {
  display: grid;
  gap: 0.65rem;
}

.school-gallery-slider__viewport {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2fb;
}

.school-gallery-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.school-gallery-slider__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.school-gallery-slider__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.school-gallery-slider__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #66708a;
  font-weight: 800;
}

.school-gallery-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.school-gallery-slider__button {
  width: 44px;
  height: 38px;
  border: 1px solid #d7deee;
  border-radius: 10px;
  background: #fff;
  color: #07184a;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.school-gallery-slider__button:hover {
  border-color: #2f4fe8;
  color: #2f4fe8;
}

.school-gallery-slider__counter {
  color: #66708a;
  font-weight: 800;
}

.school-map-placeholder {
  min-height: 210px;
  border: 1px dashed #b9c4dc;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #f5f7fc;
  color: #66708a;
  text-align: center;
}

.school-map-placeholder strong {
  display: block;
  color: #07184a;
  font-size: 1.05rem;
}

.school-map-placeholder p {
  max-width: 420px;
  margin: 0.45rem auto 0;
}

.school-section__empty {
  margin: 0;
  color: #66708a;
}

.resort-page {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}

.resort-page__eyebrow {
  margin: 0 0 0.3rem;
  color: #2f4fe8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resort-hero,
.resort-section {
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 24, 74, 0.04);
}

.resort-hero h1 {
  margin: 0;
  color: #07184a;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.resort-hero p {
  max-width: 720px;
  margin: 0.5rem 0 0;
  color: #2e3c59;
}

.resort-tabs {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.resort-tabs__link {
  border: 1px solid #d7deee;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  color: #07184a;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.resort-tabs__link:hover,
.resort-tabs__link--active {
  border-color: #2f4fe8;
  color: #2f4fe8;
  background: #f5f7ff;
}

.resort-section__header {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.resort-section__header h2 {
  margin: 0;
  color: #07184a;
  font-size: 1.2rem;
}

.resort-section__header p,
.resort-section__empty {
  margin: 0;
  color: #66708a;
  font-weight: 700;
}

.resort-links,
.school-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.resort-link-card,
.school-link-card {
  border: 1px solid #e1e6f2;
  border-radius: 12px;
  padding: 0.85rem;
  color: #07184a;
  text-decoration: none;
  background: #fff;
}

.resort-link-card {
  display: grid;
  gap: 0.25rem;
}

.resort-link-card:hover,
.school-link-card:hover {
  border-color: #2f4fe8;
  color: #2f4fe8;
}

.resort-link-card strong,
.school-link-card strong {
  font-size: 1rem;
}

.resort-link-card span,
.school-link-card small {
  color: #66708a;
  font-weight: 700;
}

.school-link-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.school-link-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef2fb;
  color: #2f4fe8;
  font-size: 1.25rem;
  font-weight: 900;
}

.school-link-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-link-card small {
  display: block;
  margin-top: 0.2rem;
}

.lesson-booking-card {
  position: sticky;
  top: 1rem;
  padding: 1.35rem;
}

.lesson-booking-card > .lesson-badge {
  position: static;
  display: inline-flex;
  width: max-content;
  margin-bottom: 0.8rem;
}

.lesson-booking-card h1 {
  font-size: 2rem;
  line-height: 1.08;
}

.lesson-booking-meta {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: #45526b;
  font-size: 0.92rem;
}

.lesson-booking-meta span {
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  background: #f5f7fc;
  font-weight: 700;
}

.lesson-booking-summary {
  color: #2e3c59;
  line-height: 1.55;
}

.lesson-facts {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0;
}

.lesson-facts div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 0.8rem;
}

.lesson-facts dt,
.lesson-facts dd {
  margin: 0;
}

.lesson-facts dt {
  color: #66708a;
  font-weight: 800;
}

.lesson-facts dd {
  color: #07184a;
  font-weight: 700;
}

.lesson-booking-note {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #f0f3ff;
  color: #273658;
  line-height: 1.45;
}

.lesson-booking-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.lesson-booking-field {
  display: grid;
  gap: 0.45rem;
}

.lesson-booking-field label,
.lesson-booking-label {
  color: #07184a;
  font-weight: 800;
}

.lesson-booking-field input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7deee;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  color: #07184a;
  font: inherit;
}

.lesson-duration-options {
  display: grid;
  gap: 0.55rem;
}

.lesson-duration-option {
  border: 1px solid #d7deee;
  border-radius: 12px;
  padding: 0.8rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  background: #fff;
}

.lesson-duration-option:has(input:checked) {
  border-color: #2f4fe8;
  box-shadow: 0 0 0 1px #2f4fe8;
}

.lesson-duration-option small {
  display: block;
  margin-top: 0.15rem;
  color: #66708a;
}

.lesson-booking-empty {
  margin: 0;
  border: 1px dashed #d7deee;
  border-radius: 12px;
  padding: 0.9rem;
  color: #66708a;
}

.lesson-booking-total {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #07184a;
}

.lesson-booking-total strong {
  font-size: 1.7rem;
}

.lesson-booking-date-selector {
  position: relative;
}

.lesson-booking-date-trigger {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #d7deee;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  color: #07184a;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lesson-booking-date-trigger::after {
  content: "▼";
  font-size: 0.7rem;
  color: #66708a;
  margin-left: 0.5rem;
}

.lessons-date-picker--booking {
  width: 100%;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 10;
}

.lessons-date-picker__day--recurring {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #10b981 !important;
}

.lessons-date-picker__day--recurring:hover {
  background: #10b981 !important;
  color: #fff !important;
}

.lesson-recurring-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 700;
}

.lesson-recurring-info__icon {
  font-size: 1.1rem;
}

.lesson-booking-cta {
  width: 100%;
  margin-top: 1rem;
  border: 0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: #2f4fe8;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .lesson-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .lesson-card__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 960px) {
  .search-calendar-bar {
    grid-template-columns: 1fr;
    padding: 0.7rem;
    overflow: hidden;
  }

  .search-calendar-bar__days-controls {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  .search-calendar-bar__arrow {
    display: none;
  }

  .search-calendar-days-viewport--desktop {
    display: none;
  }

  .search-calendar-days-viewport--mobile {
    display: block;
  }

  .search-calendar-days-viewport {
    overscroll-behavior-x: contain;
    touch-action: none;
    overflow: hidden;
    padding: 0.15rem 0 0.45rem;
    margin: 0;
    cursor: grab;
    user-select: none;
    /* Gradient mask for fading edges - tightened for maximum contrast */
    -webkit-mask-image: linear-gradient(to right, transparent, black 1.5%, black 98.5%, transparent);
    mask-image: linear-gradient(to right, transparent, black 1.5%, black 98.5%, transparent);
  }

  .search-calendar-days {
    display: flex;
    gap: 0.5rem;
    width: max-content;
    will-change: transform;
    padding: 0 0.75rem; /* Slightly reduced padding to match tighter mask */
  }

  .search-calendar-days--dragging {
    cursor: grabbing;
  }

  .search-calendar-day {
    flex: 0 0 70px; /* Further reduced width to clearly show the "bleeding" next item */
    min-height: 84px;
    padding: 0.5rem;
    align-content: start;
    touch-action: none;
  }

  .search-calendar-day__weekday,
  .search-calendar-day__temperature {
    font-size: 0.82rem;
  }

  .search-calendar-day__weather img {
    width: 18px;
    height: 18px;
  }

  .lessons-date-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9;
    border: 0;
    display: block;
    background: rgba(7, 24, 74, 0.2);
    cursor: pointer;
  }

  .lessons-date-picker {
    position: fixed;
    z-index: 10;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    box-shadow: 0 -18px 46px rgba(7, 24, 74, 0.18);
  }

  .lessons-date-picker__drag-zone {
    min-height: 46px;
    margin: -0.55rem -1rem 0;
    display: grid;
    place-items: center;
    cursor: grab;
    touch-action: none;
  }

  .lessons-date-picker__handle {
    width: 86px;
    height: 46px;
    margin: 0;
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    pointer-events: none;
  }

  .lessons-date-picker__handle::before {
    content: "";
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #c7d1e5;
  }

  .lessons-date-picker__head {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    margin-bottom: 0.7rem;
  }

  .lessons-date-picker__nav {
    width: 44px;
    height: 40px;
  }

  .lessons-date-picker__weekdays,
  .lessons-date-picker__grid {
    gap: 0.38rem;
  }

  .lessons-date-picker__months {
    touch-action: none;
    user-select: none;
  }

  .lessons-date-picker__day {
    min-height: 40px;
    border-radius: 12px;
  }

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

  .quick-filters {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  .filters-head h2 {
    display: none;
  }

  .filters-toggle,
  .filters-reset {
    border: 0;
    padding: 0;
    min-height: auto;
    background: transparent;
    color: #2f4fe8;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }

  .filters-toggle::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    margin-left: 6px;
    transition: transform 0.2s ease;
  }

  .filters-toggle[aria-expanded="true"]::after {
    transform: translateY(1px) rotate(-135deg);
  }

  .filters-reset {
    font-weight: 600;
    text-decoration: none;
  }

  .filters-form:not(.filters-form--open) .filters-body,
  .filters-form:not(.filters-form--open) .filters-submit {
    display: none;
  }

  .lesson-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 14px;
  }

  .results-head {
    flex-direction: column;
    align-items: stretch;
  }

  .results-sort {
    justify-content: flex-start;
  }

  .results-sort .filters-select {
    width: 100%;
    min-height: 42px;
    border-color: #edf1f7;
    border-radius: 12px;
    background: #fff;
  }

  .lesson-card__aside {
    justify-content: space-between;
  }

  .lesson-card__price {
    font-size: 1.2rem;
  }

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

  .school-gallery-slider__viewport {
    height: 240px;
  }

  .lesson-booking-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .home-date-field--desktop {
    display: none;
  }

  .home-date-field--mobile {
    display: grid;
  }

  .home-mobile-date-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    border: 0;
    display: block;
    background: rgba(7, 24, 74, 0.2);
    cursor: pointer;
  }

  .home-mobile-date-picker-backdrop[hidden] {
    display: none;
  }

  .home-mobile-date-picker {
    position: fixed;
    z-index: 101;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    box-sizing: border-box;
    transform: none;
    max-height: min(92vh, 760px);
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    background: #fff;
    color: #07184a;
    opacity: 1;
    isolation: isolate;
    box-shadow: 0 -18px 46px rgba(7, 24, 74, 0.18);
  }

  .home-mobile-date-picker[hidden] {
    display: none;
  }

  .home-mobile-date-picker__drag-zone {
    min-height: 46px;
    margin: -0.55rem -1rem 0;
    display: grid;
    place-items: center;
    cursor: grab;
    touch-action: none;
  }

  .home-mobile-date-picker__handle {
    width: 86px;
    height: 46px;
    margin: 0;
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    pointer-events: none;
  }

  .home-mobile-date-picker__handle::before {
    content: "";
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #c7d1e5;
  }

  .home-mobile-date-picker__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    color: #07184a;
    text-align: center;
  }

  .home-mobile-date-picker__nav {
    width: 44px;
    height: 40px;
    border: 1px solid #d7deee;
    border-radius: 10px;
    background: #fff;
    color: #07184a;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
  }

  .home-mobile-date-picker__weekdays,
  .home-mobile-date-picker__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.38rem;
  }

  .home-mobile-date-picker__weekdays {
    margin-bottom: 0.35rem;
    color: #66708a;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
  }

  .home-mobile-date-picker__viewport {
    height: 572px;
    max-height: calc(92vh - 142px);
    overflow: hidden;
  }

  .home-mobile-date-picker__months {
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    touch-action: none;
    user-select: none;
    will-change: transform;
  }

  .home-mobile-date-picker__month-panel {
    flex: 0 0 100%;
    display: grid;
    gap: 1rem;
    align-content: start;
  }

  .home-mobile-date-picker__month {
    display: grid;
    gap: 0.45rem;
  }

  .home-mobile-date-picker__month-title {
    margin: 0;
    color: #07184a;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .home-mobile-date-picker__day {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f5f7fc;
    color: #07184a;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
  }

  .home-mobile-date-picker__day--muted {
    background: transparent;
    color: #a4adbf;
  }

  .home-mobile-date-picker__day--selected {
    background: #2f4fe8;
    color: #fff;
  }

  .lesson-detail-hero,
  .lesson-detail-hero__image,
  .lesson-detail-hero__placeholder {
    min-height: 280px;
  }

  .lesson-detail-school {
    grid-template-columns: 1fr;
  }

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

  .school-section__header {
    flex-direction: column;
  }

  .school-gallery-slider__viewport {
    height: 200px;
  }

  .lesson-facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .lesson-duration-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lesson-duration-option > strong {
    grid-column: 2;
  }
}
