/* Шрифты лежат на сервере сайта — браузер не обращается к зарубежным сервисам */
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   ATOMY · премиум-сайт дистрибьютора
   Дизайн-система: «корейская clean-beauty»
   ========================================================================== */

/* --- 1. Переменные / тема --------------------------------------------- */
:root {
  /* Цвета — бело-голубая тема */
  --cream:      #F3F8FD;   /* воздушный бело-голубой фон */
  --cream-2:    #E7F1FB;   /* светло-голубой фон секций */
  --white:      #FFFFFF;
  --ink:        #16202B;   /* тёмный сине-графитовый текст */
  --ink-soft:   #33404D;
  --muted:      #5A6774;   /* прохладный серый, контраст ≥4.5 на светлом фоне */
  --line:       #DBE8F4;   /* светло-голубая граница */

  --primary:    #1E83E0;   /* голубой — фон и графика */
  --primary-tx: #1468BD;   /* синий для текста и кнопок: контраст ≥4.5 */
  --primary-dk: #1468BD;
  --primary-lt: #E2F0FC;
  --gold:       #0E5FB0;   /* насыщенный синий (акцент) */
  --gold-lt:    #DBEAFA;
  --sage:       #2C97D4;   /* светло-голубой (доп. акцент) */

  /* Типографика */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Геометрия */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Тени */
  --shadow-sm: 0 4px 14px rgba(28, 27, 26, .06);
  --shadow:    0 18px 50px rgba(28, 27, 26, .10);
  --shadow-lg: 0 30px 80px rgba(159, 15, 50, .16);

  --t: .35s cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Сброс / база -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

/* --- 3. Утилиты ------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--cream { background: var(--cream-2); }
.section--ink { background: var(--ink); color: #EDE7DF; }
.section--ink h2, .section--ink h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { display: flex; justify-content: center; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.center.section-head { margin-inline: auto; }

.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }

/* --- 4. Кнопки ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 12px 30px rgba(190,18,60,.28); }
.btn--primary:hover { background: var(--primary-dk); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(190,18,60,.36); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: #9f7531; transform: translateY(-3px); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }

/* --- 5. Шапка / навигация ------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,248,253,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(243,248,253,.95); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff; display: grid; place-items: center; font-family: var(--font-body); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(190,18,60,.3);
}
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: -3px; }
.indie-badge { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--primary); background: var(--primary-lt); border: 1px solid var(--line); padding: 5px 12px; border-radius: 100px; white-space: nowrap; }
.indie-badge::before { content: "✓"; font-weight: 800; }
@media (max-width: 1550px) { .indie-badge { display: none; } }

.nav__links { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.nav__links a { font-weight: 600; font-size: .83rem; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color var(--t); white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--primary); transition: width var(--t); }
.nav__links a:hover, .nav__links a.active { color: var(--primary); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 14px; margin-left: 24px; flex-shrink: 0; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: var(--t); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 26px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* --- 6. Hero --------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lead { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__trust div { font-size: .9rem; color: var(--muted); }
.hero__trust b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }

/* визуальная карточка справа */
.hero__visual { position: relative; }
.hero__cardbox { position: relative; }
.hero__topcta { text-align: right; margin-bottom: 22px; }
@media (max-width: 940px) { .hero__topcta { text-align: center; } }
.hero__card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}
.hero__card-img {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-lt), var(--gold-lt));
  display: grid; place-items: center; margin-bottom: 20px; position: relative; overflow: hidden;
}
.hero__badge {
  position: absolute; z-index: 3; background: var(--white); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem;
}
.hero__badge .dot { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; }
.hero__badge--1 { top: 18px; left: -26px; }
.hero__badge--2 { bottom: -56px; right: -6px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }
.blob--1 { width: 360px; height: 360px; background: var(--primary-lt); top: -80px; right: -60px; }
.blob--2 { width: 300px; height: 300px; background: var(--gold-lt); bottom: -100px; left: -80px; }

/* --- 7. Логотип-полоса доверия -------------------------------------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 26px; }
.trustbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.trustbar span { font-size: .9rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.trustbar span b { color: var(--ink); }

/* --- 8. Карточки / сетки -------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 20px; background: var(--primary-lt); color: var(--primary);
}
.card__icon--gold { background: var(--gold-lt); color: var(--gold); }
.card__icon--sage { background: #E2F1FA; color: var(--sage); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* карточка товара */
.product { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform var(--t), box-shadow var(--t); display: flex; flex-direction: column; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__img { aspect-ratio: 1/1; display: grid; place-items: center; font-size: 3rem; position: relative; }
.product__tag { position: absolute; top: 14px; left: 14px; background: var(--white); color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.product__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.product__body p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.product__price s { color: var(--muted); font-size: .85rem; font-weight: 400; margin-right: 6px; }

/* нумерованные шаги */
.steps { counter-reset: s; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--primary);
  width: 58px; height: 58px; border-radius: 16px; background: var(--primary-lt); display: grid; place-items: center;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .96rem; }

/* два пути */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.path { border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px); position: relative; overflow: hidden; }
.path--buy { background: linear-gradient(160deg, var(--cream-2), var(--gold-lt)); }
.path--earn { background: linear-gradient(160deg, var(--ink), #322c2c); color: #EDE7DF; }
.path--earn h3 { color: #fff; }
.path__k { font-size: 2.4rem; margin-bottom: 14px; }
.path h3 { font-size: 1.7rem; margin-bottom: 12px; }
.path p { margin-bottom: 24px; opacity: .9; }
.path ul { margin-bottom: 28px; display: grid; gap: 10px; }
.path li { display: flex; gap: 10px; align-items: start; font-size: .96rem; }
.path li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.path--earn li::before { color: var(--gold); }

/* --- 9. FAQ / аккордеон --------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow var(--t); }
.faq__item.open { box-shadow: var(--shadow); }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq__q .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-lt); color: var(--primary); display: grid; place-items: center; font-size: 1.3rem; transition: transform var(--t); }
.faq__item.open .ic { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a p { padding: 0 26px 24px; color: var(--muted); }

/* --- 10. Отзывы ----------------------------------------------------- */
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.review__stars { color: var(--gold); letter-spacing: 3px; }
.review p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.review__who { display: flex; align-items: center; gap: 13px; }
.review__ava { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-lt), var(--gold-lt)); display: grid; place-items: center; font-weight: 800; color: var(--primary); }
.review__who b { display: block; font-size: .96rem; }
.review__who small { color: var(--muted); }

/* --- 11. Формы ------------------------------------------------------ */
.formcard { background: var(--white); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 50px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); transition: border-color var(--t), background var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.consent a { color: var(--primary); text-decoration: underline; }
.form__note { font-size: .8rem; color: var(--muted); text-align: center; }
.form-success { display: none; text-align: center; padding: 20px; background: #ECF6EF; border: 1px solid #BfE2CC; border-radius: var(--radius-sm); color: var(--sage); font-weight: 600; }

/* --- 12. CTA-баннер ------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  text-align: center; position: relative; overflow: hidden;
}
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { max-width: 56ch; margin: 0 auto 30px; opacity: .92; font-size: 1.1rem; }
.cta__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta::before { width: 280px; height: 280px; top: -120px; right: -60px; }
.cta::after { width: 200px; height: 200px; bottom: -100px; left: -40px; }
.cta > * { position: relative; z-index: 1; }

/* --- 13. Подвал ----------------------------------------------------- */
.footer { background: var(--ink); color: #C9C1B8; padding-block: clamp(50px, 7vw, 80px) 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p { font-size: .92rem; color: #978E85; max-width: 34ch; }
.footer h4 { font-family: var(--font-body); color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a { font-size: .94rem; color: #C9C1B8; transition: color var(--t); }
.footer ul a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background var(--t), transform var(--t); }
.footer__social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .82rem; color: #877E75; }
.disclaimer { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 16px 20px; font-size: .8rem; color: #978E85; margin-bottom: 30px; line-height: 1.6; }
.disclaimer b { color: #C9C1B8; }

/* плашка «не лекарство» */
.bad-notice { font-size: .78rem; color: var(--muted); background: var(--cream-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 16px; display: inline-flex; gap: 8px; align-items: center; }
.bad-notice b { color: var(--ink-soft); }

/* --- 14. Плавающие мессенджеры -------------------------------------- */
.float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; gap: 12px; }
.float a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform var(--t); font-size: 1.5rem; }
.float a:hover { transform: scale(1.1) translateY(-2px); }
.float .wa { background: #25D366; }
.float .tg { background: #2AABEE; }
.float .mx { background: #6E4AE6; font-weight: 800; }

/* кнопка «наверх» */
.to-top { position: fixed; left: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--primary); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.4rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--t), transform var(--t), background var(--t), color var(--t); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* фото в блоке истории */
.story-photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary-lt), var(--gold-lt)); display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden; color: var(--primary); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- 15. Внутренние «герои» страниц --------------------------------- */
.page-hero { padding-block: clamp(50px, 7vw, 90px) clamp(30px, 4vw, 50px); text-align: center; position: relative; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumbs a:hover { color: var(--primary); }

/* блог */
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--t), box-shadow var(--t); display: flex; flex-direction: column; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--primary-lt), var(--gold-lt)); display: grid; place-items: center; font-size: 2.4rem; }
.post__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__cat { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.post__body h3 { font-size: 1.25rem; }
.post__body p { color: var(--muted); font-size: .94rem; flex: 1; }
.post__more { color: var(--primary); font-weight: 700; font-size: .92rem; }

/* каталог цен */
.price-legend { display: inline-flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px; }
.price-legend s { color: var(--muted); }
.price-legend b { color: var(--primary); }
.price-cat { display: grid; gap: 12px; }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 22px; transition: box-shadow var(--t), transform var(--t); }
.price-row:hover { box-shadow: var(--shadow-sm); transform: translateX(3px); }
.price-row__name { font-weight: 600; }
.price-row__name small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.price-row__price { text-align: right; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--primary); }
.price-row__price s { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; font-family: var(--font-body); }

/* каталог-карточки с фото и двумя ценами */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card__img { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 3rem; position: relative; overflow: hidden; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__tag { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--primary); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.cat-card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cat-card__body h3 { font-size: 1.1rem; }
.cat-card__body h3 small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.cat-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.cat-price { border-radius: var(--radius-sm); padding: 9px 10px; text-align: center; }
.cat-price span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cat-price b { font-family: var(--font-display); font-size: 1.08rem; line-height: 1; }
.cat-price--buyer { background: var(--cream-2); }
.cat-price--buyer b { color: var(--ink-soft); }
.cat-price--partner { background: var(--primary-lt); }
.cat-price--partner b { color: var(--primary); }

/* --- 16. Анимации появления ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- 17. Адаптив ---------------------------------------------------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 0; max-width: 460px; margin-inline: auto; }
  .hero__badge { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform var(--t); max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta .btn--ghost { display: none; }
  .burger { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__badge--1 { left: 8px; } .hero__badge--2 { right: 8px; }
  body { font-size: 16px; }
}

/* аватарка автора в блоге */
.author { display: inline-flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--muted); }
.author__ava { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: var(--shadow-sm); flex: none; }
.author b { color: var(--ink); }

/* меню -> бургер на средних экранах */
@media (max-width: 1100px) {
  .nav__links { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform var(--t); max-height: calc(100vh - 78px); overflow-y: auto; }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; white-space: normal; }
  .burger { display: block; }
}

/* компактный низ карточки товара */
.product__foot { flex-direction: column; align-items: stretch; gap: 12px; }
.product__price { font-size: .88rem; cursor: pointer; }
.product__foot .btn { width: 100%; font-size: .9rem; padding: 11px 14px !important; }

/* меньше и чётче фото истории */
.story-photo { max-width: 240px; margin-inline: auto; aspect-ratio: 1 / 1; }

/* фото истории с обтеканием текстом */
.story-photo-float { float: left; width: 240px; height: 240px; object-fit: cover; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(28,27,26,.14), 0 0 0 1px var(--line); margin: 4px 30px 14px 0; }
@media (max-width: 600px) { .story-photo-float { float: none; margin: 0 auto 18px; } }

/* --- SVG-иконки и рисованные товары вместо эмодзи --- */
.card__icon .ic { display: block; }
.cat-card__img .shot, .product__img .shot, .post__img .shot { display: block; width: 100%; height: 100%; padding: 12%; }
.post__img .shot { padding: 7% 0; }
.footer__social a, .float a { display: grid; place-items: center; }
.footer__social svg, .float svg { display: block; }

/* --- Контраст: синий текст и кнопки темнее фонового голубого --- */
.btn--primary { background: var(--primary-tx); }
.btn--primary:hover { background: var(--primary-dk); }
a:not(.btn), .post__more, .price-legend b, .cat-price--partner b, .product__price, .nav__links a:hover { color: var(--primary-tx); }
.card__icon { color: var(--primary-tx); }
.card__icon--sage { color: #1B7AB3; }
.eyebrow { color: var(--primary-tx); }

/* Иконки мессенджеров всегда белые поверх цветных кружков */
.float a, .footer__social a { color: #fff; }
.float a svg { width: 27px; height: 27px; }
.footer__social a svg { width: 21px; height: 21px; }
.float .mx svg, .footer__social .mx svg { stroke: #fff; }

.float a svg, .footer__social a svg { display: block; }

/* --- Второй план: фоновые мотивы --------------------------------- */
.deco {
  position: absolute; pointer-events: none; z-index: 0;
  fill: none; stroke: var(--primary); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; opacity: .16;
}
.deco--leaf  { width: clamp(200px, 26vw, 380px); }
.deco--drops { width: clamp(200px, 26vw, 360px); stroke-width: 2; }
.deco--wave  { width: clamp(260px, 34vw, 520px); stroke-width: 3; opacity: .13; }
.section, .hero, .page-hero { position: relative; overflow: hidden; }
.section > .container, .hero > .container, .page-hero > .container { position: relative; z-index: 1; }

.deco--tl { top: -40px; left: -50px; }
.deco--tr { top: -60px; right: -40px; transform: rotate(18deg); }
.deco--bl { bottom: -70px; left: -60px; transform: rotate(-12deg); }
.deco--br { bottom: -50px; right: -50px; transform: rotate(8deg); }

@media (max-width: 720px) { .deco { opacity: .12; } .deco--drops { display: none; } }
@media (prefers-reduced-motion: reduce) { .deco { opacity: .07; } }

/* мотивы на первом экране */
.hero .deco--leaf  { top: 6px; left: -130px; transform: rotate(-16deg); opacity: .17; }
.hero .deco--drops { bottom: -60px; right: 4%; opacity: .14; }

.hero .hero-leaf-2 { top: -70px; right: -60px; left: auto; transform: rotate(150deg); width: clamp(160px, 20vw, 300px); opacity: .15; }
@media (max-width: 900px) { .hero .hero-leaf-2 { display: none; } }

/* --- Телефон: сначала текст и кнопки, декор ниже и компактнее --- */
@media (max-width: 760px) {
  .hero { padding-block: 26px 34px; }
  .hero__grid { gap: 24px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .lead { margin-bottom: 22px; }
  .hero__actions { margin-bottom: 22px; }
  .hero__topcta { display: none; }            /* дубль кнопки: в тексте уже есть две */
  .hero__visual { max-width: 340px; }
  .hero__card-img svg { max-width: 200px; }
  .hero__trust { gap: 18px; }
  .blob--1 { width: 210px; height: 210px; top: -50px; right: -70px; }
  .blob--2 { width: 180px; height: 180px; bottom: -70px; left: -70px; }
  .hero .deco--leaf { width: 150px; top: auto; bottom: 10px; left: -60px; }
  .hero .hero-leaf-2, .hero .deco--drops { display: none; }
}
