@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

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

:root {
  --data-blue: #092433;
  --data-blue-deep: #061722;
  --data-blue-light: #11364a;
  --signal-red: #eb4247;
  --signal-red-soft: rgba(235, 66, 71, 0.18);
  --signal-red-dark: #cc3035;
  --white: #ffffff;
  --cool-gray: #ccd1d5;
  --muted: rgba(204, 209, 213, 0.74);
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gap: 18px;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--data-blue-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--data-blue-deep);
  color: var(--white);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  min-height: 100svh;
  user-select: none;
  -webkit-user-select: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(235, 66, 71, 0.18), transparent 36rem),
    radial-gradient(circle at 90% 100%, rgba(20, 80, 110, 0.55), transparent 32rem),
    linear-gradient(160deg, #051420 0%, var(--data-blue) 60%, #03101a 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  opacity: 0.7;
}

.bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
}

.bg-glow-red {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -160px;
  background: rgba(235, 66, 71, 0.28);
}

.bg-glow-cool {
  width: 460px;
  height: 460px;
  bottom: -200px;
  left: -180px;
  background: rgba(74, 144, 226, 0.18);
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 4vw, 48px) 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--content-width), 100%);
  margin: 0 auto 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  touch-action: manipulation;
}

.brand:hover {
  color: var(--white);
  text-decoration: none;
}

.brand:focus-visible {
  outline: none;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(235, 66, 71, 0.35);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--signal-red);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--line-strong);
}

.brand-sub {
  color: var(--muted);
  font-size: 14px;
}

.admin-trigger {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: default;
  opacity: 0;
}

.admin-trigger:focus-visible {
  outline: none;
  opacity: 0.2;
  background: rgba(255, 255, 255, 0.08);
}

.screen {
  display: none;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  contain: layout style;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: screen-in 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ----------- HERO ----------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  isolation: isolate;
  contain: layout style;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(32px, 4.5vw, 56px);
}

.hero-main h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.accent {
  color: var(--signal-red);
}

.lead {
  margin: 0;
  max-width: 640px;
  color: var(--white);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  font-weight: 500;
}

.muted {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  box-sizing: border-box;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(235, 66, 71, 0.16);
  border: 1px solid rgba(235, 66, 71, 0.45);
  color: #ffb6b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ----------- BUTTONS ----------- */

.actions,
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.nav-actions {
  justify-content: space-between;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.button:active {
  transform: none;
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 66, 71, 0.35);
}

.button-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: none;
}

.button:hover .button-arrow {
  transform: none;
}

.button-primary {
  background: var(--signal-red);
  box-shadow: 0 14px 30px rgba(235, 66, 71, 0.32);
}

.button-primary:hover {
  background: var(--signal-red-dark);
  transform: none;
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

/* ----------- PANELS ----------- */

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.panel h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

/* Единый отступ между бейджем и заголовком (в т.ч. внутри вложенных блоков) */
.head-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.head-stack.centered {
  align-items: center;
  align-self: center;
  text-align: center;
  width: 100%;
}

.panel > p {
  margin: 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--cool-gray);
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.centered {
  text-align: center;
  align-items: center;
}

.centered-actions {
  justify-content: center;
}

/* ----------- QUIZ ----------- */

.quiz-progress {
  width: 100%;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-label {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.progress-hint {
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  margin-top: 14px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--signal-red), #ff8487);
  transition: width 0.3s ease;
  will-change: width;
}

.quiz-panel {
  gap: 8px;
}

.quiz-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.quiz-head .muted {
  font-size: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.cards-grid[data-cols="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.cards-grid[data-cols="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(235, 66, 71, 0.7);
  background: rgba(235, 66, 71, 0.08);
}

.option-card.is-selected {
  border-color: var(--signal-red);
  background: linear-gradient(180deg, rgba(235, 66, 71, 0.18), rgba(235, 66, 71, 0.06));
  box-shadow: 0 14px 36px rgba(235, 66, 71, 0.28);
}

.option-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(235, 66, 71, 0.12);
  border: 1px solid rgba(235, 66, 71, 0.32);
  transition: background 0.2s ease;
}

.option-card.is-selected .option-icon {
  background: rgba(235, 66, 71, 0.32);
  border-color: rgba(255, 255, 255, 0.3);
}

.option-icon img {
  width: 28px;
  height: 28px;
}

.option-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.option-desc {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.option-radio {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.option-card.is-selected .option-radio {
  background: var(--signal-red);
  border-color: var(--signal-red);
  color: var(--white);
}

/* Скромная «второстепенная» кнопка-вариант (например, «Другое») */
.option-card.option-card-muted {
  align-self: flex-start;
  grid-column: 1 / -1;
  justify-self: start;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 50px 14px 20px;
  min-height: 0;
  width: auto;
  max-width: 100%;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.option-card.option-card-muted:hover {
  transform: none;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.option-card.option-card-muted.is-selected {
  border-color: var(--signal-red);
  background: linear-gradient(180deg, rgba(235, 66, 71, 0.14), rgba(235, 66, 71, 0.04));
  box-shadow: 0 10px 24px rgba(235, 66, 71, 0.18);
}

.option-card.option-card-muted .option-title {
  font-size: 16px;
  font-weight: 600;
}

.option-card.option-card-muted .option-radio {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
}

.note {
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cool-gray);
  font-size: 16px;
  line-height: 1.5;
}

.note.note-case {
  display: grid;
  gap: 10px;
  border-color: rgba(235, 66, 71, 0.5);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(235, 66, 71, 0.16), rgba(255, 255, 255, 0.03));
}

.note.note-case p {
  margin: 0;
  color: var(--cool-gray);
  font-size: 15px;
  line-height: 1.55;
}

.note.note-case .case-note-title {
  color: var(--white);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.note.note-case p span {
  color: var(--white);
  font-weight: 700;
}

.error {
  min-height: 24px;
  margin: 0;
  color: #ff9b9e;
  font-size: 14px;
  font-weight: 700;
}

/* ----------- RESULT ----------- */

.profile-line {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--cool-gray);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 500;
}

.profile-line p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.profile-row {
  display: block;
}

.profile-key {
  color: var(--white);
  font-weight: 700;
}

.profile-line p + p {
  margin-top: 12px;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.architecture.is-loading {
  grid-template-columns: minmax(0, 1fr);
}

.arch-loading {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(235, 66, 71, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(235, 66, 71, 0.16), rgba(255, 255, 255, 0.04));
}

.arch-loading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.arch-loading p {
  margin: 0;
  color: var(--cool-gray);
  font-size: 15px;
  line-height: 1.5;
}

.arch-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.arch-card .arch-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(235, 66, 71, 0.12);
  border: 1px solid rgba(235, 66, 71, 0.32);
}

.arch-card .arch-icon img {
  width: 28px;
  height: 28px;
}

.arch-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.arch-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--cool-gray);
  list-style: none;
}

.arch-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.arch-card li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--signal-red);
}

.arch-card-product-desc {
  margin: 0;
  color: var(--cool-gray);
  font-size: 15px;
  line-height: 1.5;
}

.arch-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}

.arch-link:hover {
  text-decoration-color: var(--white);
}

/* ----------- CASE ----------- */

.case-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.case-header-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: min(100%, 16rem);
}

.case-visual {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: var(--radius-lg);
  background: rgba(235, 66, 71, 0.14);
  border: 1px solid rgba(235, 66, 71, 0.32);
}

.case-visual img {
  width: 44px;
  height: 44px;
}

.contact-teaser {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(235, 66, 71, 0.62);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, rgba(235, 66, 71, 0.24), rgba(255, 255, 255, 0.05) 70%);
  box-shadow: 0 20px 45px rgba(235, 66, 71, 0.2);
}

.contact-teaser strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-teaser span {
  color: var(--cool-gray);
  font-size: 16px;
  line-height: 1.5;
}

.contact-teaser-action {
  justify-self: start;
  margin-top: 6px;
}

/* ----------- FORM ----------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--cool-gray);
  font-size: 14px;
  font-weight: 600;
}

.form-field {
  align-content: start;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

input::placeholder {
  color: rgba(204, 209, 213, 0.46);
}

input:focus {
  border-color: var(--signal-red);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(235, 66, 71, 0.18);
}

.form-field.is-invalid input,
input.is-invalid {
  border-color: #ff7f83;
  background: rgba(235, 66, 71, 0.1);
  box-shadow: 0 0 0 2px rgba(235, 66, 71, 0.2);
}

.field-error {
  min-height: 16px;
  margin: 0;
  color: #ffb6b8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cool-gray);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
}

.checkbox:hover {
  border-color: var(--line-strong);
}

.checkbox.is-invalid {
  border-color: #ff7f83;
  background: rgba(235, 66, 71, 0.12);
}

.checkbox input {
  flex-shrink: 0;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0.35em 0 0;
  accent-color: var(--signal-red);
  cursor: pointer;
}

.checkbox-text {
  flex: 1;
  min-width: 0;
}

.checkbox-error {
  margin-top: 8px;
}

.checkbox-link {
  display: inline;
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}

.checkbox-link:hover {
  text-decoration-color: var(--white);
}

.success {
  margin: 0;
  color: var(--cool-gray);
  font-weight: 600;
}

/* ----------- THANKS ----------- */

.thanks-icon {
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  place-items: center;
  border-radius: 28px;
  background: rgba(235, 66, 71, 0.14);
  border: 1px solid rgba(235, 66, 71, 0.32);
}

.thanks-icon img {
  width: 44px;
  height: 44px;
}

/* ----------- ADMIN ----------- */

.admin-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: var(--radius-xl);
  padding: 0;
  background: transparent;
  color: var(--white);
}

.admin-dialog::backdrop {
  background: rgba(2, 8, 14, 0.7);
  backdrop-filter: blur(6px);
}

.admin-box {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #0c2c3e, #061a26);
  box-shadow: var(--shadow-lg);
}

.admin-divider {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.admin-subtitle {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.admin-box textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-box textarea::placeholder {
  color: rgba(204, 209, 213, 0.46);
}

.admin-box textarea:focus {
  border-color: var(--signal-red);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(235, 66, 71, 0.18);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ----------- RESPONSIVE ----------- */

@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .app {
    padding: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-divider,
  .brand-sub,
  .admin-trigger {
    display: none;
  }

  .cards-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .option-card.option-card-muted {
    width: 100%;
  }

  .nav-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .contact-teaser-action {
    width: 100%;
    justify-self: stretch;
  }
}

/* Мобильные: убираем тяжёлые эффекты при скролле и фиксированный фон */
@media (max-width: 900px) {
  body {
    background-color: var(--data-blue-deep);
    background-image:
      radial-gradient(circle at 20% 0%, rgba(235, 66, 71, 0.14), transparent 30rem),
      radial-gradient(circle at 90% 100%, rgba(20, 80, 110, 0.4), transparent 26rem),
      linear-gradient(160deg, #051420 0%, var(--data-blue) 60%, #03101a 100%);
    background-attachment: scroll;
    background-repeat: no-repeat;
  }

  .bg {
    display: none;
  }

  .app {
    padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    margin-bottom: 18px;
  }

  .hero-card,
  .panel,
  .quiz-progress,
  .arch-card,
  .admin-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
  }

  .admin-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Плавная opacity-анимация при смене экрана — без transform, не дёргает скролл */
  .screen.is-active {
    animation: screen-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .screen {
    transform: none;
  }

  .option-card,
  .option-card:hover,
  .button,
  .button:hover,
  .button:active {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
