/* ============================================================
   MYSKIN — корейская косметика
   Фирменный стиль: природные зелёные + жёлтый/голубой акценты,
   органичные «капли», полутоновые листья из точек, слэб-шрифт.
   ============================================================ */

:root {
  --bg: #F8F7EE;
  --white: #FFFFFF;
  --ink: #1B241C;
  --ink-soft: #4A5549;
  --green-deep: #1F6B45;
  --green: #2E8A57;
  --green-mid: #6FA060;
  --sage: #A9C6A1;
  --sage-light: #D9E7CE;
  --blue: #8FBFDF;
  --blue-soft: #C9E0EE;
  --yellow: #F2D43D;
  --yellow-soft: #FAE98B;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(31, 107, 69, .12);
  --font-display: "Podkova", serif;
  --font-body: "Manrope", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: 96px 0; position: relative; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 107, 69, .3);
}
.btn--primary:hover { background: var(--green); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn--ghost:hover { background: var(--green-deep); color: #fff; }

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(242, 212, 61, .4);
}
.btn--yellow:hover { background: var(--yellow-soft); transform: translateY(-2px); }

/* ---------- Логотип ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}
.logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .04em;
}
.logo__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-top: 2px;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 238, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 107, 69, .1);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.nav { display: flex; gap: 28px; }
.nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav__link:hover { color: var(--green-deep); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--green-deep); }

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--green-deep);
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.cart-btn:hover { background: var(--green); transform: translateY(-2px); }
.cart-btn__count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .25s;
}

/* ---------- Декор: капли и листья ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob--sage { background: var(--sage); }
.blob--green { background: var(--green-mid); }
.blob--blue { background: var(--blue); }
.blob--yellow { background: var(--yellow); }
.blob--light { background: var(--sage-light); }

.leaf {
  position: absolute;
  pointer-events: none;
  /* полутоновый лист из точек */
  background-image: radial-gradient(circle, var(--green-mid) 1.4px, transparent 1.5px);
  background-size: 8px 8px;
  border-radius: 0 72% 0 72%;
  opacity: .55;
}

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero__decor { position: absolute; inset: 0; }
.hero__blob1 { width: 340px; height: 340px; top: -120px; left: -120px; }
.hero__blob2 { width: 260px; height: 260px; top: 40px; right: -90px; }
.hero__blob3 { width: 220px; height: 220px; bottom: -90px; left: -60px; }
.hero__blob4 { width: 380px; height: 380px; bottom: -140px; right: -120px; opacity: .9; }
.hero__blob5 { width: 180px; height: 180px; top: 60%; left: -60px; }

.hero .leaf--1 { width: 130px; height: 130px; top: 12%; left: 4%; transform: rotate(18deg); }
.hero .leaf--2 { width: 100px; height: 100px; top: 64%; left: 12%; transform: rotate(-30deg); opacity: .4; }
.hero .leaf--3 { width: 120px; height: 120px; top: 10%; right: 10%; transform: rotate(40deg); opacity: .45; }
.hero .leaf--4 { width: 90px; height: 90px; bottom: 8%; right: 28%; transform: rotate(-14deg); opacity: .35; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 8vw, 60px);
  line-height: 1.08;
  margin-bottom: 22px;
  overflow-wrap: break-word;
}
.hero__title em {
  font-style: normal;
  color: var(--green-deep);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: var(--yellow-soft);
  z-index: -1;
  border-radius: 6px;
}
.hero__text {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__badges li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(31, 107, 69, .15);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
}

/* Карточка-иллюстрация в hero */
.hero__card { display: flex; justify-content: center; }
.hero-card {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 28px 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-card__blob {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--sage-light);
  top: 50px; left: 50%;
  transform: translateX(-50%);
}
.hero-card__products {
  position: absolute;
  inset: 36px 20px 96px;
  z-index: 1;
}
.hero-card__item {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(31, 107, 69, .2);
  transition: transform .3s ease;
}
.hero-card__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.hero-card:hover .hero-card__item--althea { transform: rotate(-12deg) translateY(-4px); }
.hero-card:hover .hero-card__item--fraijour { transform: rotate(11deg) translateY(-4px); }
.hero-card:hover .hero-card__item--mary { transform: rotate(0deg) translateY(-6px); }
.hero-card__item--althea {
  left: 2%; top: 20%;
  width: 40%; height: 52%;
  transform: rotate(-8deg);
  z-index: 1;
}
.hero-card__item--fraijour {
  right: 0; top: 6%;
  width: 38%; height: 50%;
  transform: rotate(7deg);
  z-index: 1;
}
.hero-card__item--mary {
  left: 26%; top: 30%;
  width: 50%; height: 60%;
  transform: rotate(-2deg);
  z-index: 2;
}
.hero-card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px;
  background: linear-gradient(transparent, rgba(255,255,255,.96) 40%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.hero-card__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
}
.hero-card__caption { font-size: 13px; color: var(--ink-soft); }

/* ---------- Бегущая строка ---------- */
.marquee {
  background: var(--green-deep);
  color: var(--yellow);
  overflow: hidden;
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee__track span {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-33.333333%); }
}

/* ---------- Преимущества ---------- */
.benefits { padding: 72px 0 8px; }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 8px 26px rgba(31, 107, 69, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.benefit__icon--green { background: var(--sage-light); color: var(--green-deep); }
.benefit__icon--yellow { background: var(--yellow-soft); color: #8a7611; }
.benefit__icon--blue { background: var(--blue-soft); color: #2b6a96; }
.benefit__icon--sage { background: #E9F1E2; color: var(--green-mid); }
.benefit h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 8px;
}
.benefit p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Заголовки секций ---------- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.section-head__eyebrow--light { color: var(--yellow); }
.section-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
}
.section-head__title--light { color: #fff; }
.section-head__text { color: var(--ink-soft); margin-top: 14px; }

/* ---------- Каталог ---------- */
.catalog { background: var(--white); border-radius: 48px 48px 0 0; overflow: hidden; }
.catalog__decor { position: absolute; inset: 0; pointer-events: none; }
.catalog__blob1 { width: 300px; height: 300px; top: -100px; right: -100px; opacity: .6; }
.catalog .leaf--5 { width: 140px; height: 140px; bottom: 40px; right: 3%; transform: rotate(24deg); opacity: .3; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 107, 69, .25);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: var(--green-deep); color: var(--green-deep); }
.chip.is-active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.product {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product__art svg { transition: transform .3s ease; }
.product:hover .product__art svg { transform: scale(1.06) rotate(-2deg); }
.product__tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-deep);
}
.product__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product__brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 4px;
}
.product__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.product__vol { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.product__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.product__price s {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-left: 6px;
}
.product__add {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.product__add:hover { background: var(--green); transform: scale(1.08); }
.product__add:active { transform: scale(.94); }

/* ---------- Подбор ухода ---------- */
.quiz {
  background: var(--green-deep);
  border-radius: 48px;
  margin: 0 16px;
  overflow: hidden;
}
.quiz__decor { position: absolute; inset: 0; pointer-events: none; }
.quiz__blob1 { width: 300px; height: 300px; top: -110px; left: -80px; opacity: .25; }
.quiz__blob2 { width: 240px; height: 240px; bottom: -80px; right: -60px; opacity: .9; }
.quiz .leaf--6 { width: 130px; height: 130px; bottom: 12%; left: 3%; transform: rotate(-22deg); opacity: .18; }
.quiz .leaf--7 { width: 100px; height: 100px; top: 10%; right: 5%; transform: rotate(30deg); opacity: .18; }

.quiz__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.quiz__lead { color: rgba(255,255,255,.85); margin: 16px 0 28px; max-width: 420px; }
.quiz__steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.quiz__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 600;
}
.quiz__steps span {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.quiz__card {
  background: var(--white);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.quiz__group { border: none; margin-bottom: 26px; }
.quiz__group legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.quiz__group legend small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.quiz__options { display: flex; flex-wrap: wrap; gap: 10px; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 107, 69, .25);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: .18s;
  user-select: none;
}
.option:hover span { border-color: var(--green-deep); }
.option input:checked + span {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.quiz__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__contacts input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(31, 107, 69, .2);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.quiz__contacts input:focus {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, .12);
}
.quiz__contacts input::placeholder { color: var(--ink-soft); opacity: .7; }
.quiz__submit { width: 100%; }
.quiz__note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.quiz__success {
  display: none;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 40px 10px;
  color: var(--ink-soft);
}
.quiz__success-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--green-deep);
}

/* ---------- О нас ---------- */
.about__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about__b1 { width: 55%; height: 55%; top: -10%; left: -10%; }
.about__b2 { width: 42%; height: 42%; top: 6%; right: -8%; opacity: .9; }
.about__b3 { width: 38%; height: 38%; bottom: -8%; right: 14%; }
.about .leaf--8 { width: 34%; height: 34%; bottom: 6%; left: 8%; transform: rotate(-18deg); opacity: .5; }
.about .leaf--9 { width: 26%; height: 26%; top: 40%; right: 10%; transform: rotate(26deg); opacity: .35; }
.about__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: .06em;
  text-align: center;
  padding: 20px;
}
.about__content p { color: var(--ink-soft); margin-bottom: 14px; }
.about__list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__list li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 5px var(--yellow-soft);
}

/* ---------- Сертификаты ---------- */
.certificate {
  background: var(--white);
  border-radius: 48px;
  margin: 0 16px;
}
.certificate__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.certificate__content p { color: var(--ink-soft); margin: 14px 0 20px; }
.certificate__list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.certificate__list li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
}
.certificate__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: inset 0 0 0 5px var(--sage-light);
}

.gift-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid rgba(31, 107, 69, .12);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  transform: rotate(-2deg);
  transition: transform .3s ease;
}
.gift-card:hover { transform: rotate(0deg) scale(1.02); }
.gift-card__circle { position: absolute; border-radius: 50%; }
.gift-card__circle--1 { width: 45%; height: 72%; background: var(--yellow); right: -12%; top: -18%; }
.gift-card__circle--2 { width: 40%; height: 65%; background: var(--green-mid); right: 8%; top: -30%; }
.gift-card__leaf { position: absolute; background-image: radial-gradient(circle, var(--green-mid) 1.2px, transparent 1.3px); background-size: 7px 7px; border-radius: 0 72% 0 72%; opacity: .5; }
.gift-card__leaf--tl { width: 26%; height: 44%; left: 4%; top: 8%; transform: rotate(14deg); }
.gift-card__leaf--br { width: 22%; height: 38%; right: 6%; bottom: 6%; transform: rotate(-20deg); }
.gift-card__body {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gift-card__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .05em;
}
.gift-card__sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.gift-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--green-deep);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gift-card__line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 8px;
}
.gift-card__line i { width: 56px; height: 1.5px; background: var(--sage); display: block; }

/* ---------- Контакты ---------- */
.contacts__decor { position: absolute; inset: 0; pointer-events: none; }
.contacts__blob1 { width: 260px; height: 260px; bottom: -80px; left: -80px; opacity: .5; }
.contacts .leaf--10 { width: 120px; height: 120px; top: 60px; right: 4%; transform: rotate(20deg); opacity: .3; }

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 8px 26px rgba(31, 107, 69, .08);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--green-deep);
}
.contact-card p { font-weight: 600; }
.contact-card a { color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--green-deep); }
.contact-card__hint { font-size: 13px; font-weight: 500 !important; color: var(--ink-soft); margin-top: 6px; }

.socials { display: flex; gap: 10px; }
.social {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage-light);
  color: var(--green-deep);
  transition: .2s;
}
.social:hover { background: var(--green-deep); color: #fff; transform: translateY(-3px); }

/* ---------- Подвал ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo--footer { color: #fff; }
.logo--footer .logo__tag { color: var(--yellow); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; font-size: 14px; }
.footer__nav a:hover { color: var(--yellow); }
.footer__copy { font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Корзина ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 36, 28, .45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 90;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(430px, 100%);
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
}
.cart.is-open { transform: translateX(0); }

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(31, 107, 69, .12);
}
.cart__head h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.cart__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
}
.cart__close:hover { background: var(--yellow); }

.cart__items { flex: 1; overflow-y: auto; padding: 18px 26px; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--white);
  border-radius: 18px;
  padding: 12px;
}
.cart-item__art {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cart-item__art svg { width: 50px; height: 50px; }
.cart-item__name { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.cart-item__price { font-size: 13px; color: var(--green-deep); font-weight: 800; margin-top: 4px; }
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item__qty button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(31, 107, 69, .3);
  background: transparent;
  color: var(--green-deep);
  font-weight: 800;
  cursor: pointer;
  transition: .15s;
}
.cart-item__qty button:hover { background: var(--green-deep); color: #fff; }
.cart-item__qty span { font-weight: 800; min-width: 16px; text-align: center; }

.cart__empty {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 26px;
  color: var(--ink-soft);
}
.cart__empty p:first-child { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.cart.is-empty .cart__empty { display: flex; }
.cart.is-empty .cart__items, .cart.is-empty .cart__footer { display: none; }

.cart__footer {
  padding: 20px 26px 26px;
  border-top: 1px solid rgba(31, 107, 69, .12);
  background: var(--white);
}
.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cart__total span { font-weight: 600; color: var(--ink-soft); }
.cart__total strong { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.cart__checkout { width: 100%; }
.cart__note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.cart__note a { color: var(--green-deep); font-weight: 700; }

.cart__form { display: flex; flex-direction: column; gap: 10px; }
.cart__form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(31, 107, 69, .2);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cart__form input:focus {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, .12);
}
.cart__form input::placeholder { color: var(--ink-soft); opacity: .7; }

.cart__success {
  display: none;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 18px 10px;
  color: var(--ink-soft);
}
.cart__success-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--green-deep);
}

/* ---------- Политика конфиденциальности ---------- */
.privacy {
  max-width: 760px;
  background: var(--white);
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: 0 8px 26px rgba(31, 107, 69, .08);
}
.privacy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin: 26px 0 10px;
  color: var(--green-deep);
}
.privacy h2:first-child { margin-top: 0; }
.privacy p { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.privacy a { color: var(--green-deep); font-weight: 700; }
@media (max-width: 640px) {
  .privacy { padding: 26px 20px; }
}

/* ---------- Страница каталога ---------- */
.catalog-page-wrap { padding: 48px 0 96px; }
.catalog-head { max-width: 640px; margin-bottom: 36px; position: relative; z-index: 1; }
.catalog-page { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }

.catalog-sidebar {
  position: sticky;
  top: 92px;
  background: var(--white);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 26px rgba(31, 107, 69, .08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.side-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
  flex: 0 0 auto;
}
.side-cat:hover { background: var(--sage-light); color: var(--ink); }
.side-cat.is-active { background: var(--green-deep); color: #fff; }
.side-cat__count { font-size: 12px; font-weight: 800; opacity: .65; }

.products--catalog { position: relative; z-index: 1; }

/* Фирменное обрамление фото товара */
.product__art { cursor: pointer; }
.product__photo {
  width: 76%;
  height: 76%;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(31, 107, 69, .16), inset 0 0 0 2px rgba(31, 107, 69, .08);
}
.cart-item__photo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
}

/* Карточка товара */
.modal--product {
  width: min(720px, calc(100% - 24px));
  max-height: 94vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  container-type: inline-size;
}
.pm__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: start;
}
.pm__info { padding-right: 30px; }
.pm__art {
  border-radius: 22px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.pm__photo {
  width: 80%;
  height: 80%;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(31, 107, 69, .18), inset 0 0 0 2px rgba(31, 107, 69, .08);
}
.pm__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  margin: 6px 0 12px;
}
.pm__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--green-deep);
  margin-bottom: 4px;
}
.pm__stock { font-size: 13px; font-weight: 700; color: var(--green-mid); margin-bottom: 16px; }
.pm__stock--low { color: #b4540a; }
.pm__add { width: 100%; }
.pm__hint { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.pm__desc {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 107, 69, .12);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-line;
}

@container (max-width: 560px) {
  .modal--product { padding: 22px 16px 18px; }
  .pm__grid { grid-template-columns: 1fr; gap: 14px; }
  .pm__info { padding-right: 26px; }
  .pm__art { max-width: 200px; margin-inline: auto; aspect-ratio: auto; }
  .pm__photo { padding: 8px; }
  .pm__name { font-size: 19px; margin: 4px 0 8px; }
  .pm__price { font-size: 22px; }
  .pm__stock { margin-bottom: 12px; }
  .pm__desc { margin-top: 16px; padding-top: 14px; }
}

@media (max-width: 640px) {
  .pm__grid { grid-template-columns: 1fr; gap: 14px; }
  .pm__art { max-width: 200px; margin-inline: auto; aspect-ratio: auto; }
  .pm__name { font-size: 19px; margin: 4px 0 8px; }
  .pm__price { font-size: 22px; }
  .pm__stock { margin-bottom: 12px; }
  .pm__desc { margin-top: 16px; padding-top: 14px; }
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid rgba(31, 107, 69, .2);
  border-radius: 999px;
  padding: 4px 20px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  transition: border-color .2s, box-shadow .2s;
}
.catalog-search:focus-within {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, .12);
}
.catalog-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.catalog-search input::placeholder { color: var(--ink-soft); opacity: .7; }
.catalog-search input::-webkit-search-cancel-button { cursor: pointer; }

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-soft);
  font-size: 15px;
  background: var(--white);
  border-radius: var(--radius);
}

.nav__link.is-active { color: var(--green-deep); }
.nav__link.is-active::after { width: 100%; }

/* ---------- Приглашение в каталог (главная) ---------- */
.cta-catalog { overflow: hidden; }
.cta-catalog__decor { position: absolute; inset: 0; pointer-events: none; }
.cta-catalog__b1 { width: 220px; height: 220px; left: -80px; top: -60px; opacity: .5; }
.cta-catalog__b2 { width: 260px; height: 260px; right: -80px; bottom: -90px; }
.cta-catalog__b3 { width: 140px; height: 140px; right: -50px; top: 20px; opacity: .8; }
.cta-catalog__leaf { width: 110px; height: 110px; right: 30%; top: 12%; transform: rotate(24deg); opacity: .35; }
.cta-catalog__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: 32px;
  padding: 56px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta-catalog__title {
  font-size: clamp(32px, 5.5vw, 64px);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
}
.cta-catalog__text p { color: var(--ink-soft); margin: 14px 0 26px; max-width: 460px; }
.cta-catalog__art { display: flex; justify-content: center; }
.cta-catalog__arch {
  position: relative;
  width: min(240px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 120px 120px 24px 24px;
  background: var(--sage-light);
  overflow: hidden;
}
.cta-arch__item {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 26px rgba(31, 107, 69, .2);
  transition: transform .3s ease;
}
.cta-arch__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.cta-arch__item--mask {
  right: 5%; top: 12%;
  width: 42%; height: 46%;
  transform: rotate(9deg);
}
.cta-arch__item--anua {
  left: 10%; top: 28%;
  width: 54%; height: 62%;
  transform: rotate(-4deg);
  z-index: 2;
}
.cta-catalog__art:hover .cta-arch__item--mask { transform: rotate(13deg) translateY(-3px); }
.cta-catalog__art:hover .cta-arch__item--anua { transform: rotate(-1deg) translateY(-5px); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Модальное окно (сертификат) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 36, 28, .5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 90;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.94);
  width: min(430px, calc(100% - 32px));
  background: var(--bg);
  border-radius: 26px;
  padding: 32px 28px 28px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.modal h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 6px;
  padding-right: 30px;
}
.modal__sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
}
.modal__close:hover { background: var(--yellow); }

.modal__form { display: flex; flex-direction: column; gap: 10px; }
.modal__form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(31, 107, 69, .2);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.modal__form input:focus {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, .12);
}
.modal__form input::placeholder { color: var(--ink-soft); opacity: .7; }
.modal__label { font-weight: 700; font-size: 14px; margin-top: 6px; }
.cert-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.modal__submit { width: 100%; margin-top: 8px; }
.modal__note { font-size: 12.5px; color: var(--ink-soft); text-align: center; }

.modal__success {
  display: none;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 26px 6px;
  color: var(--ink-soft);
}
.modal__success-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--green-deep);
}

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px);
  background: var(--ink);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  z-index: 120;
  opacity: 0;
  transition: .35s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__card { order: -1; }
  .hero-card { width: min(320px, 100%); }
  .quiz__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__inner, .certificate__inner { grid-template-columns: 1fr; gap: 40px; }
  .certificate__card { max-width: 520px; }
  .cta-catalog__inner { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
}

@media (max-width: 900px) {
  .catalog-page { grid-template-columns: 1fr; gap: 16px; }
  .catalog-sidebar {
    top: 74px;
    z-index: 20;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    max-height: none;
  }
  .side-cat { white-space: nowrap; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed;
    top: 74px; right: 16px;
    flex-direction: column;
    background: var(--white);
    padding: 22px 28px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 80;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product__name { font-size: 15px; }
  .product__foot { flex-direction: column; align-items: flex-start; }
  .benefits__grid, .contacts__grid { grid-template-columns: 1fr; }
  .quiz, .certificate { margin: 0 8px; border-radius: 32px; }
  .quiz__card { padding: 24px 20px; }
  .hero { padding: 40px 0 64px; }
  .marquee { transform: none; }
  .footer__inner { flex-direction: column; text-align: center; }
}

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