/*
Theme Name: Skin Relief
Theme URI: https://example.com/skin-relief
Author: Risely Digital Studio
Author URI: https://risely.digital/
Description: Premium WordPress theme inspired by a sensitive skincare product landing page. Includes landing page, pages, posts, archives, search, comments, demo content and WooCommerce support.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skin-relief
Tags: one-column, custom-logo, custom-menu, featured-images, blog, e-commerce, landing-page
*/

:root {
  --sr-ink: #050505;
  --sr-muted: #4a5260;
  --sr-soft: #f7fbff;
  --sr-blue: #dceefa;
  --sr-blue-strong: #91add0;
  --sr-line: rgba(10, 18, 30, 0.12);
  --sr-card: rgba(255, 255, 255, 0.84);
  --sr-shadow: 0 18px 55px rgba(20, 45, 80, 0.10);
  --sr-serif: Georgia, 'Times New Roman', serif;
  --sr-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sr-ink);
  background: #fff;
  font-family: var(--sr-sans);
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }

.sr-container {
  width: min(100% - 36px, 1120px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.site-header__inner {
  height: 78px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}

.menu-toggle,
.cart-link {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--sr-ink);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  width: 27px;
  height: 2px;
  background: currentColor;
  display: block;
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open span { opacity: 0; }
.menu-toggle.is-open::before { transform: translateY(10px) rotate(45deg); }
.menu-toggle.is-open::after { transform: translateY(-10px) rotate(-45deg); }

.site-branding { justify-self: center; text-align: center; }
.site-title {
  margin: 0;
  font-family: var(--sr-serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: .9;
}
.custom-logo { max-height: 48px; width: auto; }

.primary-nav {
  position: fixed;
  inset: 78px auto auto 0;
  width: min(340px, 88vw);
  height: calc(100vh - 78px);
  transform: translateX(-100%);
  transition: transform .25s ease;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  box-shadow: var(--sr-shadow);
  padding: 26px;
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 14px 0; font-weight: 650; border-bottom: 1px solid var(--sr-line); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 548px;
  background:
    radial-gradient(circle at 68% 15%, rgba(255,255,255,.95) 0 8%, transparent 18%),
    radial-gradient(circle at 80% 72%, rgba(255,255,255,.65) 0 1.8%, transparent 2.3%),
    linear-gradient(105deg, #f6fbff 0%, #e8f5ff 36%, #d9ebfb 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(122, 159, 198, .45);
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(255,255,255,.16) 52%, rgba(126,163,198,.1));
  box-shadow: inset 0 0 18px rgba(255,255,255,.78), 0 8px 20px rgba(85,122,165,.13);
}
.hero::before { width: 88px; height: 88px; right: 34%; top: 72px; }
.hero::after { width: 58px; height: 58px; right: 29%; top: 128px; }

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 548px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding-block: 58px 52px;
}

.hero__copy { max-width: 390px; }
.hero h1 {
  margin: 0 0 25px;
  font-family: var(--sr-serif);
  font-size: clamp(46px, 7vw, 76px);
  letter-spacing: -0.055em;
  line-height: .98;
  font-weight: 700;
}
.hero p {
  margin: 0 0 33px;
  color: #1c2735;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.36;
}

.sr-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 0 42px;
  border-radius: 8px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(0,0,0,.17);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sr-button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.sr-button--wide { width: min(100%, 330px); }

.product-pack {
  justify-self: end;
  position: relative;
  width: min(480px, 88vw);
  display: grid;
  place-items: center;
  margin-right: 24px;
}
.product-pack::before {
  content: '';
  position: absolute;
  inset: auto -80px 0 -80px;
  height: 105px;
  background: radial-gradient(ellipse at center, rgba(94,129,170,.25), transparent 65%);
  filter: blur(1px);
}
.product-pack__bar {
  position: absolute;
  right: -56px;
  bottom: 4px;
  width: 520px;
  height: 120px;
  background:
    radial-gradient(circle at 15% 65%, rgba(255,255,255,.9) 0 11px, rgba(180,210,235,.4) 12px 13px, transparent 14px),
    radial-gradient(circle at 78% 38%, rgba(255,255,255,.9) 0 18px, rgba(180,210,235,.4) 19px 21px, transparent 22px),
    radial-gradient(circle at 55% 58%, rgba(255,255,255,.9) 0 13px, rgba(180,210,235,.4) 14px 16px, transparent 17px),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.55));
  opacity: .9;
}
.hero-product-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(45,71,102,.22));
}
.hero-product-image--small {
  max-width: 300px;
}

.main-content { padding-block: 22px 0; }
.benefits { display: grid; gap: 10px; margin-bottom: 14px; }
.benefit-card,
.product-card,
.use-card,
.ingredient-card,
.testimonial,
.newsletter {
  background: var(--sr-card);
  border: 1px solid var(--sr-line);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.benefit-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  padding: 10px 18px;
}
.sr-icon { width: 32px; height: 32px; color: var(--sr-blue-strong); justify-self: center; }
.benefit-card h3, .ingredient-card h3 { margin: 0; font-family: var(--sr-serif); font-size: 22px; line-height: 1.1; }
.benefit-card p, .ingredient-card p { margin: 3px 0 0; color: #161d29; }

.product-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 26px;
  align-items: center;
  padding: 24px 54px;
  margin-block: 16px 12px;
}
.product-card__media { display: grid; place-items: center; min-height: 286px; }
.product-card h2, .section-title, .newsletter h2 {
  margin: 0;
  font-family: var(--sr-serif);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 700;
}
.product-eyebrow { margin: 7px 0 18px; color: var(--sr-blue-strong); font-size: 19px; letter-spacing: .07em; }
.product-card p { margin: 0 0 15px; font-size: 17px; color: #1d2430; }
.price { display: block; margin: 0 0 18px; font-weight: 800; font-size: 27px; }

.section-title { text-align: center; margin-block: 20px 15px; }
.use-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.use-card { min-height: 88px; display: grid; place-items: center; padding: 12px; text-align: center; }
.use-card .sr-icon { width: 44px; height: 44px; }
.ingredients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ingredient-card { min-height: 128px; display: grid; grid-template-columns: 92px 1fr; align-items:center; padding: 18px 22px; }
.ingredient-card .sr-icon { width: 66px; height: 66px; color: #222; }
.ingredient-card h3 { font-size: 18px; }

.testimonial-slider { position: relative; margin-bottom: 24px; }
.testimonial-slider__viewport { overflow: hidden; border-radius: 12px; }
.testimonial-slider__track { display: flex; transition: transform .45s ease; }
.testimonial-slider__slide { flex: 0 0 100%; box-sizing: border-box; }
.testimonial { min-height: 140px; padding: 24px 28px; }
.stars { letter-spacing: .18em; font-size: 17px; margin-bottom: 12px; }
.testimonial p { margin: 0 0 14px; }
.testimonial cite { font-style: normal; color: #394253; }
.testimonial-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--sr-line);
  background: rgba(255,255,255,.92);
  color: var(--sr-ink);
  font-family: var(--sr-serif);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(20,45,80,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-slider__arrow:hover { transform: translateY(-50%) scale(1.06); box-shadow: 0 8px 20px rgba(20,45,80,.18); }
.testimonial-slider__arrow:focus-visible { outline: 2px solid var(--sr-blue-strong); outline-offset: 2px; }
.testimonial-slider__arrow--prev { left: -8px; }
.testimonial-slider__arrow--next { right: -8px; }
.testimonial-slider__dots { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.testimonial-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: var(--sr-line);
  padding: 0;
  cursor: pointer;
}
.testimonial-slider__dot.is-active { background: var(--sr-blue-strong); }

.newsletter {
  background: linear-gradient(110deg, #e8f5ff 0%, #d4eefe 100%);
  padding: 18px 22px 22px;
  text-align: center;
  margin: 0 0 22px;
}
.newsletter-form { display: flex; gap: 9px; justify-content:center; margin-top: 14px; }
.newsletter input[type='email'] { width: min(430px, 100%); min-height: 48px; padding: 0 20px; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; background: rgba(255,255,255,.88); }
.newsletter .sr-button { min-height: 48px; border-radius: 8px; padding-inline: 32px; }
.newsletter .sr-button:disabled { opacity: .7; cursor: default; transform: none; }
.newsletter-message { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.newsletter-message.is-success { color: #1c6b34; }
.newsletter-message.is-error { color: #b3261e; }

.site-footer { background: linear-gradient(180deg, #f8fcff 0%, #e6f4ff 100%); padding: 24px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .6fr .7fr 1fr; gap: 30px; align-items: start; }
.footer-brand { font-family: var(--sr-serif); font-weight: 900; font-size: 24px; letter-spacing: -.06em; margin-bottom: 4px; }
.site-footer p, .site-footer a { color: #121820; font-size: 14px; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.socials { display:flex; gap:14px; justify-content:flex-end; flex-wrap:wrap; }
.socials a { width: 44px; height: 44px; display:grid; place-items:center; border: 1px solid var(--sr-line); border-radius: 13px; background: rgba(255,255,255,.58); }

@media (max-width: 820px) {
  .sr-container { width: min(100% - 28px, 720px); }
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 40px 34px; min-height: 0; }
  .hero__copy { max-width: 360px; }
  .product-pack { justify-self: center; width: min(340px, 82vw); margin: -20px 0 0; }
  .product-pack__bar { transform: scale(.8); right: -86px; }
  .product-card { grid-template-columns: 1fr; padding: 22px; text-align:center; gap: 0; }
  .product-card__text { display:grid; justify-items:center; }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .ingredients-grid { grid-template-columns: 1fr; }
  .testimonial-slider__arrow { width: 38px; height: 38px; font-size: 19px; }
  .testimonial-slider__arrow--prev { left: 2px; }
  .testimonial-slider__arrow--next { right: 2px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .socials { justify-content:flex-start; }
}

@media (max-width: 520px) {
  .site-header, .site-header__inner { height: 72px; }
  .primary-nav { inset: 72px auto auto 0; height: calc(100vh - 72px); }
  .site-title { font-size: 31px; }
  .hero__inner { padding-top: 34px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 18px; }
  .sr-button { width: 100%; }
  .benefit-card { grid-template-columns: 58px 1fr; padding-inline: 12px; }
  .benefit-card h3 { font-size: 18px; }
  .benefit-card p { font-size: 14px; }
  .use-grid { gap: 10px; }
  .ingredient-card { grid-template-columns: 70px 1fr; padding: 16px; }
  .newsletter-form { flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 16px; }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Posts, pages and WordPress content */
.sr-archive {
  padding-block: 42px 46px;
}
.sr-archive-header {
  margin-bottom: 22px;
  text-align: center;
}
.sr-archive-description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--sr-muted);
}
.sr-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sr-entry-card {
  background: var(--sr-card);
  border: 1px solid var(--sr-line);
  border-radius: 16px;
  box-shadow: var(--sr-shadow);
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
}
.sr-post-grid .sr-entry-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.sr-entry-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(110deg, #eef8ff, #fff);
}
.sr-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sr-post-grid .sr-entry-header,
.sr-post-grid .sr-entry-content,
.sr-post-grid .sr-entry-footer {
  padding-inline: 24px;
}
.sr-post-grid .sr-entry-header { padding-top: 24px; }
.sr-post-grid .sr-entry-content { padding-bottom: 24px; }
.sr-entry-title {
  margin: 0 0 12px;
  font-family: var(--sr-serif);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.sr-post-grid .sr-entry-title {
  font-size: clamp(25px, 3vw, 34px);
}
.sr-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--sr-muted);
  font-size: 14px;
}
.sr-entry-content {
  color: #182130;
  font-size: 18px;
}
.sr-entry-content > *:first-child { margin-top: 0; }
.sr-entry-content > *:last-child { margin-bottom: 0; }
.sr-entry-content p,
.sr-entry-content ul,
.sr-entry-content ol {
  margin: 0 0 1.2em;
}
.sr-entry-content h2,
.sr-entry-content h3,
.sr-entry-content h4 {
  margin: 1.45em 0 .55em;
  font-family: var(--sr-serif);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.sr-entry-content h2 { font-size: clamp(28px, 4vw, 38px); }
.sr-entry-content h3 { font-size: clamp(23px, 3vw, 30px); }
.sr-entry-content a:not(.sr-button) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sr-entry-content blockquote,
.wp-block-quote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--sr-blue-strong);
  background: #f4fbff;
  border-radius: 0 12px 12px 0;
}
.sr-entry-content .wp-block-button__link {
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.sr-entry-content figure {
  margin: 28px 0;
}
.sr-entry-content figcaption {
  margin-top: 8px;
  color: var(--sr-muted);
  font-size: 14px;
  text-align: center;
}
.sr-read-more {
  display: inline-flex;
  margin-top: 4px;
  font-weight: 800;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sr-entry-footer {
  margin-top: 22px;
  color: var(--sr-muted);
}
.sr-tags a {
  display: inline-flex;
  margin: 0 6px 6px 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef8ff;
  border: 1px solid var(--sr-line);
  font-size: 13px;
  text-decoration: none;
}
.sr-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.sr-post-nav a,
.page-numbers {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--sr-line);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  font-weight: 700;
}
.sr-post-nav div:last-child { text-align: right; }
.navigation.pagination { margin-top: 26px; text-align: center; }
.sr-comments {
  margin-top: 24px;
  background: var(--sr-card);
  border: 1px solid var(--sr-line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 34px);
}
.comment-list { padding-left: 22px; }
.comment-form input:not([type='submit']),
.comment-form textarea,
.search-form input[type='search'] {
  width: 100%;
  border: 1px solid var(--sr-line);
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
}
.comment-form input[type='submit'],
.search-form input[type='submit'] {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.sr-not-found { text-align: center; }

@media (max-width: 820px) {
  .sr-post-grid { grid-template-columns: 1fr; }
  .sr-post-nav { grid-template-columns: 1fr; }
  .sr-post-nav div:last-child { text-align: left; }
  .sr-entry-content { font-size: 16px; }
}

/* Cart badge */
.cart-link__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sr-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.cart-link__badge--bump { animation: sr-badge-bump .3s ease; }
@keyframes sr-badge-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Cart toast */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 90;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sr-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

/* Cart panel */
.cart-panel { position: fixed; inset: 0; z-index: 100; }
.cart-panel__overlay { position: absolute; inset: 0; background: rgba(10,18,30,.42); }
.cart-panel__dialog {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: #fff;
  box-shadow: -20px 0 50px rgba(20,45,80,.2);
  padding: 26px 26px 30px;
  overflow-y: auto;
  outline: none;
}
body.cart-panel-open { overflow: hidden; }
.cart-panel__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cart-panel__header h2 { margin: 0; font-family: var(--sr-serif); font-size: 24px; }
.cart-panel__close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--sr-ink);
}
.cart-panel__empty { color: var(--sr-muted); }
.cart-panel__item { display: grid; grid-template-columns: 60px 1fr auto auto; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--sr-line); margin-bottom: 18px; }
.cart-panel__item img { width: 60px; height: auto; }
.cart-panel__item-name { margin: 0; font-weight: 700; }
.cart-panel__item-price { margin: 4px 0 0; color: var(--sr-muted); font-size: 14px; }
.cart-panel__qty { display: flex; align-items: center; gap: 8px; border: 1px solid var(--sr-line); border-radius: 999px; padding: 4px 8px; }
.cart-panel__qty button { width: 22px; height: 22px; border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: var(--sr-ink); }
.cart-panel__remove { border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--sr-muted); }
.cart-panel__subtotal { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 16px; }
.cart-panel__view form { display: grid; gap: 6px; margin-top: 4px; }
.cart-panel__view form label { font-size: 13px; font-weight: 700; margin-top: 10px; }
.cart-panel__view form input,
.cart-panel__view form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  resize: vertical;
}
.cart-panel__view form button[type='submit'] { margin-top: 18px; }
.cart-panel__message { margin-top: 14px; font-size: 14px; font-weight: 600; }
.cart-panel__message.is-error { color: #b3261e; }
.cart-panel__thanks { font-size: 17px; margin-bottom: 20px; }

@media (max-width: 520px) {
  .cart-panel__dialog { width: 100%; padding: 20px; }
}

/* Skin quiz page */
.quiz-page { padding-block: 10px 60px; max-width: 640px; margin-inline: auto; }
.quiz-page__header { text-align: center; margin-bottom: 30px; }
.quiz-page__header p { color: var(--sr-muted); }

.quiz {
  background: var(--sr-card);
  border: 1px solid var(--sr-line);
  border-radius: 14px;
  box-shadow: var(--sr-shadow);
  padding: 36px;
}
.quiz__progress { height: 6px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; margin-bottom: 14px; }
.quiz__progress-bar { height: 100%; width: 0%; background: var(--sr-blue-strong); transition: width .35s ease; }
.quiz__step { margin: 0 0 20px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sr-muted); min-height: 16px; }

.quiz__question-title { font-family: var(--sr-serif); font-size: 24px; margin: 0 0 22px; line-height: 1.3; }
.quiz__answers { display: grid; gap: 10px; }
.quiz__answer {
  text-align: left;
  padding: 15px 20px;
  border: 1px solid var(--sr-line);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.quiz__answer:hover { border-color: var(--sr-blue-strong); background: rgba(145,173,208,.08); transform: translateX(2px); }
.quiz__answer.is-selected { border-color: var(--sr-blue-strong); background: rgba(145,173,208,.14); font-weight: 700; }
.quiz__back {
  margin-top: 22px;
  border: 0;
  background: transparent;
  color: var(--sr-muted);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.quiz__back:hover { color: var(--sr-ink); }

.quiz__result-lead { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sr-blue-strong); }
.quiz__result-title { font-family: var(--sr-serif); font-size: 32px; margin: 0 0 16px; }
.quiz__result-desc { margin: 0 0 22px; line-height: 1.6; }
.quiz__tips-title { font-size: 16px; margin: 0 0 10px; }
.quiz__tips { margin: 0 0 22px; padding-left: 20px; line-height: 1.7; }
.quiz__tips li { margin-bottom: 6px; }
.quiz__fit {
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(145,173,208,.12);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.quiz__restart { border: 0; background: transparent; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--sr-ink); }

@media (max-width: 620px) {
  .quiz { padding: 24px; }
  .quiz__question-title { font-size: 21px; }
  .quiz__result-title { font-size: 26px; }
}
