* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/martianmono/v6/2V0PKIcADoYhV6w87xrTKjs4CYElh_VS9YA4TlTnaT69wWmm.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://yastatic.net/s3/distribution/lpc/fonts/Inter/Inter-Regular.woff) format('woff2');
}

@font-face {
  font-family: 'YS Text';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://yastatic.net/s3/home/fonts/ys/3/text-regular.woff2) format('woff2');
}

@font-face {
  font-family: 'YS Text';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://yastatic.net/s3/home/fonts/ys/4/text-medium.woff2) format('woff2');
}

html,
body {
  height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 140%;
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.visibility-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

/* ══════════════════════════════════════════════════════════
   КОРНЕВОЙ КОНТЕЙНЕР
══════════════════════════════════════════════════════════ */
#app {
  display: flex;
  flex-flow: column nowrap;
}

/* ══════════════════════════════════════════════════════════
  .header
══════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px 24px 49px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  z-index: 100;
  gap: 70px;
  min-height: 80px;
}

.header__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.header__logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header__menu {
  flex: 1;
  max-width: 925px;
}

.header__burger {
  all: unset;
  display: none;
}

.nav {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.023em;
  color: #201c1c;
}

.nav__link {
  color: currentColor;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .header {
    padding: 24px 28px 24px 18px;
    top: 17px;
    left: 15px;
    right: 15px;
    gap: 30px;
  }

  .header__logo {
    height: 25px;
  }

  .nav {
    gap: 15px;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 9px 16px;
  }

  .header__logo {
    height: 30px;
  }

  .header__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    border-radius: 16px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    padding: 16px 0;
    box-sizing: border-box;
    overflow: auto;
    height: calc(100vh - 17px - 10px - 80px);
    height: calc(100dvh - 17px - 10px - 80px);
    transition: transform 0.5s ease-in, opacity 0s ease-in 0.5s;
    transform: translate3d(100%, 0, 0);
  }

  .header__menu.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: transform 0.5s ease-in;
  }

  .nav {
    flex-flow: column nowrap;
    justify-content: start;
    align-items: start;
  }

  .nav__item {
    width: 100%;
  }

  .nav__link {
    padding: 8px 16px;
  }

  .burger {
    all: unset;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    gap: 4px;
  }

  .burger::before,
  .burger::after {
    display: block;
    content: '';
    width: 26px;
    height: 3px;
    background-color: #00068a;
    flex-shrink: 0;
    transition: 0.3s ease-out;
    transform-origin: center;
  }

  .burger__content {
    width: 26px;
    height: 3px;
    background-color: #00068a;
    flex-shrink: 0;
  }

  .header__menu.active + .burger .burger__content {
    opacity: 0; /* Скрываем среднюю полоску */
  }

  .header__menu.active + .burger::before {
    transform: translateY(7px) rotate(45deg);
  }

  .header__menu.active + .burger::after {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 360px) {
  .header__logo {
    height: 25px;
  }
}

.btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  background-color: #00068a;
  box-sizing: border-box;
  color: #ffffff;
}

.btn:hover {
  background-color: #020abc;
}

.btn:active {
  background-color: #020abcdd;
}

.btn:disabled {
  background: #a9a9a9;
  cursor: not-allowed;
}

.btn_bordered {
  background-color: transparent;
  border: 1px solid #9f9f9f;
  color: #000000;
}

.btn_bordered:hover {
  background-color: #f6f6fa;
}

.btn_bordered:active {
  background-color: #00000033;
}

/* ══════════════════════════════════════════════════════════
  .hero
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 136px 24px 21px;
  height: clamp(560px, calc(100vh - 140px), 920px);
  height: clamp(560px, calc(100dvh - 140px), 920px);
  display: grid;
  grid-template-columns: 365px 1fr 222px;
  grid-template-areas: 'side1 . side2';
  grid-template-rows: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0 0 44px 44px;
  z-index: 2;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 300px 1fr 200px;
  }
}

@media (max-width: 767px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: stretch;
    gap: 15px;
    padding: 122px 14px 23px;
    height: clamp(520px, calc(100vh - 110px), 760px);
    height: clamp(520px, calc(100dvh - 110px), 760px);
  }
}

/* ══════════════════════════════════════════════════════════
   КАРТА
══════════════════════════════════════════════════════════ */
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e8eef3;
  min-width: 0;
}

/* Обесцвечиваем только слой тайлов (подложку карты),
   чтобы наши фото-метки и иконки оставались цветными. */
#map .ymaps-2-1-79-map-copyrights-promo,
#map ymaps[class*="ground-pane"] {
  filter: grayscale(1) saturate(0) contrast(0.95) brightness(1.03);
}

/* На случай иной версии классов ymaps — целимся в контейнер тайлов. */
#map ymaps[class$="-ground-pane"],
#map ymaps[class*="-ground-pane"] {
  filter: grayscale(1) saturate(0) contrast(0.95) brightness(1.03);
}

/* ── Круглая фото-метка семьи ─────────────────────────── */
.family-marker {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #00068a;
  border: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease-out, border 0.15s ease-out;
}

[class*="placemark-overlay"]:hover .family-marker,
.family-marker:hover {
  transform: scale(1.1);
}

.family-marker__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.family-marker--selected {
  border: 3px solid #00068a;
  width: 64px;
  height: 64px;
  left: -32px;
  top: -32px;
}

/* ── Бейдж «+N» ещё семей в этом городе ───────────────── */
.city-badge {
  position: absolute;
  left: -15px;
  top: -15px;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 15px;
  background: #00068a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  font-family: Inter, Arial, Helvetica, sans-serif;
  transition: transform 0.15s ease-in;
}

.city-badge:hover {
  transform: scale(1.1);
}

/* hint */
.map-hint {
  position: absolute;
  transform: translate3d(-50%, -100%, 0);
  box-sizing: border-box;
  background: #fff;
  border-radius: 14.4px;
  max-width: 212px;
  min-width: 50px;
  text-align: center;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  color: #4d4d4d;
  box-shadow: 0px 0px 4.8px 0px #0000001A;
}

.map-hint::before {
  position: absolute;
  display: block;
  content: '';
  background-image: url("data:image/svg+xml, %3Csvg viewBox='0 0 29 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.4008 9.60156L13.894 8.58807C13.5917 7.98343 13.4406 7.68112 13.2882 7.40692C10.857 3.03195 6.32851 0.233178 1.32817 0.0152225C1.01478 0.00156212 0.676777 0.00156212 0.000780106 0.00156212L28.8008 0.00156212C28.1248 0.00156212 27.7868 0.00156212 27.4734 0.0152225C22.473 0.233178 17.9445 3.03195 15.5134 7.40692C15.361 7.68112 15.2098 7.98343 14.9075 8.58807L14.4008 9.60156Z' fill='white'/%3E%3C/svg%3E%0A");
  width: 29px;
  height: 10px;
  top: 100%;
  left: 50%;
  transform: translate3d(-50%, -1px, 0);
  z-index: 2;
  filter: drop-shadow(0 0 4.8 #0000001A);
}

.map-hint__content {
  background-color: #fff;
  border-radius: 14.4px;
  max-height: 100px;
  width: 100%;
  padding: 9px;
  z-index: 3;
}

.map-hint_memory {
  max-width: 280px;
  min-width: 80px;
  width: max-content;
  text-align: left;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 135%;
  color: #1c1b1f;
}

.map-hint_memory .map-hint__content {
  max-height: none;
  padding: 10px;
}

.memory-point-popup {
  max-width: 260px;
  color: #1c1b1f;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ══════════════════════════════════════════════════════════
   ЛЕВАЯ ПАНЕЛЬ — ФОРМА-ВИЗАРД
══════════════════════════════════════════════════════════ */
.navigation-panel {
  grid-area: side2;
  display: flex;
  flex-flow: row nowrap;
  align-items: end;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  pointer-events: none;
}

.map-controls {
  position: absolute;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: end;
  align-items: end;
  gap: 10px;
}

.zoom-btn {
  all: unset;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  grid-template-areas: 'center';
  align-items: center;
  justify-items: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0px 4.06px 4.06px 0px #00000040;
}

.zoom-btn::before {
  grid-area: center;
  display: block;
  content: '';
  width: 20px;
  height: 2px;
  background-color: #201c1c;
}

.zoom-btn_in::after {
  grid-area: center;
  display: block;
  content: '';
  width: 2px;
  height: 20px;
  background-color: #201c1c;
}

.sidebar-toggle {
  all: unset;
  display: none;
  width: 63px;
  height: 63px;
  border-radius: 50%;
  box-shadow: 0px 4.06px 4.06px 0px #00000040;
  background-color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: auto;
}

.sidebar-toggle svg {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
}

.sidebar__close {
  display: none;
}

@media (max-width: 767px) {
  .sidebar__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #ccc;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: all 0.15s ease-out;
  }

  .sidebar-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navigation-panel {
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  .map-controls {
    top: 122px;
    right: 14px;
    bottom: auto;
  }
}

.form-panel {
  grid-column: 1 / 2;
  grid-area: side1;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  justify-content: end;
  align-items: start;
  pointer-events: none;
  /* slide-in animation */
  /* transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  order: -1; */
  z-index: 2;
}

@media (max-width: 767px) {
  .form-panel {
    justify-content: end;
  }
}


/* ── Экраны шагов ─────────────────────────────────────── */
.wizard-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  pointer-events: none;
}

.wizard-screen#screen-2 {
  height: 100%;
  justify-content: start;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 16px;
}

.wizard-screen[hidden],
.wizard-screen.is-hidden {
  display: none;
}

@media (max-width: 767px) {
  .wizard-screen {
    justify-content: end;
    gap: 15px;
    height: 100%;
  }
}

/* ══════════════════════════════════════════════════════════
   ШАГ 1 — ПРИВЕТСТВИЕ
══════════════════════════════════════════════════════════ */
.welcome-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 27px 24px;
  text-align: center;
  pointer-events: auto;
  gap: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0px 4px 4px 0px #00000040;
  overflow: hidden;
  max-width: 100%;
}

.welcome-screen__content {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: center;
  gap: 20px;
  overflow-y: auto;
  margin: auto 0;
}

.welcome-screen__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 120%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

.welcome-screen__text {
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.01em;
  text-align: center;
}

.welcome-screen__text p:not(:last-child) {
  margin-bottom: 1.4em;
}

.welcome-screen__button {
  width: 100%;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .welcome-screen {
    flex: none;
    padding: 34px 25px;
    scroll-padding-block: 34px;
    max-height: calc(100% - 30vh);
  }

  .welcome-screen__content {
    justify-content: start;
    gap: 26px;
  }
}

@media (max-width: 360px) {
  .welcome-screen {
    padding: 24px 15px;
  }

  .welcome-screen__content {
    gap: 20px;
  }

  .welcome-screen__title {
    font-size: 25px;
  }

  .welcome-screen__text {
    font-size: 14px;
  }
}
/* ══════════════════════════════════════════════════════════
   ШАГ 2, 3 — ТЕЛО ШАГА
══════════════════════════════════════════════════════════ */


.wizard-screen__body {
  padding: 33px 27px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 100%;
  overflow-y: auto;
  scroll-padding-block: 33px;
  box-sizing: border-box;
  pointer-events: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wizard-screen__body::-webkit-scrollbar {
  display: none;
}

.wizard-screen__header {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.wizard-screen__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 120%;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
}

.wizard-screen__text {
  font-size: 16px;
  line-height: 140%;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.step {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
  padding-bottom: 80px;
  box-sizing: border-box;
  gap: 20px;
}

.step.is-hidden {
  display: none;
}

.step__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 170%;
  text-align: center;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
}

/* ── Кнопки навигации ─────────────────────────────────── */
.step__buttons {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: stretch;
  margin: 0;
  box-sizing: border-box;
  padding: 16px 27px;
  background-color: #fff;
  gap: 8px 16px;
  border-radius: 0 0 16px 16px;
}

.step__btn {
  flex: 1;
}

.step__btn_back {
  display: none;
}

@media (max-width: 767px) {
  .step__btn_back {
    display: flex;
  }
}


/* ── Ошибки шага ──────────────────────────────────────── */
.step__error {
  box-sizing: border-box;
  min-width: 100%;
  font-size: 10px;
  line-height: 100%;
  color: #c62828;
  width: 100%;
}

/* ── Загрузка фото ────────────────────────────────────── */
.photo-upload {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.photo-upload__placeholder {
  border-radius: 8px;
  border: 1px solid #d3d3d3;
  background: #f4f4f4;
  height: 198px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 24px;
  color: #8b8b8b;
  font-size: 16px;
  line-height: 120%;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  box-sizing: border-box;
}

.photo-upload__placeholder:hover {
  border-color: #000;
}

.photo-upload__placeholder:active {
  border-color: #000;
}

.photo-upload__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.photo-upload__icon svg {
  width: 100%;
  height: 100%;
}

.photo-upload__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 170%;
  text-align: center;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
  color: #000000;
}

.photo-upload__hint {
  font-size: 14px;
}

.photo-upload__preview {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.photo-upload__placeholder.is-hidden,
.photo-upload__preview.is-hidden {
  display: none;
}

.photo-upload__image {
  width: 100%;
  height: 198px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.photo-upload__remove {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #fff;
  background: #7d7d7d;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Поля формы ───────────────────────────────────────── */
.input {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
  gap: 7px;
}

.input__label {
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  color: #9f9f9f;
}

.input__note {
  display: block;
  font-size: 12px;
  margin-top: -4px;
  opacity: 0.8;
}

.input__field {
  all: unset;
  width: 100%;
  padding: 15px 24px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  font-size: 16px;
  line-height: 120%;
  font-weight: 400;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  transition: border-color 0.2s;
  background: #f4f4f4;
  color: #000;
  box-sizing: border-box;
  cursor: text;
  min-height: 51px;
}

.input__field::placeholder {
  color: #000;
  opacity: 0.3;
}

.input__field:hover {
  outline: none;
  border-color: #000;
}

.input__field:focus {
  outline: none;
  border-color: #000;
}

.agreement {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: start;
  gap: 24px;
}

.agreement__text {
  font-size: 16px;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  line-height: 120%;
  font-weight: 400;
  color: #9f9f9f;
}

.agreement__text p {
  margin: 0;
}

.agreement__text p:not(:last-child) {
  margin-block-end: 8px;
}

.agreement__notes {
  font-size: 12px;
  line-height: 120%;
  color: #9f9f9f;
}

:is(.agreement__text, .agreement__notes) a {
  color: currentColor;
  text-decoration: underline;
  transition: all 0.15s ease-in;
}

:is(.agreement__text, .agreement__notes) a:hover {
  text-decoration: none;
}

:is(.agreement__text, .agreement__notes) a:active {
  color: #000;
}

:is(.agreement__text, .agreement__notes) a:visited {
  color: #00068a;
}

.agreement__checkbox {
  padding: 5px 0;
}

.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox__label {
  display: flex;
  flex-flow: row nowrap;
  justify-content: start;
  align-items: flex-start;
  font-size: 12px;
  line-height: 120%;
  font-weight: 400;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  color: #9f9f9f;
  gap: 8px;
}

.checkbox__label-text a {
  color: #00068a;
  text-decoration: underline;
  transition: text-decoration 0.15s ease-in;
}

.checkbox__label-text a:hover {
  text-decoration: none;
}

.checkbox__label::before {
  display: block;
  background-image: url("data:image/svg+xml, %3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.70711 11.2929C8.31658 10.9024 7.68342 10.9024 7.29289 11.2929C6.90237 11.6834 6.90237 12.3166 7.29289 12.7071L10.2929 15.7071C10.6834 16.0976 11.3166 16.0976 11.7071 15.7071L17.7071 9.70711C18.0976 9.31658 18.0976 8.68342 17.7071 8.29289C17.3166 7.90237 16.6834 7.90237 16.2929 8.29289L11 13.5858L8.70711 11.2929Z' fill='white'/%3E%3C/svg%3E%0A");
  width: 20px;
  height: 20px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px #eb5547;
  flex-shrink: 0;
  background-color: transparent;
  background-size: 24px;
  background-position: 0 24px;
  background-repeat: no-repeat;
  content: '';
  transition: all 0.15s ease-in;
}

.checkbox:hover .checkbox__label::before {
  background-color: #eb5547;
}

.checkbox input[type="checkbox"]:checked + .checkbox__label::before {
  background-color: #eb5547;
  background-position: center;
}

.checkbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

/* ══════════════════════════════════════════════════════════
   ШАГ 3 — ТОЧКИ ПАМЯТИ
══════════════════════════════════════════════════════════ */
.memory-points-list {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 20px;
}

.point-card {
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.point-remove {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  background: #ccc;
  border-radius: 16px;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease-out;
  opacity: 0;
}

.point-card:hover .point-remove {
  opacity: 1;
}

.point-remove:hover {
  opacity: 0.8;
}

.select {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
  gap: 7px;
}

.select__label {
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  color: #9f9f9f;
}

.select__note {
  display: block;
  font-size: 12px;
  margin-top: -4px;
  opacity: 0.8;
}

.select__field {
  all: unset;
  width: 100%;
  padding: 15px 24px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  font-size: 16px;
  line-height: 120%;
  font-weight: 400;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  transition: border-color 0.2s;
  background: #f4f4f4;
  color: #000;
  box-sizing: border-box;
  cursor: text;
  min-height: 51px;
}

.select__field::placeholder {
  color: #000;
  opacity: 0.3;
}

.select__field:hover {
  outline: none;
  border-color: #000;
}

.select__field:focus {
  outline: none;
  border-color: #000;
}

/* .point-card select {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.2s;
} */


/* ── Сообщение формы ──────────────────────────────────── */
.form-message {
  margin-block: -10px;
  padding: 0;
  font-size: 14px;
  border-radius: 8px;
  box-sizing: border-box;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px 14px;
}

.form-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  padding: 10px 14px;
}

/* ══════════════════════════════════════════════════════════
   ПРАВАЯ БОКОВАЯ ПАНЕЛЬ — СТАТИСТИКА
══════════════════════════════════════════════════════════ */
.sidebar {
  grid-area: side2;
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  max-height: 292px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2.413px 2.413px 0 rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 20px;
  scroll-padding-block: 18px;
  z-index: 2;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar__section {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: center;
  gap: 14px;
}

.sidebar__title {
  text-align: center;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 120%;
  font-weight: 800;
  box-sizing: border-box;
}

.sidebar__statistics {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: start;
  width: 100%;
  gap: 16px;
}

@media (max-width: 767px) {
  .sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 100%, 0);
    position: absolute;
    inset: 122px 14px 25px;
    width: auto;
    height: auto;
    max-height: none;
    transition: transform 0.5s ease-in, opacity 0s ease-in 0.5s;
    gap: 38px;
    padding: 24px 30px;
    scroll-padding-block: 24px;
    z-index: 3;
  }

  .sidebar.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: transform 0.5s ease-in;
  }

  .sidebar__section {
    gap: 16px;
  }
}

/* ── Статистика ───────────────────────────────────────── */
.stat {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex: 1;
  padding: 8px 15px;
  border: 1px solid #989898;
  border-radius: 100px;
  min-height: 40px;
  gap: 15px;
  box-sizing: border-box;
}

.stat__value {
  display: block;
  font-size: 11px;
  line-height: 140%;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-family: Martian Mono, Inter, Arial, Helvetica, sans-serif;
  font-weight: 800;
  line-height: 140%;
}

/* ── Топ городов ──────────────────────────────────────── */
.cities-list {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  list-style: none;
  width: 100%;
  box-sizing: border-box;
}

.city {
  display: grid;
  grid-template-columns: 1fr 60px;
  grid-template-areas: 'label value';
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.city__label {
  grid-area: label;
  display: flex;
  flex-flow: column nowrap;
  justify-content: end;
  align-items: start;
  text-wrap: balance;
  overflow-wrap: break-word;
  font-size: 12px;
  line-height: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
  gap: 10px;
  flex: 1;
}

.city__label::after {
  display: block;
  content: '';
  width: var(--progress-bar, 0%);
  height: 5px;
  background-color: #49a1ff;
}

.city__count {
  grid-area: value;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: -0.02em;
  font-weight: 500;
  width: 60px;
  flex-shrink: 0;
  align-self: end;
}

/* ── Карточка участника ───────────────────────────────── */
.participant-card {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  flex-shrink: 0;
}

.participant-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #c00;
  margin-bottom: 10px;
}

.participant-card h2 {
  font-size: 17px;
  font-weight: 700;
}

.card-origin {
  font-size: 13px;
  color: #888;
  margin: 4px 0 12px;
}

.card-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-point {
  background: #faf5f5;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}

.card-point__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c00;
  margin-right: 6px;
}

.card-point__place {
  font-weight: 600;
}

.card-point__relation {
  color: #666;
  display: block;
  margin-top: 2px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #ccc;
  line-height: 1;
  transition: color 0.15s;
}

.close-btn:hover {
  color: #333;
}

/* ══════════════════════════════════════════════════════════
   АВТОДОПОЛНЕНИЕ ГОРОДА
══════════════════════════════════════════════════════════ */
.city-suggest-dropdown {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  box-shadow: 0 4px 4px #00000040;
  max-height: 220px;
  overflow-y: auto;
  min-width: 200px;
  font-family: YS Text, Arial, Helvetica, sans-serif;
}

.city-suggest-item {
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  line-height: 120%;
}

.city-suggest-item:hover,
.city-suggest-item.is-active {
  background: #f3f3f3;
  color: #00068a;
}

.city-suggest-item__sub {
  font-size: 10px;
  color: #9f9f9f;
  display: block;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  align-items: center;
}

.toast {
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: 360px;
  pointer-events: auto;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  background: #27ae60;
}

.toast--error {
  background: #c0392b;
}

.toast--info {
  background: #2980b9;
}

/* ══════════════════════════════════════════════════════════
   ВЫБОР ШАБЛОНА ПОСТЕРА
══════════════════════════════════════════════════════════ */
.poster-option {
  all: unset;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: 6px;
  background: #fff;
  width: 100%;
  border-radius: 6px;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  isolation: isolate;
}

.poster-option__preview {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 52.5%;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px #cdcdcd;
  transition: box-shadow 0.25s ease-in;
}

.poster-option:hover .poster-option__preview {
  box-shadow: inset 0 0 0 4px #cdcdcd;
}

.poster-option.is-selected .poster-option__preview {
  box-shadow: inset 0 0 0 4px #00068a;
}

.poster-option__preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: -1;
}

/* ══════════════════════════════════════════════════════════
   МОДАЛКА ПОСТЕРА
══════════════════════════════════════════════════════════ */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 70px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in;
}

@media (max-width: 1024px) {
  .poster-modal {
    padding: 60px 24px 60px;
  }
}

@media (max-width: 767px) {
  .poster-modal {
    padding: 72px 14px 24px;
  }
}

.poster-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.poster-modal__overlay {
  position: absolute;
  inset: 0;
  background: #00011366;
}

.poster-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: column nowrap;
  gap: 35px;
  width: 100%;
  max-width: 944px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 4px 4px 0px #00000040;
  box-sizing: border-box;
  animation: poster-modal-in 0.2s ease;
}

.poster-modal__scroll-wrapper {
  display: flex;
  flex-flow: column nowrap;
  gap: 35px;
  justify-content: start;
  align-items: stretch;
  padding: 40px 36px;
  scroll-padding-block: 40px;
  box-sizing: border-box;
  width: 100%;
  overflow-y: auto;
}

@keyframes poster-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.poster-modal__close {
  all: unset;
  position: absolute;
  top: 21px;
  right: 10px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.poster-modal__close svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.poster-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.poster-modal__close:active {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .poster-modal__scroll-wrapper {
    padding: 40px 28px;
  }

  .poster-modal__close {
    width: 50px;
    height: 50px;
    top: 13px;
  }

  .poster-modal__close svg {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 767px) {
  .poster-modal__dialog {
    max-height: calc(100vh - 100px);
    border-radius: 40px;
  }

  .poster-modal__scroll-wrapper {
    padding: 50px 26px;
    gap: 50px;
  }
}

.poster-modal__title {
  margin: 0;
  padding: 0;
  font-size: 40px;
  text-transform: uppercase;
  text-align: center;
  line-height: 90%;
  font-weight: 800;
  color: #00068a;
  letter-spacing: -0.02em;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
}

.poster-modal__content {
  display: grid;
  grid-template-columns: 1fr 198px;
  grid-template-areas: 'main side' 'buttons side';
  gap: 16px;
}

.poster-modal__main {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
  gap: 9px;
  grid-area: main;
}

.poster-modal__side {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
  gap: 9px;
  grid-area: side;
}

.poster-modal__actions {
  grid-area: buttons;
  display: flex;
  flex-flow: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 16px;
}

.poster-modal__templates {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
  gap: 15px;
  max-height: 100%;
  overflow: auto;
}

@media (max-width: 1024px) {
  .poster-modal__content {
    grid-template-columns: 1fr 168px;
  }

  .poster-modal__actions {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .poster-modal__title {
    margin: 0 -10px;
    width: calc(100% + 20px);
    text-wrap: balance;
  }

  .poster-modal__content {
    grid-template-columns: 100%;
    grid-template-areas: 'main' 'side' 'buttons';
    gap: 7px;
  }

  .poster-modal__templates {
    flex-flow: row nowrap;
    max-height: none;
    max-width: 100%;
    gap: 7px;
  }

  .poster-modal__actions {
    padding-top: 68px;
    flex-flow: column nowrap;
    gap: 10px;
  }

  .poster-option {
    width: 178px;
    flex-shrink: 0;
  }
}

@media (max-width: 400px) {
  .poster-option {
    width: 128px;
  }
}

.poster-modal__label {
  margin: 0;
  padding: 0;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 180%;
  color: #000000;
  letter-spacing: -0.02em;
  font-weight: 800;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
}

.poster-modal__preview {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid #b7b7b7;
}

.poster-modal__image {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
}

.poster-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
}

.poster-modal__loader[hidden] {
  display: none;
}

.poster-modal__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d4d8ff;
  border-top-color: #00068a;
  border-radius: 50%;
  animation: poster-modal-spin 0.8s linear infinite;
}

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

.poster-modal__btn {
  flex: 0 1 220px;
}

.poster-share-field {
  flex: 1 1 410px;
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 0 23px;
  border: 1px solid #9c9c9c;
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.poster-share-field__input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #000000;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-share-field__copy {
  all: unset;
  min-height: 30px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 10px;
  background-color: #00068a;
  color: #ffffff;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.poster-share-field__copy:hover {
  background-color: #020abc;
}

.poster-share-field__copy:active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .poster-modal__label {
    text-align: center;
  }

  .poster-modal__preview {
    border-radius: 9px;
  }

  .poster-modal__btn {
    flex: none;
    width: 100%;
  }

  .poster-share-field {
    width: 100%;
    min-height: 56px;
    flex: none;
    gap: 8px;
    padding: 0 6px 0 16px;
  }

  .poster-share-field__copy {
    min-height: 44px;
    padding: 0 16px;
  }
}

.container {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
  gap: 50px;
  max-width: 1286px;
  padding: 0 24px;
  box-sizing: border-box;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 767px) {
  .container {
    padding: 0 14px;
  }
}

.section {
  position: relative;
  width: 100%;
  padding: 90px 0;
  box-sizing: border-box;
  z-index: 2;
  background-color: #ffffff;
}

.section__header {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.section__title {
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
  font-size: 50px;
  line-height: 132%;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #00068a;
}

.section__text {
  font-size: 20px;
  line-height: 140%;
  letter-spacing: -0.01em;
  max-width: 580px;
  text-align: center;
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 930px;
  margin: 0 auto;
}

.section__subtitle {
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
  font-size: 32px;
  line-height: 106%;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section__column {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: start;
  gap: 24px;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.section_about {
  padding: 134px 0 90px;
  background-image: url('./assets/images/about.jpg');
  background-repeat: no-repeat;
  background-position: center 44px;
  background-size: cover;
  background-color: #00068a;
  color: #fff;
  margin-top: -44px;
  z-index: 1;
}

.section_about .section__title {
  color: #fff;
}

.section_faq {
  border-radius: 0 0 44px 44px;
}

@media (max-width: 1024px) {
  .section__grid {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .section__title {
    font-size: 40px;
  }

  .section__grid {
    grid-template-columns: 100%;
  }
}

.gallery {
  width: 100%;
  overflow: hidden;
}

.gallery__navigation {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 24px;
  gap: 8px;
}

.gallery__btn {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #f6f6fa;
  color: #000;
  transition: opacity 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.gallery__btn-icon :where(path,svg) {
  fill: currentColor;
}

.gallery__btn:hover {
  background-color: #00068a;
  color: #fff;
}

.gallery__btn:active {
  background-color: #020abc;
  color: #fff;
}

.gallery__btn-icon {
  flex-shrink: 0;
  width: 20px !important;
  height: 20px !important;
  transform-origin: center;
  pointer-events: none;
}

.gallery__btn.swiper-button-disabled {
  opacity: 50%;
}

.gallery__btn_prev .gallery__btn-icon {
  transform: rotate(180deg);
}

.terms-page {
  min-height: 100%;
  background: #f6f6fa;
}

.terms {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
  color: #201c1c;
}

.terms__back {
  display: inline-flex;
  margin-bottom: 32px;
  color: #00068a;
  font-family: YS Text, Arial, Helvetica, sans-serif;
  text-decoration: underline;
}

.terms__title {
  margin-bottom: 16px;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 106%;
  font-weight: 800;
  text-transform: uppercase;
}

.terms__lead {
  margin-bottom: 40px;
  font-size: 20px;
  line-height: 140%;
  color: #555;
}

.terms__section {
  padding: 24px 0;
  border-top: 1px solid #d3d3d3;
}

.terms__section h2 {
  margin-bottom: 12px;
  font-family: Martian Mono, Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 120%;
  text-transform: uppercase;
}

.terms__section p {
  font-size: 18px;
  line-height: 150%;
}

.terms__section p + p,
.terms__section p + .terms__list,
.terms__list + p {
  margin-top: 12px;
}

.terms__list {
  margin: 0;
  padding-left: 28px;
  font-size: 18px;
  line-height: 150%;
}

.swiper-navigation-icon {
  display: none;
}

.card {
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.card__image {
  width: 100%;
  aspect-ratio: 294 / 441;
  object-fit: cover;
  object-position: center;
}

.card__description {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas: 'name city';
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding-top: 10px;
  padding-bottom: 8px;
}

.card__name {
  width: 100%;
  grid-area: name;
}

.card__city {
  width: 100%;
  text-align: end;
  grid-area: city;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  gap: 7px;
  max-width: 856px;
  margin: 0 auto;
  width: 100%;
}

/*! spoiler start */
.spoiler {
  background-color: #f6f6fa;
  border-radius: 40px;
  width: 100%;
  font-family: YS Text, Arial, Helvetica, sans-serif;
}

.spoiler > .spoiler__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  column-gap: 8px;
  padding: 16px 25px;
  min-height: 76px;
  width: 100%;
  cursor: pointer;
  color: #000000;
  box-sizing: border-box;
}

.spoiler > .spoiler__header:hover {
  color: #00068a;
}

.spoiler > .spoiler__header .spoiler__title {
  font-size: 20px;
  line-height: 130%;
  font-weight: 400;
  margin: 0;
}

.spoiler > .spoiler__header .spoiler__arrow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 100%;
  align-items: center;
  justify-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

.spoiler__arrow::before,
.spoiler__arrow::after {
  display: block;
  content: '';
  background-color: currentColor;
  flex-shrink: 0;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.spoiler__arrow::before {
  width: 2px;
  height: 16px;
}

.spoiler__arrow::after {
  width: 16px;
  height: 2px;
}

.spoiler > .spoiler__content {
  padding: 0 25px 25px;
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  align-items: start;
  justify-content: start;
  gap: 16px;
  box-sizing: border-box;
}

.spoiler > .spoiler__content p,
.spoiler > .spoiler__content ul {
  font-size: 16px;
  line-height: 145%;
}

.spoiler > .spoiler__content ul {
  margin: 0;
  padding-left: 24px;
}

.spoiler > .spoiler__content a {
  color: #00068a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spoiler[open] > .spoiler__header .spoiler__arrow {
  transform: rotate(45deg);
}

/*! spoiler end */

.footer {
  position: relative;
  padding: 74px 0 30px;
  box-sizing: border-box;
  background-color: #000;
  color: rgba(255, 255, 255, 0.4);
  margin-top: -44px;
  z-index: 1;
}
