:root {
  --p1-card: rgba(255, 255, 255, 0.88);
  --p1-text: #0f172a;
  --p1-muted: #5f6f82;
  --p1-border: rgba(120, 145, 170, 0.24);
  --p1-accent: #135a96;
  --p1-accent-soft: #edf4fb;
  --p1-radius: 22px;
  --p1-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.test-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 0 34px;
  min-width: 0;
}

.test-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-bottom: 18px;
}

.test-intro,
.test-aside,
.prof-info,
.siz-type,
.siz-item {
  background: var(--p1-card);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--p1-radius);
  box-shadow: var(--p1-shadow);
  backdrop-filter: blur(10px);
  min-width: 0;
}

.test-intro,
.test-aside {
  padding: 24px;
}

.test-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 90, 150, 0.09);
  color: var(--p1-accent);
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.test-title {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--p1-text);
  letter-spacing: -0.03em;
  word-break: break-word;
}

.test-subintro {
  color: var(--p1-muted);
  margin-bottom: 18px;
  max-width: 60ch;
}

.quick-points {
  display: grid;
  gap: 10px;
  list-style: none;
}

.quick-points li {
  padding-left: 28px;
  position: relative;
  color: var(--p1-text);
}

.quick-points li::before {
  content: "•";
  position: absolute;
  left: 10px;
  top: -2px;
  font-size: 1.2rem;
  color: var(--p1-accent);
}

.test-aside {
  background: linear-gradient(135deg, rgba(18,59,103,0.96), rgba(20,78,128,0.92));
  color: #fff;
}

.test-aside h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.test-aside p,
.test-aside li {
  color: rgba(255,255,255,0.84);
}

.test-aside ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.test-label {
  display: block;
  margin-bottom: 8px;
  color: var(--p1-muted);
  font-weight: 700;
}

.prof-select-wrap {
  margin-bottom: 14px;
}

.prof-info {
  padding: 18px;
  margin-top: 12px;
}

.prof-text {
  color: var(--p1-muted);
}

.prof-text strong {
  color: var(--p1-text);
}

.test-form {
  margin-top: 18px;
}

.test-subtitle {
  font-size: 1.12rem;
  margin: 18px 0 12px;
}

.siz-list {
  display: grid;
  gap: 12px;
}

.siz-type {
  overflow: hidden;
}

.siz-type__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  min-height: 52px;
}

.siz-type__label::before {
  content: "🛡️";
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--p1-accent-soft);
  flex-shrink: 0;
}

.siz-type__name {
  font-weight: 700;
}

.siz-type__items {
  padding: 14px;
  border-top: 1px solid var(--p1-border);
  background: linear-gradient(180deg, rgba(247,250,252,0.98), rgba(240,246,251,0.95));
}

.siz-item {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid var(--p1-border);
}

.siz-item__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.siz-item__name {
  line-height: 1.45;
  min-width: 0;
  word-break: break-word;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--p1-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.siz-item__qty {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(19, 90, 150, 0.28);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-label {
  color: var(--p1-muted);
  font-weight: 700;
}

.qty-input {
  width: 132px;
  max-width: 100%;
  border: 1px solid var(--p1-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
  min-height: 44px;
}

.qty-input:focus,
.pselect__searchInput:focus,
.pselect__control:focus {
  outline: none;
  border-color: rgba(19, 90, 150, 0.45);
  box-shadow: 0 0 0 4px rgba(19, 90, 150, 0.10);
}

.qty-unit,
.chip {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--p1-border);
  background: var(--p1-accent-soft);
}

.hero-button {
  margin-top: 18px;
  border: 0;
}

.pselect {
  position: relative;
  width: 100%;
}

.pselect__control {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--p1-border);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--p1-shadow);
  cursor: pointer;
  min-height: 52px;
  text-align: left;
}

.pselect__value {
  text-align: left;
  min-width: 0;
  word-break: break-word;
}

.pselect__chev {
  flex-shrink: 0;
}

.pselect__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  border: 1px solid var(--p1-border);
  border-radius: var(--p1-radius);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--p1-shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.pselect__search {
  padding: 12px;
  border-bottom: 1px solid var(--p1-border);
}

.pselect__searchInput {
  width: 100%;
  border: 1px solid var(--p1-border);
  border-radius: 12px;
  padding: 11px 12px;
  min-height: 44px;
}

.pselect__list {
  max-height: 320px;
  overflow: auto;
}

.pselect__option {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 14px 14px;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.pselect__option:hover {
  background: #f2f7fb;
}

.pselect__optionName {
  font-weight: 700;
}

.pselect__empty,
.profession-picker__hint {
  color: var(--p1-muted);
}

.profession-picker__hint {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .test-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .test-intro,
  .test-aside {
    padding: 18px;
  }

  .hero-button {
    width: 100%;
  }

  .pselect__list {
    max-height: 50vh;
  }
}

@media (max-width: 480px) {
  .test-page {
    padding-bottom: 24px;
  }

  .test-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .test-intro,
  .test-aside,
  .prof-info,
  .siz-item,
  .siz-type {
    border-radius: 18px;
  }

  .test-intro,
  .test-aside,
  .prof-info {
    padding: 16px;
  }

  .test-kicker {
    font-size: 0.74rem;
    margin-bottom: 10px;
    padding: 7px 10px;
  }

  .test-title {
    font-size: 1.45rem;
    line-height: 1.12;
  }

  .test-subintro,
  .test-aside p,
  .test-aside li,
  .prof-text,
  .profession-picker__hint {
    font-size: 0.93rem;
  }

  .quick-points {
    gap: 8px;
  }

  .quick-points li {
    padding-left: 24px;
  }

  .quick-points li::before {
    left: 8px;
  }

  .pselect__control {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .pselect__panel {
    border-radius: 16px;
    top: calc(100% + 8px);
  }

  .pselect__search {
    padding: 10px;
  }

  .pselect__searchInput {
    padding: 10px 12px;
  }

  .pselect__list {
    max-height: 45vh;
  }

  .pselect__option {
    padding: 12px;
  }

  .test-subtitle {
    font-size: 1rem;
    margin: 16px 0 10px;
  }

  .siz-list {
    gap: 10px;
  }

  .siz-type__label {
    padding: 14px;
    gap: 10px;
  }

  .siz-type__label::before {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .siz-type__items {
    padding: 10px;
  }

  .siz-item {
    padding: 12px;
    margin-top: 8px;
  }

  .siz-item__label {
    gap: 10px;
  }

  .siz-item__name {
    font-size: 0.94rem;
    line-height: 1.4;
  }

  input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .siz-item__qty {
    padding: 10px;
    border-radius: 12px;
  }

  .qty-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .qty-label {
    font-size: 0.9rem;
  }

  .qty-input {
    width: 100%;
  }

  .qty-unit,
  .chip {
    width: fit-content;
    font-size: 0.76rem;
  }

  .hero-button {
    margin-top: 16px;
  }
}
