@font-face {
  font-family: "FilsonProRegular";
  src: url("./assets/FilsonProRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-900: #07195c;
  --blue-700: #123f9d;
  --blue-600: #144eb6;
  --cyan-500: #29a9eb;
  --white: #ffffff;
  --ink: #0b194f;
  --muted: #5c668f;
}

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

html {
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--blue-900);
  color: var(--white);
  font-family: "FilsonProRegular", Arial, Helvetica, sans-serif;
}

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

button,
input,
label {
  font: inherit;
  font-style: normal !important;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

img {
  display: block;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 800px;
  min-height: 100svh;
  background-image:
    linear-gradient(90deg, rgba(6, 19, 82, 0.94) 0%, rgba(8, 24, 85, 0.83) 28%, rgba(8, 24, 85, 0.46) 56%, rgba(8, 24, 85, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.04) 38%, rgba(0, 0, 0, 0.34) 100%),
    url("./assets/desktop_banner.png");
  background-position: center, center, top;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-header {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: top 260ms ease;
}

.logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(238px, calc(100vw - 40px));
  min-height: 78px;
  padding: 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(2, 14, 58, 0.18);
  pointer-events: auto;
  transition:
    width 260ms ease,
    min-height 260ms ease,
    padding 260ms ease,
    box-shadow 260ms ease;
}

.logo-pill img {
  width: 170px;
  max-width: 100%;
  height: auto;
  transition: width 260ms ease;
}

.site-header.is-compact {
  top: 18px;
}

.site-header.is-compact .logo-pill {
  width: min(176px, calc(100vw - 40px));
  min-height: 54px;
  padding: 7px 20px;
  box-shadow: 0 10px 28px rgba(2, 14, 58, 0.16);
}

.site-header.is-compact .logo-pill img {
  width: 120px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100vw - 64px));
  margin: 0 auto;
  padding-top: clamp(200px, 24vh, 270px);
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.45rem, 3.05vw + 1rem, 4.05rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(640px, 100%);
  min-height: 68px;
  margin-top: 38px;
  padding: 18px 42px;
  border-radius: 999px;
  background: var(--blue-600);
  color: var(--white);
  font-size: clamp(1rem, 0.48vw + 0.9rem, 1.25rem);
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
  transition: background-color 160ms ease, transform 160ms ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  background: #0f43a3;
  transform: translateY(-1px);
}

.telegram-action {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 96px;
  padding: 14px 10px 14px 14px;
  border-radius: 24px 0 0 24px;
  background: rgba(232, 236, 236, 0.84);
  box-shadow: 0 18px 36px rgba(2, 14, 58, 0.18);
  overflow: hidden;
  transform: translateY(-50%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.telegram-action img {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(2, 14, 58, 0.14);
}

.telegram-action:hover,
.telegram-action:focus-visible {
  transform: translateY(-50%);
  box-shadow: 0 22px 42px rgba(2, 14, 58, 0.22);
}

.survey-section {
  position: relative;
  z-index: 1;
  padding: 92px 24px 110px;
  background:
    radial-gradient(circle at 18% 0%, rgba(41, 169, 235, 0.15), transparent 28%),
    linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
  color: var(--ink);
}

.survey-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.survey-form {
  display: grid;
  gap: 22px;
  padding-top: 4px;
}

.survey-step,
.survey-result {
  display: none;
  min-inline-size: 0;
  margin: 0;
  padding: 34px;
  border: 1px solid rgba(20, 78, 182, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(5, 20, 82, 0.11);
  opacity: 0;
  transform: translateY(18px);
}

.survey-result .underline {
  text-decoration: underline;
}

.survey-step {
  border-style: solid;
}

.survey-step.is-visible,
.survey-result.is-visible {
  display: block;
  animation: reveal-step 260ms ease forwards;
}

@keyframes reveal-step {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.survey-step legend {
  display: block;
  float: left;
  width: 100%;
  max-width: 790px;
  padding: 0;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(1.4rem, 1vw + 1.05rem, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.answer-list {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.answer-option {
  cursor: pointer;
}

.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.answer-option span {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 18px;
  border: 2px solid rgba(20, 78, 182, 0.16);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.25;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.answer-option span::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 2px solid rgba(20, 78, 182, 0.35);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.answer-option:hover span,
.answer-option input:focus-visible + span {
  border-color: rgba(20, 78, 182, 0.48);
  transform: translateY(-1px);
}

.answer-option input:checked + span {
  border-color: var(--blue-600);
  background: #eef5ff;
  color: var(--blue-700);
}

.answer-option input:checked + span::before {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.survey-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 24px;
  padding: 12px 22px;
  border: 1px solid rgba(20, 78, 182, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue-600);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.survey-result {
  text-align: center;
}

.survey-result h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(2.2rem, 2.4vw + 1.1rem, 4rem);
  font-weight: 700;
  line-height: 1.05;
}

.survey-result p {
  max-width: 680px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: clamp(1.08rem, 0.5vw + 0.95rem, 1.34rem);
  font-weight: 500;
  line-height: 1.45;
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 62px;
  margin-top: 18px;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--cyan-500);
  color: var(--white);
  font-size: 1.16rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(41, 169, 235, 0.35);
  transition: background-color 160ms ease, transform 160ms ease;
}

.telegram-button:hover,
.telegram-button:focus-visible {
  background: #2298d5;
  transform: translateY(-1px);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 85px 0;
  background: #cce1f5;
  color: #000000;
}

.footer-inner {
  width: min(1245px, 100%);
  margin: 0 auto;
}

.footer-link-farm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.footer-column {
  line-height: 1.2;
}

.footer-logo {
  grid-column: 1 / 3;
  align-self: start;
  width: 150px;
  max-width: 150px;
  overflow: hidden;
}

.footer-logo img {
  display: block;
  width: 150px !important;
  height: auto !important;
  max-width: 150px !important;
  max-height: 72px !important;
  aspect-ratio: 377 / 180;
  object-fit: contain;
  object-position: left top;
  transform: none;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
}

.footer-column li {
  padding: 5px 0;
}

.footer-column a {
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--blue-600);
}

.scroll-top-button {
  position: fixed;
  right: 48px;
  bottom: 50px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (max-width: 959px) {
  .hero {
    min-height: 760px;
    background-position: center, center, center top;
  }

  .site-header {
    top: 30px;
  }

  .site-header.is-compact {
    top: 14px;
  }

  .logo-pill {
    width: min(220px, calc(100vw - 32px));
    min-height: 70px;
    padding: 9px 24px;
  }

  .logo-pill img {
    width: 154px;
  }

  .site-header.is-compact .logo-pill {
    width: min(160px, calc(100vw - 32px));
    min-height: 50px;
    padding: 7px 18px;
  }

  .site-header.is-compact .logo-pill img {
    width: 110px;
  }

  .hero-content {
    width: min(576px, calc(100vw - 56px));
    padding-top: 170px;
  }

  .hero h1 {
    max-width: 610px;
  }

  .survey-section {
    padding-top: 72px;
  }
}

@media (min-width: 768px) {
  .footer-link-farm {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer-logo {
    grid-column: 1 / 2;
    display: flex;
    justify-content: flex-start;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 720px;
    background-image:
      linear-gradient(90deg, rgba(6, 19, 82, 0.76) 0%, rgba(8, 24, 85, 0.52) 52%, rgba(8, 24, 85, 0.38) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.08) 100%),
      url("./assets/mobile_banner.png");
    background-position: center, center, 48% top;
  }

  .site-header {
    top: 18px;
  }

  .site-header.is-compact {
    top: 10px;
  }

  .logo-pill {
    width: min(190px, calc(100vw - 28px));
    min-height: 60px;
    padding: 8px 20px;
  }

  .logo-pill img {
    width: 132px;
  }

  .site-header.is-compact .logo-pill {
    width: min(138px, calc(100vw - 28px));
    min-height: 44px;
    padding: 6px 16px;
  }

  .site-header.is-compact .logo-pill img {
    width: 96px;
  }

  .hero-content {
    width: calc(100vw - 48px);
    padding-top: 130px;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 1rem;
  }

  .hero h1 {
    max-width: 360px;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.13;
  }

  .hero-button {
    width: min(100%, 360px);
    min-height: 58px;
    margin-top: 150px;
    padding: 15px 24px;
  }

  .telegram-action {
    width: 60px;
    height: 78px;
    padding: 12px 8px 12px 12px;
    border-radius: 20px 0 0 20px;
  }

  .telegram-action img {
    width: 38px;
    height: 38px;
    border-width: 3px;
  }

  .survey-section {
    padding: 58px 18px 80px;
  }

  .survey-step,
  .survey-result {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .answer-list {
    grid-template-columns: 1fr;
  }

  .answer-option span {
    min-height: 58px;
    font-size: 1rem;
  }

  .site-footer {
    padding: 58px 0;
  }

  .footer-inner {
    padding: 0 15px;
  }

  .footer-link-farm {
    gap: 34px 24px;
    padding: 0;
  }

  .footer-column a {
    font-size: 15px;
  }

  .scroll-top-button {
    right: 20px;
    bottom: 24px;
  }

}

@media (max-width: 390px) {
  .hero-content {
    width: calc(100vw - 36px);
  }

  .hero h1 {
    font-size: clamp(1.78rem, 9vw, 2.5rem);
  }
}
