@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(fonts/oswald-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(fonts/oswald-lat.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;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/roboto-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/roboto-lat.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 {
  --page: #000;
  --card: #393939;
  --text: #fff;
  --digit-top: #222;
  --digit: #ccc;
  --button: #000;
  --button-text: #e9ecef;
  --link-button: #363636;
  --error: #ff6b6b;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--page); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font: 17px/1.45 Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 14px 28px;
}

.hero {
  display: block;
  width: calc(100% + 28px);
  height: auto;
  margin: 0 -14px;
  aspect-ratio: 1080 / 757;
  object-fit: cover;
  /* края фото плавно уходят в чёрный фон */
  -webkit-mask-image: linear-gradient(90deg, transparent 1%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 1%, #000 30%, #000 70%, transparent 100%);
}

.card {
  background: var(--card);
  border-radius: 5px;
  padding: 28px 14px 21px;
}

h1 {
  margin: 0;
  font: 200 30px/1.25 Oswald, 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  text-align: center;
}

.subtitle {
  margin: 0;
  padding: 21px 0;
  font-weight: 500;
  text-align: center;
}

/* Таймер: 4 группы по 2 перекидные карточки, как на прежнем сайте.
   Ширина карточки подстраивается под экран: 8 карточек с отступами ≈ 10.4 ширины. */
.timer {
  --w: min(74px, calc((100vw - 56px) / 10.4));
  --h: calc(var(--w) / .65);
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  text-align: center;
}
.timer-group { display: flex; flex-direction: column; }
.timer-group + .timer-group { margin-left: calc(var(--w) / 3); }
.timer-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 17px;
}
.timer-cards { display: flex; justify-content: center; }
.digit {
  position: relative;
  display: block;
  width: var(--w);
  height: var(--h);
  margin: 0 calc(var(--w) / 12);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
  perspective: 200px;
  color: var(--digit);
  font: 700 var(--w)/var(--h) 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.digit b { font-weight: 700; }
/* новая цифра целиком (видна её верхняя половина) */
.d-top {
  display: block;
  height: var(--h);
  border-radius: 5px;
  background: var(--digit-top);
}
/* нижние половины: новой цифры (d-bottom) и старой (d-back-bottom) */
.d-bottom,
.d-back-bottom {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: calc(var(--h) / 2);
  overflow: hidden;
  border-top: 1px solid #000;
  border-radius: 0 0 5px 5px;
  background: var(--card);
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.d-bottom { z-index: 2; transform-origin: center top; }
.d-back-bottom { z-index: 1; }
.d-bottom::after,
.d-back-bottom::after {
  content: attr(data-v);
  display: block;
  height: var(--h);
  margin-top: calc(var(--h) / -2 - 1px);
  line-height: var(--h);
}
/* верхняя половина старой цифры, которая падает вниз */
.d-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.d-back::before {
  content: attr(data-v);
  display: block;
  position: relative;
  z-index: -1;
  height: calc(var(--h) / 2);
  overflow: hidden;
  line-height: var(--h);
  border-radius: 5px 5px 0 0;
  background: var(--digit-top);
  transform-origin: center bottom;
}
.flip .d-back::before {
  z-index: 1;
  animation: flip-top .5s cubic-bezier(.37, .01, .94, .35) both;
}
.flip .d-bottom {
  animation: flip-bottom 1s cubic-bezier(.15, .45, .28, 1) both;
}
@keyframes flip-top {
  0% { transform: rotateX(0); z-index: 2; opacity: 1; }
  99% { opacity: 1; }
  100% { transform: rotateX(-90deg); opacity: 0; }
}
@keyframes flip-bottom {
  0%, 50% { z-index: -1; transform: rotateX(90deg); opacity: 0; }
  51% { opacity: 1; }
  100% { transform: rotateX(0); opacity: 1; z-index: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .flip .d-back::before, .flip .d-bottom { animation: none; }
}

/* Форма */
form { margin: 0; padding: 7px 0; }
label {
  display: block;
  margin-bottom: 8px;
  line-height: 25px;
}
.req { color: #e00; font-size: 14px; vertical-align: super; line-height: 0; margin-left: 2px; }
input, select { font: inherit; }
.field {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-size: 17px;
  line-height: 20px;
}
.field:focus { outline: 2px solid #9aa0a6; outline-offset: 0; }
/* Телефон: выбор страны с флагом и поиском (intl-tel-input) */
.phone-wrap { margin: 0 0 14px; }
.phone-wrap .iti { display: block; width: 100%; }
.phone-wrap .iti .field { margin: 0; }
.iti {
  --iti-border-color: #ddd;
  --iti-hover-color: rgba(0, 0, 0, .06);
  --iti-icon-color: #555;
  --iti-spacer-horizontal: 12px;
}
.iti__selected-country {
  border-radius: 3px 0 0 3px;
  background: #f2f2f2;
  color: #000;
  font: 17px Roboto, Arial, sans-serif;
}
/* порядок как на прежнем сайте: флаг, +код, стрелка */
.iti__selected-country-primary { display: contents; }
.iti__selected-country .iti__flag { order: 1; margin-left: 12px; }
.iti__selected-dial-code { order: 2; margin-left: 6px; }
.iti__selected-country .iti__arrow { order: 3; margin: -2px 12px 0 8px; }
.iti__selected-country:hover,
.iti__selected-country:focus-visible { background: #e8e8e8; }
.iti__selected-country:focus-visible { outline: 2px solid #9aa0a6; }
/* список стран: тёмный текст на белом (на странице текст белый) */
.iti__country-selector,
.iti--fullscreen-popup {
  color: #000;
  font: 16px/1.3 Roboto, Arial, sans-serif;
}
.iti__search-input {
  height: 44px;
  color: #000;
  font: 16px Roboto, Arial, sans-serif;
  outline: none;
}
.iti__country { padding-top: 10px; padding-bottom: 10px; }
.iti__dial-code { color: #777; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  display: block;
  width: 100%;
  min-height: 60px;
  margin-top: 21px;
  padding: 8px;
  border: 2px solid var(--button);
  border-radius: 3px;
  background: var(--button);
  color: var(--button-text);
  font: 16px/1.2 Roboto, Arial, sans-serif;
  cursor: pointer;
}
.submit:disabled { opacity: .7; cursor: default; }
.error {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--error);
  font-size: 15px;
  text-align: center;
}
.error:empty { display: none; }

.bonus {
  margin: 0;
  padding-top: 14px;
  font-size: 14px;
  text-align: center;
}

.footer {
  margin-top: 21px;
  text-align: center;
  font-size: 12px;
}
.footer a { color: #8a8a8a; }

/* Страница «Спасибо» */
.thanks {
  max-width: 820px;
  margin: 0 auto;
  padding: 21px 14px 40px;
  text-align: center;
}
.thanks p { margin: 0; }
.thanks .gap { margin-top: 24px; }
.thanks em { font-style: italic; }
.zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin: 32px 0 44px;
  border-radius: 5px;
  background: var(--link-button);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
}
.zoom:hover { background: #444; }

/* Политика */
.policy {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 14px 40px;
  font-size: 15px;
}
.policy h1 { margin-bottom: 21px; }
.policy p { margin: 0 0 10px; }
.policy a { color: #ccc; }

