:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-border: #e7e7ea;
  --text: #111111;
  --muted: #5f6368;
  --button-bg: #111111;
  --button-text: #ffffff;
  --button-bg-hover: #222222;
  --max-width: 680px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "DM Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: 20px 16px 28px;
  background:
    radial-gradient(circle at 15% 2%, rgba(47, 99, 217, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.hub {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hub__header {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);

  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__logo {
  width: 24px;
  height: 24px;

  object-fit: contain;
  flex-shrink: 0;

  opacity: 0.95;
}

.brand__text {
  display: flex;
  align-items: center;
}

.title {
  margin: 0;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  margin-top: 7px;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: -0.03em;
}

.header-points {
  margin: 7px 0 7px;
  padding-left: 18px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.45;
}

.header-points li::marker {
  color: #2c4fb2;
}

.choice-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  padding: 32px 24px 22px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-card__content-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.choice-card__image {
  width: 46px;
  height: 46px;
  min-width: 46px;

  border-radius: 14px;
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.choice-card__image img {
  width: 46px;
  height: 46px;
}

.choice-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.choice-card__text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 10;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  width: min(100%, 360px);
  max-width: 360px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.popup-overlay.active .popup-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.popup-card__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.popup-field textarea,
.popup-field input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.popup-field textarea {
  min-height: 140px;
  resize: vertical;
}

.popup-field textarea:focus,
.popup-field input:focus {
  border-color: rgba(47, 99, 217, 0.35);
  box-shadow: 0 0 0 4px rgba(47, 99, 217, 0.08);
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.popup-close-button {
  background: #f5f5f7;
  color: var(--text);
}

.popup-close-button:hover,
.popup-close-button:focus-visible {
  background: #e7e7ea;
}

.hidden {
  display: none !important;
}

.popup-close-button.hidden {
  display: none;
}

.cta-button {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  box-shadow:
    0 14px 30px rgba(5, 7, 11, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--button-bg-hover);
}

.button-arrow {
  position: absolute;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  line-height: 1;
  font-weight: 300;

  color: #ffffff;
}

.button-arrow img {
  width: 27px;
  height: auto;
}

.lightning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lightning__note {
  margin: 2px 2px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.lightning__image {
  margin-top: 3px;
  width: 36px;
  height: 36px;
  min-width: 36px;

  border-radius: 14px;
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lightning__image img {
  width: 36px;
  height: 36px;
}

.footer {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .page {
    padding: 32px 20px 40px;
  }

  .hub {
    gap: 22px;
  }

  .hub__header {
    gap: 12px;
  }

  .choice-card {
    padding: 22px;
    gap: 14px;
  }

  .choice-card__title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 16px;
  }

  .cta-button {
    width: fit-content;
    min-width: 220px;
  }
}
