:root {
  --red: #ff0c1d;
  --red-dark: #d30a18;
  --blue: #22145f;
  --blue-2: #005cb5;
  --cyan: #0ea4ef;
  --text: #252525;
  --muted: #6c7280;
  --line: #e9ecf2;
  --bg: #dfe2e9;
  --white: #fff;
  --shadow: 0 20px 50px rgba(9, 20, 60, .12);
  --telegram: #54a0d3;
  --telegram-dark: #3c90c8;
  --max: #3d78ea;
  --max-dark: #2b66d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 48px; width: auto; }
.topnav { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.topnav a { padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.topnav a:hover { background: #f0f2f7; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 6vw, 82px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(120deg, rgba(34,22,95,.98) 0%, rgba(0,103,180,.96) 55%, rgba(0,148,216,.9) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -90px;
  width: 58%;
  height: 140%;
  background: var(--white);
  transform: skewX(-18deg);
  box-shadow: -25px 0 50px rgba(0,0,0,.08);
}
.hero__content, .hero__visual { position: relative; z-index: 1; }
.eyebrow, .section__tag {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 24px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 80px);
  line-height: .96;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.38;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__visual { display: grid; justify-items: end; }
.hero__logo-card {
  width: min(420px, 90%);
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow);
}
.hero__logo-card img { max-height: 220px; object-fit: contain; margin: 0 auto; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--red); color: var(--white); box-shadow: 0 16px 36px rgba(237,11,31,.28); }
.button--primary:hover { background: var(--red-dark); }
.button--secondary { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.button--card { width: 100%; background: var(--red); color: var(--white); }
.button--max { background: var(--max); color: var(--white); box-shadow: 0 16px 36px rgba(0, 119, 255, .24); }
.button--max:hover { background: var(--max-dark); }
.button--telegram { background: var(--telegram); color: var(--white); box-shadow: 0 16px 36px rgba(34, 158, 217, .24); }
.button--telegram:hover { background: var(--telegram-dark); }

.notice, .quick, .section, .help { margin-inline: clamp(18px, 5vw, 72px); }
.notice {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 1120px;
  margin-top: -38px;
  position: relative;
  z-index: 2;
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.notice__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
}
.notice b { display: block; margin-bottom: 3px; }
.notice span { color: var(--muted); }

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.quick a {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(9,20,60,.05);
}
.quick a:hover { border-color: var(--red); color: var(--red); }

.section { padding: 70px 0 40px; }
.section__head { max-width: 860px; margin-bottom: 28px; }
.section__head h2, .help h2 {
  margin: 18px 0 12px;
  color: var(--blue);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.035em;
}
.section__head p, .help p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  max-width: none;
}
.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(9,20,60,.08);
  border: 1px solid rgba(233,236,242,.8);
}
.card__cover {
  height: clamp(150px, 10.5vw, 205px);
  flex: 0 0 clamp(150px, 10.5vw, 205px);
  background: linear-gradient(135deg, var(--blue), var(--blue-2) 62%, var(--cyan));
}
.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.card h3 {
  min-height: 64px;
  margin: 0 0 12px;
  color: #121212;
  font-size: clamp(21px, 1.35vw, 25px);
  line-height: 1.12;
}
.card h3 span { font-weight: 400; }
.card p {
  min-height: 132px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.card .button { margin-top: auto; }

.help {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 60px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.help__content { max-width: 820px; }
.help__time {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f4f6fb;
  color: var(--blue);
  font-weight: 800;
}
.help__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}
.help .button { width: 100%; }

.review-hint {
  width: min(520px, calc(100% - 36px));
  margin: -24px auto 64px;
  padding: 22px 26px;
  text-align: center;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid rgba(233,236,242,.9);
  box-shadow: 0 14px 38px rgba(9,20,60,.08);
}
.review-hint__stars {
  color: #ffc400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 4px;
  text-shadow: 0 8px 20px rgba(255, 196, 0, .22);
}
.review-hint__text {
  margin-top: 10px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8, 10, 24, .74); }
.modal__window {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { margin: 0; color: var(--blue); font-size: 26px; line-height: 1.15; }
.modal__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.modal video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 92px);
  background: #101010;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card h3 { min-height: 64px; }
}

@media (max-width: 980px) {
  .cards { gap: 22px; }
  .card__cover { height: 260px; flex-basis: 260px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero::after { right: -380px; width: 70%; opacity: .9; }
  .hero__visual { justify-items: start; }
  .hero__logo-card { width: min(360px, 100%); }
  .help { align-items: flex-start; flex-direction: column; }
  .help__actions { width: 100%; min-width: 0; flex-direction: row; }
}

@media (max-width: 640px) {
  .topbar { position: relative; align-items: flex-start; gap: 14px; flex-direction: column; }
  .brand img { height: 42px; }
  .topnav { width: 100%; }
  .topnav a { flex: 1; text-align: center; background: #f4f5f8; padding-inline: 10px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: 42px; }
  .hero__actions .button { width: 100%; }
  .notice { align-items: flex-start; margin-top: -24px; }
  .quick a { flex: 1 1 calc(50% - 10px); text-align: center; font-size: 14px; padding-inline: 12px; }
  .section { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .card__cover { height: auto; flex-basis: auto; aspect-ratio: 16/9; }
  .card h3 { min-height: 0; }
  .card p { min-height: 0; }
  .help__actions { flex-direction: column; }
  .help__time { border-radius: 18px; }
  .modal { padding: 10px; align-items: center; }
  .modal__window { border-radius: 22px; max-height: 94vh; }
  .modal__head { padding: 14px 16px; }
  .modal__head h2 { font-size: 22px; }
  .modal__close { width: 40px; height: 40px; font-size: 30px; }
  .modal video { max-height: calc(94vh - 72px); }
  .review-hint { margin-top: -34px; margin-bottom: 44px; padding: 20px 18px; border-radius: 24px; }
  .review-hint__stars { font-size: 30px; letter-spacing: 2px; }
  .review-hint__text { font-size: 18px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 36px; }
  .topnav { gap: 8px; }
  .topnav a { font-size: 13px; }
  .quick a { flex-basis: 100%; }
  .card__body { padding: 20px; }
}
