:root {
  --color-bg: #f6f0e5;
  --color-bg-soft: #fbf7ee;
  --color-paper: #f8f1e4;
  --color-card: #fbf8f0;

  --color-navy: #071735;
  --color-navy-soft: #1a2a49;
  --color-muted: #6f7686;

  --color-green: #b8ff3c;
  --color-green-dark: #8ac219;

  --color-line: rgba(7, 23, 53, 0.12);
  --color-paper-line: rgba(125, 98, 58, 0.12);

  --shadow-soft: 0 18px 50px rgba(7, 23, 53, 0.08);
  --shadow-paper: 0 10px 28px rgba(87, 66, 35, 0.12);

  --radius-card: 22px;
  --radius-input: 10px;

  --container-width: 760px;
  --font-main: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--color-navy);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.75), transparent 32%),
    radial-gradient(circle at 80% 32%, rgba(255, 255, 255, 0.58), transparent 30%),
    linear-gradient(180deg, #f8f4ea 0%, var(--color-bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(rgba(7, 23, 53, 0.08) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.header {
  position: relative;
  z-index: 10;
  max-width: 1160px;
  height: 82px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid rgba(7, 23, 53, 0.7);
  border-radius: 7px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.26);
  transition: background 0.2s ease, transform 0.2s ease;
}

.telegram-link:hover {
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.telegram-icon {
  font-size: 15px;
  line-height: 1;
}

.hero {
  position: relative;
  padding: 56px 24px 80px;
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 820;
}

.strike {
  position: relative;
  display: inline-block;
}

.strike::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 53%;
  height: 0.085em;
  border-radius: 999px;
  background: var(--color-navy);
  transform: rotate(-1deg);
  opacity: 0.92;
}

.paper-note {
  position: relative;
  max-width: 700px;
  margin: 30px auto 28px;
  padding: 22px 36px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    var(--color-paper);
  color: var(--color-navy-soft);
  border-radius: 5px;
  box-shadow: var(--shadow-paper);
  text-align: justify;
  text-align-last: left;
  font-size: 18px;
  line-height: 1.52;
  font-weight: 500;
}

.paper-note::before,
.paper-note::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 6px 5px, rgba(116, 93, 52, 0.2) 1px, transparent 1.8px);
  background-size: 12px 9px;
}

.paper-note::before {
  top: -4px;
}

.paper-note::after {
  bottom: -4px;
  transform: rotate(180deg);
}

.paper-note p {
  margin: 0;
}

.paper-note a {
  color: var(--color-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.question-form {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 38px 28px;
  border: 1px solid rgba(7, 23, 53, 0.08);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12)),
    var(--color-card);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.field {
  margin-bottom: 21px;
}

.field label,
.label-row label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--color-navy);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  color: var(--color-green-dark);
}

.tooltip-trigger {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
  padding: 0;
  border: 1.3px solid rgba(7, 23, 53, 0.42);
  border-radius: 50%;
  background: transparent;
  color: rgba(7, 23, 53, 0.65);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  font-family: Georgia, serif;
  cursor: help;
}

.tooltip-trigger:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: rgba(7, 23, 53, 0.04);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 23, 53, 0.15);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.44);
  color: var(--color-navy);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

input {
  height: 45px;
  padding: 0 16px;
}

textarea {
  min-height: 128px;
  padding: 15px 16px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(7, 23, 53, 0.38);
}

input:focus,
textarea:focus {
  border-color: rgba(7, 23, 53, 0.38);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 4px rgba(184, 255, 60, 0.18);
}

.submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--color-green);
  color: var(--color-navy);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 10px 26px rgba(154, 226, 32, 0.22);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 34px rgba(154, 226, 32, 0.28);
}

.submit-icon {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 6px;
  background: var(--color-navy);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.anonymous-note {
  margin: 18px 0 0;
  color: rgba(7, 23, 53, 0.58);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.anonymous-note span {
  color: var(--color-green-dark);
  font-size: 22px;
  vertical-align: -2px;
  margin-left: 8px;
}

.decor {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(7, 23, 53, 0.05);
  box-shadow: 0 14px 32px rgba(7, 23, 53, 0.09);
  color: var(--color-navy);
  font-weight: 800;
  transform: rotate(-8deg);
}

.decor::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 110px;
  border: 1px solid rgba(164, 134, 87, 0.23);
  border-radius: 28px;
  pointer-events: none;
}

.decor::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(204, 158, 88, 0.45);
}

.decor-chat {
  left: max(48px, calc(50% - 680px));
  top: 170px;
}

.decor-chat span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 27px;
  border-radius: 8px;
  background: #9fd236;
  color: white;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 0.4;
}

.decor-chat::before {
  right: 28px;
  top: 32px;
  border-right: 0;
  border-bottom-left-radius: 0;
}

.decor-chat::after {
  right: -22px;
  top: 65px;
}

.decor-gear {
  left: max(24px, calc(50% - 760px));
  top: 470px;
  color: #b8c2d2;
  font-size: 31px;
  transform: rotate(4deg);
}

.decor-gear::before {
  right: -160px;
  top: -95px;
  border-left: 0;
  border-top-right-radius: 0;
}

.decor-gear::after {
  right: -125px;
  top: -29px;
}

.decor-question {
  right: max(54px, calc(50% - 650px));
  top: 160px;
  font-size: 25px;
  transform: rotate(8deg);
}

.decor-question::before {
  left: 28px;
  top: 34px;
  border-left: 0;
  border-bottom-right-radius: 0;
}

.decor-question::after {
  left: 92px;
  top: 82px;
}

.decor-telegram {
  right: max(30px, calc(50% - 720px));
  top: 350px;
  color: #3b95ff;
  font-size: 28px;
  transform: rotate(-10deg);
}

.decor-telegram::before {
  left: -15px;
  top: -76px;
  width: 250px;
  height: 90px;
  border-left: 0;
  border-bottom-right-radius: 0;
}

.decor-telegram::after {
  left: -19px;
  top: -12px;
}

.decor-llm {
  right: max(90px, calc(50% - 660px));
  top: 610px;
  font-size: 22px;
  transform: rotate(8deg);
}

.decor-llm::before {
  left: 42px;
  top: -75px;
  width: 300px;
  height: 112px;
  border-left: 0;
  border-bottom-right-radius: 0;
}

.decor-llm::after {
  left: 123px;
  top: -71px;
}

.hero::before,
.hero::after {
  content: "✦";
  position: absolute;
  z-index: 0;
  color: #98c943;
  font-size: 18px;
}

.hero::before {
  left: 12%;
  top: 330px;
}

.hero::after {
  right: 20%;
  top: 470px;
}

/* Thank you page */
.thanks {
  position: relative;
  z-index: 5;
  max-width: 620px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.thanks-card {
  padding: 50px 42px 44px;
  border: 1px solid rgba(7, 23, 53, 0.08);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12)),
    var(--color-card);
  box-shadow: var(--shadow-soft);
}

.thanks-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 18px;
}

.thanks-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 820;
  color: var(--color-navy);
}

.thanks-text {
  margin: 0 auto 30px;
  max-width: 460px;
  color: var(--color-navy-soft);
  font-size: 17px;
  line-height: 1.5;
}

.thanks-text a {
  color: var(--color-green-dark);
  font-weight: 700;
  text-decoration: none;
}

.thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 10px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-navy);
  border: 0;
  box-shadow: 0 10px 26px rgba(154, 226, 32, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 34px rgba(154, 226, 32, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid rgba(7, 23, 53, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--color-navy);
}

@media (max-width: 900px) {
  .header {
    height: auto;
    padding: 18px 20px;
  }

  .telegram-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero {
    padding: 42px 18px 64px;
  }

  .hero-title {
    font-size: clamp(36px, 8vw, 54px);
  }

  .paper-note {
    padding: 20px 22px;
    font-size: 16px;
    text-align: left;
  }

  .question-form {
    padding: 26px 22px;
  }

  .decor {
    display: none;
  }

  .thanks-card {
    padding: 36px 22px;
  }
}

@media (max-width: 560px) {
  .header {
    align-items: flex-start;
    gap: 14px;
  }

  .logo img {
    height: 30px;
  }

  .telegram-link {
    font-size: 0;
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .telegram-icon {
    font-size: 16px;
  }

  .hero-title {
    letter-spacing: -0.045em;
  }

  .question-form {
    border-radius: 18px;
  }

  .submit-button {
    font-size: 16px;
  }
}
