/* =========================================================
   Страница «Партнёрам». Токены, стекло, кнопки, шапка и подвал — из css/style.css.
   Паттерн — фирменный из брендбука: знак-колос в шахматном порядке, второй ряд повёрнут.
   ========================================================= */
.pp { background: var(--len); }

/* фирменный паттерн «колосья на скатерти» */
.pattern { position: relative; isolation: isolate; }
.pattern::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(../assets/img/brand/pattern.png) 0 0 / 120px 120px repeat; opacity: .16; }

/* ---------- Первый экран ---------- */
.ph { padding: calc(var(--header-h) + 50px) 0 clamp(60px, 8vw, 110px); }
.ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1; background: linear-gradient(transparent, var(--len)); pointer-events: none; }
.ph__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ph__card { padding: clamp(26px, 3.6vw, 48px); border-radius: 36px; background: rgba(255, 255, 255, .6); }
.ph__title { font-size: clamp(46px, 6.5vw, 84px); line-height: 1; font-weight: 700; letter-spacing: -.03em; margin: 0 0 14px; }
.ph__sub { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; color: var(--champ-d); margin: 0 0 16px; }
.ph__lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); margin: 0 0 26px; max-width: 520px; }
.ph__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.ph__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ph__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(86, 98, 125, .08); }
.ph__chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--champ); }

.ph__photos { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.ph__ph { position: absolute; margin: 0; overflow: hidden; border-radius: 26px; border: 6px solid #fff; box-shadow: 0 30px 60px -28px rgba(38, 43, 54, .5); transition: transform .7s var(--ease); }
.ph__ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__ph--1 { left: 0; top: 4%; width: 48%; height: 82%; transform: rotate(-3deg); z-index: 2; }
.ph__ph--2 { right: 0; top: 0; width: 56%; height: 46%; transform: rotate(2.5deg); }
.ph__ph--3 { right: 4%; bottom: 0; width: 54%; height: 46%; transform: rotate(-1.5deg); z-index: 1; }
.ph__photos:hover .ph__ph--1 { transform: rotate(-1deg) translateY(-6px); }
.ph__photos:hover .ph__ph--2 { transform: rotate(1deg) translateY(-4px); }

/* ---------- Общие секции ---------- */
.ps { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.ps--tint { background: linear-gradient(180deg, rgba(226, 221, 211, 0), rgba(226, 221, 211, .55) 18%, rgba(226, 221, 211, .55) 82%, rgba(226, 221, 211, 0)); }
.ps__head { max-width: 780px; margin-bottom: clamp(30px, 5vw, 54px); }
.ps__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.ps__head--center .lead { margin: 0 auto; }

/* 2. Преимущества */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { padding: 30px 28px 32px; border-radius: 28px; background: rgba(255, 255, 255, .6); }
.benefit__ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(145deg, #fff, rgba(226, 221, 211, .8)); box-shadow: 0 10px 24px -10px rgba(86, 98, 125, .4), inset 0 1px 0 #fff; margin-bottom: 20px; }
.benefit__ic svg { width: 30px; height: 30px; }
.benefit h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }
.benefit p { margin: 0; color: var(--muted); }

/* 3. Неделя партнёра */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 22px; }
.week span { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 74px; border-radius: 18px; font-weight: 700; color: #a2a7b3;
  background: rgba(255, 255, 255, .45); border: 1px dashed rgba(86, 98, 125, .2); }
.week span.is-on { color: #fff; background: var(--blue); border: 0; box-shadow: 0 12px 22px -12px rgba(86, 98, 125, .8); }
.week span.is-pay { background: var(--champ-d); box-shadow: 0 12px 22px -12px rgba(140, 110, 60, .8); }
.week i { font-style: normal; font-size: 11px; font-weight: 600; opacity: .85; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: f; }
.flow__step { position: relative; padding: 26px 26px 28px; border-radius: 26px; background: rgba(255, 255, 255, .65); }
.flow__step::before { counter-increment: f; content: counter(f); position: absolute; right: 22px; top: 20px; font-size: 13px; font-weight: 800; color: var(--champ); }
.flow__day { display: inline-block; margin-bottom: 10px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #fff; background: var(--blue); }
.flow__step:nth-child(2) .flow__day { background: var(--champ-d); }
.flow__step p { margin: 0; font-size: 17px; }
.flow__note { margin: 24px 0 0; padding: 18px 22px; border-radius: 20px; font-size: 17px; background: #fff; border-left: 5px solid var(--champ); box-shadow: 0 14px 28px -18px rgba(38, 43, 54, .35); }
.flow__note b { color: var(--blue); }

/* 4. Оформление */
.disp { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.disp__text p { color: var(--muted); margin: 0 0 16px; }
.disp__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.gallery-p { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(170px, 230px)); gap: 14px; }
.gp { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: var(--oves); box-shadow: 0 20px 40px -24px rgba(38, 43, 54, .45); }
.gp img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gp:hover img { transform: scale(1.05); }
.gp--tall { grid-row: span 2; }
.gp figcaption { white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .9); }

/* 5. Сорта */
.sorts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.sorts li { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 14px; text-align: center; border-radius: 20px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; border-bottom: 4px solid var(--c); }
.sorts img { width: 100%; max-width: 92px; height: 70px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(70, 48, 25, .28)); }
.sorts b { font-size: 13px; line-height: 1.2; }
.sorts i { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: #dfe9d3; color: #4d6a3b; }
.sorts__more { text-align: center; margin: 22px 0 0; }

/* 6. История */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.story__photos { position: relative; padding-bottom: 18%; }
.story__main { position: relative; margin: 0; width: 82%; border-radius: 30px; overflow: hidden; box-shadow: 0 34px 60px -30px rgba(38, 43, 54, .5); }
.story__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 20%; }
.story__main figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .82); }
.story__main figcaption b { display: block; }
.story__main figcaption span { font-family: var(--serif); font-style: italic; color: var(--blue); }
.story__small { position: absolute; right: 0; bottom: 0; width: 46%; margin: 0; border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 24px 44px -24px rgba(38, 43, 54, .5); }
.story__small img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__text p { color: var(--muted); margin: 0 0 16px; }
.story__slogan { font-size: clamp(22px, 2.4vw, 30px); color: var(--champ-d) !important; margin-top: 8px !important; }

/* 7. География */
.route { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.route::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 13px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--champ) 0 10px, transparent 10px 18px); }
.route li { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 0 8px; }
.route__dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 6px 12px -6px rgba(86, 98, 125, .8); margin-bottom: 8px; }
.route li:first-child .route__dot { border-color: var(--champ-d); }
.route b { font-size: 17px; }
.route small { color: var(--muted); font-size: 13.5px; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.point { overflow: hidden; padding: 0; border-radius: 24px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .62); }
.point__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.point__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.point:hover .point__img img { transform: scale(1.06); }
.point__badge { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); }
.point__body { padding: 16px 18px 20px; display: grid; gap: 3px; }
.point h3 { margin: 0 0 2px; font-size: 18px; }
.point p { margin: 0; font-size: 15px; }
.point small { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }

/* 8. Призыв */
.cta { max-width: 860px; margin: 0 auto; padding: clamp(30px, 5vw, 60px); border-radius: 40px; text-align: center; background: rgba(255, 255, 255, .7); }
.cta__mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 12px 24px -12px rgba(86, 98, 125, .8); }
.cta .lead { margin: 0 auto 26px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .sorts { grid-template-columns: repeat(4, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ph__grid, .disp, .story { grid-template-columns: 1fr; }
  .ph__photos { max-width: 460px; }
  .benefits, .flow { grid-template-columns: 1fr; }
  .story__photos { max-width: 480px; }
}
@media (max-width: 600px) {
  .ph { padding-top: calc(var(--header-h) + 24px); }
  .ph__actions .btn { flex: 1 1 100%; }
  .week { gap: 4px; }
  .week span { min-height: 58px; border-radius: 12px; font-size: 14px; }
  .week i { font-size: 9px; }
  .gallery-p { grid-template-rows: repeat(2, 170px); gap: 10px; }
  .gp figcaption { font-size: 11.5px; padding: 5px 10px; left: 8px; bottom: 8px; }
  .sorts { grid-template-columns: repeat(2, 1fr); }
  .route { grid-template-columns: 1fr; gap: 16px; }
  .route::before { left: 50%; right: auto; top: 14px; bottom: 30px; width: 3px; height: auto; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--champ) 0 10px, transparent 10px 18px); }
  .route li { background: var(--len); padding: 6px 8px; border-radius: 16px; }
  .points { grid-template-columns: 1fr; }
  .cta__actions .btn { flex: 1 1 100%; }
}

/* фото выкладки в карточке точки */
.point__shelf { position: absolute; right: 10px; bottom: 10px; width: 34%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 20px -8px rgba(38, 43, 54, .55); transition: transform .5s var(--ease-spring); }
.point__shelf img { width: 100%; height: 100%; object-fit: cover; }
.point__shelf span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0 3px; font-size: 10.5px; font-weight: 700; text-align: center; color: #fff; background: rgba(38, 43, 54, .55); }
.point__shelf:hover { transform: scale(1.06) rotate(-2deg); }
.point:hover .point__shelf img { transform: none; }

/* ---------- Движение (работает и на телефоне, без наведения мыши) ---------- */
.ph__ph--1 { animation: ppFloat1 7s ease-in-out infinite; }
.ph__ph--2 { animation: ppFloat2 8s ease-in-out -2s infinite; }
.ph__ph--3 { animation: ppFloat3 9s ease-in-out -4s infinite; }
@keyframes ppFloat1 { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-10px); } }
@keyframes ppFloat2 { 0%, 100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-8px); } }
@keyframes ppFloat3 { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(-.5deg) translateY(-7px); } }
.ph__photos:hover .ph__ph { animation-play-state: paused; }
.pattern::before { animation: ppPattern 60s linear infinite; }
@keyframes ppPattern { to { background-position: 120px 120px; } }
.benefit.is-in .benefit__ic { animation: ppIcon 4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes ppIcon { 50% { transform: translateY(-6px) rotate(-6deg); } }
.week.is-in span.is-on { animation: ppDay .7s var(--ease-spring) both; }
.week.is-in span:nth-child(2) { animation-delay: .2s; } .week.is-in span:nth-child(3) { animation-delay: .45s; } .week.is-in span:nth-child(5) { animation-delay: .7s; }
@keyframes ppDay { from { transform: scale(.6) translateY(14px); opacity: 0; } }
.week span.is-on::after { content: ''; position: absolute; inset: -4px; border-radius: 20px; border: 2px solid currentColor; opacity: 0; animation: ppRing 2.6s ease-out infinite; color: var(--blue); }
.week span.is-pay::after { color: var(--champ-d); animation-delay: .8s; }
.week span:nth-child(5)::after { animation-delay: 1.6s; }
@keyframes ppRing { 0% { opacity: .6; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.12); } }
.flow__step.is-in .flow__day { animation: ppBadge 3s ease-in-out infinite; animation-delay: calc(var(--delay, 0s) * 4); }
@keyframes ppBadge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-4px) scale(1.06); } }
.gp img { animation: kbP 16s ease-in-out infinite alternate; }
.gp:nth-child(2) img { animation-delay: -5s; } .gp:nth-child(3) img { animation-delay: -10s; }
@keyframes kbP { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.sorts.is-in img { animation: bob 6s ease-in-out infinite; }
.sorts li:nth-child(2n) img { animation-delay: -1.5s; } .sorts li:nth-child(3n) img { animation-delay: -3s; } .sorts li:nth-child(4n) img { animation-delay: -4.5s; }
.route::before { animation: ppRoute 1.2s linear infinite; }
@keyframes ppRoute { to { background-position: 18px 0; } }
.route.is-in .route__dot { animation: ppDot 2.4s ease-in-out infinite; }
.route li:nth-child(2) .route__dot { animation-delay: .4s; } .route li:nth-child(3) .route__dot { animation-delay: .8s; }
@keyframes ppDot { 50% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(86, 98, 125, .15); } }
.point.is-in .point__shelf { animation: ppShelf 5s ease-in-out infinite; }
@keyframes ppShelf { 50% { transform: rotate(-3deg) translateY(-4px); } }
.cta__mark { animation: spin 24s linear infinite; }
.story__small { animation: ppFloat3 8s ease-in-out infinite; }
.glass.is-touch::before { opacity: 1; }
@media (hover: none) {
  .btn:active { transform: scale(.95); }
  .benefit:active, .flow__step:active, .point:active, .sorts li:active { transform: scale(.97); transition: transform .2s; }
  .sorts li:active img { transform: translateY(-8px) rotate(-6deg) scale(1.08); }
  .gp:active img { transform: scale(1.1); }
}
@media (max-width: 600px) {
  .route::before { animation-name: ppRouteV; }
  @keyframes ppRouteV { to { background-position: 0 18px; } }
}
html[data-motion="off"] .ph__ph, html[data-motion="off"] .pattern::before, html[data-motion="off"] .gp img, html[data-motion="off"] .sorts img, html[data-motion="off"] .route::before, html[data-motion="off"] .route__dot, html[data-motion="off"] .cta__mark, html[data-motion="off"] .story__small, html[data-motion="off"] .week span::after { animation: none !important; }

/* квас и закваски */
.sorts__title { margin: 34px 0 14px; text-align: center; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; }
.sorts--extra { grid-template-columns: repeat(5, 1fr); max-width: 760px; margin: 0 auto; }
.sorts--extra i.is-kv { background: rgba(86, 98, 125, .12); color: var(--blue); }
@media (max-width: 600px) { .sorts--extra { grid-template-columns: repeat(3, 1fr); } }
