@font-face { font-family: Nunito; src: url('assets/Nunito-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url('assets/Nunito-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Nunito; src: url('assets/Nunito-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url('assets/Nunito-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: Nunito; src: url('assets/Nunito-900.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --site-header-height: 78px;
  --blue: #7a40ff;
  --blue-deep: #171d3f;
  --blue-soft: #f1ebff;
  --yellow: #ff8712;
  --yellow-deep: #ff4a40;
  --ink: #202746;
  --muted: #68728c;
  --white: #fff;
  --line: #dfe3ee;
  --mint: #e6f8ef;
  --mint-ink: #23714a;
  --cream: #fff3df;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  font-family: Nunito, Arial, sans-serif;
  color: var(--ink);
  background: #000011;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 10%, rgba(122,64,255,.16), transparent 28rem),
    radial-gradient(circle at 8% 92%, rgba(240,46,148,.10), transparent 25rem),
    #000011;
}
body.modal-open { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #050a29;
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled { background: rgba(5,10,41,.76); border-bottom-color: rgba(255,255,255,.14); box-shadow: 0 10px 30px rgba(5,10,41,.18); backdrop-filter: blur(18px) saturate(145%); }
.header-inner { width: min(1488px, calc(100vw - 80px)); height: var(--site-header-height); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-brand { display: flex; align-items: center; gap: 12px; min-width: 270px; color: inherit; text-decoration: none; }
.site-brand img { display: block; width: 300px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 32px; color: #fff; font-size: 14px; }
.main-nav a { color: inherit; text-decoration: none; white-space: nowrap; }
.main-nav .active, .main-nav .contact-link { color: #ff8712; font-weight: 900; }
.mobile-trial-link, .mobile-student-login { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-button { display: inline-flex; align-items: center; justify-content: center; height: 48px; border-radius: 12px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.header-button:hover { transform: translateY(-3px); filter: saturate(1.08); }
.trial-button { width: 271px; background: linear-gradient(100deg,#ff8418,#ff4e43 48%,#ee48b4); box-shadow: 0 6px 18px rgba(255,99,51,.25); }
.login-button { width: 171px; border: 1.16px solid rgba(255,255,255,.95); background: #0b123d; font-weight: 600; }
.menu-button { display: none; border: 0; background: transparent; color: #fff; font-size: 29px; line-height: 1; cursor: pointer; }

.trial-modal { position: fixed; left: 0; right: 0; top: var(--site-header-height); bottom: 0; z-index: 1200; display: grid; place-items: center; padding: 18px 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.trial-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.trial-modal-backdrop { position: absolute; inset: 0; background: rgba(5,10,41,.68); backdrop-filter: blur(12px); }
.trial-modal-card { position: relative; z-index: 1; width: min(600px, calc(100vw - 36px)); max-height: calc(100svh - var(--site-header-height) - 28px); overflow-y: auto; padding: 48px 34px 32px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: 0 28px 80px rgba(5,10,41,.34); display: flex; flex-direction: column; gap: 17px; }
.trial-modal-close { position: absolute; right: 18px; top: 16px; z-index: 2; width: 40px; height: 40px; border: 1px solid #e0e5f0; border-radius: 14px; background: #fff; color: #7a40ff; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 8px 18px rgba(31,41,84,.08); }
.trial-modal-card h2 { margin: 0; color: transparent; background: linear-gradient(90deg,#ff6e14 43%,#f02e94 72%,#7a40ff 100%); -webkit-background-clip: text; background-clip: text; font-size: 46px; line-height: 1.04; text-align: center; font-weight: 800; }
.signup-form>label { height: 51px; border: 1px solid #dce0eb; border-radius: 11px; background: #fff; display: flex; align-items: center; position: relative; overflow: hidden; }
.signup-form input, .signup-form textarea, .signup-form select { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0 14px 0 40px; font-size: 13px; }
.signup-form select { padding-right: 34px; }
.signup-form input::placeholder, .signup-form textarea::placeholder { color: #9298ac; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { height: 51px; border: 1px solid #dce0eb; border-radius: 11px; background: #fff; display: flex; align-items: center; position: relative; overflow: hidden; }
.textarea-label { height: 102px!important; align-items: flex-start!important; }
.textarea-label textarea { height: 100%; padding-top: 17px; resize: none; }
.legal-checks { display: flex; flex-direction: column; gap: 6px; margin-top: -2px; }
.signup-form .legal-check { height: auto!important; border: 0!important; border-radius: 0!important; background: transparent!important; display: grid!important; grid-template-columns: 18px 1fr; gap: 7px; align-items: flex-start!important; overflow: visible!important; color: #626a83; font-size: 10.5px; line-height: 1.25; }
.legal-check input { width: 16px!important; height: 16px!important; margin: 1px 0 0!important; padding: 0!important; accent-color: #ef4fc1; cursor: pointer; }
.legal-check span { display: block; }
.legal-check a { color: #6d39fa; text-decoration: underline; text-underline-offset: 2px; font-weight: 800; }
.field-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); opacity: .4; background: center/contain no-repeat; }
.field-icon.user { width: 20px; height: 18px; background-image: url("/assets/icons/user.png"); }
.field-icon.phone { background-image: url("/assets/icons/phone.png"); }
.field-icon.calendar { width: 22px; height: 22px; background-image: url("/assets/icons/booking.png"); }
.field-icon.edit { top: 28px; width: 23px; height: 23px; background-image: url("/assets/icons/edit.png"); }
.trial-submit { display: flex; align-items: center; justify-content: center; min-height: 68px; border: 0; border-radius: 13px; background: linear-gradient(100deg,#ff8418,#ff4e43 48%,#ee48b4); color: #fff; font-size: 23px; font-weight: 800; cursor: pointer; }
.trial-submit:disabled { opacity: .7; cursor: wait; }
.submit-icon { width: 29px; height: 29px; margin-left: 12px; background: url("/assets/icons/airplane.png") center/contain no-repeat; mix-blend-mode: color-dodge; }

button, textarea, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - var(--site-header-height));
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  align-items: center;
  position: relative;
}

.panel {
  background: #f7f8fc;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.welcome {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  min-height: 620px;
}

.welcome-copy {
  padding: clamp(34px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow, .section-pill {
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid #ddd0ff;
  color: #6030d6;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Nunito, Arial, sans-serif; font-weight: 900; }

.welcome h1 {
  margin: 18px 0 10px;
  max-width: 11ch;
  font-size: clamp(2.65rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  color: var(--blue-deep);
}

.lead {
  margin-bottom: 12px;
  max-width: 35rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
  font-weight: 750;
}

.description {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.primary, .secondary, .text-button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.primary {
  min-height: 56px;
  padding: 14px 25px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(90deg, #ff8712 0%, #ff4a40 50%, #ef4fc1 100%);
  box-shadow: 0 6px 18px rgba(255,99,51,.25);
}

.primary:hover:not(:disabled) { transform: translateY(-2px); }
.primary:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 10px rgba(255,99,51,.2); }
.primary:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }

.welcome .primary { width: fit-content; margin-top: 18px; }

.welcome-art {
  min-height: 560px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-image: url('assets/hero-lion-dog.jpg');
  background-size: cover;
  background-position: center;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: #fff;
  text-align: center;
}

.hero-image:not(.is-ready) { display: none; }
.hero-image.is-ready + .hero-fallback { display: none; }

.art-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(8,11,41,.88);
  backdrop-filter: blur(12px);
  color: #fff;
  text-align: center;
  font-weight: 850;
}

.quiz-panel { padding: clamp(22px, 4vw, 46px); }

.quiz-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.progress-wrap { grid-column: 1 / -1; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; color: var(--muted); font-weight: 760; }
.progress-track { height: 12px; border-radius: 99px; background: #e5e8f2; overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8712 0%, #ff4a40 55%, #ef4fc1 100%); transition: width .35s ease; }

.question-title {
  max-width: 820px;
  margin: 4px 0 10px;
  font-size: clamp(1.65rem, 3.3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.question-help { color: var(--muted); margin-bottom: 22px; line-height: 1.45; }

.answers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.answers-grid.visual { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.answers-grid.styles-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.styles-grid .visual-card,
.styles-grid .visual-card:nth-child(4),
.styles-grid .visual-card:nth-child(5) { grid-column: auto; }

.answer-card {
  width: 100%;
  min-height: 74px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 19px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 760;
  line-height: 1.35;
  transition: border .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.answer-card:hover { border-color: #7a40ff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(122,64,255,.16); }
.answer-card.selected { border-color: #ef4fc1; background: #fff2fb; box-shadow: inset 0 0 0 1px #ef4fc1; }
.answer-card.selected::after { content: '✓'; float: right; color: white; background: linear-gradient(135deg, #ff8712, #ef4fc1); width: 25px; height: 25px; border-radius: 50%; text-align: center; line-height: 25px; margin-left: 10px; }
.answer-card .emoji { display: block; font-size: 2.2rem; margin-bottom: 10px; }
.answer-card small { display: block; margin-top: 7px; color: var(--muted); font-weight: 580; }

.visual-card { padding: 0 0 16px; overflow: hidden; }
.visual-card .visual-thumb {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  height: 176px;
  margin-bottom: 14px;
  background: linear-gradient(145deg, #e5ecff, #fff4d3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.place-card .visual-thumb {
  height: auto;
  aspect-ratio: 1 / 1;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.visual-card:hover { transform: none; }
.visual-card > span, .visual-card > small { display: block; padding-inline: 15px; }
.visual-card.selected::after { position: absolute; right: 12px; top: 12px; }
.visual-card { position: relative; }

.style-card { padding: 0; min-height: 0; }
.style-select {
  width: 100%;
  min-height: 100%;
  padding: 0 0 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.style-select .visual-thumb { height: auto; aspect-ratio: 4 / 3; margin-bottom: 15px; }
.visual-copy { display: block; padding-inline: 16px; }
.visual-copy > span { display: block; font-weight: 850; }
.visual-copy small { display: block; margin-top: 7px; color: var(--muted); font-weight: 580; }

.zoom-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  color: var(--blue-deep);
  box-shadow: 0 4px 12px rgba(16,23,62,.16);
  cursor: zoom-in;
  font-weight: 900;
}

.feedback {
  margin-top: 17px;
  padding: 13px 16px;
  border-radius: 15px;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 760;
}
.feedback.hint { background: var(--cream); color: #846117; }

.field-wrap { margin-top: 14px; }
textarea, .other-input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px 17px;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
  line-height: 1.5;
}
textarea { min-height: 132px; }
textarea:focus, .other-input:focus { border-color: #ef4fc1; box-shadow: 0 0 0 4px rgba(239,79,193,.12); }
.counter { margin-top: 6px; text-align: right; color: var(--muted); font-size: .84rem; }
.counter.invalid { color: #9a6814; }

.order-list { display: grid; gap: 10px; }
.order-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 12px 13px;
  border: 2px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.order-card.dragging { opacity: .55; }
.drag-handle { cursor: grab; color: #8b96b2; font-size: 1.35rem; }
.order-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: #6030d6; font-weight: 900; }
.move-buttons { display: flex; gap: 5px; }
.move-buttons button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue-deep); cursor: pointer; }
.move-buttons button:disabled { opacity: .3; cursor: default; }

.palette { display: flex; height: 48px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.palette i { flex: 1; }

.quiz-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.secondary { min-height: 52px; padding: 13px 22px; border: 1px solid rgba(255,255,255,.95); border-radius: 16px; background: #0b123d; color: #fff; }
.secondary:hover { background: #151d52; }

.milestone, .result { padding: clamp(30px, 6vw, 72px); }
.result { max-height: calc(100svh - var(--site-header-height) - 32px); overflow-y: auto; overscroll-behavior: contain; }
.milestone { text-align: center; }
.celebration { font-size: 4.5rem; margin-bottom: 12px; }
.milestone h1, .result h1 { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--blue-deep); letter-spacing: -.04em; }
.milestone p { color: var(--muted); font-size: 1.15rem; }

.result-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; margin-bottom: 25px; }
.score-badge { padding: 13px 17px; border-radius: 17px; background: var(--cream); color: #8a5717; font-weight: 850; }
.idea-card { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.idea-row { padding: 18px; border-bottom: 1px solid var(--line); }
.idea-row:nth-child(odd) { border-right: 1px solid var(--line); }
.idea-row strong { display: block; margin-bottom: 6px; color: var(--blue-deep); }
.idea-row p { margin: 0; line-height: 1.45; white-space: pre-wrap; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.save-status { color: var(--mint-ink); font-weight: 760; align-self: center; }

.prompt-result { padding-top: clamp(30px, 4vw, 54px); }
.prompt-lead { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.format-badge {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  text-align: center;
}
.format-badge strong { display: block; font-size: 1.35rem; }
.format-badge span { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; font-weight: 760; }
.prompt-label { display: block; margin-bottom: 9px; color: var(--blue-deep); font-weight: 900; }
.prompt-box {
  min-height: 220px;
  height: clamp(240px, 32vh, 300px);
  max-height: 300px;
  padding: 22px;
  border-color: var(--line);
  background: #fff;
  font-family: Nunito, Arial, sans-serif;
  font-size: .98rem;
  line-height: 1.62;
  resize: none;
  overflow-y: auto;
}
.prompt-box:focus { background: #fff; }
.prompt-note { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.creative-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 15px 17px;
  border: 2px solid #ff8a46;
  border-radius: 18px;
  background: linear-gradient(105deg, #fff3df 0%, #fff7fb 58%, #f1ebff 100%);
  box-shadow: 0 8px 22px rgba(239, 79, 193, .12);
}
.creative-next-copy h2 { margin: 0 0 7px; color: var(--blue-deep); font-size: 1.12rem; line-height: 1.2; }
.creative-next-copy p { margin: 2px 0; color: var(--ink); font-size: .87rem; line-height: 1.35; }
.creative-next-copy .studio-note { margin-top: 7px; color: #6030d6; font-weight: 800; }
.trial-link {
  display: inline-flex;
  max-width: 250px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border-radius: 15px;
  background: linear-gradient(90deg, #ff8712 0%, #ff4a40 50%, #ef4fc1 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(255, 99, 51, .24);
}
.trial-link:hover { transform: translateY(-1px); }

.image-dialog { width: min(780px, calc(100% - 30px)); padding: 22px; border: 1px solid var(--line); border-radius: 26px; background: #f7f8fc; color: var(--ink); box-shadow: var(--shadow); }
.image-dialog::backdrop { background: rgba(20,31,75,.72); backdrop-filter: blur(5px); }
.dialog-close { float: right; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font-size: 1.5rem; }
.dialog-image { clear: both; height: min(55vh, 470px); border-radius: 18px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #f8eee2; }
.image-dialog h3 { margin: 16px 4px 2px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); padding: 14px 19px; border-radius: 14px; background: linear-gradient(90deg, #ff8712, #ef4fc1); color: white; font-weight: 760; box-shadow: var(--shadow); transition: transform .25s ease; z-index: 10; }
.toast.show { transform: translate(-50%, 0); }

:focus-visible { outline: 4px solid rgba(255,204,72,.95); outline-offset: 3px; }

@media (max-width: 760px) {
  .app-shell { width: min(100% - 20px, 680px); padding: 12px 0; }
  .sound-note { display: none; }
  .panel { border-radius: 24px; }
  .welcome { grid-template-columns: 1fr; }
  .welcome-copy { padding: 32px 24px; }
  .welcome h1 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
  .welcome-art { min-height: 350px; order: -1; }
  .answers-grid { grid-template-columns: 1fr; }
  .answers-grid.visual, .answers-grid.styles-grid { grid-template-columns: 1fr; }
  .styles-grid .visual-card,
  .styles-grid .visual-card:nth-child(4),
  .styles-grid .visual-card:nth-child(5) { grid-column: 1; }
  .quiz-panel { padding: 22px 16px; }
  .quiz-top { grid-template-columns: 1fr; gap: 10px; }
  .question-title { font-size: 1.72rem; }
  .quiz-actions { position: sticky; bottom: 8px; padding: 9px; margin-inline: -6px; border-radius: 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); }
  .quiz-actions button { flex: 1; }
  .idea-card { grid-template-columns: 1fr; }
  .idea-row:nth-child(odd) { border-right: 0; }
  .result { max-height: none; overflow: visible; }
  .prompt-result { padding: 26px 16px 22px; }
  .result-head { grid-template-columns: 1fr; }
  .format-badge { width: 100%; min-width: 0; }
  .prompt-box { min-height: 240px; height: 48svh; max-height: 420px; padding: 16px; font-size: .9rem; }
  .creative-next-step { grid-template-columns: 1fr; gap: 15px; align-items: stretch; padding: 18px 16px; }
  .creative-next-copy h2 { font-size: 1.12rem; }
  .creative-next-copy p { margin-top: 7px; font-size: .9rem; line-height: 1.42; }
  .creative-next-copy .studio-note { margin-top: 11px; }
  .trial-link { width: 100%; max-width: none; min-height: 54px; padding: 13px 16px; }
  .result-actions { flex-direction: column; }
}

@media (min-width: 761px) {
  body { height: 100svh; overflow: hidden; }
  .app-shell { height: calc(100svh - var(--site-header-height)); min-height: 0; }
}

@media (min-width: 600px) and (max-width: 1600px) {
  body { height: 100svh; overflow: hidden; }
  .app-shell {
    width: calc(100% - 20px);
    height: calc(100svh - var(--site-header-height));
    min-height: 0;
    padding: 10px 0;
    grid-template-rows: auto;
    align-content: center;
    align-items: start;
  }
  .panel { width: 100%; min-height: 0; height: auto; border-radius: 22px; }
  .welcome { min-height: 0; grid-template-columns: 1.04fr .96fr; }
  .welcome-copy { padding: clamp(24px, 4vw, 42px); }
  .welcome h1 { font-size: clamp(2.7rem, 6vw, 4rem); }
  .welcome-art { min-height: 0; order: 0; }

  .quiz-panel {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
  }
  .quiz-top { grid-template-columns: 1fr auto; gap: 8px 16px; margin-bottom: 10px; }
  .progress-labels { margin-bottom: 5px; font-size: .78rem; }
  .progress-track { height: 8px; }
  .section-pill { padding: 6px 10px; font-size: .68rem; }
  .question-title { margin-bottom: 6px; font-size: clamp(1.35rem, 2.7vw, 2rem); }
  .question-help { margin-bottom: 10px; font-size: .9rem; }
  .answers-grid { gap: 9px; }
  .answer-card { min-height: 58px; padding: 12px 14px; border-radius: 15px; }
  .answer-card .emoji { display: inline; margin: 0 8px 0 0; font-size: 1.65rem; }
  .answer-card small { margin-top: 3px; }

  .answers-grid.visual:not(.styles-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .place-card { padding: 0 0 10px; }
  .place-card .visual-thumb { margin-bottom: 8px; }
  .answers-grid.styles-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .styles-grid .visual-card,
  .styles-grid .visual-card:nth-child(4),
  .styles-grid .visual-card:nth-child(5) { grid-column: auto; }
  .style-select { padding-bottom: 10px; }
  .style-select .visual-thumb { margin-bottom: 8px; }
  .visual-copy { padding-inline: 10px; }
  .visual-copy > span { font-size: .84rem; line-height: 1.2; }
  .visual-copy small { font-size: .72rem; line-height: 1.2; }
  .zoom-button { width: 30px; height: 30px; top: 7px; left: 7px; }

  textarea { min-height: 100px; }
  .order-list { gap: 7px; }
  .order-card { padding: 8px 10px; }
  .feedback { margin-top: 10px; padding: 9px 12px; }
  .quiz-actions {
    position: static;
    bottom: auto;
    margin: 12px 0 0;
    padding: 12px 0 0;
    background: transparent;
    backdrop-filter: none;
  }
  .quiz-actions button { flex: 0 0 auto; }
  .primary { min-height: 48px; padding: 11px 20px; }
  .secondary { min-height: 46px; padding: 10px 18px; }

  .milestone, .result { padding: 20px 26px; }
  .celebration { margin-bottom: 6px; font-size: 3.5rem; }
  .milestone h1, .result h1 { font-size: clamp(2rem, 4vw, 3rem); }
  .result-head { margin-bottom: 10px; }
  .result-head { grid-template-columns: 1fr auto; }
  .idea-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idea-row:nth-child(odd) { border-right: 1px solid var(--line); }
  .result-actions { flex-direction: row; }
  .prompt-box { min-height: 180px; height: clamp(180px, 27vh, 235px); max-height: 235px; }
  .creative-next-step { padding: 11px 13px; gap: 12px; }
  .creative-next-copy h2 { font-size: 1rem; }
  .creative-next-copy p { font-size: .76rem; line-height: 1.25; }
  .trial-link { max-width: 210px; min-height: 44px; padding: 9px 13px; font-size: .82rem; }
  .result-actions { margin-top: 14px; }
}

@media (max-width: 1500px) {
  .header-inner { width: calc(100vw - 40px); }
  .header-actions { display: none; }
  .menu-button { position: relative; z-index: 1001; display: block; width: 48px; height: 48px; padding: 0; border-radius: 10px; }
  .main-nav { position: fixed; z-index: 999; top: var(--site-header-height); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 20px 24px; background: rgba(5,10,41,.98); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 22px 38px rgba(5,10,41,.28); }
  body.menu-open { overflow: hidden; }
  body.menu-open .main-nav { display: flex; }
  body.menu-open .main-nav a { display: block; padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.11); font-size: 16px; font-weight: 800; }
  body.menu-open .main-nav .mobile-trial-link,
  body.menu-open .main-nav .mobile-student-login { display: flex; align-items: center; justify-content: center; height: 52px; margin-top: 12px; padding: 0 18px; border: 0; border-radius: 14px; color: #fff; font-size: 16px; font-weight: 900; }
  body.menu-open .main-nav .mobile-trial-link { background: linear-gradient(100deg,#ff8418,#ff4e43 48%,#ee48b4); }
  body.menu-open .main-nav .mobile-student-login { background: linear-gradient(120deg,#7440f5,#3b8cff); }
}

@media (max-width: 760px) {
  .site-brand img { width: 260px; }
  .trial-modal { padding: 12px; }
  .trial-modal-card { width: calc(100vw - 24px); padding: 46px 18px 22px; border-radius: 24px; }
  .trial-modal-card h2 { font-size: 29px; line-height: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
+/* Единая стрелка выпадающих списков */
select:not([multiple]){-webkit-appearance:none;appearance:none;padding-right:48px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236c3fda' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),radial-gradient(circle,#f0e9ff 0 66%,transparent 68%)!important;background-repeat:no-repeat,no-repeat!important;background-position:right 18px center,right 8px center!important;background-size:10px 6px,30px 30px!important}
select:not([multiple]):disabled{opacity:.65}
