/* ============================================================
   Salad Lab — Kelin Academy
   Pixel-faithful rebuild of the (mobile) original
   ============================================================ */

:root {
  --bg: #fffdf9;
  --ink: #1c2812;
  --text: #4f5748;
  --muted: #7b7674;
  --olive: #5d6a28;
  --btn: #5b6a39;
  --card: #f7f6f1;
  --red: #ff583c;
  --pale: #f9ffed;
  --line: #ebe5db;
  --wrap: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
img[src*=".svg"] { user-select: none; }

/* all sections capped & centered — desktop shows the same
   (correct) layout as mobile, exactly like the original design */
body > header,
body > section {
  max-width: var(--wrap);
  margin-inline: auto;
  position: relative;
  overflow-x: clip;
}

.t b, b { font-weight: 500; color: var(--olive); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero__plate, .hero__hand, .dressing__cta-ring { animation: none !important; }
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border: none;
}
.btn--olive {
  width: 232px; height: 55px;
  background: var(--btn);
  color: #fff;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: background .2s ease;
}
.btn--olive:hover { background: #4c5a2e; }
.btn--pale {
  width: 193px; height: 63px;
  background: var(--pale);
  color: var(--ink);
  letter-spacing: 2px;
  border-radius: 50px;
  transition: background .2s ease;
}
.btn--pale:hover { background: #eef7db; }

/* ============ HERO ============ */
.hero {
  overflow: hidden;
  padding-top: 17px;
}
.hero__petals {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 117.4%;
  margin-left: calc(-58.7% + 11px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: 185px;
  align-self: flex-start;
  margin-left: 24px;
}
.hero__badge { width: 240px; margin-top: 37px; }
.hero__title { width: 252px; margin-top: 27px; }
.hero__subtitle { width: 252px; margin-top: 21px; }
.hero__cta { margin-top: 19px; }

.hero__plate-wrap {
  margin-top: 7px;
  width: 131%;
  max-width: none;
}
.hero__plate {
  width: 100%;
  animation: hero-spin 40s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes hero-spin {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.hero__features {
  position: relative;
  z-index: 2;
  width: 103.8%;
  margin-top: -52px;
}
.hero__foryou { width: 191px; margin-top: 26px; }
.hero__dots-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 10px;
}
.hero__dots { width: 25px; }
.hero__hand {
  width: 33px;
  animation: hand-bob 6s ease-in-out infinite;
}
@keyframes hand-bob {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(15px); }
}

/* ============ CARDS STRIP ============ */
.cards__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 18px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.cards__track.dragging { cursor: grabbing; }
.cards__track::-webkit-scrollbar { display: none; }
.cards__card {
  width: 357px;
  flex: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============ СЕРДЦЕ КУРСА ============ */
.heart {
  padding-top: 40px;
  text-align: center;
}
.heart__title { width: 340px; margin: 0 auto; }
.heart__lead {
  width: 332px;
  margin: 5px auto 0;
  color: var(--text);
}
.heart__layers {
  width: 85.9%;
  margin: -20px auto 0;
  position: relative;
  z-index: 1;
}
.heart__card {
  position: relative;
  z-index: 2;
  margin: -35px 33px 0;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 20px;
  text-align: center;
}
.heart__note {
  width: 278px;
  margin: 10px auto 0;
  padding-bottom: 14px;
}

/* ============ НА ПРАКТИКЕ ============ */
.practice {
  padding-top: 80px;
  text-align: center;
}
.practice__fig {
  position: absolute;
  top: 0;
  right: -5.4%;
  width: 25.1%;
}
.practice__raspberry {
  position: absolute;
  top: 125px;
  left: 1%;
  width: 16.7%;
}
.practice__title { width: 253px; margin: 0 auto; }
.practice__divider {
  width: 168px;
  height: 1px;
  background: #d9d3c3;
  margin: 15px auto 0;
}
.practice__lead {
  width: 269px;
  margin: 14px auto 0;
  padding-bottom: 21px;
}

/* ============ GALLERY ============ */
.gallery__viewport { position: relative; }
.gallery__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 17px 8% 0;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.gallery__track.dragging, .reviews__track.dragging { cursor: grabbing; }
.gallery__track::-webkit-scrollbar, .reviews__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  width: 84%;
  flex: none;
  border-radius: 24px;
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-drag: none;
}
.slider-arrow {
  position: absolute;
  top: 262px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 12px rgba(28, 40, 18, .14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background .2s ease;
}
.slider-arrow:hover { background: #fff; }
.slider-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider-arrow--prev { left: calc(8% - 22px); }
.slider-arrow--next { right: calc(8% - 22px); }
.gallery__counter {
  margin-top: 16px;
  text-align: center;
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
}
.gallery__progress {
  height: 2px;
  background: #e8e4d8;
  margin-top: 16px;
}
.gallery__progress-fill {
  height: 100%;
  width: 7.14%;
  background: var(--olive);
  transition: width .25s ease;
}
.gallery__note {
  width: 345px;
  margin: 28px auto 0;
  text-align: center;
}

/* ============ ЗАПРАВКИ ============ */
.dressing { margin-top: 30px; }
.dressing__pouring {
  position: absolute;
  top: 0;
  right: -17%;
  width: 62.6%;
}
.dressing__scissors {
  position: absolute;
  top: 170px;
  left: -18px;
  width: 77px;
}
.dressing__drops {
  position: absolute;
  top: 262px;
  left: 57.7%;
  width: 86px;
}
.dressing__plate {
  position: absolute;
  top: 73px;
  left: 2.6%;
  width: 113.8%;
  z-index: 0;
  pointer-events: none;
}
.dressing__title {
  position: relative;
  z-index: 1;
  width: 239px;
  margin: 118px 0 0 27px;
}
.dressing__text {
  position: relative;
  z-index: 1;
  width: 259px;
  margin: 10px 0 0 37px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.dressing__cta {
  position: relative;
  z-index: 1;
  display: block;
  width: 175px;
  height: 175px;
  margin: 98px 0 135px 39px;
}
.dressing__cta-ring {
  width: 175px;
  animation: ring-spin 30s linear infinite;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.dressing__cta-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.dressing__cta:hover .dressing__cta-circle { transform: translate(-50%, -50%) scale(1.04); }

/* ============ БАЗА ЗНАНИЙ ============ */
.base { padding-top: 21px; }
.base__watermelon {
  position: absolute;
  top: 32px;
  right: 13.8%;
  width: 30%;
}
.base__cherry {
  position: absolute;
  top: 113px;
  right: 15.1%;
  width: 11.5%;
}
.base__title { width: 252px; margin-left: 16px; }
.base__lead {
  width: 237px;
  margin: 4px 0 0 17px;
  color: var(--muted);
}
.base__card {
  margin: 28px 12px 0;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 26px 18px;
  position: relative;
}
.base__card--tools { margin-top: 27px; }
.base__card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.base__card-title {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--olive);
}
.base__card-icon { width: 23px; }
.base__card-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink);
  max-width: 241px;
}
.base__tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.base__tag {
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
  padding: 4px 10px 5px;
  font-size: 10px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.4;
}
.base__board {
  position: absolute;
  top: -33px;
  right: -21%;
  width: 59.5%;
  pointer-events: none;
}

/* ============ КАК ПРОХОДИТ ОБУЧЕНИЕ ============ */
.how { padding-top: 52px; }
.how__title { width: 252px; margin: 0 auto; }
.how__divider { width: 138px; margin: 20px auto 0; }
.how__list {
  list-style: none;
  margin: 12px 22px 0 52px;
}
.how__item { position: relative; }
.how__item + .how__item { margin-top: 26px; }
.how__item::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}
.how__item .t span { color: var(--ink); }
.how__phone {
  width: 179%;
  margin: -57px 0 0 -70%;
  max-width: none;
}
.how__access {
  position: relative;
  z-index: 2;
  width: 96%;
  margin: -48% auto 0;
  padding-bottom: 20px;
}

/* ============ СТОИМОСТЬ ============ */
.price { padding-top: 35px; }
.price__title { width: 260px; margin: 0 auto; }
.price__card {
  position: relative;
  margin: 11px 27px 0;
  background: var(--btn);
  border-radius: 17px;
  padding: 36px 28px 30px;
}
.price__strawberry {
  position: absolute;
  top: 26px;
  right: 20px;
  width: 82px;
}
.price__list { list-style: none; }
.price__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #fbfbfb;
  font-size: 18px;
  line-height: 1.35;
}
.price__list li + li { margin-top: 19px; }
.price__list img { width: 18px; flex: none; margin-top: 2px; }
.price__value {
  width: 250px;
  margin: 27px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px 14px;
  text-align: center;
}
.price__amount {
  font-size: 36px;
  line-height: 1.25;
  color: var(--red);
}
.price__alt {
  margin-top: 4px;
  font-size: 14px;
  color: #1d2812;
}
.price__btn { display: flex; margin: 18px auto 0; }

/* ============ TRAY ============ */
.tray {
  overflow: hidden;
  aspect-ratio: 390 / 400;
  margin-top: 0;
}
.tray::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 22%;
  background: linear-gradient(to bottom, var(--bg), transparent);
  z-index: 1;
  pointer-events: none;
}
.tray__img {
  width: 124.4%;
  margin-left: -12.1%;
  max-width: none;
}

/* ============ ОТЗЫВЫ ============ */
.reviews { padding-top: 25px; }
.reviews__title { width: 228px; margin: 0 auto; }
.reviews__viewport { position: relative; margin-top: 19px; }
.reviews__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 8%;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.reviews__slide {
  width: 84%;
  flex: none;
  border-radius: 20px;
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-drag: none;
}
.reviews .slider-arrow { top: 50%; }
.reviews__prev { left: calc(8% - 20px); }
.reviews__next { right: calc(8% - 20px); }
.reviews__viewport { padding-bottom: 40px; }

/* ============ FAQ ============ */
.faq { padding-top: 48px; }
.faq__title { width: 77px; margin: 0 auto 19px; }
.faq__item { background: var(--card); }
.faq__item + .faq__item { margin-top: 2px; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 25px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.faq__icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--olive);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease;
}
.faq__icon::before {
  width: 13px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 2px;
  height: 13px;
  transform: translate(-50%, -50%) scaleY(1);
}
.faq__item.open .faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease-in-out;
}
.faq__a p {
  padding: 0 20px 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

/* ============ FOOTER ============ */
.footer {
  margin-top: 40px;
  background: #101408;
  text-align: center;
  padding: 34px 20px 30px;
}
.footer__logo { width: 150px; margin: 0 auto; }
.footer__text {
  margin-top: 14px;
  font-size: 13px;
  color: #9aa08c;
}
.footer__copy {
  margin-top: 6px;
  font-size: 12px;
  color: #6a705c;
}

/* ============ larger screens: identical layout, centered ============ */
@media (min-width: 481px) {
  body > header,
  body > section {
    box-shadow: 0 0 60px rgba(28, 40, 18, .04);
  }
}
