@font-face {
  font-family: 'Exo 2';
  src: url(../fonts/hinted-subset-Exo2-Regular.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url(../fonts/hinted-subset-Exo2-SemiBold.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #181c27;
  --band: #232835;
  --raise: #2f3647;
  --chip: rgba(55, 63, 83, 0.6);
  --edge: rgba(255, 255, 255, 0.2);
  --hair: rgba(255, 255, 255, 0.12);
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --crimson: #8e1533;
  --crimson-hi: #a3193c;
  --crimson-field: radial-gradient(120% 130% at 0% 0%, #a81b3f 0%, #8e1533 46%, #6a0f27 100%);
  --border-btn: #2a3145;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 88px;
  scrollbar-color: var(--raise) var(--ground);
  background: var(--ground);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  font: 400 16px/1.45 'Exo 2', 'Segoe UI', sans-serif;
  background: var(--ground);
  color: var(--ink);
  caret-color: var(--crimson-hi);
}

::selection { background: var(--crimson); color: #fff; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

/* buttons, the theme's .submit and .button_border */

.btn {
  min-height: 50px;
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  font: 600 16px/18px 'Exo 2', sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s linear, transform 0.15s ease-out;
}
.btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }

.btn--crimson { background: var(--crimson); }
.btn--crimson:hover { background: var(--crimson-hi); }
.btn--border { background: var(--border-btn); box-shadow: inset 0 0 0 1px var(--edge); }
.btn--border:hover { background: #343c54; }
.btn--dark { background: var(--ground); }
.btn--dark:hover { background: var(--band); }
.btn--wide { width: 100%; min-height: 62px; font-size: 18px; }

/* header */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
}
.hdr::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--band);
  opacity: 0;
  transition: opacity 0.3s linear;
}
.hdr.is-scrolled::after { opacity: 1; }

.hdr__row {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.hdr__nav { display: flex; gap: 28px; font-size: 14px; }
.hdr__nav a { color: var(--ink-2); text-decoration: none; transition: color 0.2s linear; }
.hdr__nav a:hover { color: #fff; }
.hdr__logo { display: block; }
.hdr__logo-full { height: 56px; width: auto; }
.hdr__logo-mob { display: none; }
.hdr__cta { justify-self: end; min-height: 46px; padding: 12px 22px; font-size: 15px; }

/* first screen */

.first { padding-block: 8px 24px; }

.first__frame {
  position: relative;
  height: clamp(540px, calc(100svh - 112px), 680px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--band);
  isolation: isolate;
}
.first__frame::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 28, 39, 0.94) 0%, rgba(24, 28, 39, 0.72) 38%, rgba(24, 28, 39, 0.1) 66%, rgba(24, 28, 39, 0) 100%),
    linear-gradient(0deg, rgba(24, 28, 39, 0.78) 0%, rgba(24, 28, 39, 0) 46%);
}
.first__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.first__text {
  position: absolute;
  left: 48px;
  bottom: 48px;
  z-index: 2;
  width: min(640px, calc(100% - 500px));
}
.first__text h1 {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.first__lead {
  max-width: 30em;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--chip);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

/* the payout plate, the theme's crimson consult card */

.plate {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: 424px;
  padding: 30px 32px 32px;
  border-radius: var(--radius);
  background: var(--crimson-field);
  box-shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s linear;
}
.plate:hover { box-shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.28); }

.plate__go {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
}
.plate__go::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.plate__go:focus-visible { outline: none; }
.plate__go:focus-visible::after { outline: 2px solid #fff; outline-offset: 3px; }
.plate__go svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; transition: transform 0.3s var(--ease); }
.plate:hover .plate__go svg { transform: translate(3px, -3px); }

.plate__main { margin: 0 0 22px; display: grid; gap: 10px; }
.plate__main > span { font-size: 17px; line-height: 1.3; color: rgba(255, 255, 255, 0.86); }
.plate__sum {
  display: grid;
  font-weight: 600;
  font-size: clamp(56px, 5.6vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.plate__sum > span { grid-area: 1 / 1; }
.plate__ghost { visibility: hidden; }

.plate__agent {
  margin: 0 0 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.plate__agent strong { flex: none; font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.plate__agent span { font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, 0.86); }

.plate__day { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.plate__day svg {
  width: 26px; height: 26px; padding: 4px; flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* sections */

.block { padding: 104px 0; }
.block--band { background: var(--band); }

.title {
  margin: 0 0 40px;
  font-weight: 600;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.cols {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.cols .title { margin: 0; }
.cols__text { max-width: 50ch; margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink-2); }

.calc-card {
  padding: clamp(24px, 3.6vw, 48px);
  border-radius: var(--radius);
  background: var(--ground);
}

/* registration, the theme's .reg */

.reg {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}
.reg__card {
  position: sticky;
  top: 112px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--band);
}
.reg__card .title { margin-bottom: 24px; }
.reg__sub {
  margin: 0 0 44px;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.reg__note { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); text-align: center; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.steps__item {
  position: relative;
  padding: 96px 24px 26px;
  border-radius: var(--radius);
  background: var(--band);
}
.steps__num {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(119.5% 255.57% at 14.89% 11.35%, var(--crimson) 0, var(--band) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 600 20px/48px 'Exo 2', sans-serif;
  text-align: center;
}
.steps__item h3 { margin: 0 0 12px; font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.steps__item p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.steps__item--pay { background: var(--crimson-field); }
.steps__item--pay .steps__num { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
.steps__item--pay p { color: rgba(255, 255, 255, 0.88); }

/* why us, the theme's .material grid */

.why {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 16px;
}
.why__col { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.fact {
  flex: 1 1 auto;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ground);
}
.fact h3 { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.fact p { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }

.fact--stat { display: flex; flex-direction: column; }
.fact--stat h3 { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.fact--stat strong {
  font-weight: 600;
  font-size: clamp(64px, 6.2vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.why__list .fact {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  column-gap: 18px;
}
.why__list .fact > svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: var(--band);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.why__list p { margin-top: 6px; }
.fact--crimson { background: var(--crimson-field); }
.why__list .fact--crimson > svg { background: rgba(255, 255, 255, 0.16); box-shadow: none; }

.why__photo {
  position: relative;
  margin: 0;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
}
.why__photo > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.why__photo::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(24, 28, 39, 0.85), rgba(24, 28, 39, 0));
}
.why__mark { position: absolute; left: 24px; bottom: 24px; z-index: 1; width: 170px; }

/* app */

.app {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.app__text .title { margin-bottom: 20px; }
.app__sub { margin: 0 0 32px; font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink-2); }

.features { margin: 0 0 36px; padding: 0; list-style: none; display: grid; gap: 10px; }
.features li {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  background: var(--chip);
  font-size: 16px;
  line-height: 1.3;
}
.features svg { width: 24px; height: 24px; flex: none; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app__stage {
  position: relative;
  padding: 56px 24px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(142, 21, 51, 0.6) 0%, rgba(142, 21, 51, 0) 100%),
    var(--band);
  overflow: hidden;
}
.screen {
  width: clamp(236px, 22.4vw, 310px);
  padding: 8px;
  border-radius: 36px;
  background: #0e1118;
  box-shadow: inset 0 0 0 1px var(--hair), 0 32px 64px -24px rgba(0, 0, 0, 0.7);
}
.screen img { width: 100%; border-radius: 28px; }

/* closing */

.final {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.final__panel {
  padding: clamp(28px, 4.4vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--radius);
  background: var(--crimson-field);
}
.final__title {
  max-width: 17em;
  margin: 0 0 36px;
  font-weight: 600;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.contacts {
  width: 100%;
  margin: auto 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
}
.final__panel .btn { margin-bottom: 56px; }
.contacts dt { margin: 0 0 6px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.contacts dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.5; }
.contacts a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.45); transition: text-decoration-color 0.2s linear; }
.contacts a:hover { text-decoration-color: #fff; }

.final__photo { margin: 0; min-height: 440px; border-radius: var(--radius); overflow: hidden; position: relative; }
.final__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* footer */

.ftr { padding: 36px 0 44px; }
.ftr__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.ftr__row img { height: 40px; width: auto; }
.ftr__row p { margin: 0; font-size: 13px; color: var(--ink-2); }
.ftr__row a { text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.ftr__row a:hover { color: #fff; }

/* responsive */

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

@media (max-width: 1100px) {
  .first__text { width: min(560px, calc(100% - 480px)); left: 36px; bottom: 36px; }
  .plate { width: 400px; padding: 26px 28px 28px; }
  .why { grid-template-columns: 1fr 1fr; }
  .why__photo { grid-column: 1 / -1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 9; }
  .why__photo > img:first-child { object-position: 50% 30%; }
}

@media (max-width: 900px) {
  .hdr__nav { display: none; }
  .hdr__row { height: 72px; grid-template-columns: 1fr auto; }
  .hdr__logo-full { display: none; }
  .hdr__logo-mob { display: block; height: 24px; width: auto; }
  html { scroll-padding-top: 84px; }

  .first__frame { height: auto; padding: 0 0 8px; }
  .first__frame::before { display: none; }
  .first__photo { display: block; aspect-ratio: 800 / 552; position: relative; overflow: hidden; border-radius: var(--radius); }
  .first__photo img { object-position: 50% 30%; }
  .first__text { position: static; width: auto; padding: 24px 20px 20px; }
  .first__text h1 { font-size: clamp(30px, 6.4vw, 44px); margin-bottom: 14px; }
  .first__lead { font-size: 16px; margin-bottom: 18px; }
  .chips li { -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 13px; padding: 8px 12px; }
  .plate { position: relative; right: auto; bottom: auto; width: auto; margin: 0 8px; }

  .block { padding: 64px 0; }
  .cols { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .cols__text { font-size: 16px; }
  .reg { grid-template-columns: 1fr; gap: 20px; }
  .reg__card { position: static; padding: 28px 24px; }
  .reg__sub { font-size: 18px; margin-bottom: 28px; }
  .app { grid-template-columns: 1fr; gap: 32px; }
  .final { grid-template-columns: 1fr; }
  .final__photo { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .final__photo img { object-position: 50% 22%; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .first { padding-block: 4px 8px; }
  .plate { margin: 0; padding: 22px 20px 24px; }
  .plate__go { margin-bottom: 20px; font-size: 17px; }
  .plate__sum { font-size: clamp(52px, 16vw, 68px); }
  .plate__main > span { font-size: 16px; }
  .plate__agent strong { font-size: 26px; }
  .first__frame { padding-bottom: 0; background: transparent; overflow: visible; }
  .first__text { padding: 20px 4px 18px; }

  .title { margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps__item { padding: 22px 20px 22px 84px; min-height: 0; }
  .steps__num { top: 20px; left: 20px; }
  .steps__item h3 { font-size: 18px; margin-bottom: 8px; }
  .why { grid-template-columns: 1fr; gap: 10px; }
  .why__col { gap: 10px; }
  .why__photo { aspect-ratio: 1; }
  .why__photo > img:first-child { object-position: 50% 4%; }
  .why__mark { width: 140px; left: 16px; bottom: 16px; }
  .fact { padding: 20px; }
  .fact--stat h3 { gap: 16px; }
  .fact--stat strong { font-size: 64px; }
  .why__list .fact { column-gap: 16px; }
  .app__sub { font-size: 18px; margin-bottom: 20px; }
  .features li { padding: 12px 14px; font-size: 15px; }
  .app__stage { padding: 36px 16px; }
  .final__panel .btn { margin-bottom: 40px; }
  .contacts { gap: 16px 32px; }
  .hdr__cta { min-height: 40px; padding: 10px 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn svg, .plate, .plate__go svg { transition: none; }
}
