/* my.uni-renter.ru. Макет — «Страница контакты Unirenter-3.pdf», ширина 390:
   фон #F0F0F0, текст #1C1A1A, hero 300, строки 16px/600 с линией 2px и шагом 49.
   Вертикаль задана через svh + clamp: на коротких экранах фото и отступы
   ужимаются, чтобы все ссылки были в первом экране. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f0f0f0;
  --ink: #1c1a1a;
  --side: 24px;
  /* Каждая величина объявлена дважды: vh — запасной для браузеров без svh. */
  --hero: clamp(140px, 40vh, 300px);
  --hero: clamp(140px, 40svh, 300px);
  --title-top: clamp(14px, 4.4vh, 37px);
  --title-top: clamp(14px, 4.4svh, 37px);
  --title-gap: clamp(14px, 3.7vh, 31px);
  --title-gap: clamp(14px, 3.7svh, 31px);
  --row-top: clamp(10px, 2.4vh, 20px);
  --row-top: clamp(10px, 2.4svh, 20px);
  --row-bottom: clamp(7px, 1.3vh, 11px);
  --row-bottom: clamp(7px, 1.3svh, 11px);
}

/* Короткий экран (телефон боком, 320–420 по высоте): три строки по 44px плюс
   заголовок занимают ~185px, поэтому фото отдаёт место — иначе нижняя ссылка
   уходит за край (568×320: 325 > 320 при минимуме фото 140). */
@media (max-height: 420px) {
  :root {
    --hero: clamp(84px, 28vh, 300px);
    --hero: clamp(84px, 28svh, 300px);
    --title-top: 12px;
    --title-gap: 10px;
  }
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
}

/* Фото с логотипом */
.hero {
  position: relative;
  height: var(--hero);
  /* Средний тон фото, не чёрный: пока картинка грузится на медленной сети,
     клиент видит светлую плашку с логотипом, а не чёрный прямоугольник. */
  background: #d6c6bb;
  overflow: hidden;
}
.hero--short {
  --hero: clamp(120px, 26vh, 220px);
  --hero: clamp(120px, 26svh, 220px);
}
.hero__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 36% top;
}
.hero__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: clamp(56px, calc(var(--hero) / 3), 100px);
  height: auto;
  transform: translate(-50%, -50%);
}

/* Колонка контента */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--title-top) var(--side) 24px;
  padding-left: max(var(--side), env(safe-area-inset-left));
  padding-right: max(var(--side), env(safe-area-inset-right));
}
.title {
  margin: 0 0 var(--title-gap);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

/* Строка-ссылка со стрелкой и линией */
.rows { display: block; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: var(--row-top) 0 var(--row-bottom);
  border-bottom: 2px solid var(--ink);
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.row:active { opacity: 0.6; }
.row__label { flex: 1 1 auto; }
.row__arrow {
  flex: 0 0 auto;
  display: block;
  width: 40px;
  height: 8px;
}
.row__note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.7;
}

/* Адреса: выбор салона в стиле строк, карточка */
.pick {
  position: relative;
  display: block;
  margin: 0 0 clamp(14px, 3vh, 24px);
  border-bottom: 2px solid var(--ink);
}
.pick__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px; /* цель касания, как у строк */
  margin: 0;
  padding: var(--row-top) 48px var(--row-bottom) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px; /* 16 — iOS не приближает страницу при фокусе */
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  cursor: pointer;
}
.pick__select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.pick__arrow {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}
.salon__address {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.salon__where {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
}
.salon__note { opacity: 0.7; }
.salon__hours {
  margin: 12px 0 2px;
  font-size: 15px;
  line-height: 1.5;
}
.salon .rows { margin-top: 4px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Бронь клиента `/d/<хэш>`: светлые карточки на фоне страницы, тот же шрифт и
   чёрные линии, что у контактов. */
.lead {
  margin: calc(var(--title-gap) * -0.45) 0 var(--title-gap);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  opacity: 0.7;
}
.notice {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.card {
  margin: 0 0 12px;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05);
}
.card__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.55;
}
.card__value {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.card__text {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dates { display: flex; gap: 12px; }
.dates__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dates__col + .dates__col {
  padding-left: 12px;
  border-left: 2px solid var(--ink);
}
.dates__cap, .dates__note { font-size: 13px; line-height: 1.3; opacity: 0.7; }
/* «30 сентября» обязано уместиться в полколонки на 280px без переноса. */
.dates__day { font-size: clamp(14px, 5.2vw, 20px); font-weight: 600; line-height: 1.15; white-space: nowrap; }

.items { margin: 0; padding: 0; list-style: none; }
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(28, 26, 26, 0.12);
}
.item:first-child { padding-top: 0; border-top: 0; }
.item:last-child { padding-bottom: 0; }
.item__photo {
  flex: 0 0 auto;
  width: 54px;
  height: 72px;
  border-radius: 8px;
  background: var(--bg);
  object-fit: cover;
}
.item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.item__name { font-size: 16px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.item__note { font-size: 13px; line-height: 1.3; opacity: 0.6; }
.item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.item__price { flex: 0 0 auto; font-size: 16px; font-weight: 600; white-space: nowrap; }

.sums { margin: 0; }
.sums__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.3;
}
.sums__row dt { opacity: 0.7; }
.sums__row dd { margin: 0; font-weight: 600; white-space: nowrap; }
.sums__row--due, .sums__row--done {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-size: 17px;
  font-weight: 600;
}
.sums__row--due dt, .sums__row--done dt { opacity: 1; }


/* Бронь: мессенджеры сверху и блок уведомлений (push + почта). */
.rows--top { margin: calc(var(--title-gap) * -0.5) 0 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* цель касания, как у строк */
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { opacity: 0.6; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn--quiet, .push[data-state="on"] .push__btn { background: transparent; color: var(--ink); }
.push__text { margin: 0 0 12px; }
.push[data-state="install"] .push__text, .push[data-state="unsupported"] .push__text { margin-bottom: 0; }
.mail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 26, 26, 0.12);
}
.mail .card__text { margin: 0 0 12px; }
.mail__label { display: block; margin: 0 0 8px; font-size: 15px; line-height: 1.3; }
.mail__line { display: flex; flex-wrap: wrap; gap: 8px; }
.mail__input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px; /* 16 — iOS не приближает страницу при фокусе */
}
.mail__input:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mail__hint { margin: 8px 0 0; font-size: 13px; line-height: 1.4; opacity: 0.6; }
.mail__note { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.4; }

/* Уведомления: страница одного (текст — в заголовке, как пришёл в push) и раздел. */
.title--notice { font-size: clamp(20px, 6vw, 25px); line-height: 1.2; text-transform: none; overflow-wrap: anywhere; }
.notice__text { margin: 0; font-size: 16px; white-space: pre-line; }
.row--card { margin-top: 14px; border-top: 1px solid rgba(28, 26, 26, 0.12); border-bottom: 0; font-size: 14px; }
.card--link { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card--link:active { opacity: 0.6; }
.card--link .card__label, .card--link .card__value, .card--link .card__text { display: block; }
.card__text--clip {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card--link .card__text--clip { display: -webkit-box; }
