/* =============================================================================
   MyLappi — стили отдельных страниц поверх main.css (токены, компоненты, шапка/футер — там)
   Подключается на: ru/about-us, friends, donation-page, client-profile, sitter-profile.
   Юр.страницы и 404 — styles/legal.css; Академия (index + course) — styles/academy.css.
   Брейкпоинты те же, что в main.css: 992 · 768 · 575 · 374 (только max-width).
   Разделы: общее (hero страницы, заголовки секций, CTA, волна в футер) → О нас → Друзья →
   Поддержать проект → примеры профилей (клиент + ситтер) → адаптив.
   ============================================================================= */

/* ---------- Общее ---------- */
.nw { white-space: nowrap; }

/* мягкое выделение во вводном абзаце (вариант .marker для обычного текста) */
.marker-soft {
  color: var(--primary-700);
  font-weight: 800;
  background: linear-gradient(transparent 66%, var(--butter) 66%, var(--butter) 94%, transparent 94%);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* hero страницы: крем + обои (.wallpaper), волна в белое (.wave-out-white), всё по центру */
.page-hero {
  position: relative;
  padding: 20px 0 calc(var(--wave-h) + 64px);
  overflow: hidden;            /* пятна/стикеры у краёв не дают горизонтального скролла */
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 948px;            /* 900 текста + поля контейнера */
  text-align: center;
}

/* крошки: тап-цель 44px (в main.css .crumbs a — 6px паддинги, ~34px) — локально, пилюля остаётся компактной */
.page-hero .crumbs {
  margin-bottom: 26px;
  padding: 0 16px 0 12px;
}

.page-hero .crumbs a,
.page-hero .crumbs [aria-current] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}

.page-hero .crumbs a .i {
  font-size: 16px;
  color: var(--primary);
}

.page-hero-title {
  margin-bottom: 22px;
  font-size: clamp(34px, 1.6rem + 2.6vw, 56px);
  line-height: 1.1;
  text-wrap: balance;
}

.page-hero-title:last-child { margin-bottom: 0; }

.page-hero-text {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* декор вокруг центрированного hero: пятна и «стикеры» с иконками (только десктоп) */
.page-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.page-deco-blob-l {
  width: 190px;
  height: 190px;
  left: calc(50% - 700px);
  top: 40px;
  opacity: .8;
}

.page-deco-blob-r {
  width: 230px;
  height: 230px;
  right: calc(50% - 720px);
  top: 110px;
  opacity: .45;
}

.sticker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 28px;
  border: 5px solid #fff;
  box-shadow: var(--sh-2);
  font-size: 44px;
}

.sticker--sm {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  border-width: 4px;
  font-size: 32px;
}

/* поворот — отдельным свойством rotate, чтобы не конфликтовать с transform из @keyframes floaty;
   max(8px, …) держит стикеры в кадре на 993–1240px (у краёв, текст по центру их не задевает) */
.sticker--1 { left: max(8px, calc(50% - 610px)); top: 80px; rotate: -9deg; animation: floaty 6s ease-in-out infinite; }
.sticker--2 { left: max(8px, calc(50% - 540px)); top: 250px; rotate: 7deg; }
.sticker--3 { right: max(8px, calc(50% - 600px)); top: 60px; rotate: 8deg; }
.sticker--4 { right: max(8px, calc(50% - 530px)); top: 240px; rotate: -6deg; animation: floaty 7.2s ease-in-out -2.6s infinite; }

/* фото-«капли» в hero «О нас» и «Поддержать проект»: неровная форма (асимметричный border-radius),
   белая рамка, цветное пятно-blob выглядывает из-под фото. Декоративные (внутри .page-deco aria-hidden),
   кроп cover с подобранным object-position (аватар — допустимый кроп, морды целы).
   Видны только на широких экранах: ≤1299 — без малых, ≤1139 — без фото (места у заголовка нет), ≤992 — весь декор скрыт */
.deco-photo {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border: 6px solid #fff;
  background: #fff;
  box-shadow: var(--sh-2);
  border-radius: 63% 37% 54% 46% / 42% 58% 42% 58%;
}

.deco-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deco-photo--r { border-radius: 38% 62% 41% 59% / 58% 40% 60% 42%; }

.deco-photo--sm {
  border-width: 5px;
  border-radius: 40% 60% 62% 38% / 55% 38% 62% 45%;
}

.deco-photo--sm.deco-photo--r { border-radius: 58% 42% 45% 55% / 40% 58% 42% 60%; }

/* «О нас»: вертикальные фото — капли чуть вытянуты по высоте */
.deco-photo--tall { width: 190px; height: 215px; }
.deco-photo--tall.deco-photo--sm { width: 120px; height: 136px; }
/* «Поддержать проект»: горизонтальное фото двоих — неровный овал по ширине; квадратное — почти круг */
.deco-photo--wide { width: 240px; height: 185px; border-radius: 55% 45% 48% 52% / 52% 50% 50% 48%; }
.deco-photo--round { width: 200px; height: 190px; }

.deco-photo--l1 { left: max(16px, calc(50% - 690px)); top: 36px; }
.deco-photo--l2 { left: max(16px, calc(50% - 560px)); top: 272px; }
.deco-photo--r1 { right: max(16px, calc(50% - 690px)); top: 56px; }
.deco-photo--r2 { right: max(16px, calc(50% - 560px)); top: 284px; }

/* подпись-облачко у фото (страница доната) */
.deco-badge { position: absolute; z-index: 3; }
.deco-badge--l { left: max(16px, calc(50% - 640px)); top: 236px; }
.deco-badge--r { right: max(16px, calc(50% - 660px)); top: 262px; }

/* два маленьких «плавающих» стикера рядом с фото — разный темп, чтобы не качались синхронно */
.sticker--pl { left: calc(50% - 480px); top: 128px; rotate: 8deg; animation: floaty 6.4s ease-in-out infinite; }
.sticker--pr { right: calc(50% - 490px); top: 160px; rotate: -8deg; animation: floaty 7.6s ease-in-out -3s infinite; }
/* на донате стикеры — у верхнего внутреннего угла фото, чуть выше их верха (внизу у фото облачки-подписи) */
.page-hero--donate .sticker--pl { left: calc(max(16px, calc(50% - 690px)) + 214px); top: 14px; }
.page-hero--donate .sticker--pr { right: calc(max(16px, calc(50% - 690px)) + 176px); top: 30px; }

/* заголовок секции по центру (eyebrow + h2 + вводный абзац) */
.page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
  text-align: center;
}

.page-head h2 { text-wrap: balance; }

.page-head-lead {
  max-width: 760px;
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.65;
}

/* зона CTA перед футером (О нас, Друзья): крем + обои, сверху волна из белого */
.page-cta-zone {
  padding-top: calc(var(--wave-h) + 40px);
}

/* волна из белой секции в тёмный футер (main.css даёт только белую/кремовую) */
.wave-out-ink {
  position: relative;
}

.wave-out-ink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--wave-h);
  background: var(--ink);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat;
  mask: var(--wave) center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* =============================================================================
   О нас (ru/about-us)
   ============================================================================= */
.about-love {
  background: var(--white);
  padding: 30px 0 var(--section-y);
}

.about-narrow { max-width: 1048px; }

/* блок без фото (фото животных переехали в hero — .deco-photo): заголовок не тянет отступ под собой */
.about-love .page-head { margin-bottom: 0; }

.about-mission {
  padding: calc(var(--wave-h) + 70px) 0 calc(var(--wave-h) + 80px);
}

.about-mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px;
  align-items: center;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-story-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
}

.about-story-item p {
  font-size: 17px;
  line-height: 1.6;
}

.about-alfred {
  position: relative;
  padding: 20px 26px 30px 20px;
}

.about-alfred .blob--lav {
  width: 200px;
  height: 200px;
  left: -16px;
  top: -6px;
}

.about-alfred .blob--peach {
  width: 240px;
  height: 240px;
  right: -10px;
  bottom: 0;
}

.about-alfred-photo {
  position: relative;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  transform: rotate(1.5deg);
}

.about-alfred-photo img {
  width: 100%;
  height: auto;
}

.about-alfred-badge {
  left: -8px;
  bottom: 70px;
}

.about-values {
  background: var(--white);
  padding: var(--section-y) 0 calc(var(--section-y) + 10px);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
  counter-reset: value;
}

.about-value {
  display: flex;
  gap: 22px;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1.5px solid var(--line);
  counter-increment: value;
}

/* номер ценности — генерируемый текст (в h3 он есть для SEO как visually-hidden «1. ») */
.about-value-icon {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 40px;
}

.about-value-icon::after {
  content: counter(value);
  position: absolute;
  right: -8px;
  top: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 0 4px var(--cream);
}

.about-value h3 {
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.about-value p { font-size: 16.5px; }

.about-smile {
  font-size: 1.25em;
  vertical-align: -.25em;
  color: var(--butter-600);
}

/* =============================================================================
   Друзья (ru/friends)
   ============================================================================= */
.friends {
  background: var(--white);
  padding: 30px 0 var(--section-y);
}

/* первая группа (2 карточки) — 2/3 ширины, вторая (1 карточка) — 1/3 */
.friends-groups {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
}

.friends-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friends-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.friends-group-head .tile {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 30px;
}

.friends-group-head h2 { font-size: 34px; }

.friends-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  flex: 1;                     /* карточки обеих групп — одной высоты */
}

.friends-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-2);
}

/* плашка 2:1: логотип вписан целиком (max-размеры, натуральные пропорции); фото Woof Wings само 2:1 */
.friends-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 1;
  min-height: 0;               /* без этого большой натуральный размер логотипа растягивает плашку сверх 2:1 */
  overflow: hidden;            /* страховка: логотип и так вписан max-размерами, фото — ровно 2:1 */
  background: var(--cream-2);
}

.friends-media--pink { background: #FECAD7; }
.friends-media--orange { background: #FFBB55; }

.friends-logo {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 82%;
}

.friends-photo {
  width: 100%;
  height: auto;
}

.friends-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 20px;
}

.friends-card-body h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.friends-card-body p {
  flex: 1;
  margin-bottom: 14px;
  font-size: 16px;
}

.friends-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-600);
}

.friends-more-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  box-shadow: var(--sh-p);
  transition: transform .2s, background-color .2s;
}

@media (hover: hover) {
  .friends-more:hover .friends-more-ic {
    background: var(--primary-600);
    transform: translateX(3px);
  }
}

/* =============================================================================
   Поддержать проект (ru/donation-page)
   ============================================================================= */
.page-hero--donate {
  padding-bottom: calc(var(--wave-h) + 90px);
}

.donate {
  display: flow-root;          /* отрицательный margin статистики не «схлопывается» наружу — волна hero остаётся видна */
  background: var(--white);
  padding: 0 0 calc(var(--section-y) + var(--wave-h) + 20px);
}

/* .donate-stat — класс из CLAUDE.md (чек-лист чисел), число «3500+» синхронно с главной */
.donate-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: -70px auto 70px;
  list-style: none;
}

.donate-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-2);
}

.donate-stat {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
}

.donate-stat--icon {
  display: flex;
  font-size: 40px;
  color: var(--peach-600);
}

.donate-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.donate-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.donate-group {
  padding: 32px 32px 34px;
  border-radius: var(--r-xl);
  background: var(--cream);
  border: 1.5px solid var(--line);
}

.donate-group h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 30px;
}

.donate-group h2 .tile {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-size: 28px;
}

.donate-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  padding: 22px 70px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: box-shadow .2s;
}

/* логотип сервиса: натуральные пропорции, оптическая высота по каждому файлу (разные поля/толщина знаков) */
.card-icon {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 54px;
}

.card-icon--patreon { max-height: 40px; }
.card-icon--bmc { max-height: 50px; }
.card-icon--boosty { max-height: 60px; }
.card-icon--cloudtips { max-height: 48px; }

.card-link-go {
  position: absolute;
  right: 20px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lav-50);
  color: var(--primary-600);
  font-size: 17px;
  transform: translateY(-50%);
  transition: background-color .2s, color .2s;
}

@media (hover: hover) {
  .card-link:hover {
    box-shadow: var(--sh-2), 0 0 0 2px var(--lav-200);
  }
  .card-link:hover .card-link-go {
    background: var(--primary);
    color: #fff;
  }
}

/* =============================================================================
   Примеры профилей (ru/client-profile, ru/sitter-profile)
   ============================================================================= */
.profile-hero {
  position: relative;
  padding: 20px 0 calc(var(--wave-h) + 190px);
}

.profile-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 908px;
  text-align: center;
}

/* крупный заголовок страницы — визуально как h1, но <p>: h1 на странице — имя в профиле */
.profile-hero-title {
  margin-bottom: 18px;
  font-size: clamp(34px, 1.6rem + 2.6vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}

.profile-hero-text {
  max-width: 640px;
  font-size: 20px;
}

.profile-zone {
  position: relative;
  display: flow-root;          /* карточка наезжает на hero своим margin, а не сдвигает всю белую зону */
  background: var(--white);
  padding-bottom: var(--section-y);
}

.profile {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: -190px auto 0;
  padding: 44px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-2);
}

.profile-top {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

/* фото профиля: натуральные пропорции 2:3, рамка + пятна — без кропа */
.profile-photo {
  position: relative;
}

.profile-photo .blob--lav {
  width: 150px;
  height: 150px;
  left: -34px;
  top: -30px;
}

.profile-photo .blob--peach {
  width: 190px;
  height: 190px;
  right: -40px;
  bottom: -34px;
}

.profile-photo img {
  position: relative;
  width: 100%;
  height: auto;
  border: 8px solid #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.profile-id h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 1.4rem + 2vw, 54px);
  line-height: 1.05;
}

.profile-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px 7px 8px;
  border-radius: 999px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  font-size: 17px;
  color: var(--ink);
}

.profile-loc-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--peach-50);
  color: var(--peach-600);
  font-size: 18px;
}

.profile-quote {
  position: relative;
  max-width: 620px;
  padding: 24px 28px 24px 74px;
  border-radius: var(--r-md);
  background: var(--lav-50);
}

.profile-quote-ic {
  position: absolute;
  left: 22px;
  top: 22px;
  font-size: 36px;
  color: var(--primary);
}

.profile-quote p {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
}

.profile-insta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
}

.profile-insta-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-1);
  color: var(--primary);
  font-size: 22px;
}

.profile-insta a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;             /* тап-цель 44px без раздувания строки */
  font-weight: 800;
  color: var(--primary-600);
  text-decoration: underline;
  text-decoration-color: var(--lav-200);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.profile-sec {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1.5px dashed var(--line);
}

.profile-sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.profile-sec-head .tile {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-size: 28px;
}

.profile-sec-head h2 {
  font-size: 32px;
  line-height: 1.2;
}

/* клиент: плитки полей «О питомце» */
.pet-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.pet-fields li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px 18px 18px;
  border-radius: var(--r-md);
  background: var(--cream);
  border: 1.5px solid var(--line);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
}

.pet-fields strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-600);
}

.profile-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ситтер: подкарточки разделов */
.profile-subs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.profile-sub {
  min-width: 0;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1.5px solid var(--line);
}

.profile-sub .profile-sec-head {
  gap: 14px;
  margin-bottom: 20px;
}

.profile-sub .profile-sec-head .tile {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 25px;
}

.profile-sub .profile-sec-head h2 { font-size: 24px; }

.profile-sub > p { font-size: 16.5px; }
.profile-sub > p + p { margin-top: 14px; }

.profile-inline-ic {
  font-size: 1.2em;
  vertical-align: -.2em;
  color: var(--primary);
}

.profile-inline-ic--heart { color: var(--peach-600); }

.pets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  list-style: none;
}

.pets-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(94, 64, 46, .05);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.pets-list-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 19px;
}

.care-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.care-list p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.care-list .i {
  margin-top: 1px;
  font-size: 22px;
  color: var(--primary);
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 2px 6px rgba(94, 64, 46, .05);
}

.price-list .tile { width: 42px; height: 42px; border-radius: 13px; font-size: 23px; }

.price-list-svc {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.price-list-price {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lav-100);
  font-size: 17px;
  font-weight: 900;
  color: var(--primary-700);
  white-space: nowrap;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 40px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--success-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E9E6C' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.profile-sub--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--lav-50);
  border-color: var(--lav-200);
}

.profile-sub--wide .profile-sec-head { margin-bottom: 10px; }
.profile-sub--wide p { font-size: 17px; }
.profile-sub--wide .btn { flex: none; }

/* =============================================================================
   Адаптив
   ============================================================================= */
@media (max-width: 1299px) {
  .deco-photo--sm { display: none; }
  .deco-photo--tall { width: 150px; height: 170px; }
  .deco-photo--wide { width: 190px; height: 146px; }
  .deco-photo--round { width: 156px; height: 148px; }
  .deco-badge--l { top: 196px; }
  .deco-badge--r { top: 214px; }
  .sticker--pl { left: max(24px, calc(50% - 470px)); top: 240px; }
  .sticker--pr { right: max(24px, calc(50% - 480px)); top: 250px; }
  .page-hero--donate .sticker--pl { left: 172px; top: 14px; }
  .page-hero--donate .sticker--pr { right: 140px; top: 30px; }
}

@media (max-width: 1139px) {
  .deco-photo,
  .deco-badge { display: none; }
}

@media (max-width: 992px) {
  .page-deco { display: none; }

  .about-mission-grid { gap: 36px; }

  .friends-groups { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .friends-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .profile { padding: 36px; }
  .profile-top { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .profile-quote p { font-size: 19px; }
}

@media (max-width: 768px) {
  .page-hero-text,
  .profile-hero-text { font-size: 18px; }

  .about-mission-grid { grid-template-columns: minmax(0, 1fr); }
  .about-alfred { order: -1; width: 100%; max-width: 420px; margin: 0 auto; }

  .donate-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .donate-card:last-child { grid-column: 1 / -1; }
  .donate-methods { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .profile-top { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .profile-id h1 { font-size: 34px; }
  .pet-fields { grid-template-columns: minmax(0, 1fr); }
  .profile-subs { grid-template-columns: minmax(0, 1fr); }
  /* «Фото и видеоотчёты» + кнопка: на 576–593 кнопка (flex: none) не помещалась рядом с текстом и давала
     горизонтальный скролл → переносим её на свою строку, когда места мало; на ≤575 блок — колонка (ниже) */
  .profile-sub--wide { flex-wrap: wrap; }
  .profile-sub--wide > div { flex: 1 1 0; }   /* базис 0 → перенос, только когда min-content текста + кнопка не влезают */
}

@media (max-width: 575px) {
  .page-hero { padding: 8px 0 calc(var(--wave-h) + 36px); }
  .page-hero-inner,
  .profile-hero-inner { align-items: flex-start; text-align: left; }
  .page-hero .crumbs { margin-bottom: 20px; padding: 0 12px 0 10px; font-size: 14px; }
  .page-hero-title { margin-bottom: 16px; font-size: var(--fs-h1); line-height: 1.12; }
  .page-hero-text,
  .profile-hero-text { font-size: 17px; }

  .page-head { align-items: flex-start; margin-bottom: 28px; text-align: left; }
  .page-head-lead { margin-top: 14px; font-size: 16.5px; }

  .page-cta-zone { padding-top: calc(var(--wave-h) + 24px); }

  /* О нас */
  .about-love { padding-top: 16px; }

  .about-mission { padding: calc(var(--wave-h) + 44px) 0 calc(var(--wave-h) + 52px); }
  .about-alfred { padding: 10px 20px 18px 14px; }
  .about-alfred .blob--lav { width: 130px; height: 130px; }
  .about-alfred .blob--peach { width: 160px; height: 160px; }
  .about-alfred-photo { border-width: 6px; border-radius: 24px; }
  .about-alfred-badge { left: 0; bottom: 44px; }
  .about-story-item { gap: 14px; padding: 18px; border-radius: 22px; }
  .about-story-item .tile { width: 42px; height: 42px; border-radius: 14px; font-size: 23px; }
  .about-story-item p { font-size: 16px; }

  .about-values-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .about-value { gap: 16px; padding: 18px; border-radius: 22px; }
  .about-value-icon { width: 58px; height: 58px; border-radius: 18px; font-size: 30px; }
  .about-value-icon::after { right: -6px; top: -6px; width: 24px; height: 24px; font-size: 12px; box-shadow: 0 0 0 3px var(--cream); }
  .about-value h3 { margin: 2px 0 4px; font-size: 19px; }
  .about-value p { font-size: 15px; }

  /* Друзья */
  .friends { padding-top: 16px; }
  .friends-groups { gap: 40px; }
  .friends-group-head { gap: 12px; margin-bottom: 16px; }
  .friends-group-head .tile { width: 46px; height: 46px; border-radius: 15px; font-size: 25px; }
  .friends-group-head h2 { font-size: 26px; }
  .friends-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .friends-card { border-radius: 24px; }
  .friends-card-body { padding: 18px 20px 16px; }
  .friends-card-body h3 { font-size: 20px; }
  .friends-card-body p { font-size: 15px; margin-bottom: 10px; }

  /* Поддержать проект */
  .page-hero--donate { padding-bottom: calc(var(--wave-h) + 56px); }
  .donate-stats { gap: 10px; margin: -36px 0 44px; }
  .donate-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 22px; }
  .donate-card:last-child { flex-direction: row; align-items: center; }
  .donate-card .tile { width: 46px; height: 46px; border-radius: 15px; font-size: 25px; }
  .donate-stat { font-size: 28px; }
  .donate-stat--icon { font-size: 30px; }
  .donate-label { font-size: 14.5px; }
  .donate-methods { gap: 16px; }
  .donate-group { padding: 20px 16px 18px; border-radius: 28px; }
  .donate-group h2 { gap: 12px; margin-bottom: 16px; font-size: 23px; }
  .donate-group h2 .tile { width: 44px; height: 44px; border-radius: 14px; font-size: 24px; }
  .donate-links { gap: 10px; }
  .card-link { height: 84px; padding: 16px 58px; }
  .card-link-go { right: 14px; width: 32px; height: 32px; font-size: 14px; }
  .card-icon--patreon { max-height: 30px; }
  .card-icon--bmc { max-height: 38px; }
  .card-icon--boosty { max-height: 46px; }
  .card-icon--cloudtips { max-height: 36px; }

  /* Профили */
  .profile-hero { padding: 8px 0 calc(var(--wave-h) + 110px); }
  .profile-hero-title { margin-bottom: 14px; font-size: var(--fs-h1-sm); line-height: 1.15; }
  .profile { margin-top: -120px; padding: 20px 16px 24px; border-radius: 30px; }
  .profile-top { grid-template-columns: 118px minmax(0, 1fr); gap: 16px; }
  .profile-info { display: contents; }
  .profile-photo { grid-row: 1; }
  .profile-photo .blob--lav { width: 70px; height: 70px; left: -14px; top: -12px; }
  .profile-photo .blob--peach { display: none; }
  .profile-photo img { border-width: 5px; border-radius: 18px; box-shadow: var(--sh-1); }
  .profile-id { min-width: 0; }
  .profile-id h1 { margin-bottom: 10px; font-size: 23px; line-height: 1.12; }
  .profile-loc { gap: 6px; padding: 5px 12px 5px 5px; font-size: 14.5px; }
  .profile-loc-ic { width: 26px; height: 26px; font-size: 15px; }
  .profile-quote,
  .profile-insta { grid-column: 1 / -1; }
  .profile-quote { margin-top: 4px; padding: 18px 18px 18px 56px; }
  .profile-quote-ic { left: 16px; top: 18px; font-size: 28px; }
  .profile-quote p { font-size: 17px; }
  .profile-insta { gap: 10px; font-size: 15.5px; line-height: 1.4; }
  .profile-insta-ic { width: 40px; height: 40px; font-size: 20px; }

  .profile-sec { margin-top: 30px; padding-top: 28px; }
  .profile-sec-head { gap: 12px; margin-bottom: 18px; }
  .profile-sec-head .tile { width: 44px; height: 44px; border-radius: 14px; font-size: 24px; }
  .profile-sec-head h2 { font-size: 24px; }

  .pet-fields { gap: 10px; }
  .pet-fields li { gap: 12px; padding: 14px 14px 14px 12px; font-size: 15.5px; }
  .pet-fields .tile { width: 40px; height: 40px; border-radius: 12px; font-size: 22px; }
  .pet-fields strong { font-size: 14px; letter-spacing: .03em; }
  .profile-action { margin-top: 24px; }
  .profile-action .btn { width: 100%; }

  .profile-subs { gap: 14px; }
  .profile-sub { padding: 20px 14px; border-radius: 22px; }
  .profile-sub .profile-sec-head h2 { font-size: 21px; }
  .profile-sub .profile-sec-head .tile { width: 40px; height: 40px; border-radius: 13px; font-size: 22px; }
  .profile-sub > p { font-size: 16px; }
  .pets-list { gap: 6px; }
  .pets-list li { gap: 7px; padding: 4px 12px 4px 4px; font-size: 14.5px; }
  .pets-list-ic { width: 28px; height: 28px; font-size: 16px; }
  .care-list p { font-size: 15.5px; }
  .price-list li { flex-wrap: wrap; gap: 4px 10px; padding: 10px; }
  .price-list .tile { width: 36px; height: 36px; border-radius: 11px; font-size: 20px; }
  .price-list-svc { flex: 1 1 calc(100% - 46px); font-size: 15px; }
  .price-list-price { margin-left: 46px; padding: 5px 10px; font-size: 15px; }
  .check-list li { padding-left: 36px; font-size: 15.5px; }
  .check-list li::before { width: 25px; height: 25px; }
  .profile-sub--wide { flex-direction: column; align-items: stretch; gap: 18px; }
  .profile-sub--wide > div { flex: none; }
  .profile-sub--wide p { font-size: 16px; }
  .profile-sub--wide .btn { width: 100%; }
}

@media (max-width: 374px) {
  .about-value { flex-direction: column; gap: 14px; }

  .profile { padding: 18px 12px 22px; }
  .profile-top { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .profile-id h1 { font-size: 21px; }
  .profile-loc { gap: 5px; padding: 4px 10px 4px 4px; font-size: 14px; white-space: nowrap; }
  .profile-loc-ic { width: 24px; height: 24px; font-size: 14px; }
  .pet-fields li { gap: 10px; padding: 12px; }
  .pet-fields .tile { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
  .profile-sub { padding: 18px 12px; }
  .profile-quote { padding: 16px 14px 16px 50px; }
  .profile-quote-ic { left: 14px; }

  .card-link { padding: 14px 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticker,
  .about-alfred-badge { animation: none; }
  .friends-more-ic,
  .card-link,
  .card-link-go { transition: none; }
}
