:root {
  --header-bg: #fff;
  --bg: #f2f2f7;
  --tile-bg: #fff;
  --footer-bg: #e5e5ea;

  --header-text: #000;
  --footer-text-copy: #00000066;
  --footer-text-link: #00000099;

  --chip-bg: #f5e62f;
  --chip-secondary-bg: #945DD2;

  --btn-bg: #642aa6;
  --btn-txt: #fff;

  --link: #6363DA;
  --subheader: #B3ABAB;
  --note: #7F7472;
  --tile-subheader: #676767;
  --placeholder: #C8C8C8;

  --error: #ff0000;
  --active: #69B42E;
  --inactive: #FF383C;

  --modal-backdrop: #0000004D;

  --product-box-shadow: 0px 4px 4px 0 #0000000D, 0 16px 32px 0 #0000001A;
}
* {
  padding: 0;
  margin: 0;
  font: inherit;
  outline: none;
  text-decoration: none;
  font-family: 'Inter', Verdana, Geneva, Tahoma, sans-serif;
  box-sizing: border-box;
}
html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
a {
  color: var(--link);
  text-decoration: none;
}
input::placeholder,
input::-moz-placeholder,
input::-webkit-input-placeholder {
  color: var(--placeholder);
}

section {
  max-width: 1280px;
  padding: 0 40px;
  margin: 0 auto;
}
@media screen and (max-width: 1024px) {
  section {
    padding: 0 16px;
  }
}

header {
  background-color: var(--header-bg);
}
header section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header button,
header p {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 34px;
  color: var(--header-text);
  line-height: 0;
}
.header__logo {
  height: 64px;
  padding: 7px 0;
}
@media screen and (max-width: 480px) {
  header {
    padding: 16px 0;
    background-color: transparent;
  }
  .header__logo {
    height: 32px;
    padding: 0;
  }
  header button,
  header p {
    font-size: 14px;
    line-height: 16px;
  }
}

footer {
  background-color: var(--footer-bg);
  font-size: 12px;
  padding: 22px 0;
  line-height: 16px;
}
footer section {
  display: flex;
  justify-content: space-between;
}
footer nav {
  display: flex;
  justify-content: space-between;
  flex: 0 0 50%;
}
footer p {
  color: var(--footer-text-copy);
}
footer nav a {
  color: var(--footer-text-link);
  text-decoration: none;
}
@media screen and (max-width: 1024px) {
  footer {
    padding: 16px 0;
  }
  footer section {
    flex-direction: column;
    gap: 8px;
  }
  footer p {
    padding: 0 0 16px;
  }
  footer nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
  }
}

main {
  flex: 1 1 auto;
}

.tile {
  padding: 24px 24px 32px;
  border-radius: 16px;
  box-shadow: var(--product-box-shadow);
  background-color: var(--tile-bg);
}

dialog.modal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 24px;
  background: transparent;
  border: none;
  width: 560px;
}
dialog.modal::backdrop {
  background: var(--modal-backdrop);
}
.modal .tile {
  padding: 32px;
  border-radius: 24px;
}

.form form {
  padding: 58px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 58px;
}
.form h2 {
  font-size: 48px;
  font-weight: 600;
  padding-bottom: 16px;
}
.form h5 {
  font-size: 24px;
  font-weight: 500;
  color: var(--subheader);
}
.form input {
  padding: 16px;
  font-size: 36px;
  line-height: 36px;
  font-weight: 500;
  text-align: center;
  background: var(--bg);
  border: 2px solid var(--bg);
  border-radius: 12px;
  width: 100%;
}
.form fieldset {
  border: none;
}
.form fieldset span {
  color: var(--error);
  display: block;
  padding-top: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}
.form input:has(~ span) {
  border-color: var(--error);
}
.form button {
  padding: 18px 16px;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  background: var(--btn-bg);
  color: var(--btn-txt);
  border: none;
  border-radius: 12px;
}
.form p {
  font-size: 16px;
  color: var(--note);
  text-align: center;
}
@media screen and (max-width: 600px) {
  .modal .tile {
    padding: 16px;
  }
  .form form {
    padding: 30px 0 16px;
    gap: 30px;
  }
  .form h2 {
    font-size: 32px;
  }
  .form h5 {
    font-size: 20px;
  }
  .form input {
    padding: 16px;
    font-size: 16px;
    line-height: 28px;
  }
}
@media screen and (max-width: 480px) {
  .form h2 {
    font-size: 24px;
  }
  .form h5 {
    font-size: 20px;
  }
  .form p {
    font-size: 12px;
  }
  .form fieldset span {
    padding-top: 4px;
    font-size: 12px;
  }
}

.products {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 48px 0;
}
.product {
  width: calc((100% - 50px) / 3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.product__chips {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 24px;
}
.product__chips:has(span ~ span) {
  justify-content: space-between;
}
.product__chip {
  background-color: var(--chip-bg);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 16px;
}
.product__chip_soon {
  background-color: var(--chip-secondary-bg);
  color: var(--btn-txt);
}
.product__pic img {
  width: 100%;
}
.product__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 24px;
}
.product__info h3 {
  font-size: 24px;
  font-weight: 600;
}
.product__info h5 {
  font-size: 20px;
  color: var(--tile-subheader);
}
.product__info span {
  font-size: 24px;
  font-weight: 600;
}
.product__info ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 20px;
  list-style: none;
}
.product__info ul b {
  font-weight: 700;
}
.product__cta {
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  background: var(--btn-bg);
  color: var(--btn-txt);
  border: none;
  border-radius: 14px;
  width: 100%;
  text-align: center;
}
.product__cta[disabled] {
  opacity: 0.5;
  cursor: default;
}
@media screen and (max-width: 1024px) {
  .product {
    width: calc((100% - 25px) / 2);
  }
  .product__chips {
    padding: 0;
  }
}
@media screen and (max-width: 600px) {
  .products {
    padding: 24px 0 48px;
  }
  .product {
    width: 100%;
  }
  .product__info {
    padding: 0;
  }
}

section:has(.text) {
  height: 100%;
}
.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  justify-content: space-evenly;
}
.text > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4vh;
}
.text__narrow > div {
  gap: 2vh;
}
.text h1 {
  font-size: 64px;
  font-weight: 700;
}
.text h2 {
  font-size: 48px;
  font-weight: 500;
}
.text h3 {
  font-size: 40px;
  font-weight: 500;
}
.text h4 {
  font-size: 36px;
  font-weight: 500;
}
.text h5 {
  font-size: 32px;
  font-weight: 500;
}
.text p {
  font-size: 24px;
}
.text__light h3,
.text__light h4,
.text__light h5,
.text__light p {
  font-weight: 300;
}
.text a {
  padding: 24px 80px;
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  background: var(--btn-bg);
  color: var(--btn-txt);
  border: none;
  border-radius: 16px;
  display: inline-block;
}
.error__code {
  font-size: 128px;
  font-weight: 900;
  line-height: 1;
}
@media screen and (max-width: 1024px) {
  .text h1 {
    font-size: 6vw;
  }
  .text h2 {
    font-size: 4.6vw;
  }
  .text h3 {
    font-size: 4vw;
  }
  .text h4 {
    font-size: 3.5vw;
  }
  .text h5 {
    font-size: 3vw;
  }
  .text p {
    font-size: 3vw;
  }
  .text a {
    font-size: 2.4vw;
  }
  .error__code {
    font-size: 12vw;
  }
}
@media screen and (max-width: 600px) {
  .text h1 {
    font-size: 8vw;
  }
  .text h2 {
    font-size: 6.2vw;
  }
  .text h3 {
    font-size: 5.4vw;
  }
  .text h4 {
    font-size: 4.4vw;
  }
  .text h5 {
    font-size: 4.2vw;
  }
  .text p {
    font-size: 3.6vw;
  }
  .text a {
    font-size: 4vw;
  }
  .error__code {
    font-size: 16vw;
  }
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 128px;
  padding: 128px 0;
}
.detail__section {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.detail__section h2 {
  font-size: 48px;
  text-align: center;
  font-weight: 600;
}
.detail__section ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.detail__qa {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail__cancel {
  font-size: 20px;
  text-decoration: underline;
  color: var(--note);
  text-align: center;
}
.detail__download {
  color: var(--btn-bg);
  font-weight: 500;
  font-size: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.detail__feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.detail__feedback p {
  font-weight: 500;
  font-size: 24px;
}
.detail__feedback a:has(.detail__mail_icon) {
  line-height: 0;
}
.detail__mail_icon {
  display: inline-block;
  position: relative;
  height: 22px;
  width: 28px;
  background: var(--btn-bg);
  border-radius: 4px;
}
.detail__mail_icon:before {
  content: '';
  position: absolute;
  background: #fff;
  width: 13px;
  height: 2px;
  transform: rotate(-35deg);
  top: 7px;
  right: 2.5px;
}
.detail__mail_icon:after {
  content: '';
  position: absolute;
  background: #fff;
  width: 13px;
  height: 2px;
  transform: rotate(35deg);
  top: 7px;
  left: 2.5px;
}
.detail__qa,
.detail__instruction {
  width: 960px;
  margin: 0 auto;
}
.detail__qa .tile,
.detail__instruction .tile {
  padding: 16px 32px;
}
.detail__qa summary {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}
.detail__qa details[open] summary img {
  transform: rotate(180deg);
}
.detail__qa details div {
  padding: 16px 0 0;
  font-size: 16px;
}
.detail__instruction {
  list-style: none;
  counter-reset: instruction;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 20px;
}
.detail__instruction li {
  display: flex;
  align-items: center;
}
.detail__instruction li:before {
  counter-increment: instruction;
  content: counter(instruction);
  display: inline-block;
  vertical-align: middle;
  margin-right: 24px;
}
.detail__subscription {
  text-align: left;
  gap: 32px;
  display: flex;
  flex-direction: column;
  padding: 32px 48px;
  width: 960px;
  margin: 0 auto;
}
.detail__subscription h3 {
  font-size: 36px;
  font-weight: 600;
}
.detail__subscription span {
  font-size: 24px;
  font-weight: 500;
}
.detail__subscription span:before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 24px;
  background-color: var(--inactive);
  margin-right: 16px;
  vertical-align: middle;
}
.detail__subscription--active span:before {
  background-color: var(--active);
}
.detail__subscription a {
  font-size: 24px;
  font-weight: 500;
  padding: 32px 0;
  width: 100%;
  display: block;
  background-color: var(--btn-bg);
  color: var(--btn-txt);
  text-align: center;
  border-radius: 8px;
}
.detail__subscription p {
  font-size: 24px;
}
.detail__subscription p:last-child {
  text-align: center;
}
.detail__subscription p b {
  font-weight: 600;
}
.detail__subscription p img {
  width: 24px;
  height: 24px;
  margin-right: 16px;
  vertical-align: middle;
  object-fit: contain;
}
.detail__advantages {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.detail__advantages > div {
  width: calc((100% - 32px) / 2);
  gap: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.detail__advantages > div:nth-child(odd):last-child {
  width: 100%;
}
.detail__advantages h4 {
  font-size: 24px;
  font-weight: 500;
}
.detail__advantages p {
  font-size: 16px;
}
.detail__card {
  position: relative;
  padding: 48px 64px;
}
.detail__card h1 {
  font-size: 48px;
  font-weight: 600;
  padding-bottom: 16px;
}
.detail__card h5 {
  font-size: 32px;
  padding-bottom: 32px;
}
.detail__card p {
  font-size: 24px;
  padding-bottom: 32px;
}
.detail__card a {
  padding: 32px 40px;
  font-size: 24px;
  font-weight: 500;
  color: var(--btn-txt);
  background-color: var(--btn-bg);
  border-radius: 16px;
  display: inline-block;
}
.detail__card--litres a {
  background-color: #FF5500;
}
.detail__card img {
  position: absolute;
  right: 64px;
  top: 48px;
  bottom: 48px;
  height: calc(100% - 96px);
  object-fit: contain;
  object-position: right center;
}
@media screen and (max-width: 1024px) {
  .detail {
    gap: 64px;
    padding: 64px 0;
  }
  .detail__section {
    gap: 32px;
  }
  .detail__card {
    padding: 24px 32px;
  }
  .detail__card img {
    right: 32px;
    top: 24px;
    bottom: 24px;
    height: calc(100% - 48px);
  }
  .detail__card h1 {
    font-size: 4.7vw;
    padding-bottom: 1.56vw;
  }
  .detail__card h5 {
    font-size: 3.12vw;
    padding-bottom: 3.12vw;
  }
  .detail__card p {
    font-size: 2.34vw;
    padding-bottom: 1.56vw;
  }
  .detail__card a {
    padding: 3.12vw 3.86vw;
    font-size: 2.34vw;
  }
  .detail__section h2 {
    font-size: 4.7vw;
  }
  .detail__advantages h4 {
    font-size: 2.34vw;
  }
  .detail__advantages p {
    font-size: 1.56vw;
  }
  .detail__advantages {
    gap: 24px;
  }
  .detail__subscription {
    gap: 16px;
    padding: 16px 24px;
    width: 100%;
  }
  .detail__subscription h3 {
    font-size: 3.56vw;
  }
  .detail__subscription span,
  .detail__subscription p,
  .detail__subscription a {
    font-size: 2.34vw;
  }
  .detail__subscription a {
    padding: 3.12vw 0;
  }
  .detail__qa,
  .detail__instruction {
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .detail {
    gap: 48px;
    padding: 32px 0;
  }
  .detail__section {
    gap: 24px;
  }
  .detail__section h2 {
    font-size: 24px;
  }
  .detail__card {
    padding: 16px;
  }
  .detail__card img {
    right: 8px;
    top: auto;
    bottom: 16px;
    height: calc(100% - 48px);
  }
  .detail__card h5 {
    font-size: 12px;
  }
  .detail__card p {
    font-size: 12px;
  }
  .detail__card a {
    font-size: 12px;
    border-radius: 8px;
  }
  .detail__advantages > div {
    width: 100%;
    padding: 12px 12px 16px;
    gap: 8px;
  }
  .detail__advantages h4 {
    font-size: 16px;
  }
  .detail__advantages p {
    font-size: 12px;
  }
  .detail__subscription {
    gap: 12px;
    padding: 16px;
  }
  .detail__subscription span:before,
  .detail__subscription p img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }
  .detail__subscription h3 {
    font-size: 4.56vw;
  }
  .detail__subscription span,
  .detail__subscription p,
  .detail__subscription a {
    font-size: 3.34vw;
  }
  .detail__instruction li:before {
    margin-right: 16px;
  }
  .detail__qa,
  .detail__instruction {
    gap: 16px;
    font-size: 16px;
  }
  .detail__qa summary {
    font-size: 16px;
  }
  .detail__qa summary img {
    height: 20px;
  }
  .detail__qa details div {
    padding: 8px 0 0;
    font-size: 12px;
  }
  .detail__qa .tile,
  .detail__instruction .tile {
    padding: 16px;
  }
  .detail__download,
  .detail__feedback p {
    font-size: 4.2vw;
  }
}
