:where(.wsqz, .ws-quiz){
  color-scheme:light;
  --wsqz-card-w:325px;
  --wsqz-card-h:461.21px;
  --wsqz-card-pad:20px;
  --wsqz-card-radius:24px;
  --wsqz-media-w:285px;
  --wsqz-media-h:337.21px;
  --wsqz-grid-gap:30px;
  --wsqz-brand:#1f8a2b;
  --wsqz-ring:#e7e7e7;
  --wsqz-ink:#111216;
  --wsqz-muted:rgba(17,18,22,.72);
  --wsqz-surface:#fff;
  --wsqz-surface-soft:#f0eeeb;
  --wsqz-radius:18px;
  --wsqz-btn-h:46px;
  --wsqz-shadow:0 10px 30px rgba(0,0,0,.08);
}

:where(.wsqz, .ws-quiz),
:where(.wsqz, .ws-quiz) *{
  box-sizing:border-box;
}

:where(.wsqz-page, .ws-quiz-page){
  padding:0;
}

:where(.wsqz-container, .ws-quiz__container){
  max-width:90rem;
  margin:0 auto;
  padding:20px 24px 0;
}

:where(.wsqz__inner, .ws-quiz__inner){
  margin:0 auto;
  padding:0 0 20px;
}

:where(.wsqz__progress, .ws-quiz__progress){
  display:flex;
  align-items:center;
  gap:12px;
  margin:10px 0 18px;
}

:where(.wsqz__progress-bar, .ws-quiz__progress-bar){
  flex:1 1 auto;
  height:8px;
  background:var(--wsqz-ring);
  border-radius:999px;
  overflow:hidden;
}

:where(.wsqz__progress-fill, .ws-quiz__progress-fill){
  display:block;
  width:0;
  height:100%;
  background:var(--wsqz-brand);
  transition:width .25s ease;
}

:where(.wsqz__progress-num, .ws-quiz__progress-num){
  color:var(--wsqz-ink);
  font-family:var(--font-body, "Montserrat", sans-serif);
  font-size:14px;
  font-weight:700;
  text-align:right;
}

:where(.wsqz__title, .ws-quiz__title){
  margin:4px 0 6px;
  color:var(--wsqz-ink) !important;
  text-align:center;
  font-family:var(--font-head, "Roboto Slab", serif);
  line-height:1.15;
}

:where(.wsqz__subtitle, .ws-quiz__subtitle){
  margin:0 0 22px;
  color:var(--wsqz-ink) !important;
  text-align:center;
  font-family:var(--font-body, "Montserrat", sans-serif);
  line-height:1.45;
}

:where(.wsqz__subtitle, .ws-quiz__subtitle) *{
  color:var(--wsqz-ink) !important;
  -webkit-text-fill-color:var(--wsqz-ink) !important;
}

:where(.wsqz__grid, .ws-quiz__grid){
  display:grid;
  grid-template-columns:repeat(3, var(--wsqz-card-w));
  justify-content:flex-start;
  gap:var(--wsqz-grid-gap);
}

:where(.wsqz__grid, .ws-quiz__grid):where(.wsqz-grid--4, .ws-quiz__grid--4){
  grid-template-columns:repeat(4, var(--wsqz-card-w));
}

:where(.wsqz-card, .ws-quiz__card){
  position:relative;
  display:flex;
  flex-direction:column;
  width:var(--wsqz-card-w);
  height:var(--wsqz-card-h);
  padding:16px var(--wsqz-card-pad) var(--wsqz-card-pad);
  border:1px solid #dadde2;
  border-radius:var(--wsqz-card-radius);
  background:var(--wsqz-surface);
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  overflow:visible;
  cursor:pointer;
  text-align:left;
  text-transform:none;
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

:where(.wsqz-card, .ws-quiz__card):hover{
  transform:translateY(-2px);
}

:where(.wsqz-card, .ws-quiz__card):focus-visible,
:where(.wsqz-card, .ws-quiz__card):focus-within{
  outline:none;
  border-color:var(--wsqz-brand);
}

:where(.wsqz-card, .ws-quiz__card)[data-checked="1"]{
  border-color:#2e7d32;
  background:#eff7f0;
  box-shadow:0 0 0 2px rgba(46,125,50,.15);
}

:where(.wsqz-card__media, .ws-quiz__card-media){
  flex:0 0 auto;
  width:var(--wsqz-media-w);
  height:var(--wsqz-media-h);
  margin:0 auto;
  border:1px solid var(--wsqz-ring);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--wsqz-surface);
}

:where(.wsqz-card__media, .ws-quiz__card-media) > *{
  display:block;
  margin:0;
  padding:0;
}

:where(.wsqz-card__img, .ws-quiz__card-image){
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

:where(.wsqz-card__body, .ws-quiz__card-body){
  width:var(--wsqz-media-w);
  margin:12px auto 0;
  text-align:center;
  font-family:var(--font-body, "Montserrat", sans-serif);
}

:where(.wsqz-card__body, .ws-quiz__card-body),
:where(.wsqz-card__body, .ws-quiz__card-body) *{
  color:#000 !important;
  -webkit-text-fill-color:#000 !important;
}

:where(.wsqz-emptystate, .ws-quiz__empty){
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
}

:where(.wsqz-card__icon, .ws-quiz__card-icon){
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid #d9dde3;
  background:#000;
  color:#fff;
  font-family:var(--font-head, "Roboto Slab", serif);
  font-weight:700;
}

:where(.wsqz-emptystate__label, .ws-quiz__empty-label),
:where(.wsqz-emptystate__label, .ws-quiz__empty-label) *{
  color:#000 !important;
  text-align:center;
  font-family:var(--font-body, "Montserrat", sans-serif);
  -webkit-text-fill-color:#000 !important;
}

:where(.wsqz-card--empty, .ws-quiz__card--empty) :where(.wsqz-card__media, .ws-quiz__card-media){
  background:var(--wsqz-surface-soft) !important;
  border-color:#e5e7eb;
}

:where(.wsqz__nav, .ws-quiz__nav){
  margin-top:16px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

:where(.wsqz__btn, .ws-quiz__btn){
  min-width:140px;
  height:var(--wsqz-btn-h);
  padding:0 18px;
  border:1px solid #000;
  border-radius:12px;
  background:#fff;
  color:var(--wsqz-ink);
  cursor:pointer;
  font-family:var(--font-body, "Montserrat", sans-serif);
  font-size:14px;
  font-weight:700;
  transition:opacity .2s ease, transform .2s ease, background-color .2s ease;
}

:where(.wsqz__btn, .ws-quiz__btn)[disabled]{
  opacity:.5;
  cursor:not-allowed;
}

:where(.wsqz__btn--ghost, .ws-quiz__btn--ghost){
  background:transparent;
}

:where(.wsqz__btn, .ws-quiz__btn)[data-next],
:where(.wsqz__btn, .ws-quiz__btn)[data-prev]{
  display:none !important;
}

:where(.wsqz__contact, .ws-quiz__contact){
  max-width:560px;
  margin:10px auto 0;
  padding:18px;
  border:1px solid var(--wsqz-ring);
  border-radius:var(--wsqz-radius);
  background:#fff;
  box-shadow:var(--wsqz-shadow);
}

:where(.wsqz-field, .ws-quiz__field){
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

:where(.wsqz-label, .ws-quiz__label){
  color:var(--wsqz-ink);
  font-family:var(--font-body, "Montserrat", sans-serif);
  font-size:14px;
  font-weight:600;
}

:where(.wsqz-input, .ws-quiz__input){
  width:100%;
  height:44px;
  padding:10px 12px;
  border:1px solid var(--wsqz-ring);
  border-radius:12px;
  background:#fff;
  color:var(--wsqz-ink);
  font-family:var(--font-body, "Montserrat", sans-serif);
}

:where(.wsqz-input, .ws-quiz__input):focus{
  outline:none;
  border-color:var(--wsqz-brand);
}

:where(.wsqz-checkline, .ws-quiz__checkline){
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:4px;
  color:var(--wsqz-ink);
  font-family:var(--font-body, "Montserrat", sans-serif);
  line-height:1.45;
}

:where(.wsqz-checkline, .ws-quiz__checkline) input{
  margin-top:2px;
  position:absolute;
  opacity:0;
  pointer-events:none;
}

:where(.wsqz-policy, .ws-quiz__policy){
  margin:14px 0 0;
  color:var(--wsqz-muted);
  font-family:var(--font-body, "Montserrat", sans-serif);
  font-size:13px;
  line-height:1.5;
}

:where(.wsqz__note, .ws-quiz__note){
  min-height:20px;
  margin-top:10px;
  color:var(--wsqz-ink);
  text-align:right;
  font-family:var(--font-body, "Montserrat", sans-serif);
}

:where(.wsqz__thanks, .ws-quiz__thanks){
  padding:30px 10px;
  text-align:center;
}

:where(.wsqz-choices, .ws-quiz__choices){
  max-width:560px;
  margin:10px auto 0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

:where(.wsqz-choice, .ws-quiz__choice),
:where(.wsqz-choice, .ws-quiz__choice) *{
  color:#000 !important;
  -webkit-text-fill-color:#000 !important;
}

:where(.wsqz-choice, .ws-quiz__choice){
  min-height:60px;
  padding:16px 18px;
  border:1px solid #d9dde3;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  text-align:left;
  font-family:var(--font-body, "Montserrat", sans-serif);
  font-size:16px;
  line-height:1.35;
  transition:box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

:where(.wsqz-choice, .ws-quiz__choice):hover{
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

:where(.wsqz-choice, .ws-quiz__choice).is-active{
  border-color:#2e7d32;
  background:#eff7f0;
  box-shadow:0 0 0 2px rgba(46,125,50,.15);
}

:where(.wsqz, .ws-quiz):where(.wsqz--contact, .ws-quiz--contact) :where(.wsqz__nav, .ws-quiz__nav){
  justify-content:center !important;
}

:where(.wsqz, .ws-quiz):where(.wsqz--contact, .ws-quiz--contact) :where(.wsqz__nav, .ws-quiz__nav) [data-prev]{
  display:none !important;
}

:where(.wsqz, .ws-quiz):where(.wsqz--contact, .ws-quiz--contact) :where([data-submit]){
  display:inline-grid !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

:where(.wsqz, .ws-quiz) :where(.ws-consult-btn, .ws-quiz__submit){
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:46px;
  padding:5px 5px 5px 16px;
  border:1px solid transparent;
  border-radius:8px;
  background:#f3c847;
  color:#111216 !important;
  box-shadow:0 8px 22px rgba(243,200,71,.18);
  text-decoration:none !important;
  cursor:pointer;
  white-space:nowrap;
  font-family:var(--ws-btn-font, "Roboto Slab", serif) !important;
  font-size:var(--ws-btn-size, 14px) !important;
  line-height:var(--ws-btn-line-height, 1) !important;
  font-weight:var(--ws-btn-font-weight, 700) !important;
  letter-spacing:-0.01em !important;
  transition:background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

:where(.wsqz, .ws-quiz) :where(.ws-consult-btn, .ws-quiz__submit):hover,
:where(.wsqz, .ws-quiz) :where(.ws-consult-btn, .ws-quiz__submit):focus-visible{
  transform:translateY(-1px);
}

:where(.wsqz, .ws-quiz) :where(.ws-consult-btn, .ws-quiz__submit):active{
  transform:none;
}

/* В квизе при ховере делаем текст кнопки белым, чтобы читался на тёмном фоне */
:where(.wsqz, .ws-quiz)
  :where(.ws-consult-btn, .ws-quiz__submit):hover
  :where(.ws-consult-btn__text, .ws-quiz__submit-text),
:where(.wsqz, .ws-quiz)
  :where(.ws-consult-btn, .ws-quiz__submit):focus-visible
  :where(.ws-consult-btn__text, .ws-quiz__submit-text){
  color:#ffffff !important;
}

:where(.wsqz, .ws-quiz) :where(.ws-consult-btn__text, .ws-quiz__submit-text){
  display:block;
  color:#111216 !important;
  font-family:inherit !important;
  font-size:inherit !important;
  line-height:inherit !important;
  font-weight:inherit !important;
  letter-spacing:inherit !important;
  text-transform:inherit !important;
}

:where(.wsqz, .ws-quiz) .ws-consult-btn.ws-quiz__submit{
  font-family:var(--ws-btn-font, "Roboto Slab", serif) !important;
  font-size:var(--ws-btn-size, 14px) !important;
  line-height:var(--ws-btn-line-height, 1) !important;
  font-weight:var(--ws-btn-font-weight, 700) !important;
  letter-spacing:-0.01em !important;
  text-transform:uppercase !important;
}

:where(.wsqz, .ws-quiz) .ws-consult-btn.ws-quiz__submit :where(.ws-consult-btn__text, .ws-quiz__submit-text){
  font-family:inherit !important;
  font-size:inherit !important;
  line-height:inherit !important;
  font-weight:inherit !important;
  letter-spacing:inherit !important;
  text-transform:inherit !important;
}

:where(.wsqz, .ws-quiz) :where(.ws-consult-btn__icon, .ws-quiz__submit-icon){
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:#fff;
  transition:background-color .25s ease, transform .25s ease;
}

:where(.wsqz, .ws-quiz) :where(.ws-consult-btn__icon, .ws-quiz__submit-icon) img{
  width:15px;
  height:15px;
  display:block;
  object-fit:contain;
  transform:rotate(-45deg);
}

:where(.wsqz, .ws-quiz) :where(.ws-consult-btn, .ws-quiz__submit):hover :where(.ws-consult-btn__icon, .ws-quiz__submit-icon){
  background:#f3c847;
}

@media (max-width:1120px){
  :where(.wsqz__grid, .ws-quiz__grid){
    grid-template-columns:repeat(2, minmax(0, 1fr));
    justify-content:stretch;
  }

  :where(.wsqz-card, .ws-quiz__card){
    width:100%;
    height:auto;
    max-width:360px;
    margin:0 auto;
  }

  :where(.wsqz-card__media, .ws-quiz__card-media),
  :where(.wsqz-card__body, .ws-quiz__card-body){
    width:100%;
  }
}

@media (max-width:560px){
  :where(.wsqz-container, .ws-quiz__container){
    padding:20px 16px 0;
  }

  :where(.wsqz__grid, .ws-quiz__grid){
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
    justify-content:stretch !important;
  }

  :where(.wsqz-card, .ws-quiz__card){
    width:auto !important;
    height:auto !important;
    padding:12px !important;
    border-radius:14px !important;
  }

  :where(.wsqz-card__media, .ws-quiz__card-media){
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 5 !important;
    border-radius:12px !important;
    background:#fff !important;
  }

  :where(.wsqz-card__body, .ws-quiz__card-body){
    width:100% !important;
    margin-top:8px !important;
    padding:0 4px !important;
  }

  :where(.wsqz-card--empty, .ws-quiz__card--empty) :where(.wsqz-card__media, .ws-quiz__card-media){
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:var(--wsqz-surface-soft) !important;
  }
}

@media (min-width:1280px) and (max-width:1420px){
  :where(.wsqz, .ws-quiz){
    --wsqz-card-w:310px;
    --wsqz-media-w:270px;
    --wsqz-grid-gap:24px;
  }
}

@media (prefers-color-scheme:dark){
  :where(.wsqz, .ws-quiz){
    color-scheme:light;
  }

  :where(.wsqz, .ws-quiz) :where(.wsqz-card, .ws-quiz__card),
  :where(.wsqz, .ws-quiz) :where(.wsqz-card__media, .ws-quiz__card-media){
    background:#fff !important;
  }

  :where(.wsqz, .ws-quiz) :where(.wsqz-card--empty, .ws-quiz__card--empty) :where(.wsqz-card__media, .ws-quiz__card-media){
    background:var(--wsqz-surface-soft) !important;
  }
}
