:root {
  --akfa-red: #ed1a3b;
  --akfa-red-dark: #c41230;
  --akfa-red-soft: rgba(237, 26, 59, 0.08);
  --akfa-ink: #15181f;
  --akfa-muted: #808284;
  --akfa-line: #e3e3e7;
  --akfa-bg: #f6f6f8;
  --akfa-white: #ffffff;
  --akfa-card: #ffffff;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(21, 24, 31, 0.08);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--akfa-ink);
  background: var(--akfa-bg);
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(237, 26, 59, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(237, 26, 59, 0.06), transparent 50%),
    var(--akfa-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  font-family: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 120px;
  height: 28px;
  object-fit: contain;
}

.brand__tag {
  font-size: 12px;
  line-height: 1.2;
  color: var(--akfa-muted);
  border-left: 1px solid var(--akfa-line);
  padding-left: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--akfa-white);
  border: 1px solid var(--akfa-line);
  color: var(--akfa-ink);
  font-size: 12px;
  font-weight: 600;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--akfa-red);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero__main,
.hero__side,
.section {
  background: var(--akfa-card);
  border: 1px solid var(--akfa-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__main {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero__main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--akfa-red);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--akfa-red-soft);
  color: var(--akfa-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero__lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: #474747;
  max-width: 52ch;
}

.hero__note {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid var(--akfa-line);
  font-size: 14px;
  line-height: 1.5;
  color: #474747;
}

.hero__note strong {
  color: var(--akfa-ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__actions--spaced {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--akfa-red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--akfa-red-dark);
}

.btn--ghost {
  background: #fff;
  border-color: var(--akfa-line);
  color: var(--akfa-ink);
}

.btn--ghost:hover {
  border-color: #c9c9c9;
}

.hero__meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--akfa-muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__side {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-media {
  flex: 1;
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px dashed #d9dce2;
  display: grid;
  place-items: center;
}

.side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-media__label {
  font-size: 13px;
  color: var(--akfa-muted);
  text-align: center;
  padding: 16px;
}

.side-stat {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--akfa-red-soft);
}

.side-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--akfa-red);
  line-height: 1.1;
}

.side-stat__label {
  margin-top: 4px;
  font-size: 13px;
  color: #474747;
}

.section {
  margin-top: 24px;
  padding: 28px;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.section__hint {
  margin: 0;
  font-size: 14px;
  color: var(--akfa-muted);
}

.prizes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.prize {
  border: 1px solid var(--akfa-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.prize__media {
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
  border-bottom: 1px solid var(--akfa-line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.prize__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.prize__qty {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--akfa-red-soft);
  color: var(--akfa-red);
  font-size: 11px;
  font-weight: 700;
}

.prize__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.prize__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--akfa-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--akfa-line);
  background: #fafafa;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #474747;
}

.footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--akfa-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--akfa-muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .prizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prizes .prize:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .page {
    width: min(100% - 24px, 1080px);
    padding-top: 16px;
  }

  .hero,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero__main,
  .section {
    padding: 22px 18px;
  }

  .brand__tag {
    display: none;
  }

  .section__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .prizes {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }
}

.verify-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.verify-overlay.open {
  opacity: 1;
  visibility: visible;
}

.verify-modal {
  position: relative;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.2s ease;
}

.verify-overlay.open .verify-modal {
  transform: translateY(0) scale(1);
}

.verify-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 22px;
  color: var(--akfa-muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.verify-close:hover {
  background: var(--akfa-bg);
}

.verify-header {
  text-align: center;
  margin-bottom: 24px;
}

.verify-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.verify-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--akfa-ink);
}

.verify-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--akfa-muted);
  line-height: 1.45;
}

.verify-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.verify-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--akfa-bg);
  border: 2px solid var(--akfa-line);
  color: var(--akfa-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.verify-step.active {
  background: #2AABEE;
  border-color: #2AABEE;
  color: #fff;
}

.verify-step.done {
  background: #28c76f;
  border-color: #28c76f;
  color: #fff;
}

.verify-step-line {
  width: 40px;
  height: 2px;
  background: var(--akfa-line);
}

.verify-stage {
  animation: verifyFadeIn 0.2s ease;
}

.verify-stage.hidden {
  display: none;
}

@keyframes verifyFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.verify-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--akfa-ink);
  margin-bottom: 8px;
}

.verify-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--akfa-line);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--akfa-ink);
  background: var(--akfa-bg);
  outline: none;
  transition: border-color 0.2s ease;
}

.verify-input:focus {
  border-color: #2AABEE;
}

.verify-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--akfa-muted);
  line-height: 1.4;
}

.verify-error {
  display: none;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--akfa-red);
  line-height: 1.4;
}

.verify-btn {
  width: 100%;
  margin-top: 16px;
}

.verify-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.verify-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(40, 199, 111, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.verify-success-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--akfa-ink);
  text-align: center;
}

.verify-success-text {
  margin: 0;
  font-size: 14px;
  color: var(--akfa-muted);
  line-height: 1.5;
  text-align: center;
}

.btn--telegram {
  background: #2AABEE;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn--telegram:hover {
  background: #229ED9;
}
