:root {
  color-scheme: light;
  --page: #faf8f2;
  --card: #ffffff;
  --ink: #181522;
  --muted: #514c58;
  --purple: #6600b4;
  --purple-hover: #520092;
  --focus: #8d4ac9;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--page); }
body { margin: 0; min-height: 100vh; min-height: 100svh; color: var(--ink); background: var(--page); }

.page {
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, 900px);
  margin-inline: auto;
  padding: clamp(28px, 5vh, 54px) 24px max(26px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.welcome { text-align: center; margin: 0 0 22px; }
.brand-logo { display: block; width: 44px; height: auto; margin: 0 auto 14px; }
h1 { margin: 0; font-size: clamp(26px, 3.6vw, 30px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 500; }
.welcome__subtitle { margin: 7px 0 0; color: #595360; font-size: clamp(15px, 1.8vw, 17px); line-height: 1.45; }

.choices { display: grid; grid-template-rows: repeat(2, 220px); gap: 15px; width: min(100%, 670px); margin: 0 auto; }
.site-footer { margin: auto 0 clamp(58px, 8vh, 76px); padding-top: 18px; color: #827d88; text-align: center; font-size: 12px; line-height: 1.45; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 2px; }
.site-footer__privacy { display: inline-block; margin-top: 5px; color: inherit; font-size: 10px; line-height: 1.25; text-underline-offset: 2px; }
.site-footer__privacy:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 2px; }

.privacy-settings-trigger {
  display: block;
  margin: 4px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.privacy-settings-trigger:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
.privacy-consent-banner {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(100%, 920px);
  margin-inline: auto;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  border: 1px solid #e7e2ec;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  color: #0f1023;
  box-shadow: 0 -4px 20px rgba(15, 16, 35, .10);
  font-family: inherit;
}
.privacy-consent-banner[hidden] { display: none; }
.privacy-consent-banner__copy { margin: 0; font-size: 13px; line-height: 1.35; }
.privacy-consent-banner__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.privacy-consent-banner__button {
  min-width: 86px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #6600b4;
  border-radius: 8px;
  background: #f7f1fc;
  color: #0f1023;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.privacy-consent-banner__button:hover { background: #eee2f8; }
.privacy-consent-banner__button:focus-visible { outline: 3px solid #8d4ac9; outline-offset: 2px; }
body.privacy-consent-open { padding-bottom: 62px; }

@media (max-width: 600px) {
  .privacy-consent-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 9px 12px max(9px, env(safe-area-inset-bottom));
    border-radius: 10px 10px 0 0;
  }
  .privacy-consent-banner__copy { font-size: 12px; }
  .privacy-consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .privacy-consent-banner__button { min-height: 38px; }
  body.privacy-consent-open { padding-bottom: 96px; }
}
.choice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  height: 220px;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(30, 18, 42, 0.09);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.choice-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 18, 42, 0.13); }
.choice-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.choice-card__content { min-width: 0; padding: 19px 17px 14px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.choice-card__intro { display: flex; align-items: center; gap: 11px; min-height: 29px; }
.choice-card__accent { flex: 0 0 4px; align-self: stretch; border-radius: 3px; background: var(--purple); }
.choice-card__title { font-size: clamp(16px, 2vw, 19px); line-height: 1.22; font-weight: 650; letter-spacing: -0.02em; }
.choice-card__description { display: block; margin: 11px 0 13px 15px; max-width: 36ch; color: var(--muted); font-size: 14px; line-height: 1.45; }
.choice-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 16px), 310px);
  min-height: 44px;
  margin: auto 0 0 16px;
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}
.choice-card:hover .choice-card__action { background: var(--purple-hover); }
.choice-card__photo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 20%; }

@media (max-width: 600px) {
  .page { padding: max(20px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)); }
  .welcome { margin-bottom: 18px; }
  .brand-logo { width: 40px; margin-bottom: 12px; }
  h1 { font-size: clamp(24px, 6.2vw, 27px); }
  .welcome__subtitle { margin-top: 6px; font-size: 15px; }
  .choices { gap: 13px; }
  .choices { grid-template-rows: repeat(2, 220px); }
  .choice-card { grid-template-columns: minmax(0, 1fr) 38%; height: 220px; }
  .choice-card__content { padding: 18px 15px 13px 17px; }
  .choice-card__intro { gap: 9px; min-height: 28px; }
  .choice-card__title { font-size: 16px; }
  .choice-card__description { margin: 10px 0 11px 13px; font-size: 14px; line-height: 1.38; }
  .choice-card__action { width: min(calc(100% - 13px), 184px); min-height: 44px; margin-left: 13px; font-size: 12px; }
  .choice-card__photo { object-position: center 16%; }
}

@media (max-width: 360px) {
  .page { padding-inline: 14px; }
  .choices { grid-template-rows: repeat(2, 232px); }
  .choice-card { grid-template-columns: minmax(0, 1fr) 38%; height: 232px; }
  .choice-card__content { padding-left: 15px; padding-right: 13px; }
  .choice-card__title { font-size: 15px; }
  .choice-card__description { margin-left: 12px; font-size: 13px; }
  .choice-card__action { width: min(calc(100% - 12px), 184px); margin-left: 12px; min-height: 44px; padding-inline: 7px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
