@font-face {
  font-family: Onest;
  src: url("../fonts/onest-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Onest;
  src: url("../fonts/onest-medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Onest;
  src: url("../fonts/onest-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #fffbf4;
  --ink: #292f28;
  --red: #d2222a;
  --gold: #ceb98e;
  --gold-line: #ceb88e;
  --gold-text: #866d3d;
  --column: 994px;
  --gutter: clamp(16px, 4vw, 36px);
  --gap: clamp(20px, 3vw, 30px);
  --section-gap: clamp(50px, 8vw, 100px);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(17px, 2.25vw, 24px)/1.3 Onest, Arial, sans-serif;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; }
strong { font-weight: 500; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: var(--red); }

:focus-visible {
  outline: 2px solid #1763cd;
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  margin-inline: auto;
  padding-bottom: 12px;
  text-align: center;
}

.hero__background {
  position: absolute;
  z-index: -1;
  inset: 0 20px -420px;
  overflow: hidden;
  pointer-events: none;
}

.hero__background img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: none;
}

.hero__ring { top: -65px; }

.hero__top {
  position: absolute;
  z-index: 1;
  inset: 20px var(--gutter) auto;
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero__ad {
  color: #595f56;
  font-size: 14px;
  text-align: right;
}

.hero__content {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 100px var(--gutter) 0;
}

.hero__brand { position: relative; width: 227px; }
.hero__brand img:first-child { width: 80.4134px; aspect-ratio: 80.4134 / 122; }
.hero__wordmark { position: absolute; inset: 37px 0 auto; }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .9;
  text-wrap: balance;
}

.hero__subtitle {
  margin-top: 20px;
  padding: 10px;
  border-radius: 10px;
  background: var(--red);
  color: #fff8eb;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .9;
  text-wrap: balance;
}

.hero__scene {
  position: relative;
  width: min(100%, 610px);
  aspect-ratio: 610 / 298;
  margin-top: 30.4px;
}

.hero__scene img { position: absolute; }
.hero__bath { left: 18.85%; top: .67%; width: 62.46%; }
.hero__basin { left: 77.87%; top: 80.2%; width: 12.79%; }
.hero__cabinet-right { left: 76.72%; top: 17.79%; width: 22.94%; }
.hero__cabinet-left { left: 0; top: 16.44%; width: 16.81%; transform: scaleX(-1); }
.hero__bottle { left: 17.38%; top: 74.1%; width: 6.69%; }
.hero__bubbles { left: 4.43%; top: 39.26%; width: 8.26%; }
.hero__towel { left: 81.15%; top: 28.86%; width: 12.81%; }
.hero__tube { left: 82.13%; top: 0; width: 4.69%; }

.article {
  position: relative;
  max-width: var(--column);
  margin: 50px auto 0;
  width: calc(100% - 2 * var(--gutter));
}

.article h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.03em;
}

.steps > h2,
.section--symptoms > h2 { font-weight: 500; }

.article h3 {
  font-size: clamp(21px, 2.7vw, 28px);
  font-weight: 500;
}

.article h4 { font-size: 1em; font-weight: 500; }

.article :is(.section, .intro, .accordion__body, .step) > p:not([class]) {
  max-width: 953px;
}

.article .copy-wide { width: min(1020px, 100% + 26px); }
.article .section { margin-top: var(--section-gap); }

.section > * + *,
.intro > * + *,
.accordion__body > * + *,
.step > * + * { margin-top: var(--gap); }

.intro > .highlight { margin-top: 24px; }
.intro > h2 { font-size: clamp(21px, 2.7vw, 28px); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.intro > h2 + p { margin-top: 10px; }

.highlight {
  max-width: 987px;
  border-left: 4px solid var(--red);
  padding-left: 22px;
}

.callout {
  padding: 26px;
  border-radius: 15px;
  background: var(--red);
  color: #fff8eb;
  font-weight: 500;
}

.accent { color: #de161d; font-weight: 500; }
.callout .accent { color: inherit; }

.review {
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 18px 18px 23px;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 1px;
  font-size: 20px;
}

.review__author img { flex: 0 0 65px; width: 65px; aspect-ratio: 1; }
.review__author small { display: block; color: var(--gold-text); font-size: 16px; }
.review--last img { transform: scaleX(-1); }
.review blockquote { margin-top: 10px; max-width: 868px; }
.review--last blockquote { max-width: 933px; }
.review--intro { padding-inline: 24px; }
.review--intro blockquote { max-width: 937px; margin-top: 5px; }
.review--symptom { margin-top: 20px; padding-top: 23px; }
.review--symptom blockquote { max-width: 908px; }

.accordion {
  margin-top: 50px;
  border-block: 1px solid var(--gold-line);
}

.accordion summary {
  min-height: 85px;
  display: grid;
  align-items: center;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker { display: none; }
.article .accordion h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(21px, 2.7vw, 28px);
  font-weight: 500;
}
.accordion summary img { flex: 0 0 40px; width: 40px; }
.accordion[open] summary img { transform: rotate(180deg); }
.accordion__body { position: relative; isolation: isolate; padding-bottom: var(--gap); }
.accordion__body > h3 { max-width: 786px; }

.reasons { position: relative; }
.reasons .checklist { position: relative; }
.reasons .art { top: 44px; }

.icon-disc {
  --ring: #efdab2;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 99px;
  aspect-ratio: 1;
  border: 12px solid var(--ring);
  border-radius: 50%;
  background: #fffefe;
}

.symptoms {
  display: grid;
  grid-template-columns: minmax(0, 406px) 1fr;
  gap: 10px;
  margin-top: 15px;
  list-style: none;
}

.symptoms li { display: flex; align-items: center; gap: 10px; }
.symptoms .icon-disc { --ring: #ffd5d5; }

.article-photo {
  width: 100%;
  aspect-ratio: 994 / 600;
  object-fit: cover;
  border-radius: 15px;
}

.ingredients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.ingredients img { width: 100%; aspect-ratio: 325 / 230; object-fit: cover; border-radius: 15px; }
.ingredients h4 { margin-top: 10px; line-height: 1.1; }
.ingredients p { margin-top: 8px; max-width: 306px; font-size: clamp(17px, 2.15vw, 22px); line-height: 1.1; }
.ingredients li:first-child p { max-width: 257px; }

.step { position: relative; font-size: clamp(17px, 2.15vw, 22px); }
.steps > .step:first-of-type { margin-top: 34px; }

.step + .step {
  margin-top: 50px;
  padding-top: 57px;
  background: url("../src/images/heart-rule.svg") center top / 100% auto no-repeat;
}

.step--1 + .step { margin-top: 83px; }
.step > :not(.art) { position: relative; }
.step > .art { margin-top: 0; }

.step__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-text);
}

@media (min-width: 761px) {
  .step--2 .step__title span:last-child { max-width: 485px; }
  .step--5 .step__title span:last-child { max-width: 405px; }
}

.step__number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 80px;
  aspect-ratio: 1;
  background: url("../src/images/step-number.svg") center / contain no-repeat;
}

.step__title + .art + p,
.step__title + p { margin-top: 15px; }
.step--3 > .highlight { margin-top: 8px; }
.step--2 > .highlight,
.step--3 > .highlight { max-width: 951px; }
.step > p + p:not(.highlight, .callout, .step__full) { margin-top: 15px; }
.step > .step__narrow { max-width: 503px; }
.step > .step__wide { max-width: 710px; }
.step--4 > .highlight { max-width: 493px; }
.step--1 > p:nth-of-type(2),
.step--2 > p:nth-of-type(2) { font-weight: 500; }
.step .step__full { margin-top: 15px; }
.step--2 > .highlight,
.step--4 > .step__full { margin-top: 30px; }

.art {
  position: absolute;
  z-index: -1;
  top: 57px;
  right: 0;
  width: min(49.4%, 491px);
  aspect-ratio: 1;
  pointer-events: none;
}

.step { isolation: isolate; }
.step--1 .art { top: 0; }
.art img, .art .icon-disc { position: absolute; }
.art__ring { inset: 0; }
.art__circle { top: 4.82%; left: 2.44%; width: 94%; }
.art__drawing { top: 21.6%; left: 19.8%; }
.art--step-climate .art__drawing { width: 59.43%; }
.art__curtain { top: 25.46%; left: 57.43%; width: 19.76%; }
.art--step-bath .art__drawing { top: 19.76%; left: 32.18%; width: 34.69%; }
.art--step-emollient .art__drawing { top: 19.76%; left: 19.14%; width: 61.56%; }
.art--step-sun .art__drawing { top: 15.48%; left: 21.38%; width: 57.07%; }

.art--dryness .art__drawing { top: 19.76%; left: 34.42%; width: 29.88%; }
.art .icon-disc { width: 20.16%; border-width: clamp(6px, 1vw, 12px); }
.art .icon-disc img { max-width: 60%; }
.art .icon-disc:nth-of-type(1) { top: 39.92%; left: -8.15%; }
.art .icon-disc:nth-of-type(2) { top: 4.89%; left: 6.72%; }
.art .icon-disc:nth-of-type(3) { top: -7.54%; left: 39.92%; }
.art .icon-disc:nth-of-type(4) { top: 4.89%; left: 73.12%; }
.art .icon-disc:nth-of-type(5) { top: 39.92%; left: 86.76%; }

.checklist,
.routine__list {
  display: grid;
  gap: 15px;
  padding-left: 1px;
  list-style: none;
  font-size: clamp(17px, 2.15vw, 22px);
}

.checklist { margin-top: 17px; }
.checklist li, .routine__list li { display: flex; align-items: center; gap: 10px; min-height: 40px; }

.checklist li::before,
.routine__list li::before {
  content: "";
  flex: 0 0 40px;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold) url("../src/images/checkmark.svg") center no-repeat;
}

.checklist--reasons li::before { background-image: url("../src/images/attention.svg"); }
@media (min-width: 761px) {
  .step--1 .checklist li:nth-child(-n+2) { max-width: 472px; min-height: 48px; line-height: 1.1; }
  .step--1 .checklist li:nth-child(2) { max-width: 455px; }
}
.step--2 .checklist li:nth-child(2) { font-weight: 500; }

.products {
  position: relative;
  display: grid;
  grid-template-columns: 27.87% 1fr;
  column-gap: 27.46%;
  min-height: 472px;
  align-items: end;
  margin-top: -32px;
  padding-bottom: 13px;
}

.products--special { margin-top: var(--gap); }
.product { min-width: 0; }
.product--cream { text-align: right; }
.product--cream .product__copy { justify-items: end; }
.product__copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; position: relative; }
.product__brand { color: #de161d; font-size: 22px; font-weight: 500; }
.product__copy h4 { min-height: 36px; display: grid; align-items: center; }
.product--cream h4 img { justify-self: end; }

.product__description {
  max-width: 360px;
  min-height: 52px;
  margin-block: 10px;
  font-size: 24px;
  line-height: 1.1;
}

.product__photo { position: absolute; max-width: none; }
.product--cream .product__photo { left: 27.87%; top: 28.18%; width: 15.58%; aspect-ratio: 155 / 339; z-index: 1; }
.product--emulsion .product__photo { left: 35.61%; top: .89%; width: 21.39%; aspect-ratio: 213 / 465; }
.products--special .product--cream .product__photo { left: 28.5%; top: 29.7%; width: 14.33%; aspect-ratio: 142 / 332; }
.products--special .product--emulsion .product__photo { left: 35.8%; top: 1.26%; width: 21.83%; aspect-ratio: 217 / 463; }
.products + .step__full { margin-top: 37px; }
.products--special + .callout { margin-top: 15px; }

.shop-button {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 10px;
  background: linear-gradient(90deg, #2870e4, #0069ff);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.shop-button:hover { background: #0061e8; }
.shop-button--large { padding: 15px 20px; font-size: inherit; }

.special-group__reviews { display: grid; gap: var(--gap); margin-top: 50px; }
.special-group .accordion__body > p:nth-child(2) { max-width: 975px; }
.special-group:has(.accordion[open]) .accordion { border-bottom: 0; }
.special-group:has(.accordion[open]) .special-group__reviews {
  margin-top: 0;
  padding-bottom: var(--gap);
  border-bottom: 1px solid var(--gold-line);
}

.routine { position: relative; }
.routine__photo { position: absolute; width: 46%; top: -53px; right: 0; aspect-ratio: 458 / 519; }
.routine__list { position: relative; counter-reset: step; margin-top: var(--gap); }

.routine__list::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 19px;
  width: 4px;
  background: var(--red);
}

.routine__list li::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--red);
  color: var(--paper);
}

.shop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 15px;
  font-size: clamp(21px, 2.7vw, 28px);
  font-weight: 500;
}

.conclusion > p:last-child a { font-weight: 500; }

.footer {
  width: calc(100% - 2 * var(--gutter));
  max-width: 857px;
  margin: 50px auto 0;
  padding-bottom: 50px;
  text-align: center;
}

.footer p {
  color: #c53f47;
  font-size: clamp(18px, 3vw, 33px);
  line-height: 1.05;
  letter-spacing: -.07em;
}

.footer__socials { display: flex; justify-content: center; gap: 10px; margin-top: var(--gap); }

@media (min-width: 1200px) {
  .products--special .product--cream h4 { width: 351px; }
  .products--special .product--emulsion h4 { width: 454px; max-width: 42vw; min-height: 56px; }
  .products--special .product--emulsion :is(h4, p) { margin-left: 7px; }
  .routine__photo { right: -5.7%; }
}

@media (max-width: 1199px) {
  .routine__list { max-width: 61%; }
}

@media (max-width: 1099px) {
  .article .copy-wide { width: auto; }
  .products { margin-top: var(--gap); min-height: clamp(250px, 43vw, 440px); padding-bottom: 0; }
  .product__description { font-size: 1em; }
  .art--dryness { right: 2%; }
}

@media (max-width: 960px) {
  .symptoms { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 761px) and (max-width: 960px) {
  .step > .step__narrow { max-width: 50%; }
  .step > .step__wide { max-width: 80%; }
  .step--1 .checklist li:not(:last-child), .step--2 .checklist { max-width: 52%; }
  .reasons .checklist li:not(:last-child) { max-width: 53%; }
}

@media (max-width: 760px) {
  .hero__background { inset: 0 0 -180px; }
  .hero__background img { width: 850px; }
  .hero__background .hero__ring { width: 720px; top: -30px; }
  .hero__top img { width: 44px; }
  .hero__ad { font-size: 12px; }
  .hero__brand { width: 182px; }
  .hero__brand img:first-child { width: 65px; }
  .hero__wordmark { top: 30px; }
  .article { margin-top: 30px; }
  .review { padding: 14px; }
  .review__author { font-size: 17px; }
  .review__author small { font-size: 14px; }
  .review__author img { flex-basis: 52px; width: 52px; }
  .accordion { margin-top: 30px; }
  .accordion summary { min-height: 68px; }
  .accordion summary img { flex-basis: 34px; width: 34px; }
  .highlight { padding-left: 14px; }
  .callout { padding: 18px; }
  .symptoms .icon-disc { width: 58px; border-width: 7px; }
  .icon-disc img { max-width: 64%; }
  .ingredients { grid-template-columns: 1fr; gap: 20px; }
  .ingredients img { max-height: 260px; }
  .step__number { width: 60px; }
  .step + .step { margin-top: 34px; padding-top: 34px; }
  .article .art {
    position: relative;
    top: auto;
    right: auto;
    width: min(84%, 350px);
    margin-top: 20px;
    margin-inline: auto;
  }
  .reasons .art { margin-bottom: 12px; }
  .reasons .checklist li,
  .step--1 .checklist li,
  .step--2 .checklist,
  .step > .step__narrow,
  .step > .step__wide,
  .step--4 > .highlight { max-width: none; }
  .checklist li::before, .routine__list li::before { flex-basis: 34px; width: 34px; }
  .routine__list::before { left: 16px; }
  .products { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .product { display: flex; flex-direction: column; gap: 10px; text-align: center; }
  .products .product .product__photo { position: static; align-self: center; width: 100%; height: 200px; object-fit: contain; }
  .product .product__copy { justify-items: center; flex: 1; grid-template-rows: auto minmax(36px, auto) 1fr auto; }
  .product__copy h4 img { max-width: 100%; }
  .product__brand { font-size: 17px; }
  .product__description { min-height: 0; }
  .shop-button { padding-inline: 10px; font-size: 15px; }
  .shop-button--large { font-size: 21px; padding-inline: 20px; }
  .special-group__reviews { margin-top: 30px; }
  .routine__photo { position: static; width: min(70%, 340px); margin: 15px auto 0; }
  .routine__list { max-width: none; }
  .footer { padding-bottom: 30px; }
}

@media (max-width: 480px) {
  .symptoms { grid-template-columns: 1fr; }
}
