@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #e95b16;
  --orange-dark: #b74308;
  --orange-light: #ffefe6;
  --yellow: #f6b13b;
  --white: #ffffff;
  --paper: #f7f7f5;
  --ink: #222222;
  --muted: #6f6f6f;
  --line: #dedbd6;
  --line-strong: #cfc8c0;
  --shadow: 0 18px 44px rgba(34, 34, 34, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(233, 91, 22, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 48%, var(--paper) 100%);
  background-size: 42px 42px, auto;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.page {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 28px;
}

.top {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  animation: fadeUp 520ms ease both;
}

.top::before {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(90deg, var(--orange), var(--yellow) 68%, var(--orange));
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--orange-dark);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 38px;
  color: var(--white);
  background: var(--orange);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--orange-light);
}

.brand-line {
  width: 2px;
  height: 34px;
  background: var(--line-strong);
}

.brand-text {
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px;
  background:
    linear-gradient(90deg, var(--white) 0 64%, var(--orange-light) 64% 100%);
}

.hero::after {
  content: "SFU";
  position: absolute;
  right: 30px;
  bottom: 8px;
  color: rgba(233, 91, 22, 0.10);
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 900;
  line-height: 0.85;
  pointer-events: none;
}

.hero-label {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  color: var(--orange-dark);
  background: var(--white);
  border-left: 5px solid var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 0.98;
  letter-spacing: 0;
}

.gender-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 7px solid var(--orange);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(34, 34, 34, 0.07);
  animation: fadeUp 540ms ease 80ms both;
}

.gender-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.gender-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.gender-button {
  min-height: 38px;
  padding: 0 20px;
  color: var(--orange-dark);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.gender-button:hover {
  transform: translateY(-1px);
}

.gender-button.is-selected {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(233, 91, 22, 0.26);
}

.chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
  margin-top: 14px;
}

.panel {
  position: relative;
  min-width: 0;
  z-index: 1;
  overflow: visible;
  min-height: 260px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 7px solid var(--orange);
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(34, 34, 34, 0.08);
  animation: fadeUp 560ms ease both;
}

.panel.is-select-open {
  z-index: 30;
}

.panel-digital {
  border-top-color: var(--orange-dark);
  animation-delay: 90ms;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.select-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.select-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.select-block label {
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

.select-wrap.is-open {
  z-index: 31;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: transform 180ms ease;
}

.select-wrap.is-open::after {
  transform: translateY(-35%) rotate(225deg);
}

.profession-select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 54px;
  padding: 0 52px 0 18px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.profession-select:hover {
  border-color: var(--orange);
}

.profession-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(233, 91, 22, 0.16);
}

.profession-select.is-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.select-button {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 54px;
  padding: 0 52px 0 18px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.select-button:hover,
.select-button:focus,
.select-wrap.is-open .select-button {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(233, 91, 22, 0.16);
}

.select-button.is-placeholder {
  color: #8a8178;
}

.select-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.68;
}

.select-wrap.has-search .select-button {
  padding-right: 94px;
}

.select-search-button {
  position: absolute;
  top: 50%;
  right: 43px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--purple-deep);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.select-search-button::before,
.select-search-icon::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.select-search-button::before {
  top: 9px;
  left: 9px;
}

.select-search-button::after,
.select-search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.select-search-button::after {
  top: 21px;
  left: 21px;
}

.select-search-button:hover,
.select-search-button:focus-visible,
.select-wrap.is-open .select-search-button {
  color: var(--purple);
  background: var(--purple-soft);
}

.select-search-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(70, 53, 143, 0.18);
}

.select-search-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 32;
  display: grid;
  gap: 4px;
  max-height: min(360px, 52vh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(34, 34, 34, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.select-wrap.is-open .select-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.select-search-panel {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 30px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 4px;
  padding: 5px 5px 7px 8px;
  color: var(--purple);
  background: var(--white);
  border-bottom: 1px solid #e5e0ef;
}

.select-search-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.select-search-icon::before {
  top: 2px;
  left: 1px;
}

.select-search-icon::after {
  top: 14px;
  left: 13px;
}

.select-search-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.select-search-input::placeholder {
  color: #8a8178;
}

.select-search-input::-webkit-search-cancel-button {
  display: none;
}

.select-search-clear {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.select-search-clear:hover,
.select-search-clear:focus-visible {
  color: var(--purple-deep);
  background: var(--purple-soft);
  outline: none;
}

.select-options {
  display: grid;
  gap: 4px;
}

.select-search-empty {
  margin: 0;
  padding: 14px 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.select-option {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.select-option:hover,
.select-option.is-highlighted {
  color: var(--orange-dark);
  background: var(--orange-light);
}

.select-option.is-selected {
  color: var(--white);
  background: var(--orange);
}

.profession-preview {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.profession-preview.is-empty {
  opacity: 0.64;
}

.profession-preview.is-empty p {
  display: none;
}

.profession-preview.is-active {
  animation: previewPop 260ms ease both;
}

.preview-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profession-preview:not(.is-empty) .preview-info {
  height: 174px;
  overflow: hidden;
}

.profession-preview.is-expanded:not(.is-empty) .preview-info {
  height: auto;
  overflow: visible;
}

.preview-code {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: var(--orange);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
}

.profession-preview h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.profession-preview:not(.is-empty) h3 {
  min-height: calc(3 * 1.18em);
}

.profession-preview p {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profession-preview:not(.is-empty) h3,
.profession-preview:not(.is-empty) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profession-preview:not(.is-empty) h3 {
  -webkit-line-clamp: 3;
}

.profession-preview:not(.is-empty) p {
  -webkit-line-clamp: 2;
}

.profession-preview.is-expanded:not(.is-empty) p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: initial;
}

.preview-more {
  min-height: 30px;
  margin-top: 8px;
  padding: 0 10px;
  color: var(--orange-dark);
  background: var(--orange-light);
  border: 1px solid #ffd1b3;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.preview-more:hover {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.preview-image {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  object-position: center bottom;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  animation: imageReveal 320ms ease both;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  bottom: 18px;
  z-index: 5;
  max-height: 0;
  margin-top: 0;
  padding: 0 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid transparent;
  border-left: 7px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, margin 220ms ease, padding 220ms ease;
}

.result-bar.is-visible {
  max-height: 180px;
  margin-top: 22px;
  padding: 18px;
  border-color: var(--line);
  border-left-color: var(--orange);
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.selected-pair {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pair-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
}

.result-button {
  min-height: 52px;
  padding: 0 26px;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: 4px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(233, 91, 22, 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.result-button:hover {
  transform: translateY(-2px);
  background: var(--orange-dark);
  box-shadow: 0 18px 38px rgba(183, 67, 8, 0.30);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.58);
}

.fireworks {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  --firework-side: min(670px, calc(50vw - 22px));
  --firework-side-inverse: max(-670px, calc(22px - 50vw));
  --firework-edge-y: min(470px, calc(50vh - 22px));
  --firework-edge-y-inverse: max(-470px, calc(22px - 50vh));
  --firework-center-side: min(700px, calc(50vw - 18px));
  --firework-center-side-inverse: max(-700px, calc(18px - 50vw));
}

.spark {
  position: absolute;
  top: 50%;
  left: 50%;
  --spark-delay: 0ms;
  --spark-duration: 2.6s;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  filter: drop-shadow(0 0 8px rgba(246, 177, 59, 0.48));
  opacity: 0;
  box-shadow:
    0 -30px 0 var(--yellow),
    22px -22px 0 #ffffff,
    30px 0 0 var(--orange),
    22px 22px 0 #ffd1b3,
    0 30px 0 #ffffff,
    -22px 22px 0 var(--yellow),
    -30px 0 0 var(--orange),
    -22px -22px 0 #ffffff;
  animation: none;
}

.modal.is-open .spark {
  animation: fireworkBurst var(--spark-duration) ease-out infinite;
  animation-delay: var(--spark-delay);
}

.spark-1 {
  --x: var(--firework-side-inverse);
  --y: var(--firework-edge-y-inverse);
  --spark-delay: 80ms;
  --spark-duration: 2.7s;
}

.spark-2 {
  --x: var(--firework-side);
  --y: var(--firework-edge-y-inverse);
  --spark-delay: 420ms;
  --spark-duration: 2.45s;
}

.spark-3 {
  --x: var(--firework-side);
  --y: var(--firework-edge-y);
  --spark-delay: 760ms;
  --spark-duration: 2.75s;
}

.spark-4 {
  --x: var(--firework-side-inverse);
  --y: var(--firework-edge-y);
  --spark-delay: 1100ms;
  --spark-duration: 2.55s;
}

.spark-5 {
  --x: var(--firework-center-side-inverse);
  --y: -28px;
  --spark-delay: 1440ms;
  --spark-duration: 2.85s;
}

.spark-6 {
  --x: var(--firework-center-side);
  --y: 28px;
  --spark-delay: 1780ms;
  --spark-duration: 2.6s;
}

.spark-7 {
  --x: -210px;
  --y: var(--firework-edge-y-inverse);
  --spark-delay: 2120ms;
  --spark-duration: 2.9s;
}

.spark-8 {
  --x: 210px;
  --y: var(--firework-edge-y);
  --spark-delay: 2460ms;
  --spark-duration: 2.7s;
}

.modal-window {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(460px, 1.28fr);
  grid-template-areas:
    "kicker kicker"
    "title title"
    "description visual"
    "tags visual";
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px 28px;
  width: min(1220px, 100%);
  height: min(900px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding: 26px 30px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 9px solid var(--orange);
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(34, 34, 34, 0.35);
  transform: scale(0.94) translateY(18px);
  transition: transform 220ms ease;
}

.modal.is-open .modal-window {
  transform: scale(1) translateY(0);
  animation: modalPop 260ms ease both;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--orange-dark);
  background: var(--orange-light);
  border: 1px solid #ffd1b3;
  border-radius: 4px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  grid-area: kicker;
  margin: 0 44px 0 0;
  color: var(--orange-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.modal-window h2 {
  grid-area: title;
  margin: 0 44px 0 0;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.05;
  letter-spacing: 0;
}

.result-description {
  grid-area: description;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.result-visual {
  grid-area: visual;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.result-visual img,
.image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 4px;
}

.result-visual img {
  display: block;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
}

.image-placeholder {
  display: grid;
  place-items: center;
  color: var(--orange-dark);
  background:
    linear-gradient(135deg, rgba(233, 91, 22, 0.16), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(135deg, rgba(233, 91, 22, 0.12) 0 14px, rgba(255, 255, 255, 0.40) 14px 28px);
  border: 1px dashed #f5a26f;
  font-weight: 900;
}

.result-tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
  margin-top: 0;
}

.result-tags span {
  padding: 9px 12px;
  color: var(--orange-dark);
  background: var(--orange-light);
  border: 1px solid #ffd1b3;
  border-radius: 4px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-weight: 800;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(18px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes previewPop {
  0% {
    transform: translateY(8px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes imageReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fireworkBurst {
  0% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.2) rotate(0deg);
  }

  18% {
    opacity: 1;
  }

  62% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1.6) rotate(25deg);
  }
}

@media (min-width: 901px) {
  .page {
    width: min(1180px, calc(100% - 64px));
    padding: 16px 0 24px;
  }

  .brand-row {
    min-height: 50px;
    padding: 0 20px;
  }

  .brand-mark {
    width: 56px;
    height: 32px;
  }

  .hero {
    gap: 6px;
    padding: 16px 20px;
  }

  .hero h1 {
    max-width: 640px;
    font-size: clamp(25px, 3.1vw, 38px);
    line-height: 1.02;
  }

  .gender-panel {
    margin-top: 10px;
    padding: 9px 16px;
  }

  .gender-title {
    font-size: 15px;
  }

  .gender-button {
    min-height: 32px;
    padding: 0 15px;
    font-size: 14px;
  }

  .chooser {
    gap: 16px;
    margin-top: 12px;
  }

  .panel {
    min-height: 220px;
    padding: 16px;
  }

  .panel-head {
    margin-bottom: 10px;
  }

  .panel h2 {
    font-size: 20px;
  }

  .select-block {
    gap: 8px;
  }

  .select-block label {
    font-size: 13px;
  }

  .profession-select,
  .select-button {
    min-height: 46px;
    padding-right: 46px;
    padding-left: 16px;
    font-size: 15px;
  }

  .select-wrap::after {
    right: 16px;
    width: 9px;
    height: 9px;
  }

  .profession-preview {
    grid-template-columns: 48px 1fr;
    gap: 11px;
    margin-top: 12px;
    padding-top: 11px;
  }

  .preview-code {
    width: 48px;
    height: 48px;
    font-size: 13px;
  }

  .profession-preview:not(.is-empty) .preview-info {
    height: 146px;
  }

  .profession-preview h3 {
    margin-bottom: 7px;
    font-size: 18px;
  }

  .profession-preview p {
    font-size: 14px;
    line-height: 1.42;
  }

  .preview-more {
    min-height: 28px;
    margin-top: 7px;
    font-size: 12px;
  }

  .preview-image {
    max-height: 310px;
    padding: 10px;
  }

  .result-bar.is-visible {
    margin-top: 16px;
    padding: 12px 14px;
  }

  .selected-pair {
    gap: 8px;
    font-size: 15px;
  }

  .pair-plus {
    width: 28px;
    height: 28px;
  }

  .result-button {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .brand-row {
    padding: 10px 18px;
  }

  .hero {
    padding: 22px 18px;
    background: var(--white);
  }

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

  .panel {
    min-height: auto;
  }

  .result-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .result-button {
    width: 100%;
  }

  .gender-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .gender-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal {
    padding: 10px;
  }

  .modal-window {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 24px;
  }

  .modal-window h2 {
    margin-right: 44px;
    font-size: clamp(24px, 6vw, 34px);
  }

  .result-visual {
    height: min(520px, 42vh);
    margin-top: 16px;
  }

  .result-tags {
    margin-top: 16px;
  }
}

@media (max-width: 540px) {
  .page {
    width: min(100% - 20px, 1220px);
    padding-top: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 64px;
    height: 40px;
    box-shadow: 5px 5px 0 var(--orange-light);
  }

  .brand-line {
    height: 36px;
  }

  .brand-text {
    font-size: 14px;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .gender-panel,
  .panel {
    padding: 20px;
  }

  .profession-select,
  .select-button {
    min-height: 56px;
    font-size: 16px;
  }

  .profession-preview {
    grid-template-columns: 46px 1fr;
  }

  .profession-preview:not(.is-empty) .preview-info {
    height: 188px;
  }

  .profession-preview.is-expanded:not(.is-empty) .preview-info {
    height: auto;
  }

  .preview-code {
    width: 46px;
    height: 46px;
  }

  .modal-window {
    padding: 20px;
  }

  .result-description {
    font-size: 17px;
  }

  .result-visual {
    height: min(380px, 38vh);
  }
}

/* Purple reference theme */
:root {
  --orange: #ff6a13;
  --orange-dark: #c44107;
  --orange-light: #fff0df;
  --yellow: #ffb000;
  --purple: #46358f;
  --purple-deep: #241a60;
  --purple-mid: #5a49ad;
  --purple-soft: #f1edff;
  --white: #ffffff;
  --paper: #fbfaf7;
  --ink: #242235;
  --muted: #716f7c;
  --line: #e5dfd7;
  --line-strong: #d4c9bd;
  --shadow: 0 20px 52px rgba(36, 26, 96, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 176, 0, 0.10) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #ffffff 0%, #fffaf2 44%, var(--paper) 100%);
  background-size: 42px 42px, auto;
  font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.page {
  width: min(1220px, calc(100% - 56px));
  padding: 18px 0 30px;
}

.top {
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(118deg, var(--purple) 0%, var(--purple-deep) 54%, var(--purple-mid) 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(36, 26, 96, 0.22);
}

.top::before {
  height: 6px;
  background: var(--yellow);
}

.brand-row {
  position: relative;
  z-index: 2;
  min-height: 58px;
  padding: 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  color: var(--white);
  font-family: "Tektur", "Russo One", "Arial Black", Arial, sans-serif;
  font-weight: 800;
}

.brand-mark {
  width: 62px;
  height: 38px;
  color: var(--purple-deep);
  background: var(--yellow);
  border-radius: 6px;
  box-shadow: none;
}

.brand-line {
  background: rgba(255, 255, 255, 0.36);
}

.brand-text {
  color: var(--white);
  font-size: 17px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  align-items: center;
  gap: 32px;
  min-height: 390px;
  padding: 52px 48px 58px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(158deg, rgba(255, 255, 255, 0.08) 0 10%, transparent 10% 100%),
    transparent;
  background-size: 86px 86px, 260px 260px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(25deg, transparent 0 42%, rgba(255, 176, 0, 0.12) 42% 42.5%, transparent 42.5% 100%),
    linear-gradient(118deg, transparent 0 58%, rgba(255, 255, 255, 0.12) 58% 58.4%, transparent 58.4% 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 18px;
}

.hero-label {
  padding: 0 0 0 12px;
  color: var(--yellow);
  background: transparent;
  border-left: 4px solid var(--orange);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 740px;
  color: var(--white);
  font-family: "Tektur", "Russo One", "Arial Black", Arial, sans-serif;
  font-size: clamp(50px, 5.7vw, 88px);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.28;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 260px;
  margin-top: 6px;
  padding: 0 34px;
  color: #171313;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(255, 176, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-action:hover,
.hero-action:focus-visible {
  transform: translateY(-2px);
  background: #ffc247;
  box-shadow: 0 22px 44px rgba(255, 176, 0, 0.34);
  outline: none;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.hero-device {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1.23;
  transform: rotate(-9deg) skewX(-3deg);
}

.device-screen,
.device-keyboard {
  position: absolute;
  left: 50%;
  display: block;
  border: 4px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, #ffffff 0%, #a9adb2 28%, #f9fbff 50%, #737981 74%, #ffffff 100%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.76),
    inset 0 -18px 28px rgba(36, 26, 96, 0.18),
    0 28px 54px rgba(18, 13, 54, 0.28);
}

.device-screen {
  top: 8%;
  width: 66%;
  height: 43%;
  border-radius: 16px;
  transform: translateX(-50%) perspective(700px) rotateX(7deg);
}

.device-screen::after,
.device-keyboard::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.device-keyboard {
  bottom: 9%;
  width: 82%;
  height: 38%;
  border-radius: 18px 18px 26px 26px;
  transform: translateX(-50%) perspective(700px) rotateX(54deg);
}

.device-keyboard::before {
  content: "";
  position: absolute;
  inset: 18px 36px 48px;
  background:
    repeating-linear-gradient(90deg, rgba(51, 54, 65, 0.42) 0 16px, transparent 16px 22px),
    repeating-linear-gradient(180deg, rgba(51, 54, 65, 0.35) 0 10px, transparent 10px 17px);
  border-radius: 8px;
}

.gender-panel,
.panel,
.result-bar.is-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.gender-panel {
  border-left-color: var(--purple);
}

.gender-title,
.panel h2,
.profession-preview h3,
.selected-pair {
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  color: var(--ink);
}

.gender-buttons {
  background: var(--purple-soft);
  border-color: #ddd4ff;
}

.gender-button {
  color: var(--purple-deep);
}

.gender-button.is-selected {
  color: #161021;
  background: var(--yellow);
  box-shadow: 0 10px 22px rgba(255, 176, 0, 0.25);
}

.panel {
  border-top-color: var(--purple);
}

.panel-digital {
  border-top-color: var(--purple);
}

.select-block label {
  color: var(--purple);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.modal-kicker {
  color: var(--orange-dark);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.profession-select,
.select-button,
.select-dropdown {
  border-color: #d8d0e9;
}

.profession-select:hover,
.profession-select:focus,
.select-button:hover,
.select-button:focus,
.select-wrap.is-open .select-button {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 4px rgba(70, 53, 143, 0.15);
}

.select-wrap::after {
  border-color: var(--orange);
}

.select-option:hover,
.select-option.is-highlighted {
  color: var(--purple-deep);
  background: var(--purple-soft);
}

.select-option.is-selected,
.preview-code,
.pair-plus {
  color: var(--white);
  background: var(--purple);
}

.preview-more,
.close-button,
.result-tags span {
  color: var(--purple-deep);
  background: var(--purple-soft);
  border-color: #ddd4ff;
}

.preview-more:hover {
  color: #171313;
  background: var(--yellow);
  border-color: var(--yellow);
}

.preview-image,
.result-visual img {
  border-color: #e4dde8;
}

.result-bar {
  border-left-color: transparent;
}

.result-bar.is-visible {
  border-left-color: var(--orange);
}

.result-button {
  color: #171313;
  background: var(--yellow);
  box-shadow: 0 14px 30px rgba(255, 176, 0, 0.28);
}

.result-button:hover {
  color: #171313;
  background: #ffc247;
  box-shadow: 0 18px 38px rgba(255, 176, 0, 0.34);
}

.modal-backdrop {
  background: rgba(24, 18, 58, 0.72);
}

.modal-window {
  border-top-color: var(--yellow);
  box-shadow: 0 30px 90px rgba(17, 12, 48, 0.45);
}

.modal-window h2 {
  font-family: "Tektur", "Russo One", "Arial Black", Arial, sans-serif;
  color: var(--purple-deep);
}

.image-placeholder {
  color: var(--purple-deep);
  background:
    linear-gradient(135deg, rgba(70, 53, 143, 0.12), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(135deg, rgba(70, 53, 143, 0.10) 0 14px, rgba(255, 255, 255, 0.42) 14px 28px);
  border-color: #ddd4ff;
}

@media (min-width: 901px) {
  .page {
    width: min(1220px, calc(100% - 64px));
    padding: 18px 0 30px;
  }

  .brand-row {
    min-height: 58px;
    padding: 0 36px;
  }

  .brand-mark {
    width: 62px;
    height: 38px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
    gap: 32px;
    min-height: 390px;
    padding: 52px 48px 58px;
  }

  .hero h1 {
    max-width: 740px;
    font-size: clamp(50px, 5.7vw, 88px);
    line-height: 0.92;
  }
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 24px, 1220px);
  }

  .brand-row {
    padding: 12px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 24px 30px;
  }

  .hero-copy {
    gap: 14px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(42px, 10vw, 72px);
    line-height: 0.94;
  }

  .hero-subtitle {
    max-width: 560px;
    font-size: clamp(20px, 5vw, 30px);
  }

  .hero-action {
    min-height: 54px;
    min-width: min(100%, 260px);
    font-size: 18px;
  }

  .hero-visual {
    min-height: 210px;
  }

  .hero-device {
    width: min(330px, 78vw);
  }
}

@media (max-width: 540px) {
  .page {
    width: min(100% - 18px, 1220px);
    padding-top: 10px;
  }

  .top {
    border-radius: 8px;
  }

  .brand-row {
    min-height: 54px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 56px;
    height: 34px;
  }

  .brand-text {
    font-size: 13px;
  }

  .hero {
    padding: 28px 18px 26px;
  }

  .hero h1 {
    font-size: clamp(36px, 13vw, 56px);
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .hero-action {
    width: 100%;
    min-width: 0;
    padding: 0 22px;
  }

  .hero-visual {
    min-height: 170px;
  }

  .hero-device {
    width: min(260px, 80vw);
  }

  .gender-panel,
  .panel {
    padding: 18px;
  }
}

/* Compact header and modal site link */
.top {
  border-radius: 10px;
}

.brand-row {
  min-height: 48px;
  padding: 0 28px;
}

.brand-mark {
  width: 54px;
  height: 32px;
  font-size: 15px;
}

.brand-line {
  height: 28px;
}

.brand-text {
  font-size: 14px;
}

.hero {
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 265px;
  padding: 34px 40px 38px;
}

.hero-copy {
  max-width: 880px;
}

.hero-label {
  font-size: 12px;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 4.9vw, 68px);
  line-height: 0.95;
}

.hero-subtitle {
  max-width: 760px;
  font-size: clamp(20px, 2vw, 28px);
}

.hero-action {
  min-height: 50px;
  min-width: 230px;
  font-size: 18px;
}

.hero-visual,
.hero-device {
  display: none;
}

.modal-window {
  grid-template-areas:
    "kicker kicker"
    "title title"
    "description visual"
    "site visual"
    "tags visual";
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 12px 28px;
}

.result-link-card {
  grid-area: site;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 16px;
  align-items: center;
  align-self: end;
  padding: 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(70, 53, 143, 0.96), rgba(36, 26, 96, 0.96)),
    linear-gradient(90deg, rgba(255, 176, 0, 0.14) 0 1px, transparent 1px 100%);
  background-size: auto, 28px 28px;
  border: 1px solid rgba(90, 73, 173, 0.35);
  border-radius: 8px;
}

.result-link-copy {
  min-width: 0;
}

.result-link-copy p {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-link-copy a {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.result-link-copy a:hover,
.result-link-copy a:focus-visible {
  color: var(--yellow);
  outline: none;
}

.result-link-card img {
  width: 112px;
  height: 112px;
  padding: 7px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 12, 48, 0.28);
}

@media (max-width: 900px) {
  .brand-row {
    min-height: 46px;
    padding: 8px 18px;
  }

  .brand-mark {
    width: 52px;
    height: 32px;
  }

  .hero {
    padding: 26px 22px 28px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(34px, 9vw, 56px);
  }

  .hero-subtitle {
    font-size: clamp(18px, 4.4vw, 25px);
  }

  .modal-window {
    display: flex;
    flex-direction: column;
  }

  .modal-kicker {
    order: 1;
  }

  .modal-window h2 {
    order: 2;
  }

  .result-description {
    order: 3;
  }

  .result-link-card {
    order: 4;
    align-self: stretch;
    margin-top: 14px;
  }

  .result-tags {
    order: 5;
    margin-top: 14px;
  }

  .result-visual {
    order: 6;
    height: min(480px, 40vh);
    margin-top: 16px;
  }
}

@media (max-width: 540px) {
  .brand-row {
    min-height: 42px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 48px;
    height: 30px;
  }

  .brand-line {
    height: 24px;
  }

  .brand-text {
    font-size: 12px;
  }

  .hero {
    padding: 22px 16px 24px;
  }

  .hero h1 {
    font-size: clamp(31px, 11vw, 46px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-action {
    min-height: 46px;
    font-size: 16px;
  }

  .result-link-card {
    grid-template-columns: 1fr 92px;
    gap: 12px;
    padding: 12px;
  }

  .result-link-copy a {
    font-size: 18px;
  }

  .result-link-card img {
    width: 92px;
    height: 92px;
  }
}

/* Hero balloon assets */
.hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  z-index: 3;
}

.hero-art {
  position: relative;
  z-index: 2;
  min-height: 235px;
  pointer-events: none;
}

.hero-art img {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: contain;
  user-select: none;
}

.hero-laptop {
  right: -18px;
  top: 50%;
  width: min(390px, 105%);
  transform: translateY(-46%) rotate(-7deg);
  filter:
    drop-shadow(0 28px 42px rgba(17, 12, 48, 0.34))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.20));
}

.hero-it {
  left: -12px;
  top: 6px;
  width: min(165px, 45%);
  transform: rotate(-12deg);
  opacity: 0.92;
  filter:
    drop-shadow(0 18px 26px rgba(17, 12, 48, 0.26))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.22));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 270px;
  }

  .hero-art {
    position: absolute;
    inset: 0;
    min-height: 0;
    opacity: 0.32;
  }

  .hero-laptop {
    right: -86px;
    bottom: -92px;
    top: auto;
    width: 330px;
    transform: rotate(-8deg);
  }

  .hero-it {
    display: none;
  }
}

@media (max-width: 540px) {
  .hero-art {
    display: none;
  }
}

/* Mobile result modal: keep the generated profession image visible */
@media (max-width: 900px) {
  .result-visual {
    order: 3;
    height: min(340px, 36vh);
    min-height: 220px;
    margin-top: 12px;
  }

  .result-description {
    order: 4;
    margin-top: 14px;
  }

  .result-link-card {
    order: 5;
  }

  .result-tags {
    order: 6;
  }
}

@media (max-width: 540px) {
  .modal-window {
    padding: 18px;
  }

  .modal-kicker {
    font-size: 12px;
  }

  .modal-window h2 {
    font-size: clamp(23px, 6vw, 30px);
  }

  .result-visual {
    height: min(300px, 33vh);
    min-height: 190px;
  }
}

/* Result bar polish */
.result-bar.is-visible {
  border-left-color: var(--purple);
}

@media (max-width: 900px) {
  .result-bar {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .result-bar.is-visible {
    max-height: 260px;
    padding: 14px;
  }

  .result-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 10px 20px 12px;
    line-height: 1.15;
  }
}

@media (max-width: 540px) {
  .result-bar.is-visible {
    padding: 12px;
  }

  .result-button {
    min-height: 58px;
    padding: 11px 18px 13px;
  }
}
