
/* =========================================
   AI RECRUITER — COMPLETE STYLE
   Dark Green / Mint
========================================= */

:root {
  --bg: #080e0b;
  --bg-soft: #151c18;
  --card: #1a211d;
  --card-hover: #202a24;
  --line: rgba(255,255,255,.09);
  --text: #f3f7f4;
  --muted: #a0aca4;
  --accent: #6ee7b7;
  --accent-dark: #34b887;
  --accent-soft: rgba(110,231,183,.11);
  --danger: #fb7185;
  --warning: #fbbf24;
  --radius: 20px;
  --radius-small: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,.28);
  --transition: .25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(
      ellipse at 12% 22%,
      rgba(40,220,165,.17),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 88% 18%,
      rgba(20,150,120,.16),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #080e0b,
      #101a14 50%,
      #080e0b
    );
  background-color: var(--bg);
}

h1,h2,h3,h4,p {
  margin-top: 0;
}

h1,h2,h3,h4 {
  line-height: 1.25;
  letter-spacing: -.03em;
}

p {
  color: var(--muted);
}

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

[hidden] {
  display: none !important;
}

/* =========================================
   PAGE
========================================= */

.page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

/* =========================================
   HEADER
========================================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
}

header h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 750;
}

header p {
  margin: 5px 0 0;
  font-size: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 750;
}

.logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #092016;
  font-weight: 850;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-dark)
  );
  box-shadow: 0 0 24px rgba(110,231,183,.18);
}

.logo svg,
.brand .logo svg {
  display: block;
  width: 29px;
  height: 29px;
}

header .badge {
  padding: 8px 14px;
  border: 1px solid rgba(110,231,183,.18);
  border-radius: 30px;
  color: #b7e8cf;
  background: rgba(110,231,183,.06);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================
   HERO
========================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns:
    minmax(0,1fr) minmax(0,.95fr);
  align-items: start;
  gap: 28px;
  padding: 36px 20px;
  background: transparent;
}

/*
   Фоновый робот.
   Единственное основное правило для hero::before.
   Масштабирование без cover, чтобы не обрезать
   изображение при заполнении блока.
*/

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -130px -220px -160px;

  background-image: url("images/hero-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;

  opacity: .62;
  pointer-events: none;

  -webkit-mask-image: radial-gradient(
    ellipse 85% 85% at 56% 43%,
    #000 18%,
    transparent 100%
  );

  mask-image: radial-gradient(
    ellipse 85% 85% at 56% 43%,
    #000 18%,
    transparent 100%
  );
}

.hero > div:first-child,
.hero > .card {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero h1 {
  color: #f5fff9;
  font-size: clamp(28px,3.2vw,42px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0,0,0,.3);
}

.hero .lead {
  max-width: 55ch;
  color: #b9c9be;
  font-size: 15px;
  line-height: 1.8;
}

.hero .points {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid rgba(110,231,183,.15);
  border-radius: 18px;
  background: rgba(110,231,183,.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero .point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e2efe6;
  font-size: 14px;
}

.hero .point .dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(110,231,183,.45);
}

/* =========================================
   CARDS
========================================= */

.card {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.012)
    ),
    var(--card);
  box-shadow: var(--shadow);
}

.hero > .card {
  border-color: rgba(110,231,183,.15);
  background: rgba(26,35,29,.97);
  box-shadow:
    0 25px 75px rgba(0,0,0,.35),
    0 0 35px rgba(110,231,183,.035);
}

.card h2 {
  margin-bottom: 12px;
  font-size: clamp(25px,3vw,36px);
  font-weight: 750;
}

.card h3 {
  font-size: 20px;
  font-weight: 650;
}

.card p {
  line-height: 1.7;
}

/* =========================================
   FORM
========================================= */

form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  outline: none;
  background: #111914;
  color: var(--text);
  font-size: 15px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: #84948a;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  background: #151e18;
  box-shadow: 0 0 0 3px rgba(110,231,183,.1);
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

/* =========================================
   BUTTONS
========================================= */

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-dark)
  );
  color: #092016;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 25px rgba(110,231,183,.16);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#start-test {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  font-size: 16px;
}

/* =========================================
   PROFESSION SEARCH
========================================= */

.profession-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 4px;
}

.profession-field > label {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.profession-search {
  position: relative;
  width: 100%;
}

.card form .profession-search input {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 16px 0 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: #101914;
  color: var(--text);
  font-size: 16px;
}

.card form .profession-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110,231,183,.12);
}

.profession-search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}

.profession-hint {
  margin: 0;
  color: #91a59a;
  font-size: 12px;
  line-height: 1.5;
}

.profession-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% - 20px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(110,231,183,.22);
  border-radius: 13px;
  background: #1d2922;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.profession-option {
  display: block;
  width: 100%;
  min-height: auto;
  padding: 12px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: none;
}

.profession-option:hover,
.profession-option:focus-visible {
  transform: none;
  border: 0;
  outline: none;
  background: rgba(110,231,183,.12);
  color: var(--accent);
  box-shadow: none;
}

/* =========================================
   ALTI — MASCOT
========================================= */

.robot-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  pointer-events: none;
}

.robot-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.robot-mascot {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 25px rgba(110,231,183,.23))
    drop-shadow(0 20px 40px rgba(0,0,0,.18));
  animation: robotFloat 4s ease-in-out infinite;
}

@keyframes robotFloat {
  0%,100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.robot-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: -5px;
  padding: 13px 18px;
  border: 1px solid rgba(110,231,183,.25);
  border-radius: 16px;
  background: rgba(22,35,29,.95);
  color: #eafff4;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

.robot-status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(110,231,183,.7);
}

/* =========================================
   BENEFITS
========================================= */

.benefits {
  position: relative;
  margin-top: 42px;
}

.benefits h2 {
  margin-bottom: 22px;
  font-size: 25px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
  margin-top: 22px;
}

.benefit-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110,231,183,.25);
  background: var(--card-hover);
}

.benefit-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 17px;
}

.benefit-card p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* =========================================
   PROGRESS
========================================= */

#progress-container {
  display: none;
  width: 100%;
  height: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}

#progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    var(--accent-dark),
    var(--accent)
  );
  transition: width .5s ease;
}

/* =========================================
   TEXT INTERVIEW
========================================= */

#test-area {
  display: none;
  min-width: 0;
  margin-top: 25px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

#test-area h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 25px;
}

#test-area h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 19px;
}

#test-area p {
  color: var(--muted);
  line-height: 1.7;
}

.interview-question {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(110,231,183,.15);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text) !important;
  font-size: 16px;
  line-height: 1.7;
}

#test-area textarea {
  min-height: 150px;
  margin-bottom: 18px;
}

.interview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#test-area .interview-buttons button {
  flex: 1 1 150px;
  width: auto !important;
  margin-top: 0;
}

#test-area .interview-buttons #back-button {
  border-color: var(--line);
  background: #29342d;
  color: var(--text);
}

.loading-card {
  padding: 35px 15px;
  text-align: center;
}

.loading-card h2 {
  color: var(--accent);
  font-size: 21px;
}

.loading-card p {
  margin-bottom: 0;
}

.error-card {
  padding: 25px;
  border: 1px solid rgba(251,113,133,.22);
  border-radius: 16px;
  background: rgba(251,113,133,.07);
}

.error-card h2 {
  color: var(--danger);
  font-size: 21px;
}

.error-card p {
  color: var(--text);
}

.error-card button {
  margin-top: 10px;
}

/* =========================================
   INTERVIEW SCREEN
========================================= */

.interview-screen {
  width: 100%;
  padding: 24px 0 90px;
}

.interview-layout {
  max-width: 900px;
  margin: 0 auto;
}

.interview-heading {
  margin-bottom: 24px;
  text-align: center;
}

.interview-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.interview-heading h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(28px,4vw,42px);
}

.interview-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.interview-content {
  min-width: 0;
  padding: 35px;
  border: 1px solid rgba(110,231,183,.16);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.interview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 260px;
  color: var(--muted);
  text-align: center;
}

.interview-placeholder span {
  font-size: 50px;
}

.interview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.interview-topline .interview-label {
  margin-bottom: 0;
}

.interview-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(110,231,183,.2);
  border-radius: 30px;
  background: rgba(110,231,183,.08);
  color: #a6e7c9;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.interview-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(110,231,183,.6);
}

/* =========================================
   HR REPORT
========================================= */

.report-container {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.report-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.report-header h2 {
  margin: 8px 0;
  font-size: 30px;
}

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

.overall-score {
  min-width: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  text-align: center;
}

.overall-score span,
.overall-score small {
  display: block;
  color: var(--muted);
}

.overall-score strong {
  display: block;
  margin: 8px 0;
  color: var(--accent);
  font-size: 38px;
  line-height: 1.2;
}

.overall-score small {
  font-size: 11px;
}

.candidate-info {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  text-align: left;
}

.candidate-info h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 18px;
}

.candidate-info p {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.candidate-info p:last-child {
  border-bottom: 0;
}

.candidate-info strong {
  color: var(--text);
}

.competency-section {
  margin: 28px 0;
}

.competency-section h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

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

.competency-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.competency-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.competency-heading span {
  color: var(--text);
}

.competency-heading strong {
  flex-shrink: 0;
  color: var(--accent);
}

.score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}

.score-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    var(--accent-dark),
    var(--accent)
  );
  transition: width .5s ease;
}

.score-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================
   MARKDOWN REPORT
========================================= */

.report-text {
  min-width: 0;
  margin-top: 30px;
  color: var(--text);
}

.report-text h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.report-markdown {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: #dce8df;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.report-markdown h1,
.report-markdown h2,
.report-markdown h3,
.report-markdown h4,
.report-markdown h5,
.report-markdown h6 {
  margin: 25px 0 12px;
  color: var(--text);
  line-height: 1.35;
}

.report-markdown h1 { font-size: 25px; }
.report-markdown h2 { font-size: 22px; }
.report-markdown h3 { font-size: 19px; }

.report-markdown h4,
.report-markdown h5,
.report-markdown h6 {
  font-size: 16px;
}

.report-markdown h1:first-child,
.report-markdown h2:first-child,
.report-markdown h3:first-child {
  margin-top: 0;
}

.report-markdown p {
  margin: 12px 0;
  color: #c3d0c7;
  line-height: 1.8;
}

.report-markdown ul,
.report-markdown ol {
  margin: 12px 0;
  padding-left: 25px;
  color: #c3d0c7;
}

.report-markdown li {
  margin: 7px 0;
  padding-left: 4px;
}

.report-markdown strong {
  color: var(--text);
  font-weight: 700;
}

.report-markdown em {
  color: var(--accent);
}

.report-markdown blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--muted);
}

.report-markdown blockquote p {
  margin: 0;
}

.report-markdown table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border-collapse: collapse;
  color: var(--text);
  font-size: 13px;
}

.report-markdown th,
.report-markdown td {
  min-width: 110px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.report-markdown th {
  background: #202a24;
  color: var(--accent);
  font-weight: 700;
}

.report-markdown td {
  color: #c3d0c7;
}

.report-markdown tr:nth-child(even) td {
  background: rgba(255,255,255,.025);
}

.report-markdown hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.report-markdown code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  color: var(--accent);
  font-family: monospace;
  font-size: .92em;
}

.report-markdown pre {
  max-width: 100%;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d130f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report-markdown pre code {
  padding: 0;
  background: transparent;
}

.report-markdown a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================
   REPORT ACTIONS
========================================= */

.report-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.report-buttons button {
  flex: 1 1 180px;
}

#restart-test {
  border-color: var(--line);
  background: #29342d;
  color: var(--text);
}

.answers-title {
  margin: 25px 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 18px;
}

#answers-list p {
  margin: 10px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #202a24;
  color: var(--text);
  line-height: 1.6;
}

.candidate-status {
  display: inline-block;
  margin: 10px 0 20px;
  padding: 8px 14px;
  border: 1px solid rgba(110,231,183,.25);
  border-radius: 30px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

/* =========================================
   FULLSCREEN REPORT
========================================= */

#test-area.report-mode {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 30px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
}

#test-area.report-mode .report-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

#test-area.report-mode .report-buttons {
  width: 100%;
  max-width: 1400px;
  margin: 20px auto 10px;
}

/* =========================================
   VOICE RECORDING
========================================= */

.voice-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 14px;
}

.voice-record-button {
  width: auto;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #355646;
  border-radius: 10px;
  background: #17241d;
  color: #d9e9df;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
}

.voice-record-button:hover:not(:disabled) {
  transform: none;
  border-color: var(--accent);
  background: #22382c;
  color: var(--accent);
  box-shadow: none;
}

.voice-record-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#voice-record-status {
  color: var(--muted);
  font-size: 12px;
}

/* =========================================
   ANIMATIONS
========================================= */

.question-screen,
.interview-card {
  animation: slideIn .45s ease both;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

/* =========================================
   DESKTOP
========================================= */

@media (min-width: 901px) {

  .hero > div:first-child {
    transform: translateX(-30px);
  }

  .hero .robot-showcase {
    justify-content: flex-start;
    margin-top: 100px;
    padding: 0;
    transform: translateX(-35px);
  }

  .hero .robot-mascot {
    max-width: 420px;
  }

  body:has(#interview-screen:not([hidden])) .page {
    width: min(1320px,calc(100% - 64px));
  }

  .interview-layout {
    display: flow-root;
    max-width: 1320px;
  }

  .interview-layout > .robot-showcase {
    float: left;
    width: 35%;
    margin: 4px 0 0;
    padding: 0;
    transform: translateX(-20px);
  }

  .interview-layout > .robot-showcase .robot-character {
    max-width: 100%;
  }

  .interview-layout > .robot-showcase .robot-mascot {
    width: 100%;
    max-width: 390px;
    height: auto;
    filter:
      drop-shadow(0 0 30px rgba(110,231,183,.22))
      drop-shadow(0 22px 38px rgba(0,0,0,.2));
  }

  .interview-layout > .interview-heading,
  .interview-layout > .interview-content {
    width: 64%;
    margin-left: auto;
    margin-right: 0;
  }

  .interview-layout > .interview-content {
    padding: 32px;
  }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 10px;
  }

  .hero::before {
    inset: -45px -40px -30px;
    background-position: center top;
    background-size: contain;
    opacity: .35;
  }

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

  header {
    margin-bottom: 35px;
  }

  .interview-layout > .robot-showcase {
    float: none;
    width: 100%;
    margin: 0 auto 20px;
    padding: 0;
    transform: none;
  }

  .interview-layout > .robot-showcase .robot-mascot {
    max-width: 220px;
  }

  .interview-content {
    width: 100%;
    margin-left: 0;
  }
}

/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 700px) {

  .report-header {
    flex-direction: column;
    align-items: stretch;
  }

  .overall-score {
    width: 100%;
  }

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

  .report-header h2 {
    font-size: 24px;
  }

  .interview-screen {
    padding: 35px 0 60px;
  }

  .interview-content {
    padding: 20px;
    border-radius: 18px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .robot-mascot {
    max-width: 200px;
  }

  .interview-topline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .profession-suggestions {
    max-height: 220px;
  }
}

@media (max-width: 560px) {

  .page {
    width: calc(100% - 24px);
    padding: 20px 0 45px;
  }

  header {
    flex-wrap: wrap;
    margin-bottom: 25px;
  }

  .hero {
    padding: 12px 0;
  }

  .hero::before {
    inset: -30px -16px -10px;
    background-position: center top;
    background-size: contain;
    opacity: .25;
  }

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

  .hero .lead {
    font-size: 14px;
  }

  .hero .points {
    padding: 18px;
  }

  .card {
    padding: 22px;
  }

  .card h2 {
    font-size: 27px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-card {
    padding: 19px;
  }

  #test-area {
    padding: 18px;
  }

  #test-area h2 {
    font-size: 21px;
  }

  .interview-question {
    padding: 16px;
    font-size: 15px;
  }

  .report-buttons {
    flex-direction: column;
  }

  .report-buttons button {
    width: 100%;
  }

  #test-area.report-mode {
    padding: 12px;
  }

  #test-area.report-mode .report-container {
    padding: 18px;
  }

  .report-markdown {
    padding: 16px;
    font-size: 13px;
  }

  .report-markdown th,
  .report-markdown td {
    padding: 9px 10px;
  }

  .voice-controls {
    justify-content: stretch;
  }

  .voice-record-button {
    width: 100%;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================
   PRINT — HR REPORT
========================================= */

@media print {

  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    color: #111 !important;
  }

  .page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .page > header,
  .page > .benefits,
  .hero > div:first-child,
  .hero::before,
  .robot-showcase,
  .report-buttons,
  .voice-controls {
    display: none !important;
  }

  .hero {
    display: block;
    padding: 0;
    background: none;
  }

  .card {
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  #test-area.report-mode {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    border: 0;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none;
  }

  #test-area.report-mode .report-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none;
  }

  .report-header,
  .candidate-info,
  .competency-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-header h2,
  .report-container h3,
  .report-markdown h1,
  .report-markdown h2,
  .report-markdown h3,
  .report-markdown h4 {
    color: #111 !important;
  }

  .candidate-info,
  .overall-score,
  .competency-card,
  .report-markdown {
    border: 1px solid #ddd;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none;
  }

  .candidate-info p,
  .candidate-info strong,
  .report-header p,
  .overall-score span,
  .overall-score strong,
  .overall-score small,
  .competency-heading span,
  .competency-heading strong,
  .score-note,
  .report-markdown,
  .report-markdown p,
  .report-markdown li,
  .report-markdown td,
  .report-markdown strong {
    color: #222 !important;
  }

  .report-markdown th {
    background: #eee !important;
    color: #111 !important;
  }

  .report-markdown table {
    display: table;
    width: 100%;
    overflow: visible;
  }

  .report-markdown th,
  .report-markdown td {
    border: 1px solid #ccc;
  }

  .report-markdown pre,
  .report-markdown code {
    background: #fff !important;
    color: #111 !important;
  }

  .score-track {
    border: 1px solid #ccc;
    background: #eee !important;
  }

  .score-fill {
    background: #777 !important;
  }

  .report-buttons {
    display: none !important;
  }
}

/* =========================================
   AI RECRUITER — LARGE ROBOT BACKGROUND
   Фон страницы без прямоугольной рамки
========================================= */

/* Отключаем старый фон внутри hero */
.hero::before {
  content: none !important;
  display: none !important;
}

/* Большой робот — фоновый слой всей страницы */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;

  background-image: url("images/hero-bg.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;

  opacity: 0.48;
  pointer-events: none;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.35) 30%,
    black 70%,
    black 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.35) 30%,
    black 70%,
    black 100%
  );
}

/* Контент поверх фонового робота */
.page {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  body::before {
    background-position: 70% top;
    background-size: auto 75vh;
    opacity: 0.22;
  }
}
