:root {
  --bwt-blue: #00174b;
  --bwt-blue-2: #062a72;
  --bwt-pink: #ff4c9a;
  --bwt-pink-soft: #ffe7f2;
  --bwt-pink-pale: #fff5f9;
  --ink: #0d1d42;
  --muted: #5e6982;
  --line: #dfe4ed;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --success: #0c7b63;
  --shadow-sm: 0 8px 24px rgba(0, 23, 75, .08);
  --shadow-lg: 0 22px 70px rgba(0, 23, 75, .16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --max-width: 1240px;
  --quiz-height: clamp(680px, calc(100vh - 24px), 800px);
}

* { box-sizing: border-box; }
/*html { scroll-behavior: smooth; }*/
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}
button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.quiz-shell {
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 0;
  margin: 12px auto;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.is-hidden { display: none !important; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--bwt-pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/*h1, h2, h3, p { margin-top: 0; }*/
h1 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; }
h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 24px; line-height: 1.15; }
.lead { max-width: 620px; margin-bottom: 28px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .answer-card:focus-visible, .icon-button:focus-visible, .text-button:focus-visible {
  outline: 3px solid rgba(255, 76, 154, .35);
  outline-offset: 3px;
}
.button-primary { background: var(--bwt-blue); color: #fff; box-shadow: 0 9px 22px rgba(0, 23, 75, .22); }
.button-primary:hover { background: var(--bwt-blue-2); }
.button-primary:disabled { cursor: not-allowed; background: #cbd2df; box-shadow: none; transform: none; }
.button-ghost { border-color: var(--line); background: #fff; color: var(--bwt-blue); }
.button-light { background: #fff; color: var(--bwt-blue); }

.start-screen {
  display: grid;
  height: var(--quiz-height);
  min-height: var(--quiz-height);
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  background: linear-gradient(120deg, #fff 0%, #fff 50%, #edf3f8 50%);
}
.start-copy { align-self: center; padding: clamp(36px, 7vw, 86px); }
.start-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.start-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}
.start-benefits li::before { margin-right: 8px; color: var(--success); content: "✓"; font-weight: 900; }
.start-visual {
  height: var(--quiz-height);
  min-height: var(--quiz-height);
  background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,0) 20%), url("assets/hero.jpg") center / cover no-repeat;
}

.question-screen {
  display: flex;
  height: auto;
  min-height: 0;
  flex-direction: column;
  padding: 24px clamp(24px, 5vw, 64px) 24px;
  overflow: visible;
}
.quiz-header { display: grid; grid-template-columns: 130px 1fr 130px; align-items: center; gap: 24px; }
.icon-button, .text-button { border: 0; background: transparent; cursor: pointer; }
.icon-button {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px;
}
.text-button { justify-self: end; color: var(--muted); font-size: 14px; }
.progress-wrap { width: min(100%, 640px); justify-self: center; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
.progress-bar { width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bwt-pink), #ff86bd); transition: width .3s ease; }

.question-content {
  width: 100%;
  max-width: 1100px;
  flex: none;
  margin: 30px auto 20px;
}
.question-hint { max-width: 800px; margin-bottom: 30px; color: var(--muted); font-size: 17px; }
.question-hint.is-hidden { display: none; }
.question-content > .question-hint.is-hidden + .answers { margin-top: 18px; }
.answers { display: grid; gap: 14px; }
.answers.layout-image { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.answers.layout-text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.answers.layout-goal { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.answers.layout-family { grid-template-columns: minmax(260px, .65fr) minmax(420px, 1.35fr); align-items: stretch; }

.answer-card {
  position: relative;
  width: 100%;
  min-height: 112px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--bwt-pink-pale);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.answer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.answer-card[aria-pressed="true"] { border-color: var(--bwt-pink); background: #fff; box-shadow: 0 0 0 5px rgba(255,76,154,.1), var(--shadow-sm); }
.answer-card[aria-pressed="true"]::after {
  position: absolute; top: 14px; right: 14px; display: grid; width: 30px; height: 30px; place-items: center;
  border-radius: 50%; background: var(--bwt-pink); color: #fff; content: "✓"; font-weight: 900;
}
.answer-card .card-copy { padding: 20px; }
.answer-card .card-title { display: block; margin-bottom: 5px; color: var(--bwt-blue); font-size: 19px; font-weight: 850; line-height: 1.2; }
.answer-card .card-description { display: block; color: var(--muted); font-size: 14px; }
.answer-card.image-card { min-height: 300px; background: #fff; }
.answers.layout-image .answer-card.image-card { display: grid; grid-template-rows: 220px 1fr; }
.answer-card.image-card img { width: 100%; height: 220px; object-fit: cover; }
.answers.layout-image .answer-card.image-card img { height: 100%; min-height: 220px; }
.answer-card.image-card .card-copy { padding: 18px 20px 22px; }
.answer-card .card-description-secondary { margin-top: 9px; line-height: 1.4; }
.answer-card.text-card { min-height: 116px; background: var(--bwt-pink-soft); }

.answer-card.goal-card {
  display: grid;
  grid-template-rows: 132px 1fr;
  min-height: 228px;
  background: #fff;
}
.answer-card.goal-card img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: #edf3f9;
}
.answer-card.goal-card .card-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px;
}
.answer-card.goal-card .card-title {
  font-size: 17px;
  line-height: 1.22;
}
.answer-card.goal-card .card-description {
  line-height: 1.35;
}
.answer-card.goal-card .goal-icon {
  position: relative;
  display: grid;
  height: 132px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #0a3472 0%, #0f5ab8 100%);
  color: #fff;
  font-size: 54px;
  font-weight: 900;
}
.goal-icon--bwt-question::before {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 18px rgba(255,255,255,.05);
}
.goal-icon--bwt-question::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
}
.goal-icon-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--bwt-blue);
  font-size: 46px;
  line-height: 1;
  box-shadow: 0 18px 36px rgba(0, 23, 75, .22);
}
.goal-icon-caption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  color: #ff9bc8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
}

.family-options { display: grid; gap: 12px; }
.family-options .answer-card { min-height: 94px; }
.family-visual { min-height: 290px; border-radius: var(--radius-md); background-position: center; background-size: cover; }

.quiz-footer {
  display: flex;
  width: 100%;
  max-width: 1100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 20px 0 2px;
  border-top: 1px solid var(--line);
}
.quiz-footer .button {
  min-width: 178px;
  min-height: 56px;
  padding-inline: 28px;
  font-size: 17px;
}
.selection-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.loading-screen { display: grid; height: var(--quiz-height); min-height: var(--quiz-height); place-content: center; padding: 40px; text-align: center; }
.loading-screen p:last-child { max-width: 560px; color: var(--muted); font-size: 18px; }
.droplet {
  width: 72px; height: 72px; margin: 0 auto 32px; border-radius: 55% 45% 65% 35% / 65% 35% 65% 35%;
  background: linear-gradient(145deg, #8ed8ff, var(--bwt-blue-2)); transform: rotate(45deg); animation: pulse 1.1s ease-in-out infinite alternate;
}
@keyframes pulse { to { transform: rotate(45deg) scale(1.12); box-shadow: 0 18px 50px rgba(0, 70, 160, .25); } }

.result-screen { padding: clamp(30px, 5vw, 64px); background: #f8fafc; }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.result-header p:last-child { max-width: 720px; color: var(--muted); font-size: 18px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 22px; align-items: start; }
.primary-result, .answer-summary, .consultation-card, .alternative-card { border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.primary-result { overflow: hidden; }
.product-hero { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); align-items: stretch; }
.product-image-wrap {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 470px;
  object-fit: contain;
  padding: 22px;
}
.product-gallery {
  display: grid;
  width: 100%;
  min-height: 390px;
  grid-template-rows: minmax(0, 1fr) auto;
}
.product-gallery-stage {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
}
.product-gallery-slide { display: none; }
.product-gallery-slide.is-active { display: block; }
.product-gallery-controls {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 18px 14px;
}
.product-gallery-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--bwt-blue);
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}
.product-gallery-dots { display: flex; align-items: center; gap: 8px; }
.product-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd6e4;
  cursor: pointer;
}
.product-gallery-dot.is-active { background: var(--bwt-pink); }
.product-gallery-arrow:focus-visible,
.product-gallery-dot:focus-visible {
  outline: 3px solid rgba(255, 76, 154, .28);
  outline-offset: 3px;
}
.best-badge { position: absolute; top: 20px; left: 20px; padding: 8px 12px; border-radius: 999px; background: var(--bwt-pink); color: #fff; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.product-copy { padding: 34px; }
.product-copy h3 { font-size: 34px; }
.product-subtitle { color: var(--muted); font-size: 18px; }
.reason-list { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.reason-list li { display: flex; gap: 10px; }
.reason-list li::before { color: var(--success); content: "✓"; font-weight: 900; }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.meta-chip { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--bwt-blue); background: var(--surface-alt); font-size: 13px; font-weight: 750; }
.price { display: block; margin-bottom: 18px; color: var(--bwt-blue); font-size: 28px; font-weight: 900; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.result-aside { display: grid; gap: 18px; }
.answer-summary { padding: 24px; }
.answer-summary h3 { font-size: 20px; }
.summary-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.summary-list span { display: block; color: var(--muted); font-size: 12px; }
.summary-list strong { display: block; margin-top: 2px; color: var(--bwt-blue); }
.consultation-card { padding: 26px; background: var(--bwt-blue); color: #fff; }
.consultation-card .eyebrow { color: #ff9bc8; }
.consultation-card p:not(.eyebrow) { color: rgba(255,255,255,.78); }

.alternatives { margin-top: 52px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.section-heading > p { max-width: 430px; color: var(--muted); }
.alternative-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.alternative-card { display: grid; grid-template-columns: 190px 1fr; overflow: hidden; }
.alternative-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: contain;
  padding: 16px;
  background: #fff;
}
.alternative-copy { padding: 24px; }
.alternative-copy h4 { margin: 0 0 6px; color: var(--bwt-blue); font-size: 23px; }
.alternative-copy p { color: var(--muted); }
.alternative-copy .button { min-height: 42px; padding: 9px 16px; font-size: 14px; }
.legal-note { margin: 28px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1020px) {
  .start-screen { grid-template-columns: 1fr; }
  .start-copy { order: 2; }
  .start-visual { min-height: 420px; }
  .answers.layout-goal { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { background: #fff; }
  .quiz-shell { width: 100%; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; }
  .start-screen, .loading-screen { height: auto; min-height: 100vh; }
  .start-visual { height: auto; min-height: 330px; }
  .start-copy { padding: 34px 22px 48px; }
  .quiz-header { grid-template-columns: 48px 1fr; gap: 14px; }
  .text-button { display: none; }
  .question-screen { height: auto; min-height: 0; padding: 18px 18px 24px; overflow: visible; }
  .question-content { margin: 38px auto 26px; }
  .answers.layout-image, .answers.layout-text, .answers.layout-goal, .alternative-grid { grid-template-columns: 1fr; }
  .answers.layout-family { grid-template-columns: 1fr; }
  .family-visual { min-height: 220px; order: -1; }
  .answer-card.image-card { min-height: 250px; }
  .answers.layout-image .answer-card.image-card { grid-template-rows: 180px 1fr; }
  .answer-card.image-card img { height: 180px; }
  .answers.layout-image .answer-card.image-card img { min-height: 180px; }
  .answer-card.goal-card { min-height: 120px; display: grid; grid-template-columns: 120px 1fr; grid-template-rows: none; }
  .answer-card.goal-card img, .answer-card.goal-card .goal-icon { height: 100%; min-height: 120px; }
  .answer-card.goal-card .card-copy { padding: 16px; }
  .answer-card.goal-card .card-title { font-size: 17px; }
  .goal-icon-mark { width: 64px; height: 64px; font-size: 34px; }
  .goal-icon-caption { right: 14px; bottom: 12px; font-size: 12px; }
  .quiz-footer {
    position: sticky;
    bottom: 0;
    margin: 0 -18px -24px;
    padding: 14px 18px 18px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
  }
  .selection-note { display: none; }
  .quiz-footer .button { width: 100%; min-height: 52px; }
  .result-screen { padding: 32px 18px; }
  .result-header, .section-heading { align-items: flex-start; flex-direction: column; }
  .product-hero { grid-template-columns: 1fr; }
  .product-image-wrap { min-height: 300px; }
  .product-image-wrap img { max-height: 360px; padding: 18px; }
  .product-gallery { min-height: 300px; }
  .product-gallery-stage { min-height: 250px; }
  .product-copy { padding: 26px 22px; }
  .alternative-card { grid-template-columns: 120px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Keep the complete questionnaire visible on shorter desktop screens. */
@media (min-width: 761px) and (max-height: 790px) {
  .question-screen { padding-top: 18px; padding-bottom: 18px; }
  .question-content { margin-top: 18px; margin-bottom: 10px; }
  .question-content > .question-hint.is-hidden + .answers { margin-top: 12px; }
  .answer-card.goal-card { grid-template-rows: 112px 1fr; min-height: 204px; }
  .answer-card.goal-card img,
  .answer-card.goal-card .goal-icon { height: 112px; }
  .answer-card.goal-card .card-copy { padding: 12px 14px; }
  .quiz-footer { padding-top: 16px; }
}

/* Full product listing below the questionnaire */
.product-listing-section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 28px auto 56px;
  padding: clamp(38px, 5vw, 68px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.product-listing-heading {
  max-width: 930px;
  margin: 0 auto 38px;
  text-align: center;
}
.product-listing-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.4vw, 44px);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.catalog-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 23, 75, .045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 76, 154, .42);
  box-shadow: 0 18px 36px rgba(0, 23, 75, .11);
}
.catalog-visual {
  position: relative;
  display: grid;
  height: 210px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff, #edf3fa);
}
.catalog-visual::before,
.catalog-visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.catalog-visual::before {
  top: -38px;
  right: -30px;
  width: 130px;
  height: 130px;
  background: rgba(255,255,255,.48);
}
.catalog-visual::after {
  bottom: -58px;
  left: -38px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255,255,255,.30);
}
.accent-pink { background: linear-gradient(145deg, #fff3f8, #ffdceb); }
.accent-magenta { background: linear-gradient(145deg, #fff7fb, #f8d8ec); }
.accent-rose { background: linear-gradient(145deg, #fff8fb, #f5dfe9); }
.accent-blue { background: linear-gradient(145deg, #f0f7ff, #d9e8fb); }
.accent-cyan { background: linear-gradient(145deg, #effcff, #d8f4f7); }
.accent-violet { background: linear-gradient(145deg, #f8f4ff, #e7ddfa); }
.accent-teal { background: linear-gradient(145deg, #f1fcfa, #d9f0eb); }
.accent-sky { background: linear-gradient(145deg, #f4fbff, #dceefa); }
.accent-navy { background: linear-gradient(145deg, #f4f7fd, #dfe7f5); }
.accent-ice { background: linear-gradient(145deg, #f6fbff, #dcebf6); }
.accent-pearl { background: linear-gradient(145deg, #fff7fb, #e5edf9); }
.accent-ocean { background: linear-gradient(145deg, #edf8ff, #cae6f7); }
.accent-fusion { background: linear-gradient(145deg, #fff0f8, #dbe9f8); }

.product-figure {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--bwt-blue);
  font-weight: 900;
  text-align: center;
  letter-spacing: .03em;
  filter: drop-shadow(0 14px 14px rgba(0, 23, 75, .15));
}
.product-figure.cartridge {
  width: 74px;
  height: 148px;
  border: 2px solid rgba(0, 23, 75, .10);
  border-radius: 12px 12px 18px 18px;
  background:
    linear-gradient(180deg, transparent 0 21%, #ff4c9a 21% 26%, transparent 26%),
    linear-gradient(180deg, #ffffff, #eff4f8);
  font-size: 13px;
  line-height: 1.14;
}
.product-figure.cartridge::before {
  position: absolute;
  top: -22px;
  left: 8px;
  width: 54px;
  height: 31px;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, #062a72, #00174b);
  box-shadow: -16px 10px 0 -11px #00174b, 16px 10px 0 -11px #00174b;
  content: "";
}
.product-figure.cartridge::after {
  position: absolute;
  right: 7px;
  bottom: 10px;
  left: 7px;
  height: 3px;
  border-radius: 9px;
  background: rgba(0, 23, 75, .10);
  box-shadow: 0 -7px 0 rgba(0, 23, 75, .07);
  content: "";
}
.product-figure-small {
  width: 50px !important;
  height: 104px !important;
  font-size: 9px !important;
}
.product-figure-small::before {
  top: -15px !important;
  left: 6px !important;
  width: 34px !important;
  height: 22px !important;
}
.product-figure.ro-device {
  width: 148px;
  height: 124px;
  border: 2px solid rgba(0, 23, 75, .09);
  border-radius: 22px;
  background: linear-gradient(150deg, #fff 0 65%, #e7eef6 65%);
  font-size: 17px;
  line-height: 1.05;
}
.product-figure.ro-device::before {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 23px;
  height: 23px;
  border: 5px solid #0b5ba8;
  border-top-color: transparent;
  border-radius: 50% 50% 50% 0;
  content: "";
  transform: rotate(-45deg);
}
.product-figure.ro-device::after {
  position: absolute;
  bottom: 13px;
  left: 18px;
  width: 42px;
  height: 7px;
  border-radius: 999px;
  background: #ff4c9a;
  content: "";
}
.product-figure.fusion-device {
  width: 105px;
  height: 150px;
  border: 2px solid rgba(0, 23, 75, .10);
  border-radius: 20px 20px 28px 28px;
  background:
    linear-gradient(180deg, #00174b 0 25%, transparent 25%),
    linear-gradient(180deg, #fff, #eaf0f7);
  font-size: 12px;
  line-height: 1.08;
}
.product-figure.fusion-device::before {
  position: absolute;
  top: 18px;
  width: 45px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.60);
  border-radius: 999px;
  content: "";
}
.product-figure.fusion-device span {
  margin-top: 42px;
}
.product-pair {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.catalog-card-body {
  display: flex;
  min-height: 238px;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 22px;
}
.catalog-category {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--bwt-pink-pale);
  color: #c91e6a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.catalog-card h3 {
  margin-bottom: 9px;
  color: var(--bwt-blue);
  font-size: 20px;
  line-height: 1.18;
}
.catalog-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}
.catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--bwt-blue);
  font-weight: 800;
  text-decoration: none;
}
.catalog-link span {
  color: var(--bwt-pink);
  font-size: 20px;
  transition: transform .18s ease;
}
.catalog-link:hover span { transform: translateX(4px); }
.catalog-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(255, 76, 154, .32);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .product-listing-section { padding: 38px 24px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .product-listing-section {
    width: 100%;
    margin: 0;
    padding: 42px 18px 52px;
    border-radius: 0;
    box-shadow: none;
  }
  .product-listing-heading { margin-bottom: 28px; text-align: left; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-visual { height: 190px; }
  .catalog-card-body { min-height: 0; }
}

/* v12: многострочное пояснение источника воды и изображения-заглушки для серии */
.answer-card .card-description { white-space: pre-line; }
.product-image-placeholder {
  display: grid;
  width: 100%;
  min-height: 330px;
  place-content: center;
  gap: 10px;
  padding: 36px;
  background: linear-gradient(145deg, #eef5fb, #ffffff 62%, #fceaf3);
  color: var(--bwt-blue);
  text-align: center;
}
.product-image-placeholder span {
  color: var(--bwt-pink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .16em;
}
.product-image-placeholder strong {
  max-width: 290px;
  font-size: 24px;
  line-height: 1.2;
}
.alternative-image-wrap {
  min-height: 100%;
  background: #fff;
}
.alternative-image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.alternative-image-wrap .product-image-placeholder {
  min-height: 100%;
  padding: 24px;
}
.alternative-image-wrap .product-image-placeholder strong { font-size: 17px; }
.price-on-request { font-size: 16px; }

/* BWT DIGITAL GUIDE ALIGNMENT — supplied July 2026 */
:root {
  --bwt-blue: #00174B;
  --bwt-blue-2: #33466f;
  --bwt-pink: #FF88BD;
  --bwt-pink-soft: #FFFFFF;
  --bwt-pink-pale: #FFFFFF;
  --ink: #00174B;
  --muted: rgba(0, 23, 75, .68);
  --line: #BDBDBD;
  --surface: #FFFFFF;
  --surface-alt: #D9D9D9;
  --shadow-sm: none;
  --shadow-lg: none;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

body {
  background: #FFFFFF;
  color: var(--bwt-blue);
  font-family: "BWT Cyr", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.quiz-shell {
  border: 1px solid #D9D9D9;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

h1, h2, h3, h4,
.answer-card .card-title,
.button,
.eyebrow,
.progress-meta,
.price,
.best-badge {
  font-family: "BWT Cyr", Arial, Helvetica, sans-serif;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(28px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  /*font-weight: 700;*/
  line-height: 1.3;
}

 .lead, .question-hint, .selection-note {
  line-height: 1.3;
}

.lead,
.question-hint,
.result-header p:last-child,
.loading-screen p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--bwt-pink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
}

.button {
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: none;
  transform: none;
}
.button:hover { transform: none; }
.button-primary { background: #00174B; color: #FFFFFF; box-shadow: none; }
.button-primary:hover { background: #33466f; }
.button-primary:disabled { background: #BDBDBD; color: #FFFFFF; }
.button-ghost { border-color: #00174B; background: #FFFFFF; color: #00174B; }
.button-ghost:hover { background: #D9D9D9; }
.button-light { border: 1px solid #FFFFFF; background: #FFFFFF; color: #00174B; }

.button:focus-visible,
.answer-card:focus-visible,
.icon-button:focus-visible,
.text-button:focus-visible {
  outline: 2px solid #00174B;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #FF88BD;
}

.start-screen {
  background: linear-gradient(120deg, #FFFFFF 0%, #FFFFFF 50%, #D9D9D9 50%);
}

.icon-button {
  border-color: #BDBDBD;
  border-radius: 50%;
  box-shadow: none;
}

.progress-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.progress-track { height: 6px; background: #D9D9D9; }
.progress-bar { background: #FF88BD; }

.question-content {
  margin-top: 30px;
  margin-bottom: 20px;
}
.answers { gap: 15px; }

.answer-card {
  border: 1px solid #BDBDBD;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: none;
  transform: none;
}
.answer-card:hover {
  border-color: #00174B;
  box-shadow: none;
  transform: none;
}
.answer-card[aria-pressed="true"] {
  border-color: #FF88BD;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #FF88BD;
}

/* Radio control from the supplied Select Controls guide. */
.answer-card::before {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border: 1.5px solid #BDBDBD;
  border-radius: 50%;
  background: #FFFFFF;
  content: "";
}
.answer-card[aria-pressed="true"]::before {
  border-color: #FF88BD;
  background: #FF88BD;
  box-shadow: inset 0 0 0 4px #FFFFFF;
}
.answer-card[aria-pressed="true"]::after {
  display: none;
  content: none;
}

.answer-card .card-copy { padding-right: 52px; }
.answer-card .card-title {
  color: #00174B;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.answer-card .card-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}
.answer-card .card-description-secondary {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #D9D9D9;
}
.answer-card .card-description-secondary em {
  font-style: italic;
}
.answer-card.image-card,
.answer-card.text-card,
.answer-card.goal-card {
  background: #FFFFFF;
}
.answer-card.image-card img,
.answer-card.goal-card img {
  background: #D9D9D9;
}

/* A taller media area keeps the man's head and discarded bottles in frame. */
.answer-card.goal-card {
  grid-template-rows: 180px 1fr;
  min-height: 260px;
}
.answer-card.goal-card img,
.answer-card.goal-card .goal-icon {
  height: 180px;
}
.answer-card.goal-card[data-option-id="premium"] img {
  object-position: center 55% !important;
}

.quiz-footer {
  padding-top: 20px;
  border-top-color: #D9D9D9;
}
.quiz-footer .button {
  min-height: 44px;
  font-size: 15px;
}
.selection-note {
  color: var(--muted);
  font-size: 15px;
}

.result-screen { background: #FFFFFF; }
.primary-result,
.answer-summary,
.consultation-card,
.alternative-card,
.catalog-card {
  border: 1px solid #D9D9D9;
  border-radius: 10px;
  box-shadow: none;
}
.product-copy h3 { font-size: 24px; }
.product-subtitle { font-size: 16px; }
.best-badge {
  border-radius: 8px;
  background: #FF88BD;
  font-size: 11px;
}
.meta-chip {
  border-color: #BDBDBD;
  border-radius: 8px;
  background: #FFFFFF;
}
.price { font-size: 24px; }
.reason-list li::before { color: #FF88BD; }
.consultation-card { border-color: #00174B; background: #00174B; }
.consultation-card .eyebrow { color: #FF88BD; }

/* The final recommendation shows one approved product image only. */
.product-gallery-controls,
.product-gallery-dots,
.product-gallery-arrow {
  display: none !important;
}
.product-gallery {
  display: grid;
  min-height: 390px;
  grid-template-rows: 1fr;
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  h1 { font-size: 24px; line-height: 32px; }
  h2 { font-size: 20px; line-height: 28px; }
  h3 { font-size: 16px; line-height: 24px; }
  .lead, .question-hint, .result-header p:last-child, .loading-screen p:last-child {
    font-size: 14px;
    line-height: 20px;
  }
  .quiz-shell { border: 0; }
  .button { min-height: 42px; }
  .answer-card.goal-card {
    min-height: 140px;
    grid-template-columns: 140px 1fr;
    grid-template-rows: 1fr;
  }
  .answer-card.goal-card img,
  .answer-card.goal-card .goal-icon {
    height: 100%;
    min-height: 140px;
  }
}

@media (min-width: 761px) and (max-height: 790px) {
  .answer-card.goal-card {
    grid-template-rows: 170px 1fr;
    min-height: 246px;
  }
  .answer-card.goal-card img,
  .answer-card.goal-card .goal-icon {
    height: 170px;
  }
}


/* Requested layout refinements — July 2026 */
/* Images touch the card frame on the top, left and right edges. */
.answers.layout-image .answer-card.image-card,
.answers.layout-goal .answer-card.goal-card {
  padding: 0;
}
.answers.layout-image .answer-card.image-card > img,
.answers.layout-goal .answer-card.goal-card > img {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Up to three water issues can be selected. */
.answer-card.is-selection-disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}
.answer-card.is-selection-disabled:hover {
  border-color: #BDBDBD;
  transform: none;
  box-shadow: none;
}
.selection-note--limit {
  color: #00174B;
  font-weight: 700;
}

/* Keep the lower edges of the recommendation and consultation frames aligned. */
@media (min-width: 1021px) {
  .result-grid {
    align-items: stretch;
  }
  .primary-result,
  .product-hero,
  .result-aside {
    height: 100%;
  }
  .result-aside {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .consultation-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .consultation-card .button {
    margin-top: auto;
  }
}


/* BWT guide alignment overrides */
@font-face {
  font-family: "BWT Cyr Regular";
  src: url("assets/fonts/BWT Cyr-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BWT Cyr Copy";
  src: url("assets/fonts/BWT Cyr - Copy Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BWT Cyr Head";
  src: url("assets/fonts/BWT Cyr-BoldHead.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: "BWT Cyr Copy", "BWT Cyr Regular", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
h1, h2, h3, .card-title, .button, .text-button, .eyebrow {
  font-family: "BWT Cyr Head", "BWT Cyr Regular", Inter, sans-serif;
}
h1 { line-height: 1.02; }
h2 { line-height: 1.08; }
.lead, .question-hint, .answer-card .card-description, .selection-note, .result-header p:last-child {
  line-height: 1.5;
}
.start-screen { align-items: stretch; }
.start-visual { align-self: stretch; background-position: center bottom; }
.icon-button {
  display: inline-grid;
  place-items: center;
  color: var(--bwt-blue);
  box-shadow: 0 4px 14px rgba(13, 29, 66, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 29, 66, 0.12);
  border-color: #d5dae3;
}
.back-icon { width: 20px; height: 20px; }
.button-primary:hover, .button-ghost:hover, .button-light:hover { box-shadow: 0 10px 24px rgba(13, 29, 66, 0.14); }
.button-ghost:hover, .button-light:hover { border-color: #cfd6e1; }
.answer-card {
  box-shadow: 0 4px 14px rgba(13, 29, 66, 0.05);
}
.answer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 29, 66, 0.12);
}
.answer-card[aria-pressed="true"] {
  box-shadow: 0 0 0 4px rgba(255,76,154,.12), 0 12px 28px rgba(13, 29, 66, 0.12);
}
.answer-card::before,
.answer-card::after {
  position: absolute;
  top: 14px;
  right: 14px;
}
.answer-card::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 1.5px solid #c8ced8;
  background: #fff;
}
.answer-card[data-selection-type="single"]::before { border-radius: 50%; }
.answer-card[data-selection-type="multiple"]::before { border-radius: 6px; }
.answer-card[aria-pressed="true"]::before { border-color: var(--bwt-pink); background: #fff; }
.answer-card[data-selection-type="single"][aria-pressed="true"]::after {
  content: "";
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bwt-pink);
}
.answer-card[data-selection-type="multiple"][aria-pressed="true"]::before { background: var(--bwt-blue); border-color: var(--bwt-blue); }
.answer-card[data-selection-type="multiple"][aria-pressed="true"]::after {
  content: "";
  top: 19px;
  right: 21px;
  width: 7px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.answer-card .card-copy { padding-right: 54px; }
.answer-card.is-selection-disabled { opacity: .72; }
.answer-card.is-selection-disabled:hover { box-shadow: 0 4px 14px rgba(13, 29, 66, 0.05); transform: none; }
.loading-visual {
  display: grid;
  width: 192px;
  height: 192px;
  margin: 0 auto 28px;
  place-items: center;
}
.loading-planet {
  width: 180px;
  max-width: 100%;
  filter: drop-shadow(0 14px 32px rgba(255, 76, 154, 0.18));
  transform-origin: center center;
  animation: bwt-planet-spin 10s linear infinite;
}
@keyframes bwt-planet-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* Requested corrections — v18 */
.button,
.text-button {
  font-family: "BWT Cyr Copy", "BWT Cyr Regular", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

/* Keep the start image exactly inside the outer frame. */
.start-screen {
  overflow: hidden;
  border-radius: inherit;
}
.start-visual {
  height: auto;
  min-height: 0;
  align-self: stretch;
}

/* One BWT radio-button treatment for every answer on all four steps. */
.answer-card {
  position: relative;
}

.answer-card::before {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border: 2px solid #BDBDBD;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: none;
  content: "";
}

.answer-card[data-selection-type="single"]::before,
.answer-card[data-selection-type="multiple"]::before {
  border-radius: 50%;
}

.answer-card[aria-pressed="true"]::before,
.answer-card[data-selection-type="single"][aria-pressed="true"]::before,
.answer-card[data-selection-type="multiple"][aria-pressed="true"]::before {
  border-color: var(--bwt-pink);
  background: var(--bwt-pink);
  box-shadow: inset 0 0 0 4px #FFFFFF;
}

.answer-card[aria-pressed="true"]::after,
.answer-card[data-selection-type="single"][aria-pressed="true"]::after,
.answer-card[data-selection-type="multiple"][aria-pressed="true"]::after {
  display: none;
  content: none;
}

.answer-card:hover::before,
.answer-card:focus-visible::before {
  border-color: var(--bwt-pink);
}

/* Sentence case, bold, as requested. */
.best-badge {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* Alternative description is always left-aligned. */
.section-heading > p {
  text-align: left;
}

@media (max-width: 760px) {
  .start-visual {
    height: auto;
    min-height: 330px;
  }
}


/* Keep the single alternative explanation directly below its heading. */
.alternatives.has-single-alternative .section-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}
.alternatives.has-single-alternative .section-heading > p {
  max-width: none;
  margin: 0;
  text-align: left;
}

/* BWT digital guide audit — v23 */
/* Typography: BWT desktop and mobile scales use 130% line-height. */
body {
  line-height: 1.3;
}

h1 {
  font-size: clamp(28px, calc(16px + 0.833vw), 32px);
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
}

h3,
.alternative-copy h4 {
  font-size: 20px;
  line-height: 1.3;
}

.lead,
.question-hint,
.answer-card .card-description,
.answer-card .card-description-secondary,
.selection-note,
.result-header p:last-child,
.loading-screen p:last-child,
.product-subtitle,
.section-heading > p,
.alternative-copy p,
.legal-note {
  line-height: 1.3;
}

.answer-card .card-title,
.product-copy h3,
.alternative-copy h4 {
  font-family: "BWT Cyr Head", "BWT Cyr Regular", Arial, Helvetica, sans-serif;
}

.answer-card .card-description,
.answer-card .card-description-secondary,
.product-subtitle,
.section-heading > p,
.alternative-copy p,
.legal-note {
  font-family: "BWT Cyr Copy", "BWT Cyr Regular", Arial, Helvetica, sans-serif;
}

/* Frames: 10 px is the standard radius from the BWT guide. */
.quiz-shell,
.answer-card,
.primary-result,
.answer-summary,
.consultation-card,
.alternative-card,
.catalog-card {
  border-radius: 10px;
}

/* Navigation arrows: guide proportions for desktop and mobile. */
.icon-button {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
}

.back-icon {
  width: 24px;
  height: 24px;
}

.back-icon path {
  stroke-width: 1.5;
}

.text-button {
  font-size: 15px;
  line-height: 1.3;
}

@media (max-width: 760px) {
  h1 {
    font-size: 18px;
    line-height: 1.3;
  }

  h2 {
    font-size: 16px;
    line-height: 1.3;
  }

  h3,
  .product-copy h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .answer-card .card-title,
  .alternative-copy h4 {
    font-size: 14px;
    line-height: 1.3;
  }

  body,
  .lead,
  .question-hint,
  .answer-card .card-description,
  .answer-card .card-description-secondary,
  .selection-note,
  .result-header p:last-child,
  .loading-screen p:last-child,
  .product-subtitle,
  .section-heading > p,
  .alternative-copy p {
    font-size: 14px;
    /*line-height: 1.3;*/
  }

  .button {
    font-size: 14px;
    line-height: 1.3;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .back-icon {
    width: 16px;
    height: 16px;
  }
}


/* Responsive and BWT button corrections — v30 */

/* Steps 2 and 4: never let text touch the card frame. */
.answers.layout-text .answer-card .card-copy,
.answers.layout-family .answer-card .card-copy {
  display: block;
  min-width: 0;
  padding: 15px 52px 15px 15px;
}

/* Prevent grid children and result cards from exceeding the available width. */
.answers,
.answer-card,
.family-options,
.family-visual,
.result-grid,
.primary-result,
.product-hero,
.product-image-wrap,
.product-copy,
.result-aside,
.alternative-grid,
.alternative-card,
.alternative-copy {
  min-width: 0;
  max-width: 100%;
}

.result-header,
.section-heading,
.product-actions {
  flex-wrap: wrap;
}

.product-actions .button {
  max-width: 100%;
}

/* Final screen buttons from the BWT guide. */
.result-screen .button-cart {
  border-color: #FF88BD;
  background: #FF88BD;
  color: #FFFFFF;
  box-shadow: 0 4px 8px rgba(0, 23, 75, .18);
}
.result-screen .button-cart:hover,
.result-screen .button-cart:focus-visible {
  border-color: #FF88BD;
  background: #FFFFFF;
  color: #FF88BD;
  box-shadow: none;
}
.result-screen .button-ghost:hover,
.result-screen .button-ghost:focus-visible,
.result-screen [data-action="restart"].button-ghost:hover,
.result-screen [data-action="restart"].button-ghost:focus-visible {
  border-color: #BDBDBD;
  background: #D9D9D9;
  color: #00174B;
}

/* Tablet: step 1 stays in two columns and preserves the full faces. */
@media (min-width: 561px) and (max-width: 820px) {
  .answers.layout-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .answers.layout-image .answer-card.image-card {
    min-height: 0;
    grid-template-rows: auto 1fr;
  }

  .answers.layout-image .answer-card.image-card > img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 570 / 326;
    object-fit: cover;
    object-position: center;
  }

  .answers.layout-image .answer-card.image-card .card-copy {
    padding: 15px 48px 15px 15px;
  }

  .quiz-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .quiz-footer .button {
    width: 100%;
  }
}

/* Results and alternatives fit safely around 750–820 px. */
@media (max-width: 900px) {
  .alternative-grid {
    grid-template-columns: 1fr;
  }

  .alternative-card {
    grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
  }

  .product-actions .button {
    flex: 1 1 190px;
  }
}

@media (max-width: 760px) {
  .quiz-footer .button {
    width: 100%;
  }

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

  .product-actions .button,
  .result-header > .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .answers.layout-image {
    grid-template-columns: 1fr;
  }

  .answers.layout-image .answer-card.image-card {
    grid-template-rows: auto 1fr;
  }

  .answers.layout-image .answer-card.image-card > img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 570 / 326;
    object-fit: cover;
    object-position: center;
  }

  .alternative-card {
    grid-template-columns: 1fr;
  }

  .alternative-card img,
  .alternative-image-wrap > img {
    height: auto;
    max-height: 280px;
  }
}


/* BWT typography and mobile button corrections — v31 */
@font-face {
  font-family: "BWT Cyr Copy";
  src:
    local("BWT Cyr - Copy Regular"),
    local("BWT Cyr Copy Regular"),
    url("assets/fonts/BWT Cyr - Copy Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BWT Cyr Regular";
  src:
    local("BWT Cyr Regular"),
    url("assets/fonts/BWT Cyr-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BWT Cyr Head";
  src:
    local("BWT Cyr BoldHead"),
    local("BWT Cyr-BoldHead"),
    url("assets/fonts/BWT Cyr-BoldHead.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,
body,
button,
a,
input,
textarea,
select {
  font-family: "BWT Cyr Copy", "BWT Cyr Regular", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
.card-title,
.answer-card .card-title,
.product-copy h3,
.alternative-copy h4,
.eyebrow,
.progress-meta,
.price,
.best-badge {
  font-family: "BWT Cyr Head", "BWT Cyr Regular", Arial, Helvetica, sans-serif;
}

.button,
.text-button {
  font-family: "BWT Cyr Copy", "BWT Cyr Regular", Arial, Helvetica, sans-serif;
  font-weight: 400;
}

/* Neutral BWT buttons on the final screen. */
.result-screen .button-ghost,
.result-screen [data-action="restart"].button-ghost {
  border-color: #E5E7EC;
  background: #E5E7EC;
  color: #00174B;
  box-shadow: none;
}

.result-screen .button-ghost:hover,
.result-screen .button-ghost:focus-visible,
.result-screen [data-action="restart"].button-ghost:hover,
.result-screen [data-action="restart"].button-ghost:focus-visible {
  border-color: #D9D9D9;
  background: #D9D9D9;
  color: #00174B;
  box-shadow: none;
}

/* The BWT mobile guide uses 40 px-high controls. */
@media (max-width: 760px) {
  .button {
    width: 100%;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .start-actions,
  .quiz-footer,
  .product-actions,
  .alternative-copy,
  .consultation-card {
    width: 100%;
  }

  .quiz-footer .button,
  .product-actions .button,
  .alternative-copy .button,
  .consultation-card .button,
  .result-header > .button,
  .start-actions .button {
    flex: 0 0 auto;
    width: 100%;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    margin: 0;
  }
}

/* Final responsive, button and BWT typography corrections — v32 */
@font-face {
  font-family: "BWT Cyr Copy";
  src:
    local("BWT Cyr - Copy Regular"),
    local("BWT Cyr Copy Regular"),
    url("assets/fonts/BWT Cyr - Copy Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BWT Cyr Regular";
  src:
    local("BWT Cyr Regular"),
    url("assets/fonts/BWT Cyr-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BWT Cyr Head";
  src:
    local("BWT Cyr BoldHead"),
    local("BWT Cyr-BoldHead"),
    url("assets/fonts/BWT Cyr-BoldHead.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,
body,
button,
a,
input,
textarea,
select,
.button,
.text-button {
  font-family: "BWT Cyr Copy", "BWT Cyr Regular", Arial, Helvetica, sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
.eyebrow,
.progress-meta,
.answer-card .card-title,
.product-copy h3,
.alternative-copy h4,
.price,
.best-badge {
  font-family: "BWT Cyr Head", "BWT Cyr Regular", Arial, Helvetica, sans-serif;
}

/* Steps 2 and 4: retain at least 15 px internal spacing. */
.answers.layout-text .answer-card .card-copy,
.answers.layout-family .answer-card .card-copy {
  min-width: 0;
  padding: 15px 52px 15px 15px;
}

/* Final-screen button states from the supplied BWT references. */
.result-screen .button-cart {
  border-color: #00174B;
  background: #00174B;
  color: #FFFFFF;
  box-shadow: none;
}

.result-screen .button-cart:hover,
.result-screen .button-cart:focus-visible {
  border-color: #3B527F;
  background: #3B527F;
  color: #FFFFFF;
  box-shadow: none;
  transform: none;
}

.result-screen .button-ghost,
.result-screen [data-action="restart"].button-ghost {
  border: 2px solid #00174B;
  background: #FFFFFF;
  color: #00174B;
  box-shadow: none;
}

.result-screen .button-ghost:hover,
.result-screen .button-ghost:focus-visible,
.result-screen [data-action="restart"].button-ghost:hover,
.result-screen [data-action="restart"].button-ghost:focus-visible {
  border-color: transparent;
  background: #E5E7EC;
  color: #00174B;
  box-shadow: none;
  transform: none;
}

/* 561–820 px: keep step 1 cards side by side and preserve the full source image ratio. */
@media (min-width: 561px) and (max-width: 820px) {
  .answers.layout-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .answers.layout-image .answer-card.image-card {
    min-height: 0;
    grid-template-rows: auto 1fr;
  }

  .answers.layout-image .answer-card.image-card > img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 570 / 326;
    object-fit: cover;
    object-position: center center;
  }

  .answers.layout-image .answer-card.image-card .card-copy {
    padding: 15px 48px 15px 15px;
  }
}

/* Avoid cramped final cards around 750–820 px. */
@media (max-width: 820px) {
  .result-grid,
  .product-hero,
  .alternative-grid,
  .alternative-card {
    grid-template-columns: 1fr;
  }

  .product-image-wrap,
  .alternative-image-wrap {
    min-height: 260px;
  }

  .alternative-image-wrap > img,
  .product-image-wrap > img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
  }

  .product-actions {
    flex-wrap: wrap;
  }

  .product-actions .button {
    flex: 1 1 180px;
    min-width: 0;
  }
}

/* Mobile: only stretch controls horizontally; preserve the BWT 40 px control height. */
@media (max-width: 760px) {
  .quiz-footer,
  .start-actions,
  .product-actions,
  .consultation-card,
  .alternative-copy {
    width: 100%;
  }

  .quiz-footer .button,
  .start-actions .button,
  .product-actions .button,
  .consultation-card .button,
  .alternative-copy .button,
  .result-header > .button {
    flex: 0 0 auto;
    width: 100%;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    margin: 0;
    padding: 0 20px;
    white-space: nowrap;
  }
}


@media (max-width: 760px) {
  .quiz-footer {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }
}


/* Targeted corrections — v33 */

/* BWT manual: a single 1 px outline for “Подробнее” and “Пройти ещё раз”. */
.result-screen .button-ghost,
.result-screen [data-action="restart"].button-ghost {
  border-width: 1px;
  border-style: solid;
  border-color: #00174B;
  box-shadow: none;
}

@media (max-width: 560px) {
  /* Compact step 1 so both choices remain visible within one mobile viewport. */
  .answers.layout-image {
    gap: 10px;
  }

  .answers.layout-image .answer-card.image-card {
    min-height: 0;
    grid-template-rows: 105px auto;
  }

  .answers.layout-image .answer-card.image-card > img {
    width: 100%;
    height: 105px;
    min-height: 105px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
  }

  .answers.layout-image .answer-card.image-card[data-option-id="apartment"] > img {
    object-position: 50% 28%;
  }

  .answers.layout-image .answer-card.image-card[data-option-id="house"] > img {
    object-position: 50% 25%;
  }

  .answers.layout-image .answer-card.image-card .card-copy {
    padding-top: 12px;
    padding-bottom: 12px;
  }

}

/* Targeted mobile corrections — v34 */
@media (max-width: 560px) {
  /* Step 1: increase image height by one third without changing the card layout. */
  .answers.layout-image .answer-card.image-card {
    grid-template-rows: 140px auto;
  }

  .answers.layout-image .answer-card.image-card > img {
    height: 140px;
    min-height: 140px;
  }

  /* Step 3: reserve space for the selection control and force safe wrapping. */
  .answers.layout-goal .answer-card.goal-card .card-copy {
    min-width: 0;
    padding-right: 56px;
  }

  .answers.layout-goal .answer-card.goal-card .card-title {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }
}


/* custom */
.quiz-shell{
  min-height: 784px;
  display: none;
}
.quiz-shell.active{
  display: block;
}