@charset "UTF-8";

/* ==========================================================================
   demo.pimport.net — одна страница. Токены те же, что у темы pimport.net,
   чтобы демо не выглядело чужим сайтом.
   ========================================================================== */

/* Переменный шрифт: один файл на начертания 400…700. Подмножества — латиница
   и кириллица; украинские ї, є, ґ входят в кириллическое. swap: текст виден
   сразу системным шрифтом и перерисовывается, когда доедет наш. */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('golos-text-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 {
  --canvas: #FAFAFB;
  --surface: #FFFFFF;
  --subtle: #F2F4F7;
  --ink: #15171C;
  --muted: #4A5060;
  --faint: #646B7A;
  --placeholder: #9AA0AE;
  --line: #E4E6EB;
  --strong: #CFD3DB;
  --accent: #1A4FD6;
  --accent-hover: #1540B4;
  --accent-soft: #EEF2FE;
  --accent-line: #D6E0FC;
  --ok: #0E7C4A;
  --ok-soft: #E8F6EE;
  --danger: #B42318;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-card: 0 2px 8px rgba(20, 23, 28, .06);

  --wrap: 920px;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.022em; line-height: 1.2; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.h1 { font-size: 40px; }
.h2 { font-size: 26px; }
.h2--sm { font-size: 21px; }

.lead { margin: 0; font-size: 17px; color: var(--muted); max-width: 64ch; }
.lead--sm { font-size: 15.5px; }

.note { font-size: 13px; color: var(--faint); }

/* ------------------------------------------------------------ шапка --- */

.head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }

.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__name { font-weight: 700; letter-spacing: .04em; font-size: 17px; }
.brand__tag { font-size: 12.5px; color: var(--faint); }

.head__nav { display: flex; align-items: center; gap: 18px; }
.head__site { font-size: 14px; }

.langs { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
.langs a, .langs__on { padding: 4px 8px; border-radius: var(--r-sm); }
.langs a { color: var(--faint); }
.langs a:hover { background: var(--subtle); color: var(--ink); text-decoration: none; }
.langs__on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------ кнопки --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn--xl { height: 52px; padding: 0 28px; font-size: 16px; }

.btn--primary { background: var(--accent); border-color: var(--accent); color: #FFF; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFF; }
.btn--primary[disabled] { background: var(--strong); border-color: var(--strong); cursor: default; }

.btn--ghost { background: var(--surface); border-color: var(--strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* -------------------------------------------------------------- герой --- */

.hero { padding: 56px 0 8px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

.badge {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.section { padding: 48px 0 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }

/* -------------------------------------------------------------- видео --- */

.video {
  position: relative;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video__facade { display: block; width: 100%; height: 100%; }
.video__poster { display: block; width: 100%; height: 100%; object-fit: cover; }

.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26, 79, 214, .92);
  color: #FFF;
  padding-left: 6px;
}

.video__facade:hover .video__play { background: var(--accent-hover); }

.video__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  background: rgba(20, 23, 28, .72);
  color: #FFF;
  font-size: 13px;
  font-weight: 600;
}

.video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ----------------------------------------------------------- карточки --- */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.card__num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.card__title { font-size: 16px; }
.card__text { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ------------------------------------------------------------- форма --- */

.form, .done {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  margin-top: 16px;
}

.form__intro { display: flex; flex-direction: column; gap: 8px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field__label { font-size: 13px; font-weight: 600; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.field input, .field select { height: 46px; padding: 0 14px; }

.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23646B7A' stroke-width='1.5'%3E%3Cpath d='M3 5.5 7 9.5l4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field textarea { min-height: 84px; padding: 11px 14px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

.field--bad input, .field--bad select { border-color: var(--danger); }

.field__error { font-size: 12.5px; color: var(--danger); }
.field__error--top { margin: 0; }
.field__hint { font-size: 12.5px; color: var(--faint); }

.form__submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Виджет капчи — 304 px, в узкой колонке его ужимаем, иначе он вылезает. */
.captcha { min-height: 78px; }

@media (max-width: 400px) {
  .captcha { transform: scale(.86); transform-origin: 0 0; min-height: 68px; }
}

/* Ловушка для ботов: поле есть в разметке, но человек его не видит. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------- выбор времени --- */

.when {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.when--bad { border-color: var(--danger); }

/* Календарь шириной под себя, время — всем остальным местом. */
.when__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.when__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.when .field select { background-color: var(--surface); }

.days { display: flex; flex-direction: column; gap: 14px; }

/* Со скриптом виден день, выбранный в календаре; без него календарь спрятан,
   а дни идут подряд, и каждому нужна подпись. Класс js ставит сам скрипт — и
   только после того, как календарь заработал. */
.day { display: flex; flex-direction: column; gap: 7px; }
.day__label { font-size: 12.5px; font-weight: 600; color: var(--faint); }

.cal { display: none; }
.js .cal { display: block; }
.js .day__label { display: none; }
.js .day { display: none; }
.js .day.is-on { display: flex; }

/* ---------------------------------------------------------- календарь --- */

.cal {
  background: var(--surface);
  border: 1px solid var(--strong);
  border-radius: var(--r-md);
  padding: 10px;
  user-select: none;
}

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }

.cal__title { font-size: 14.5px; font-weight: 600; }

.cal__nav {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cal__nav:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.cal__nav[disabled] { color: var(--strong); cursor: default; }

.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }

.cal__week { margin-bottom: 2px; }
.cal__week span { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--placeholder); }

.cal__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-size: 14.5px;
}

/* День со свободным временем — единственный, на который можно нажать. */
.cal__day--open {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.cal__day--open:hover { background: var(--accent-line); }
.cal__day--open.is-on { background: var(--accent); border-color: var(--accent); color: #FFF; }
.cal__day--open:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Выходной, закрытая дата, занятый день и всё, что вне горизонта записи:
   видно, что день существует, но нажать нельзя. */
.cal__day[disabled] { color: var(--placeholder); cursor: not-allowed; }
.cal__day--full { text-decoration: line-through; }
.cal__day--off { color: var(--strong); }

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

.slot { position: relative; }
.slot input { position: absolute; opacity: 0; width: 0; height: 0; }

.slot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Встреча, которая в поясе посетителя попадает на соседние сутки. */
.slot span[data-shift]::after {
  content: attr(data-shift);
  margin-left: 4px;
  font-size: 10.5px;
  font-weight: 500;
  vertical-align: super;
  opacity: .7;
}

.slot span:hover { border-color: var(--accent); color: var(--accent); }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFF; }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.slot--taken span {
  color: var(--placeholder);
  background: var(--subtle);
  border-style: dashed;
  text-decoration: line-through;
  cursor: not-allowed;
}

.slot--taken span:hover { border-color: var(--strong); color: var(--placeholder); }

/* --------------------------------------------------------- записались --- */

.done { align-items: flex-start; }

.done__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ok-soft);
}

/* --------------------------------------------------------- не найдено --- */

.oops {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 72px 0 24px;
}

.oops__code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
}

/* ------------------------------------------------------------- подвал --- */

.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); }

.foot__in {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 13.5px;
  color: var(--faint);
}

/* ------------------------------------------------------------- узкие --- */

@media (max-width: 760px) {
  .h1 { font-size: 30px; }
  .h2 { font-size: 22px; }
  .hero { padding-top: 36px; }
  .cards, .form__row, .when__grid { grid-template-columns: minmax(0, 1fr); }
  .form, .done { padding: 20px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .head__site { display: none; }
  .btn, .btn--xl { width: 100%; }
  .slot span { min-width: 0; flex: 1 0 auto; }
}
