:root {
  --dav-red: #e30613;
  --dav-red-dark: #b5000b;
  --dav-charcoal: #444444;
  --dav-ink: #222222;
  --dav-muted: #666666;
  --dav-line: #e7e7e7;
  --dav-soft: #f5f5f5;
  --white: #ffffff;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 22px 70px rgba(68, 68, 68, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--dav-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(227, 6, 19, 0.08), transparent 22rem),
    radial-gradient(circle at 88% 14%, rgba(68, 68, 68, 0.08), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 54%, #eeeeee 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 56%, rgba(227, 6, 19, 0.045) 56% 62%, transparent 62%),
    linear-gradient(rgba(68, 68, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 68, 68, 0.035) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.logo {
  display: block;
  width: min(430px, 72vw);
  max-height: 240px;
  margin: 0 auto 28px;
  object-fit: contain;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 16px 42px rgba(68, 68, 68, 0.08);
}

.card {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--dav-line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--dav-red), var(--dav-red-dark), var(--dav-charcoal));
}

.center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: var(--dav-red-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff1f2;
  border: 1px solid rgba(227, 6, 19, 0.18);
  border-radius: 999px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  color: var(--dav-charcoal);
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  color: var(--dav-charcoal);
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  color: var(--dav-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.form {
  display: grid;
  gap: 18px;
  max-width: 680px;
  margin: 30px auto 0;
  text-align: left;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--dav-charcoal);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  color: var(--dav-ink);
  font-size: 18px;
  background: var(--white);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  outline: none;
}

.input:focus {
  border-color: var(--dav-red);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.12);
}

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--dav-muted);
  font-size: 16px;
  line-height: 1.5;
}

.check input {
  width: 21px;
  height: 21px;
  accent-color: var(--dav-red);
}

.btn {
  min-height: 64px;
  padding: 0 28px;
  color: var(--white);
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, var(--dav-red), var(--dav-red-dark));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(227, 6, 19, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(227, 6, 19, 0.28);
}

.btn:disabled {
  cursor: progress;
  filter: grayscale(0.5);
  opacity: 0.72;
}

.error {
  color: var(--danger);
  font-weight: 900;
}

.video-frame {
  overflow: hidden;
  background: #111111;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(68, 68, 68, 0.18);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000000;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--dav-charcoal);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress {
  height: 14px;
  overflow: hidden;
  background: #e9e9e9;
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--dav-red), var(--dav-red-dark));
  border-radius: inherit;
}

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

.tile {
  min-height: 116px;
  padding: 24px;
  color: var(--dav-charcoal);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  background: var(--dav-soft);
  border: 1px solid #ebebeb;
  border-left: 8px solid var(--dav-red);
  border-radius: 8px;
}

.quiz-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.timer {
  display: grid;
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  place-items: center;
  color: var(--dav-charcoal);
  font-size: 30px;
  font-weight: 1000;
  background:
    radial-gradient(circle at center, var(--white) 58%, transparent 60%),
    conic-gradient(var(--dav-red) calc(var(--timer-progress) * 1%), #e9e9e9 0);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(68, 68, 68, 0.14);
}

.situation {
  padding: 22px;
  color: var(--dav-charcoal);
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-left: 6px solid var(--dav-red);
  border-radius: 8px;
}

.options {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.option {
  width: 100%;
  padding: 20px 22px;
  color: var(--dav-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  background: var(--white);
  border: 1px solid #dedede;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(68, 68, 68, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.option:hover {
  transform: translateX(4px);
  border-color: var(--dav-red);
  box-shadow: 0 14px 28px rgba(68, 68, 68, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 12px;
  padding: 0 22px;
  color: var(--dav-red-dark);
  font-size: 18px;
  font-weight: 1000;
  background: #fff1f2;
  border: 1px solid rgba(227, 6, 19, 0.2);
  border-radius: 999px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 22px, 1120px);
    padding-top: 22px;
  }

  .logo {
    width: min(360px, 86vw);
  }

  .card {
    border-radius: 14px;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 96px;
  }

  .quiz-head {
    display: grid;
  }

  .timer {
    width: 76px;
    height: 76px;
    font-size: 24px;
  }

  .btn {
    width: 100%;
  }
}
