:root {
  color-scheme: light;
  --page-bg: #f3f4f6;
  --panel-radius: 22px;
  --shadow-strong: 0 20px 50px rgba(17, 24, 39, 0.22);
  --shadow-card: 0 14px 30px rgba(10, 15, 40, 0.35);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--page-bg);
  color: #111827;
}

.layout {
  min-height: 100%;
  padding: 28px 16px 60px;
  display: grid;
  place-items: start center;
}

.panel {
  width: min(1160px, 100%);
  border-radius: var(--panel-radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg, #5f61c9 0%, #5b55c8 35%, #5d6ae6 100%);
  box-shadow: var(--shadow-strong);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(6, 10, 40, 0.22) 100%
  );
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(36, 36, 107, 0.18), rgba(36, 36, 107, 0.62));
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  padding: 1px 24px 12px;
  display: grid;
  place-items: center;
  text-align: center;
}

.brand__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.25));
}

.brand__logoImg {
  display: none;
  width: min(640px, 88vw);
  height: auto;
}

.brand__logoText {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.assetsReady .brand__logoImg {
  display: block;
}

.assetsReady .brand__logoText {
  display: none;
}

.assetsReady .brand__tagline {
  display: none;
}

.brand__logoLeft {
  font-weight: 800;
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: lowercase;
}

.brand__logoRight {
  font-weight: 300;
  font-size: clamp(52px, 8.5vw, 88px);
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
}

.brand__tagline {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.78);
}

.question {
  position: relative;
  z-index: 1;
  margin: 8px 0 26px;
  padding: 0 16px;
  text-align: center;
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 76px);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.38);
}

.actions {
  position: relative;
  z-index: 1;
  margin: 0 22px 34px;
  padding: 26px;
  border-radius: 18px;
  background: rgba(38, 40, 120, 0.48);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  text-decoration: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  min-height: 300px;
  display: grid;
  align-content: end;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(10, 15, 40, 0.48);
}

.card:active {
  transform: translateY(-2px);
}

.card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.card__content {
  transition: transform 180ms ease;
}

.card__img {
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
}

.card:hover .card__content {
  transform: translateY(-4px);
}

.card--explore:hover .card__img--plane {
  transform: translate(10px, -6px) rotate(1deg);
}

.card--explore:hover .card__img--car {
  transform: translate(-6px, 2px) rotate(-1deg);
}

.card--shop:hover .card__img--gifts {
  transform: translate(0, -6px) rotate(-1deg) scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__content,
  .card__img {
    transition: none;
  }

  .card:hover,
  .card:active,
  .card:hover .card__content,
  .card--explore:hover .card__img--plane,
  .card--explore:hover .card__img--car,
  .card--shop:hover .card__img--gifts {
    transform: none;
  }
}

.card__content {
  padding: 26px 28px 26px;
  position: relative;
  z-index: 1;
}

.card__title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(58px, 6vw, 88px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 9px 14px rgba(0, 0, 0, 0.35);
}

.card__text {
  margin: 10px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 14px rgba(0, 0, 0, 0.28);
}

.card__img {
  position: absolute;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
  user-select: none;
  pointer-events: none;
}

.card--explore {
  background: linear-gradient(135deg, #1d1f7a 0%, #5a56b6 100%);
}

.card--explore .card__title {
  letter-spacing: 0.12em;
}

.card--explore .card__text {
  padding-left: 92px;
}

.card--explore .card__img--plane {
  width: 250px;
  height: 250px;
  right: 18px;
  top: 22px;
  object-fit: contain;
}

.card--explore .card__img--car {
  width: 108px;
  height: 108px;
  left: 18px;
  bottom: 16px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.card--shop {
  background: linear-gradient(135deg, #ffe07a 0%, #f6b200 100%);
}

.card--shop .card__title {
  color: rgba(255, 255, 255, 0.92);
}

.card--shop .card__text {
  color: rgba(17, 24, 39, 0.8);
  text-shadow: 0 8px 14px rgba(255, 255, 255, 0.2);
}

.card--shop .card__img--gifts {
  width: 170px;
  height: 170px;
  left: 24px;
  top: 28px;
  object-fit: contain;
}

.card__cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  color: rgba(17, 24, 39, 0.86);
}

.card__ctaIcon {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.2));
}

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

  .card {
    min-height: 280px;
  }

  .card--explore .card__img--plane {
    width: 220px;
    height: 220px;
  }

  .card--explore .card__text {
    padding-left: 74px;
  }
}

@media (max-width: 480px) {
  .actions {
    margin: 0 14px 22px;
    padding: 18px;
    gap: 18px;
  }

  .brand {
    padding-top: 34px;
  }

  .card__content {
    padding: 22px 20px 22px;
  }
}

.previewStatus {
  padding: 16px 20px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.previewPages {
  padding: 16px 20px 24px;
  display: grid;
  gap: 18px;
}

.previewPages .page {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.previewPages canvas {
  display: block;
  width: 100%;
  height: auto;
}

.extract {
  min-height: 100%;
  padding: 24px 16px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.extract__header {
  margin-bottom: 16px;
}

.extract__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.extract__subtitle {
  margin: 6px 0 0;
  color: #4b5563;
}

.extract__status {
  margin-top: 10px;
  color: #374151;
  font-size: 14px;
}

.extract__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.extract__card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.extract__label {
  font-size: 12px;
  color: #374151;
  margin-bottom: 10px;
  word-break: break-all;
}
}
