:root {
  --font: Gilroy, Manrope, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: #3e3e59;
  --muted: #5c5c73;
  --label: #8d8da6;
  --line: #e6e6ef;
  --bg: #f8f8fc;
  --white: #ffffff;
  --header: #363676;
  --avatar: #474787;
  --orange: #e86630;
  --badge: #2f2a85;
  --tab-bg: #f0f0f7;
  --inactive: #c7c7d9;
  --info: #8a8aae;
  --footer: #eae8f7;
  --online: #37ae35;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 10px rgba(0, 0, 0, 0.02);
  --shadow-panel: 0 8px 24px rgba(61, 61, 89, 0.12);
  --column: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
}

button,
input,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.page-header {
  background: var(--header);
  color: var(--white);
}

.page-header__inner,
.page,
.page-footer__inner {
  width: min(var(--column), calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.page-header__inner {
  display: flex;
  align-items: center;
  height: 50px;
}

.page-header__logo {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.page-header__logo img {
  width: 30px;
  height: 30px;
}

.page-header__nav {
  display: flex;
  align-items: center;
  height: 46px;
  margin-left: 136px;
}

.page-header__link {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 32px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  text-decoration: none;
}

.page-header__link:focus-visible,
.home-btn:focus-visible,
.tabs__tab:focus-visible,
.view-switch__button:focus-visible,
.filter-button:focus-visible,
.filter-chip__remove:focus-visible,
.search__input:focus-visible,
.booking__close:focus-visible,
.time-slots__chip:focus-visible,
.submit:focus-visible,
.phones__value:focus-visible,
.page-footer__policy:focus-visible,
.view-switch__input:focus-visible + .view-switch__button,
.filter-panel__toggle:focus-visible + .filters .filter-button,
.filter-panel__clear:focus-visible,
.check input:focus-visible + .check__box {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-header__user {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  margin-left: auto;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 16.8px;
  white-space: nowrap;
}

.page-header__profile {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  color: inherit;
  text-decoration: none;
}

.page-header__menu {
  display: none;
}

.page-header__menu {
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  appearance: none;
}

.page-header__menu img {
  width: 17px;
  height: 12px;
}

.page-header__avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--avatar);
}

.page-header__avatar img {
  width: 19px;
  height: 19px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 20px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 10px;
  width: 79px;
  height: 37px;
  padding: 0;
  border: 1px solid var(--label);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.home-btn img:first-child,
.filter-chip__remove img {
  width: 12px;
  height: 12px;
}

.home-btn img:last-child {
  width: 17px;
  height: 15px;
}

.policy {
  display: flex;
  flex-direction: column;
}

.policy__badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  height: 34px;
  margin-bottom: -17px;
  margin-left: 24px;
  padding: 10px 20px 8px;
  border-radius: 6px;
  background: var(--badge);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  line-height: 15.4px;
  letter-spacing: 0.99px;
  text-transform: uppercase;
}

.policy__card {
  padding: 44px 24px 24px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.policy__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 52px;
}

.policy__number,
.policy__term-label {
  font-size: 17px;
  font-weight: 700;
  line-height: 23.8px;
}

.policy__number {
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.policy__term {
  text-align: right;
}

.policy__term-label {
  letter-spacing: 0.17px;
}

.policy__term-value,
.policy__owner {
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 23.8px;
  letter-spacing: 0.17px;
}

.policy__term-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.policy__term-value img,
.filter-panel__clear img {
  flex: none;
  width: 16px;
  height: 16px;
}

.policy__owner {
  margin-top: 4px;
}

.clinics {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tabs {
  display: inline-flex;
  align-self: flex-start;
  height: 42px;
  padding: 2px;
  border-radius: 6px;
  background: var(--tab-bg);
}

.tabs__tab {
  height: 38px;
  padding: 8px 24px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 22.1px;
  white-space: nowrap;
}

.tabs__tab--active {
  background: var(--white);
  box-shadow: var(--shadow-float);
}

.clinics__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.clinics__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.clinics__title {
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
}

.view-switch {
  display: flex;
  gap: 8px;
}

.view-switch__input,
.filter-panel__toggle,
.check input,
.select__option input,
.map-view__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.view-switch__button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--inactive);
  border-radius: 4px;
  background: transparent;
  color: var(--inactive);
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  letter-spacing: 0.13px;
  cursor: pointer;
}

.clinics__main:has(#view-list:checked) .view-switch__button[for="view-list"],
.clinics__main:has(#view-map:checked) .view-switch__button[for="view-map"] {
  border-color: transparent;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-float);
}

.clinics__main:has(#view-map:checked) .clinics__stack {
  display: none;
}

.clinics__main:has(#view-map:checked) .map-view {
  display: block;
}

body:has(#view-map:checked) {
  overflow-x: hidden;
}

.clinics__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filters-wrap {
  position: relative;
}

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

.filters__selected {
  display: contents;
}

.filter-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 5;
  padding: 20px 24px 24px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-panel);
}

.filters-wrap:has(.filter-panel__toggle:checked) .filter-panel {
  display: block;
}

.filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.filter-panel__title,
.map-popup__name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.filter-panel__clear {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.filter-panel__clear:hover {
  opacity: 0.8;
}

.filter-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  justify-content: start;
  gap: 16px 24px;
}

.filter-panel .filter-field--specialist {
  display: none;
}

.filter-panel:has(#filter-online:checked) .filter-field--specialist {
  display: flex;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-field__label {
  padding: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}

.filter-field__control {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.filter-field__control img {
  flex: none;
  width: 20px;
  height: 20px;
}

.filter-field__control--select img {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.filter-field__control input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.filter-field__control input::placeholder {
  color: var(--label);
}

.filter-field__control input:focus {
  outline: none;
}

.filter-field__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--label);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-select {
  width: 100%;
}

.filter-select > summary {
  list-style: none;
  cursor: pointer;
}

.filter-select > summary::-webkit-details-marker,
.filter-select > summary::marker,
.select > summary.field::-webkit-details-marker,
.select > summary.field::marker {
  display: none;
  content: "";
}

.filter-select[open] {
  z-index: 6;
}

.filter-select[open] > summary {
  border-color: var(--orange);
}

.filter-select .select__choice {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  min-width: 0;
  cursor: pointer;
}

.check__box {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--inactive);
  border-radius: 4px;
  background: var(--white);
}

.check input:checked + .check__box {
  border-color: var(--orange);
  background: var(--orange);
}

.check input:checked + .check__box::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check__text {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  letter-spacing: 0.15px;
  box-shadow: var(--shadow-float);
}

.filter-button__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.filter-button__icon img {
  width: 15px;
  height: 15px;
}

.filter-button__count {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
  letter-spacing: 0.11px;
}

.filter-button__count:empty,
.filter-button__count[data-count="0"] {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  letter-spacing: 0.13px;
}

.filter-chip__remove {
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 66px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.search__input::placeholder {
  color: var(--label);
  font-weight: 600;
}

.search__input:focus {
  outline: none;
}

.search img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background: var(--white);
}

.sheet__rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.clinic,
.clinic__summary,
.clinic__copy,
.clinic__body,
.clinic__intro,
.clinic__contacts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sheet .clinic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 24px;
  row-gap: 0;
}

.clinic__body {
  gap: 10px;
}

.clinic__aside {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-self: stretch;
  justify-items: end;
}

.clinic__aside .clinic__icon,
.clinic__aside .clinic__book {
  grid-area: 1 / 1;
}

.clinic__aside .clinic__icon {
  align-self: start;
}

.clinic__aside .clinic__book {
  align-self: center;
}

.clinic__book {
  flex: none;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  line-height: 15.4px;
  letter-spacing: 0.99px;
  text-transform: uppercase;
  cursor: pointer;
}

.clinic__name,
.meta__address,
.phones__label,
.phones__value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.clinic,
.clinic__summary {
  gap: 10px;
}

.clinic--open {
  gap: 24px;
}

.clinic__intro,
.clinic__contacts {
  gap: 4px;
}

.clinic__head,
.booking__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.clinic__head {
  min-height: 26px;
}

.clinic__name {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.clinic__kind,
.meta__address,
.phones__value,
.clinic__online {
  font-size: 13px;
  font-weight: 500;
  line-height: 18.2px;
  letter-spacing: 0.26px;
}

.clinic__kind,
.meta__address,
.clinic__online {
  color: var(--muted);
}

.clinic__icon {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta__icon {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
}

.meta__icon img {
  width: 13px;
  height: 13px;
}

.meta__icon img[width="12"] {
  width: 12px;
  height: 15px;
}

.clinic__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--online);
  margin: 3px 0;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.phones__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phones__item + .phones__item {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.phones__label {
  color: var(--label);
  font-size: 11px;
  font-weight: 600;
  line-height: 15.4px;
  letter-spacing: 0.22px;
  text-transform: uppercase;
}

.phones__item {
  min-width: 0;
  flex-wrap: wrap;
}

.phones__value {
  color: var(--text);
  text-decoration: none;
}

.phones__value--muted {
  color: var(--muted);
}

.booking {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.booking__head {
  min-height: 31px;
}

.booking__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 31.2px;
}

.booking__close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.booking__close img {
  width: 14px;
  height: 14px;
}

.booking__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  column-gap: 40px;
  align-items: start;
}

.booking__fields,
.booking__controls,
.time {
  display: flex;
  flex-direction: column;
}

.booking__fields,
.booking__controls {
  gap: 24px;
}

.time {
  gap: 16px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 66px;
  padding: 10px 44px 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.field--patient {
  gap: 2px;
  min-height: 66px;
  padding-bottom: 12px;
}

.field--note {
  font-weight: 500;
  font-size: 13px;
  line-height: 140%;
  color: var(--label);
}

.field--wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  color: var(--label);
  font-size: 11px;
  font-weight: 600;
  line-height: 15.4px;
  letter-spacing: 0.99px;
  text-transform: uppercase;
}

.field__value {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.field--patient .field__value {
  color: var(--label);
}

.field__icon {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
}

.field__icon--date {
  width: 20px;
  height: 20px;
}

.select {
  position: relative;
  width: 100%;
}

.clinics__stack .select[open] {
  z-index: 30;
}

.select > summary.field {
  width: 100%;
  min-height: 66px;
  font: inherit;
  text-align: left;
  list-style: none;
  cursor: pointer;
}

.select:has(input:checked):not(:has(input[value="surgeon"]:checked)) > summary.field {
  height: auto;
  min-height: 66px;
}

.select__choice {
  display: none;
}

.select:has(input[value="gynecologist"]:checked) .select__choice[data-value="gynecologist"],
.select:has(input[value="ultrasound"]:checked) .select__choice[data-value="ultrasound"],
.select:has(input[value="lor"]:checked) .select__choice[data-value="lor"],
.select:has(input[value="orthopedist"]:checked) .select__choice[data-value="orthopedist"],
.select:has(input[value="functional"]:checked) .select__choice[data-value="functional"],
.select:has(input[value="surgeon"]:checked) .select__choice[data-value="surgeon"],
.select:has(input[value="konstantinopolsky"]:checked) .select__choice[data-value="konstantinopolsky"],
.select:has(input[value="abdurahmanova"]:checked) .select__choice[data-value="abdurahmanova"],
.select:has(input[value="li"]:checked) .select__choice[data-value="li"] {
  display: block;
}

.select:has(input:checked) .select__placeholder {
  display: none;
}

.select[open] > summary.field {
  border-color: var(--orange);
  border-radius: 4px;
}

.select__menu {
  margin-top: 4px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
  border: 1px solid #e3e3ec;
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-panel);
}

.clinics__stack .select__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 0;
  padding: 0;
  border-radius: 8px;
}

.select__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.clinics__stack .select__option + .select__option {
  border-top: 1px solid var(--line);
}

.select__option:hover,
.select__option:focus-within {
  background: var(--bg);
}

.select__option-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.select__option-text {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  overflow-wrap: break-word;
}

.select__option-note {
  color: var(--label);
  font-size: 13px;
  font-weight: 500;
  line-height: 18.2px;
}

.select__option:has(input:checked) .select__option-text {
  color: var(--orange);
  font-weight: 600;
}

.select__check {
  display: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: auto;
}

.select__option:has(input:checked) .select__check {
  display: block;
}

.time__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-slots__chip {
  width: 67px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--label);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 15.4px;
  letter-spacing: 0.99px;
}

.time-slots__chip--selected,
.map-card--selected {
  background: var(--footer);
}

.submit {
  align-self: flex-start;
  height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 4px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  line-height: 15.4px;
  letter-spacing: 0.99px;
  text-transform: uppercase;
}

.booking-info {
  min-width: 0;
  max-width: 100%;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg);
}

.booking-info__title {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--info);
  font-size: 12px;
  font-weight: 500;
  line-height: 16.8px;
  text-transform: uppercase;
}

.booking-info__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-info__rows > p {
  min-width: 0;
  max-width: 100%;
}

.booking-info__label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 15.4px;
  letter-spacing: 0.22px;
}

.booking-info__value {
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
}

.booking-info__value--name {
  display: block;
  max-width: 100%;
  line-height: 19.5px;
  overflow-wrap: break-word;
}

.page-spacer {
  height: 120px;
}

.page-footer {
  padding: 24px 0;
  background: var(--footer);
}

.page-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 39px;
}

.page-footer__logo {
  display: block;
  width: 39px;
  height: 39px;
}

.page-footer__logo img {
  width: 39px;
  height: 39px;
}

.page-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}

.page-footer__copy {
  font-size: 13px;
  line-height: 18.2px;
  letter-spacing: 0.26px;
}

.page-footer__policy {
  color: var(--muted);
  font-size: 11px;
  line-height: 15.4px;
  letter-spacing: 0.22px;
  text-decoration: none;
}

@media (max-width: 1440px) {
  .page-header__inner,
  .page {
    width: min(1060px, calc(100% - 68px));
  }

  .page-footer__inner {
    width: min(720px, calc(100% - 68px));
  }

  .page-header__nav {
    margin-left: 66px;
  }

  .page {
    gap: 40px;
  }

  .clinics {
    margin-top: 20px;
  }

  .page-spacer {
    height: 254px;
  }

  .filter-chip--dental {
    display: none;
  }

  .policy__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 40px;
    row-gap: 4px;
    align-items: center;
  }

  .policy__top,
  .policy__term {
    display: contents;
  }

  .policy__number {
    grid-column: 1;
    grid-row: 1;
  }

  .policy__term-label {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .policy__owner {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .policy__term-value {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    text-align: right;
  }
}

@media (max-width: 1200px) {
  .page-header__nav {
    margin-left: 24px;
  }

  .page-header__link {
    padding: 0 16px;
  }

  .booking__body {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .booking-info {
    order: -1;
    width: 100%;
  }

  .booking-info__rows {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
  }

  .booking-info__value--name {
    max-width: min(220px, 100%);
  }
}

@media (max-width: 768px) {
  .page-header__nav {
    display: none;
  }

  .clinics {
    margin-top: 0;
    gap: 24px;
  }

  .page-spacer {
    height: 60px;
  }

  .policy__card {
    padding-top: 40px;
  }

  .tabs__tab {
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
  }

  .filters-wrap .filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .filters-wrap .filters__selected {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-self: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  }

  .filters-wrap .filters__selected::-webkit-scrollbar {
    display: none;
  }

  .filters-wrap .filter-chip {
    flex: none;
  }

  .filter-panel {
    padding: 20px;
  }

  .phones {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .booking-info__rows {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
  }

  .booking-info__rows > p:has(.booking-info__value--name) {
    flex: 1 1 120px;
    width: auto;
    min-width: 0;
    max-width: min(220px, 100%);
  }

  .phones__item + .phones__item {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .meta:has(.phones) {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .filter-panel__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .policy__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .policy__top,
  .policy__term {
    display: contents;
  }

  .policy__term-label,
  .policy__term-value,
  .policy__owner {
    margin: 0;
    text-align: left;
  }

  .policy__term-value {
    justify-content: flex-start;
  }

  .sheet .clinic {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "icon"
      "body"
      "book";
    row-gap: 16px;
  }

  .clinic__book {
    width: 100%;
  }

    .clinic__aside {
    display: contents;
  }

  .sheet .clinic__icon {
    grid-area: icon;
    justify-self: start;
  }

  .sheet .clinic__body {
    grid-area: body;
  }

  .sheet .clinic__book {
    grid-area: book;
    justify-self: start;
    align-self: start;
    width: 100%;
  }

  .booking-info {
    display: none;
  }
}

@media (max-width: 425px) {
  .page {
    width: calc(100% - 32px);
    gap: 36px;
  }

  .page-header__inner {
    width: calc(100% - 70px);
  }

  .page-footer__inner {
    width: calc(100% - 68px);
  }

  .page-header__menu {
    display: none;
  }

  .page-spacer {
    height: 60px;
  }

  .filter-chip--dental {
    display: inline-flex;
  }

  .policy__badge {
    height: 30px;
    margin-bottom: -16px;
    margin-left: 16px;
    padding: 8px 20px 6px;
  }

  .policy__card {
    padding: 32px 16px 16px;
  }

  .policy__number {
    font-size: 20px;
    line-height: 28px;
  }

  .policy__term-value,
  .policy__owner {
    font-size: 15px;
    line-height: 21px;
  }

  .clinics {
    gap: 20px;
  }

  .clinics__main {
    gap: 20px;
  }

  .clinics__title {
    font-size: 22px;
    line-height: 29px;
  }

  .filters-wrap .filters {
    gap: 8px;
  }

  .filters-wrap .filters__selected {
    flex-direction: column;
    align-items: flex-start;
    align-self: unset;
  }

  .filter-panel {
    padding: 16px;
  }

  .filter-field__control {
    height: 40px;
  }

  .filter-chip {
    height: 36px;
  }

  .search {
    height: 62px;
  }

  .search__input {
    font-size: 17px;
    line-height: 22px;
  }

  .sheet {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 16px;
    border-radius: 0;
    gap: 20px;
  }

  .clinic__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .clinic__icon {
    order: -1;
  }

  .clinic__name {
    font-size: 17px;
    line-height: 22px;
  }

  .phones {
    gap: 8px;
  }

  .phones__label {
    text-transform: uppercase;
  }

  .phones__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .phones__item:only-child {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    max-width: 100%;
    column-gap: 6px;
    row-gap: 2px;
  }

  .booking__title,
  .time__title {
    font-size: 17px;
    line-height: 22px;
  }

  .booking__controls {
    gap: 12px;
  }

  .field {
    min-height: 62px;
  }

  .select > summary.field {
    min-height: 62px;
  }

  .field--patient {
    height: auto;
    min-height: 96px;
  }

  .field__value {
    font-size: 15px;
    line-height: 19.5px;
  }

  .field--patient .field__value {
    font-size: 20px;
    line-height: 26px;
  }

  .page-header__avatar {
    background: none;
  }

  .page-header__profile {
    flex-flow: row-reverse;
    gap: 3px;
  }

  .filter-panel__clear {
    font-size: 15px;
  }

  .submit {
    width: 100%;
  }
}

.map-view {
  display: none;
}

.map-filters--bar {
  display: none;
}

.map-stage {
  position: relative;
  width: 100vw;
  height: 947px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #e7eef2;
}

.map-stage__canvas,
.map-pins,
.map-stage__image {
  position: absolute;
  inset: 0;
}

.map-stage__image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.map-stage__image--1920 {
  display: block;
}

.map-pin {
  position: absolute;
  z-index: 1;
  line-height: 0;
}

.map-pin img {
  display: block;
}

.map-pin--selected {
  left: 38.177%;
  top: 31.89%;
}

.map-pin--count-12 {
  left: 57.292%;
  top: 38.015%;
}

.map-pin--orange {
  left: 67.448%;
  top: 40.549%;
}

.map-pin--dark {
  left: 57.083%;
  top: 57.233%;
}

.map-pin--count-3 {
  left: 67.448%;
  top: 55.966%;
}

.map-pin--count {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #a8a8bf;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.map-panel {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 533px;
  height: 774px;
  max-height: 100%;
  padding-top: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.map-panel__search {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--line);
}

.map-panel__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 8px 12px 0;
  scrollbar-color: #dadada transparent;
  scrollbar-width: thin;
}

.map-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 12px 0 20px;
  padding: 20px;
  border-radius: 12px;
}

.map-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
}

.map-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.map-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
}

.map-card__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.map-card__address img {
  flex: none;
  width: 12px;
  height: 15px;
  margin-top: 1px;
}

.map-filters--float {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 553px;
  right: 20px;
  height: 40px;
  overflow: hidden;
}

.map-dock {
  position: absolute;
  z-index: 3;
  top: 122px;
  left: 553px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  width: min(1221px, calc(100% - 573px));
  max-width: calc(100% - 20px);
  height: calc(100% - 138px);
}

.map-popup,
.map-booking {
  max-height: 100%;
  overflow: auto;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-panel);
}

.map-popup {
  display: flex;
  flex: 0 2 474px;
  flex-direction: column;
  gap: 12px;
  width: auto;
  min-width: 180px;
  max-width: min(474px, 100%);
  padding: 16px 20px;
}

.map-popup__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.map-popup__kind {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}

.map-popup__phones {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.map-popup__phones-icon,
.map-popup__phone img {
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 3px;
}

.map-popup__phone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.map-popup__phone {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.map-popup__phone span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.map-clinic {
  display: none;
}

.map-booking {
  container-type: inline-size;
  flex: 1 1 420px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 20px;
}

.map-booking .booking__body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 271px);
  column-gap: 24px;
}

.map-booking .booking__body,
.map-booking .booking__fields,
.map-booking .booking__controls,
.map-booking .booking__head,
.map-booking .time,
.map-booking .select,
.map-booking .field {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.map-booking .booking__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-booking .booking__close {
  flex: none;
}

.map-booking .field,
.map-booking .select > summary.field {
  height: auto;
}

.map-booking .field__value,
.map-booking .select__placeholder {
  display: block;
}

.map-booking .field__value,
.map-booking .select__placeholder,
.map-booking .select__choice {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
}

.map-booking .select:has(input:checked):not(:has(input[value="surgeon"]:checked)) > summary.field {
  min-height: 66px;
}

@container (max-width: 659px) {
  .map-booking .booking__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-booking .booking-info {
    order: -1;
    width: 100%;
    max-width: 100%;
  }

  .map-booking .booking-info__rows {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .map-booking .booking-info__rows > p {
    flex: 0 0 auto;
    width: auto;
    min-width: auto;
    max-width: 100%;
  }

  .map-booking .booking-info__rows > p:has(.booking-info__value--name) {
    min-width: min(160px, 100%);
    max-width: 25%;
  }
}

@media (max-width: 1700px) {
  .map-panel {
    width: 400px;
    height: 861px;
  }

  .map-filters--float {
    left: 420px;
  }

  .map-dock {
    left: 420px;
    width: min(1221px, calc(100% - 440px));
  }

  .map-popup {
    flex-basis: 400px;
    max-width: min(400px, 100%);
  }

  .map-booking .booking__body {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .map-booking .booking-info {
    order: -1;
    width: 100%;
  }
}

@media (max-width: 1440px) {
  .map-stage {
    height: 1081px;
  }

  .map-stage__image--1920 {
    display: none;
  }

  .map-stage__image--1440 {
    display: block;
  }

  .map-pin--selected {
    left: 38.194%;
    top: 27.937%;
  }

  .map-pin--count-12 {
    left: 58.333%;
    top: 34.227%;
  }

  .map-pin--orange {
    left: 67.847%;
    top: 35.523%;
  }

  .map-pin--dark {
    left: 57.083%;
    top: 50.139%;
  }

  .map-pin--count-3 {
    left: 67.431%;
    top: 49.029%;
  }

}

@media (max-width: 1200px) {
  .map-filters--bar {
    display: flex;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 20px 32px;
    background: var(--white);
  }

  .map-filters--float,
  .map-panel,
  .map-popup {
    display: none;
  }

  .map-stage {
    height: auto;
    overflow: visible;
  }

  .map-stage__canvas {
    position: relative;
    height: calc(100vw * 1081 / 1440);
    max-height: 1081px;
  }

  .map-dock {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    height: auto;
    max-width: none;
    margin-top: 0;
    background: var(--white);
  }

  .map-clinic {
    display: flex;
    width: 100%;
    padding: 24px 32px 0;
  }

  .map-booking,
  .map-popup {
    max-height: none;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .map-booking {
    width: 100%;
    padding: 24px 32px 32px;
  }

  .map-booking .booking-info {
    order: -1;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .map-stage__canvas {
    height: 862px;
    max-height: none;
  }

  .map-stage__image--1440 {
    display: none;
  }

  .map-stage__image--768 {
    display: block;
  }

  .map-pin--selected {
    left: 17.448%;
    top: 35.035%;
  }

  .map-pin--count-12 {
    left: 53.255%;
    top: 41.763%;
  }

  .map-pin--orange {
    left: 72.266%;
    top: 44.548%;
  }

  .map-pin--dark {
    left: 52.865%;
    top: 62.877%;
  }

  .map-pin--count-3 {
    left: 72.266%;
    top: 61.485%;
  }

  .sheet {
    gap: 24px;
  }
}

@media (max-width: 375px) {
  .map-filters--bar {
    padding: 12px 16px;
  }

  .map-stage__image--768 {
    display: none;
  }

  .map-stage__image--375 {
    display: block;
  }

  .map-pin--selected {
    left: 9.333%;
    top: 35.035%;
  }

  .map-pin--count-12 {
    left: 82.667%;
    top: 41.763%;
  }

  .map-pin--orange {
    left: 29.867%;
    top: 44.548%;
  }

  .map-pin--dark {
    left: 81.867%;
    top: 62.877%;
  }

  .map-pin--count-3 {
    left: 29.867%;
    top: 61.485%;
  }

  .map-clinic {
    padding: 16px 16px 0;
  }

  .map-booking {
    padding: 16px;
  }

  .map-booking .field,
  .map-booking .field--patient,
  .map-booking .select > summary.field,
  .map-booking .select:has(input:checked):not(:has(input[value="surgeon"]:checked)) > summary.field {
    min-height: 62px;
  }

  .sheet {
    gap: 20px;
  }
}

@media (max-width: 500px) {
  .tabs {
    width: 100%;
    max-width: 100%;
    height: 38px;
  }

  .tabs__tab {
    flex: none;
    height: 34px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
  }

  .clinic__contacts:has(.meta__address),
  .meta:has(.meta__address) {
    min-width: 0;
    max-width: 100%;
  }

  .meta__address {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 1700px) {
  .map-booking .booking-info__rows {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .map-booking .booking-info__rows > p {
    flex: 0 0 auto;
    width: auto;
    min-width: auto;
    max-width: 100%;
  }

  .map-booking .booking-info__rows > p:has(.booking-info__value--name) {
    min-width: min(160px, 100%);
    max-width: 25%;
  }
}
