/* ============ Токены ============ */
:root {
  --blush: #fff3f5;
  --pink: #f87292;        /* цвет логотипа */
  --pink-deep: #de4870;
  --pink-soft: #ffd9e1;
  --plum: #3b1f2c;
  --plum-soft: #6b4a58;
  --green: #ddebcf;
  --green-deep: #4f6b3a;
  --white: #ffffff;
  --line: #f2d3db;
  --display: "Unbounded", "Arial Black", Arial, sans-serif;
  --text: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--plum);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 20px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.head { max-width: 640px; margin-bottom: 44px; }
.head p { margin-top: 16px; color: var(--plum-soft); font-size: 18px; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: var(--pink-deep); }
.btn--line { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn--line:hover { background: var(--plum); color: #fff; }
.btn--small { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--full { width: 100%; }
.btn:disabled { background: #e9b8c4; cursor: not-allowed; }
:focus-visible { outline: 3px solid rgba(222, 72, 112, .45); outline-offset: 3px; }

/* ============ Шапка ============ */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 243, 245, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.header__logo img { height: 54px; width: auto; }
.header__nav { display: flex; gap: 30px; }
.header__nav a { color: var(--plum); text-decoration: none; font-weight: 500; font-size: 15px; }
.header__nav a:hover { color: var(--pink-deep); }

/* ============ Первый экран ============ */
.hero { padding: 36px 0 110px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero__kicker { font-weight: 600; color: var(--pink-deep); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 58px); }
.hero__lead { font-size: 19px; color: var(--plum-soft); max-width: 520px; margin: 26px 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 44px; }
.hero__facts li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.3; font-weight: 500; }
.hero__facts svg {
  width: 48px; height: 48px; padding: 12px; flex: none;
  background: var(--white); border-radius: 50%;
  fill: none; stroke: var(--pink-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.hero__visual { position: relative; justify-self: center; width: min(460px, 100%); }
.hero__photo { position: relative; margin: 0; isolation: isolate; }
/* розовый круг за фото; нижняя часть фото обрезается по этому же кругу */
.hero__photo::before {
  content: ""; position: absolute; z-index: -1;
  top: 27.55%; left: 50%; transform: translateX(-50%);
  width: 102.96%; aspect-ratio: 1; border-radius: 50%;
  background: var(--pink);
}
.hero__photo img {
  width: 78%; height: auto; margin-inline: auto;
  -webkit-mask-image: linear-gradient(#000, #000), radial-gradient(circle closest-side, #000 99.5%, transparent 100%);
  -webkit-mask-size: 100% 64%, 132% 72.9%;
  -webkit-mask-position: 0 0, 50% 101.7%;
  -webkit-mask-repeat: no-repeat;
  mask-image: linear-gradient(#000, #000), radial-gradient(circle closest-side, #000 99.5%, transparent 100%);
  mask-size: 100% 64%, 132% 72.9%;
  mask-position: 0 0, 50% 101.7%;
  mask-repeat: no-repeat;
}
.ai-badge {
  position: absolute; right: 0; top: 0;
  color: #8f8389; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.sticker {
  position: absolute; left: -38px; bottom: 70px;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--plum); color: #fff;
  transform: rotate(-12deg);
  font: 600 13px/1.15 var(--display);
  box-shadow: 0 0 0 6px var(--blush);
}
.sticker b { display: inline-block; font-size: 30px; color: var(--pink); margin: 2px 0; }

/* ============ Лента ============ */
.ribbon-wrap { overflow: hidden; padding: 40px 0; margin: -80px 0 -40px; position: relative; z-index: 2; }
.ribbon {
  position: relative; z-index: 2;
  background: var(--pink); color: #fff;
  transform: rotate(-2deg);
  margin: 0 -40px;
  padding: 20px 0;
  overflow: hidden;
}
.ribbon__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: ribbon 45s linear infinite;
}
.ribbon__track span { font: 600 22px/1 var(--display); white-space: nowrap; }
.ribbon__track i {
  width: 16px; height: 16px; flex: none; background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ============ Узнаёте себя ============ */
.pains { padding: 130px 0 110px; }
.pains__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.pains__list li {
  position: relative; padding: 24px 0 24px 56px;
  border-bottom: 1.5px solid var(--line);
  font-size: 21px; line-height: 1.45; font-weight: 500;
}
.pains__list li:first-child { padding-top: 0; }
.pains__list li::before {
  content: ""; position: absolute; left: 0; top: 26px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.pains__list li:first-child::before { top: 2px; }

/* ============ Что внутри ============ */
.inside { padding: 110px 0; background: var(--white); border-radius: 48px 48px 0 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 230px; padding: 28px;
  border-radius: 28px; background: var(--blush);
}
.tile svg {
  width: 52px; height: 52px; padding: 13px; margin-bottom: auto;
  border-radius: 50%; background: var(--white);
  fill: none; stroke: var(--pink-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tile p { color: var(--plum-soft); font-size: 16px; line-height: 1.5; }
.tile--wide { grid-column: span 2; }
.bento .tile:nth-child(6) { grid-column: span 2; }
.tile--pink { background: var(--pink); color: #fff; }
.tile--pink h3 { font-size: clamp(24px, 2.6vw, 34px); }
.tile--pink p { color: #fff; font-size: 18px; max-width: 360px; }
.tile--pink svg { background: rgba(255,255,255,.22); stroke: #fff; }
.tile--plum { background: var(--plum); color: #fff; }
.tile--plum p { color: rgba(255,255,255,.75); }
.tile--plum svg { background: rgba(255,255,255,.1); stroke: var(--pink); }
.tile--green { background: var(--green); }
.tile--green svg { stroke: var(--green-deep); }

/* ============ Пример рецепта ============ */
.recipe { padding: 120px 0; }
.recipe__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.recipe__card {
  justify-self: center; width: min(420px, 100%);
  background: var(--white); border-radius: 28px; padding: 32px;
  border: 1.5px solid var(--line);
  box-shadow: 18px 22px 0 var(--pink-soft);
  transform: rotate(-2.5deg);
}
.recipe__tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--green); color: var(--green-deep); font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.recipe__card h3 { font-size: 22px; line-height: 1.2; }
.recipe__meta { display: flex; gap: 22px; margin: 20px 0 14px; font-size: 14px; color: var(--plum-soft); }
.recipe__meta b { display: block; font: 600 26px/1.1 var(--display); color: var(--pink-deep); }
.recipe__kbju { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe__kbju span { padding: 5px 12px; border-radius: 999px; background: var(--blush); font-size: 13px; font-weight: 600; }
.recipe__h { margin: 22px 0 8px; font-weight: 700; font-size: 15px; }
.recipe__list li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.recipe__why { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--green); color: var(--green-deep); font-size: 14px; font-weight: 500; }
.recipe__text > p { margin: 18px 0 30px; color: var(--plum-soft); font-size: 18px; max-width: 520px; }
.checks li { position: relative; padding: 10px 0 10px 40px; font-size: 18px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23de4870' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ============ Об авторе ============ */
.about { padding: 120px 0; background: var(--plum); color: #fff; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__text h2 { margin-bottom: 26px; }
.about__text p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 540px; }
.about__text p + p { margin-top: 16px; }
.about__quote { margin: 0; }
.about__quote blockquote { margin: 0; font: 500 clamp(22px, 2.4vw, 30px)/1.35 var(--display); letter-spacing: -0.01em; }
.about__quote blockquote::before { content: "“"; display: block; font-size: 90px; line-height: .7; color: var(--pink); margin-bottom: 10px; }
.about__sign { width: 220px; height: auto; margin-top: 28px; transform: rotate(-5deg); }

/* ============ Шаги ============ */
.steps-section { padding: 120px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; left: 32px; right: calc(25% - 40px); border-top: 2px dashed var(--pink); }
.steps li { position: relative; counter-increment: step; padding-top: 86px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink); color: #fff; font: 600 24px/1 var(--display);
  box-shadow: 0 0 0 8px var(--blush);
}
.steps b { display: block; font: 600 19px/1.2 var(--display); margin-bottom: 8px; }
.steps span { color: var(--plum-soft); font-size: 16px; }

/* ============ Заказ ============ */
.order { padding: 120px 0; background: var(--white); border-radius: 48px; }
.order__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.cover { display: grid; place-items: center; padding: 30px 0; }
.cover__book {
  width: min(330px, 80%); aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 34px 30px;
  border-radius: 8px 20px 20px 8px;
  background: var(--pink);
  color: #fff;
  transform: rotate(-6deg);
  box-shadow: inset 14px 0 0 rgba(0,0,0,.08), inset 16px 0 0 rgba(255,255,255,.25), 24px 28px 0 var(--plum);
}
.cover__book img { width: 170px; height: auto; }
.cover__title { font: 700 clamp(28px, 3vw, 38px)/1.05 var(--display); letter-spacing: -0.02em; }
.cover__sub { font-size: 16px; font-weight: 500; }
.order__card { background: var(--blush); border-radius: 36px; padding: clamp(28px, 4vw, 48px); }
.order__desc { margin: 12px 0 22px; color: var(--plum-soft); }
.order__info div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1.5px solid var(--line); font-size: 15px; }
.order__info dt { font-weight: 600; flex: none; }
.order__info dd { margin: 0; color: var(--plum-soft); text-align: right; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-top: 28px; }
.price__main { font: 700 54px/1 var(--display); letter-spacing: -0.03em; }
.price__alt { font: 600 22px/1 var(--display); color: var(--pink-deep); }
.price__old { font-size: 17px; color: var(--plum-soft); text-decoration: line-through; }
.order__small { font-size: 14px; color: var(--plum-soft); margin-top: 8px; }
.order__secure { text-align: center; margin-top: 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 20px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--pink-deep); flex: none; }
.pay-note { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--white); font-size: 14px; }

/* ============ Вопросы ============ */
.faq { padding: 120px 0; }
.faq__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: start; }
.faq details { background: var(--white); border-radius: 22px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 70px 22px 26px; font-weight: 600; font-size: 18px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blush); color: var(--pink-deep); font-size: 22px; font-weight: 500;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--plum-soft); font-size: 16px; }

/* ============ Подвал ============ */
.footer { background: var(--plum); color: rgba(255,255,255,.75); padding: 72px 0 36px; font-size: 14px; line-height: 1.7; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 40px; }
.footer__logo { width: 170px; height: auto; margin-bottom: 14px; }
.footer__muted { margin-top: 10px; color: rgba(255,255,255,.55); }
.footer__h { color: #fff; font: 600 16px/1.3 var(--display); margin-bottom: 12px; }
.footer__copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 13px; }

/* ============ Юридические страницы ============ */
.doc { padding: 48px 0 100px; }
.doc__inner { max-width: 800px; background: var(--white); border-radius: 36px; padding: clamp(28px, 5vw, 64px); }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.doc .doc__date { color: var(--plum-soft); margin-bottom: 36px; }
.doc h2 { font-size: 22px; margin: 38px 0 14px; }
.doc p, .doc li { font-size: 16px; color: #4e3540; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc .requisites { background: var(--blush); border-radius: 20px; padding: 22px 24px; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }

/* ============ Адаптив ============ */
@media (max-width: 1000px) {
  .header__nav { display: none; }
  .hero__grid, .pains__grid, .recipe__grid, .about__grid, .order__grid, .faq__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { width: min(420px, 88%); }
  .bento { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header__row { height: 66px; }
  .header__logo img { height: 38px; }
  .hero { padding: 20px 0 90px; }
  .hero__actions .btn { width: 100%; }
  .sticker { left: -16px; bottom: 40px; width: 104px; height: 104px; font-size: 11px; }
  .sticker b { font-size: 24px; }
  .ribbon__track span { font-size: 17px; }
  .pains, .inside, .recipe, .about, .steps-section, .order, .faq { padding: 80px 0; }
  .pains__list li { font-size: 18px; padding-left: 48px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide, .bento .tile:nth-child(6) { grid-column: auto; }
  .tile { min-height: 0; }
  .tile svg { margin-bottom: 18px; }
  .steps { grid-template-columns: 1fr; }
  .recipe__card { transform: none; box-shadow: 10px 12px 0 var(--pink-soft); }
  .order__info div { flex-direction: column; gap: 2px; }
  .order__info dd { text-align: left; }
  .price__main { font-size: 44px; }
  .inside, .order { border-radius: 32px 32px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon__track { animation: none; }
}
