@font-face {
  font-family: "Gilroy";
  src: url("/static/fonts/gilroy-semibold-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("/static/fonts/gilroy-extrabold-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700 899;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy Heavy";
  src: url("/static/fonts/gilroy-heavy-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

:root {
  --hero-height: clamp(190px, 24.8vw, 520px);
  --blue-950: #021A40;
  --blue-900: #021A40;
  --blue-800: #0b2d5d;
  --blue-600: #174b88;
  --gold: #FECC6D;
  --gold-light: #ffe1a5;
  --ink: #021A40;
  --muted: #52637c;
  --surface: #ffffff;
  --line: #d8dfeb;
  --danger: #7a1c2d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--blue-950);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: visible;
  color: var(--ink);
  font-family: "Gilroy", "Segoe UI", Arial, sans-serif;
  font-style: italic;
  font-weight: 600;
  background-color: var(--blue-950);
  background-image:
    linear-gradient(rgba(2, 26, 64, .62), rgba(2, 26, 64, .72)),
    url("/static/press-wall.svg");
  background-attachment: fixed;
  background-repeat: repeat;
  background-size: auto, 200px 140px;
}

button,
input,
textarea {
  font: inherit;
}

button,
.registration-links a,
.privacy-return {
  font-family: "Gilroy Heavy", "Gilroy", "Segoe UI", Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
}

.hero {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
  background: var(--blue-950);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .34);
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-shell {
  width: min(820px, calc(100% - 32px));
  margin: calc(var(--hero-height) - 40px) auto 48px;
  position: relative;
  z-index: 1;
}

.survey-card {
  padding: clamp(28px, 5vw, 56px);
  border: 4px solid var(--gold);
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(12px);
  scroll-margin-top: 16px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue-950);
  background: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0 14px;
  color: var(--blue-950);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.lead,
.result p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.question {
  margin: 30px 0 22px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--blue-950);
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 750;
  line-height: 1.35;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.answer-button {
  min-height: 92px;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 750;
  border: 2px solid var(--blue-950);
  box-shadow: 0 10px 28px rgba(2, 26, 64, .2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.answer-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2, 26, 64, .28);
  filter: brightness(1.04);
}

.answer-button:focus-visible,
.submit-button:focus-visible,
.back-button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.answer-yes {
  color: white;
  border-color: #16864b;
  background: #16864b;
}

.answer-no {
  color: white;
  border-color: #c9363e;
  background: #c9363e;
}

.answer-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
}

.answer-icon svg {
  width: 20px;
  height: 20px;
}

.back-button {
  padding: 0;
  border: 0;
  color: var(--blue-600);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.field-label {
  display: block;
  margin: 28px 0 10px;
  color: var(--blue-950);
  font-weight: 750;
}

.required-mark {
  color: #c9363e;
  font-weight: 800;
}

.text-input,
textarea {
  width: 100%;
  padding: 18px;
  border: 1px solid #c8d3e3;
  border-radius: 16px;
  color: var(--ink);
  background: #fffdf8;
  line-height: 1.55;
}

.text-input {
  min-height: 58px;
}

textarea {
  margin-top: 28px;
  min-height: 132px;
  overflow-y: hidden;
  resize: none;
}

.text-input:focus,
textarea:focus {
  border-color: var(--blue-600);
}

.privacy-consent {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.privacy-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--blue-950);
}

.privacy-consent a {
  color: var(--blue-600);
  font-weight: 800;
}

.form-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.submit-button {
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 14px;
  color: var(--blue-950);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(244, 185, 66, .3);
}

.submit-button:disabled,
.answer-button:disabled {
  cursor: wait;
  opacity: .65;
}

.result {
  text-align: center;
}

.result-mark {
  width: 74px;
  height: 74px;
  margin: 4px auto 20px;
  border-radius: 50%;
  color: white;
  color: var(--blue-950);
  background: var(--gold);
  display: grid;
  place-items: center;
  font-size: 38px;
  box-shadow: 0 14px 36px rgba(2, 26, 64, .22);
}

.result-callout {
  padding: 18px;
  border-radius: 16px;
  color: var(--blue-950) !important;
  border: 1px solid rgba(254, 204, 109, .75);
  background: #fff8e8;
  font-weight: 700;
}

.registration-title {
  margin-top: 28px;
  color: var(--blue-950);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: .08em;
}

.registration-links {
  max-width: 520px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.registration-links a {
  min-height: 62px;
  padding: 12px 22px;
  border: 0;
  border-radius: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(2, 26, 64, .18);
  transition: transform .18s ease, filter .18s ease;
}

.registration-links a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.registration-links img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.messenger-telegram {
  background: #229ED9;
}

.messenger-vk {
  background: #0077FF;
}

.messenger-max {
  background: linear-gradient(135deg, #4db2ff 0%, #6857e5 52%, #931ad9 100%);
}

.error-message {
  margin: 16px 0 0;
  color: var(--danger);
  font-weight: 650;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

footer {
  position: relative;
  z-index: 1;
  padding: 0 20px 34px;
  color: var(--gold);
  text-align: center;
  font-size: 14px;
}

.privacy-page {
  padding: clamp(18px, 4vw, 48px) 0;
}

.privacy-shell {
  width: min(900px, calc(100% - 24px));
  margin: 0 auto;
}

.privacy-card {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.privacy-card h1 {
  margin-bottom: 28px;
}

.privacy-card h2 {
  margin: 30px 0 10px;
  color: var(--blue-950);
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.2;
}

.privacy-card ul {
  padding-left: 24px;
}

.privacy-back {
  display: block;
  margin-bottom: 28px;
}

.privacy-return {
  min-height: 54px;
  margin-top: 34px;
  padding: 0 26px;
  border-radius: 14px;
  color: var(--blue-950);
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 700px) {
  :root {
    --hero-height: calc(100vw * 1422 / 5734);
  }

  .hero img {
    object-fit: contain;
    object-position: center top;
  }

  .page-shell {
    width: min(100% - 20px, 820px);
    margin-top: calc(var(--hero-height) - 16px);
  }

  .survey-card {
    border-radius: 22px;
  }

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

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

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

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