@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --paper: #f4efe6;
  --paper-deep: #e9e1d3;
  --ink: #17201d;
  --muted: #69706d;
  --teal: #0c5b50;
  --teal-light: #dfece7;
  --red: #f14e3b;
  --white: #fffdf9;
  --line: rgba(23, 32, 29, 0.13);
  --soft-line: rgba(23, 32, 29, 0.08);
  --shadow: 0 28px 80px rgba(35, 39, 34, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(241, 78, 59, 0.09), transparent 25rem),
    radial-gradient(circle at 92% 84%, rgba(12, 91, 80, 0.1), transparent 27rem),
    var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(241, 78, 59, 0.35);
  outline-offset: 3px;
}

.site-shell {
  width: min(1440px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 22px clamp(18px, 3vw, 46px) 34px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 50px;
  height: 50px;
  color: var(--white);
  font: 800 0.8rem/1 "Manrope", sans-serif;
  letter-spacing: -0.03em;
  place-items: center;
  background: var(--teal);
  border-radius: 50%;
}

.brand__name {
  font: 800 1rem/1 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.availability {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #4e5753;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.availability span {
  width: 8px;
  height: 8px;
  background: #43a672;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(67, 166, 114, 0.13);
}

.experience {
  display: grid;
  grid-template-columns: minmax(330px, 0.74fr) minmax(520px, 1.26fr);
  min-height: calc(100svh - 126px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(23, 32, 29, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.story-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 650px;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  color: #f9f7ef;
  background: var(--teal);
}

.story-panel::before {
  position: absolute;
  top: 43%;
  left: -30%;
  width: 145%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  transform: translateY(-50%);
}

.story-panel::after {
  position: absolute;
  right: -64px;
  bottom: 90px;
  width: 180px;
  height: 180px;
  content: "";
  background: var(--red);
  border-radius: 50%;
  filter: blur(0.1px);
  opacity: 0.9;
}

.story-panel__top,
.story-panel__bottom,
.portrait {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-panel__quote {
  max-width: 430px;
  margin: 0;
  font: 600 clamp(1.7rem, 2.7vw, 3.1rem)/1.08 "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

.portrait {
  align-self: center;
  width: min(360px, 82%);
  margin: 12px 0;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.trust-note {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 390px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-note__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
}

.trust-note p,
.risk-note {
  margin: 0;
}

.trust-note p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.trust-note strong {
  color: #fff;
}

.risk-note {
  max-width: 410px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.65rem;
  line-height: 1.4;
}

.quiz-panel {
  display: grid;
  min-width: 0;
  padding: clamp(26px, 4vw, 64px);
  background:
    linear-gradient(rgba(23, 32, 29, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 29, 0.025) 1px, transparent 1px),
    var(--white);
  background-size: 34px 34px;
  place-items: center;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  width: min(700px, 100%);
  min-height: 540px;
}

.progress {
  flex: 0 0 auto;
  margin-bottom: clamp(38px, 6vh, 68px);
}

.progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.progress__track {
  height: 5px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 999px;
}

.progress__track span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--red);
  border-radius: inherit;
  transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  animation: screen-in 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen--active {
  display: flex;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen__content {
  flex: 1;
}

.screen__content--intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 16px;
}

.section-label,
.question-number {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label {
  display: flex;
  gap: 9px;
  align-items: center;
}

.section-label span {
  display: inline-block;
  width: 23px;
  height: 2px;
  background: var(--red);
}

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

h1,
h2 {
  margin-bottom: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.45rem, 5.2vw, 5.15rem);
  font-weight: 700;
  line-height: 0.99;
}

h1 em {
  color: var(--red);
  font-style: normal;
}

h2 {
  max-width: 640px;
  font-size: clamp(2rem, 3.8vw, 3.85rem);
  font-weight: 700;
  line-height: 1.05;
}

.lede {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.intro-meta {
  display: flex;
  gap: 20px;
  margin-top: 34px;
  color: #4e5753;
  font-size: 0.78rem;
  font-weight: 700;
}

.intro-meta span {
  display: flex;
  gap: 8px;
  align-items: center;
}

.intro-meta span::before {
  width: 6px;
  height: 6px;
  content: "";
  background: #d9a95d;
  border-radius: 50%;
}

.primary-button,
.telegram-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
  margin-top: 38px;
  padding: 10px 12px 10px 26px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: var(--ink);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(23, 32, 29, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  gap: 10px;
}

.primary-button:hover,
.telegram-button:hover {
  background: var(--teal);
  box-shadow: 0 20px 38px rgba(12, 91, 80, 0.22);
  transform: translateY(-2px);
}

.button-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--ink);
  font-size: 1.15rem;
  place-items: center;
  background: var(--paper);
  border-radius: 10px;
}

.question-hint {
  margin: 16px 0 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.answer-button {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px 18px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.answer-button::before {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  content: "";
  border: 1.5px solid rgba(23, 32, 29, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--white);
}

.answer-button:hover {
  background: #f7f2e9;
  border-color: rgba(12, 91, 80, 0.55);
  transform: translateY(-2px);
}

.answer-button.is-selected {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.answer-button.is-selected::before {
  background: var(--red);
  border-color: #fff;
  box-shadow: inset 0 0 0 4px var(--teal);
}

#loading-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.analysis-visual {
  position: relative;
  display: grid;
  width: 154px;
  height: 154px;
  margin-bottom: 38px;
  place-items: center;
}

.analysis-visual__ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--paper-deep);
  border-top-color: var(--red);
  border-right-color: var(--teal);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.analysis-visual__ring::after {
  position: absolute;
  inset: 15px;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.analysis-visual strong {
  font: 700 2.1rem/1 "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.loading-copy p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
}

.analysis-bar {
  width: min(380px, 82%);
  height: 4px;
  margin-top: 38px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 999px;
}

.analysis-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 120ms linear;
}

.screen--result {
  justify-content: space-between;
}

.result-content {
  position: relative;
}

.result-badge {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 1.4rem;
  place-items: center;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--teal-light);
}

.result-content h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  min-width: 0;
  padding: 15px;
  background: #f7f2e9;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
}

.next-steps li > span {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.next-steps p,
.next-steps strong,
.next-steps small {
  display: block;
  margin: 0;
}

.next-steps strong {
  font-size: 0.82rem;
  line-height: 1.35;
}

.next-steps small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.offer-video {
  position: relative;
  width: min(200px, 42vw);
  margin: 24px auto 0;
  overflow: hidden;
  background: #101514;
  border: 1px solid rgba(23, 32, 29, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(23, 32, 29, 0.18);
}

.offer-video__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-video__button {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  color: #fff;
  background: linear-gradient(rgba(16, 21, 20, 0.08), rgba(16, 21, 20, 0.38));
  border: 0;
  cursor: pointer;
  place-items: center;
  transition: background 180ms ease;
}

.offer-video__button:hover {
  background: linear-gradient(rgba(16, 21, 20, 0.02), rgba(16, 21, 20, 0.26));
}

.offer-video__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: rgba(255, 253, 249, 0.92);
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.offer-video__icon::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  content: "";
  border-block: 11px solid transparent;
  border-left: 17px solid var(--ink);
}

.offer-video.is-playing .offer-video__button {
  background: transparent;
}

.offer-video.is-playing .offer-video__button:not(:hover):not(:focus-visible) .offer-video__icon {
  opacity: 0;
}

.offer-video.is-playing .offer-video__icon::before {
  width: 14px;
  height: 18px;
  margin-left: 0;
  border: 0;
  border-right: 5px solid var(--ink);
  border-left: 5px solid var(--ink);
}

.result-action {
  position: sticky;
  bottom: 0;
  padding-top: 22px;
  background: linear-gradient(transparent, var(--white) 18%);
}

.telegram-button {
  justify-content: flex-start;
  margin-top: 0;
  background: #229ed9;
}

.telegram-button:hover {
  background: #1587bd;
}

.telegram-button svg {
  width: 25px;
  fill: currentColor;
}

.telegram-button span:nth-of-type(1) {
  flex: 1;
}

.result-action > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 1020px) {
  .experience {
    grid-template-columns: minmax(280px, 0.7fr) minmax(450px, 1.3fr);
  }

  .story-panel {
    padding: 34px;
  }

  .quiz-panel {
    padding: 42px;
  }

  .next-steps {
    grid-template-columns: 1fr;
  }

  .next-steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    padding: 12px 14px;
  }

  .next-steps li > span {
    margin: 2px 0 0;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 16px 12px 20px;
  }

  .site-header {
    padding: 0 6px;
    margin-bottom: 14px;
  }

  .availability {
    font-size: 0.64rem;
  }

  .experience {
    display: block;
    min-height: calc(100svh - 92px);
    border-radius: 22px;
  }

  .story-panel {
    display: none;
  }

  .quiz-panel {
    min-height: calc(100svh - 92px);
    padding: 28px 22px 24px;
    place-items: stretch;
  }

  .quiz-card {
    min-height: calc(100svh - 146px);
  }

  .progress {
    margin-bottom: 42px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

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

  .answer-button {
    min-height: 66px;
  }

  .screen--result {
    min-height: 100%;
  }

  .result-content h2 {
    font-size: clamp(1.75rem, 8vw, 2.6rem);
  }

  .next-steps {
    margin-top: 22px;
  }

  .offer-video {
    width: 100%;
    margin-top: 18px;
    border-radius: 12px;
  }

  .offer-video__icon {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 420px) {
  .brand__name {
    font-size: 0.9rem;
  }

  .quiz-panel {
    padding-inline: 18px;
  }

  .intro-meta {
    flex-direction: column;
    gap: 8px;
  }

  .primary-button,
  .telegram-button {
    min-height: 62px;
  }
}

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