/* ==========================================================================
   Тепличка — общие компоненты сайта (навигация, футер, карточка мероприятия,
   ленты и фигурные стыки секций). Подключается на всех страницах через
   scripts/components.py. Меняйте стиль компонента только здесь.
   ========================================================================== */

@font-face {
  font-family: 'Yanone Kaffeesatz';
  src: url('../fonts/yanone-kaffeesatz.woff') format('woff');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tp-cream: #fbf3e8;
  --tp-green: #08554f;
  --tp-deep: #004c2c;
  --tp-grass: #5a8f2e;   /* травяной зелёный: блок с цифрами */
  --tp-ink: #182c23;
  --tp-orange: #f76f1e;
  --tp-orange-dark: #e05a0c;
  --tp-pink: #e0cbcb;
  --tp-rose: #f3cfc8;
  --tp-sky: #78c3ff;
  --tp-yellow: #ffd84d;
  --tp-font: 'Yanone Kaffeesatz', 'Arial Narrow', Arial, sans-serif;
  --tp-wrap: 1180px;
  /* Типографика: только эти размеры. Шрифт везде Yanone Kaffeesatz. */
  --tp-fs-display: clamp(66px, 11vw, 144px); /* только заголовок-герой */
  --tp-fs-h1: clamp(46px, 6.2vw, 76px);      /* заголовок страницы */
  --tp-fs-h2: clamp(38px, 4.6vw, 58px);      /* заголовок секции */
  --tp-fs-h3: 28px;                          /* заголовок карточки, вопроса, пункта */
  --tp-fs-lead: 24px;                        /* подзаголовок, вводный абзац (вес 300) */
  --tp-fs-body: 21px;                        /* основной текст */
  --tp-fs-body-sm: 19px;                     /* текст в карточках */
  --tp-fs-small: 17px;                       /* подписи, даты, метки (600, капслок) */
  --tp-fs-caption: 16px;                     /* мелкий служебный текст */
  --tp-fs-btn: 20px;                         /* все кнопки */
  --tp-fs-nav: 22px;                         /* пункты меню */
  --tp-nav-h: 80px;
}

.tp-nav *, .tp-footer *, .tp-events *, .tp-hero *, .tp-ribbon *, .tp-sec * { box-sizing: border-box; }

/* ---------- Кнопки ---------- */
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 var(--tp-fs-btn)/1 var(--tp-font); letter-spacing: .01em;
  color: #fff; background: var(--tp-orange);
  padding: 15px 28px 16px; border-radius: 100px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.tp-btn:hover { background: var(--tp-orange-dark); transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.tp-btn:focus-visible { outline: 3px solid var(--tp-sky); outline-offset: 3px; }
.tp-btn--sm { padding: 12px 22px 13px; }
.tp-btn--ghost { background: transparent; color: var(--tp-green); border-color: currentColor; }
.tp-btn--ghost:hover { background: var(--tp-green); color: var(--tp-cream); }

/* ---------- Навигация ---------- */
.tp-nav {
  position: sticky; top: 0; z-index: 9990;
  background: var(--tp-cream);
  font-family: var(--tp-font);
  transition: box-shadow .25s;
}
.tp-nav.is-scrolled { box-shadow: 0 2px 0 rgba(8,85,79,.12); }
.tp-nav__in {
  max-width: var(--tp-wrap); margin: 0 auto; height: var(--tp-nav-h);
  padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.tp-nav__links { display: flex; align-items: center; gap: 34px; }
.tp-nav__links--left { justify-content: flex-end; }
.tp-nav__links--right { justify-content: flex-start; }
.tp-nav a { color: var(--tp-green); text-decoration: none; }
.tp-nav__links > a, .tp-nav__menu > a {
  font-size: var(--tp-fs-nav); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  position: relative; padding: 4px 0;
}
.tp-nav__links > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--tp-orange); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.tp-nav__links > a:hover::after, .tp-nav__links > a[aria-current]::after { transform: scaleX(1); }
.tp-nav__logo img { display: block; height: 30px; width: auto; transition: transform .3s; }
.tp-nav__logo:hover img { transform: rotate(-3deg) scale(1.04); }
.tp-nav__soc { display: inline-flex; gap: 12px; }
.tp-nav__soc a { display: inline-flex; width: 26px; height: 26px; transition: transform .2s; }
.tp-nav__soc a:hover { transform: translateY(-2px) rotate(-6deg); }
.tp-nav__soc svg { width: 100%; height: 100%; fill: currentColor; }
.tp-nav__burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px 8px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.tp-nav__burger span { display: block; height: 3px; border-radius: 3px; background: var(--tp-green); transition: transform .25s, opacity .25s; }
.tp-nav.is-open .tp-nav__burger span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.tp-nav.is-open .tp-nav__burger span:nth-child(2) { opacity: 0; }
.tp-nav.is-open .tp-nav__burger span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
.tp-nav__menu { display: none; }

@media (max-width: 860px) {
  :root { --tp-nav-h: 64px; }
  .tp-nav__in { grid-template-columns: auto 1fr auto; gap: 12px; padding: 0 16px; }
  .tp-nav__links { display: none; }
  .tp-nav__logo { grid-column: 1; }
  .tp-nav__burger { display: flex; grid-column: 3; }
  .tp-nav__menu {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--tp-cream); padding: 12px 24px 28px;
    box-shadow: 0 14px 20px -12px rgba(8,85,79,.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .tp-nav.is-open .tp-nav__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .tp-nav__menu > a { font-size: 30px; } /* крупно только в мобильном меню */
  .tp-nav__menu > a[aria-current] { color: var(--tp-orange); }
  .tp-nav__menu .tp-nav__soc a { width: 32px; height: 32px; }
}

/* Старые блоки Тильды, которые раньше были навигацией и футером, больше не нужны */
.t446, .tmenu-mobile { display: none !important; }

/* ---------- Футер ---------- */
.tp-footer {
  position: relative; background: var(--tp-deep); color: var(--tp-cream);
  font-family: var(--tp-font); margin-top: 24px;
}
.tp-footer::before { /* фигурный край */
  content: ''; position: absolute; left: 0; right: 0; top: -23px; height: 24px;
  background: radial-gradient(circle at 24px 24px, var(--tp-deep) 23.5px, transparent 24px) repeat-x;
  background-size: 48px 24px; pointer-events: none;
}
.tp-footer__in {
  max-width: var(--tp-wrap); margin: 0 auto; padding: 64px 24px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
}
.tp-footer__brand img { display: block; width: 150px; height: auto; margin-bottom: 14px; }
.tp-footer__brand p { margin: 0; font-size: var(--tp-fs-body); font-weight: 300; line-height: 1.3; max-width: 260px; opacity: .85; }
.tp-footer__col { display: flex; flex-direction: column; gap: 9px; }
.tp-footer h3 { margin: 0 0 6px; font-size: var(--tp-fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tp-sky); }
.tp-footer a { color: var(--tp-cream); text-decoration: none; font-size: var(--tp-fs-body); font-weight: 400; width: fit-content; }
.tp-footer a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tp-footer__legal {
  max-width: var(--tp-wrap); margin: 0 auto; padding: 18px 24px 30px;
  border-top: 1px solid rgba(251,243,232,.15);
  display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--tp-fs-caption); font-weight: 300; color: rgba(251,243,232,.6);
}
@media (max-width: 860px) {
  .tp-footer__in { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 52px; }
  .tp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .tp-footer__in { grid-template-columns: 1fr; }
  .tp-footer__legal { flex-direction: column; }
}

/* ---------- Секция с карточками мероприятий ---------- */
.tp-events { position: relative; background: var(--tp-green); color: var(--tp-cream); font-family: var(--tp-font); }
.tp-events__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 40px 24px 72px; }
.tp-events__head { text-align: center; margin: 0 auto 44px; max-width: 760px; }
.tp-events__title { margin: 0; font: 600 var(--tp-fs-h2)/.95 var(--tp-font); text-transform: uppercase; letter-spacing: .01em; color: var(--tp-cream); }
.tp-events__lead { margin: 14px 0 0; font: 300 var(--tp-fs-lead)/1.3 var(--tp-font); opacity: .9; }
.tp-events__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px;
}
.tp-events__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1000px) { .tp-events__grid, .tp-events__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tp-events__in { padding: 32px 0 56px; }
  .tp-events__head { padding: 0 20px; margin-bottom: 28px; }
  .tp-events__grid, .tp-events__grid--4 {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 20px 16px; scrollbar-width: none;
  }
  .tp-events__grid::-webkit-scrollbar { display: none; }
  .tp-events__grid > li { flex: 0 0 74%; scroll-snap-align: center; }
}

/* ---------- Карточка мероприятия (компонент) ---------- */
.tp-ecard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; }
.tp-ecard__img {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; border-radius: 18px; overflow: hidden;
  background: rgba(251,243,232,.08); box-shadow: 0 10px 0 -2px rgba(0,0,0,.14);
  transition: transform .35s cubic-bezier(.2,.8,.3,1.3), box-shadow .35s;
}
.tp-ecard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-ecard:hover .tp-ecard__img { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 16px 0 -2px rgba(0,0,0,.18); }
.tp-events__grid > li:nth-child(even) .tp-ecard:hover .tp-ecard__img { transform: translateY(-6px) rotate(1.5deg); }
.tp-ecard__date {
  margin-top: -16px; position: relative; z-index: 1;
  font: 600 var(--tp-fs-small)/1 var(--tp-font); text-transform: uppercase; letter-spacing: .05em;
  color: var(--tp-ink); background: var(--tp-yellow); padding: 8px 14px 9px; border-radius: 100px;
  transform: rotate(-2deg);
}
.tp-ecard__title { margin: 16px 0 0; font: 600 var(--tp-fs-h3)/1 var(--tp-font); color: var(--tp-cream); }
.tp-ecard__title a { color: inherit; text-decoration: none; }
.tp-ecard__title a::after { content: ''; position: absolute; inset: 0; z-index: 2; } /* вся карточка кликабельна */
.tp-ecard__place { margin: 6px 0 0; font: 400 var(--tp-fs-body-sm)/1.2 var(--tp-font); color: var(--tp-sky); }
.tp-ecard__text { margin: 8px 0 0; font: 300 var(--tp-fs-body-sm)/1.3 var(--tp-font); color: var(--tp-cream); opacity: .92; max-width: 320px; }
.tp-ecard__img::after { /* лёгкое затемнение под кнопкой при наведении */
  content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,40,30,.45), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.tp-ecard__cta {
  position: absolute; left: 50%; bottom: 30px; z-index: 1; white-space: nowrap;
  font: 600 var(--tp-fs-btn)/1 var(--tp-font); color: #fff; background: var(--tp-orange);
  padding: 12px 22px 13px; border-radius: 100px;
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s;
}
.tp-ecard:hover .tp-ecard__img::after, .tp-ecard:focus-within .tp-ecard__img::after { opacity: 1; }
.tp-ecard:hover .tp-ecard__cta, .tp-ecard:focus-within .tp-ecard__cta { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .tp-ecard__cta, .tp-ecard__img::after { display: none; } }

/* ---------- Лента с бегущим текстом ---------- */
.tp-ribbon {
  position: relative; z-index: 3; overflow: hidden;
  background: var(--tp-sky); color: #fff;
  font: 600 var(--tp-fs-h3)/1 var(--tp-font); text-transform: uppercase; letter-spacing: .04em;
  padding: 16px 0 17px; transform: rotate(-2deg); margin: -28px -20px;
  box-shadow: 0 6px 0 rgba(0,0,0,.08);
}
.tp-ribbon__track { display: flex; width: max-content; animation: tp-marquee 38s linear infinite; }
.tp-ribbon__track span { white-space: nowrap; padding-right: .6em; }
.tp-ribbon__track b { color: var(--tp-yellow); font-weight: 600; padding: 0 .55em; }
.tp-ribbon--pink { background: var(--tp-rose); color: var(--tp-green); transform: rotate(1.5deg); }
.tp-ribbon--pink b { color: var(--tp-orange); }
@keyframes tp-marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .tp-ribbon { font-size: var(--tp-fs-lead); padding: 12px 0 13px; } }

/* ---------- Фигурные стыки секций ---------- */
.tp-sec { position: relative; }
.tp-scallop-top::before, .tp-scallop-bottom::after {
  content: ''; position: absolute; left: 0; right: 0; height: 24px; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at 24px 24px, var(--tp-edge, var(--tp-green)) 23.5px, transparent 24px) repeat-x;
  background-size: 48px 24px;
}
.tp-scallop-top::before { top: -23px; }
.tp-scallop-bottom::after { bottom: -23px; transform: scaleY(-1); }
.tp-wave-top::before {
  content: ''; position: absolute; left: 0; right: 0; top: -39px; height: 40px; pointer-events: none; z-index: 2;
  background: var(--tp-edge, var(--tp-green));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C20 22 20 4 40 4s20 18 40 18 20-18 40-18 20 18 40 18v18Z'/%3E%3C/svg%3E") 0 0 / 160px 40px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C20 22 20 4 40 4s20 18 40 18 20-18 40-18 20 18 40 18v18Z'/%3E%3C/svg%3E") 0 0 / 160px 40px repeat-x;
}

/* ---------- Анимации иллюстраций ---------- */
@keyframes tp-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes tp-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); } }
@keyframes tp-spin { to { transform: rotate(360deg); } }
@keyframes tp-tilt { 0%, 55%, 100% { transform: rotate(0); } 70%, 88% { transform: rotate(-18deg); } }
@keyframes tp-drop { 0%, 62% { opacity: 0; transform: translate(0, 0) scale(.6); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-6px, 70px) scale(1); } }
@keyframes tp-rise { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes tp-pop { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tp-ribbon__track, .tp-anim, .tp-anim * { animation: none !important; }
}

#events, .tp-anchor, #contacts, .tp-events { scroll-margin-top: calc(var(--tp-nav-h) + 8px); }

/* Тильда красит все ссылки внутри #allrecords — возвращаем цвета компонентов */
#allrecords .tp-nav a { color: var(--tp-green); }
#allrecords .tp-nav__menu > a[aria-current] { color: var(--tp-orange); }
#allrecords .tp-footer a { color: var(--tp-cream); }
#allrecords .tp-footer a:hover { color: var(--tp-cream); text-decoration: underline; }
#allrecords .tp-ecard a { color: inherit; }
#allrecords a.tp-btn { color: #fff; }
#allrecords a.tp-btn--ghost { color: var(--tp-green); }
#allrecords a.tp-btn--ghost:hover { color: var(--tp-cream); }

/* ==========================================================================
   Шапка-герой /swap — по макету в Figma («Зеленые истории», Прототип):
   ровный кремовый фон, разноцветное «Цветочный», «своп» на розовой плашке,
   пеперомия слева и сапог справа.
   ========================================================================== */
.tp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--tp-cream); color: var(--tp-green); font-family: var(--tp-font);
  min-height: clamp(540px, calc(78vh - var(--tp-nav-h)), 700px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px 96px;
}
.tp-hero__in { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 980px; }
.tp-hero__stage { position: relative; width: fit-content; margin: 0 auto; padding: 0 clamp(96px, 13vw, 190px); }
.tp-hero__eyebrow {
  display: flex; justify-content: space-between; gap: 40px; margin: 0 auto 6px; padding: 0 4%;
  font: 400 var(--tp-fs-small)/1 var(--tp-font); letter-spacing: .02em; color: #a9a196;
  animation: tp-rise .7s .05s both;
}
.tp-hero__title { position: relative; z-index: 2; margin: 0; font-weight: 500; line-height: 1; }
.tp-hero__word { display: block; font-size: clamp(66px, 8.6vw, 132px); letter-spacing: -.005em; line-height: .95; }
.tp-hero__word > span { display: inline-block; animation: tp-letter .7s cubic-bezier(.2,.8,.3,1.3) both; animation-delay: calc(.12s + var(--i) * .05s); }
.tp-hero__word .c-g { color: #2b6a5c; } .tp-hero__word .c-b { color: #4a62b8; } .tp-hero__word .c-y { color: #e8a74e; }
.tp-hero__word .c-o { color: #e8702f; } .tp-hero__word .c-p { color: #e8829f; }
.tp-hero__tag { display: inline-block; margin-top: 10px; animation: tp-pop .6s .65s cubic-bezier(.2,.8,.3,1.4) both; }
.tp-hero__tag > span {
  display: inline-block; padding: .04em .9em .1em;
  font-size: clamp(46px, 5.2vw, 80px); line-height: 1; color: var(--tp-cream); background: #e8829f;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}
.tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-hero__lead { margin: 22px auto 0; max-width: 620px; text-wrap: balance; font: 500 var(--tp-fs-body)/1.3 var(--tp-font); color: #3f4434; animation: tp-rise .8s .75s both; }
.tp-hero__cta { margin-top: 24px; animation: tp-rise .8s .85s both; }

.tp-hero__art { position: absolute; z-index: 1; pointer-events: none; }
.tp-hero__art img { display: block; width: 100%; height: auto; }
.tp-hero__art > span { display: block; animation: tp-pop .8s cubic-bezier(.2,.8,.3,1.4) both; animation-delay: .5s; }
.tp-hero__art .sway { display: block; transform-origin: 50% 100%; animation: tp-sway 6s ease-in-out infinite; }
.tp-hero__art .hop { display: block; transform-origin: 30% 100%; animation: tp-hop 5s ease-in-out infinite; }
.tp-hero__pepa { left: 0; top: 4%; width: clamp(96px, 12.5vw, 184px); }
.tp-hero__boot { right: 0; top: 10%; width: clamp(84px, 10.5vw, 150px); }
.tp-hero__boot > span { animation-delay: .6s; }
@keyframes tp-letter { from { opacity: 0; transform: translateY(.35em) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes tp-hop { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-10px) rotate(-6deg); } 86% { transform: rotate(3deg); } }

@media (max-width: 700px) {
  .tp-hero { padding: 36px 16px 104px; min-height: 0; }
  .tp-hero__stage { padding: 0; width: 100%; }
  .tp-hero__eyebrow { justify-content: center; gap: 22px; margin-bottom: 10px; }
  .tp-hero__word { font-size: clamp(62px, 19vw, 96px); }
  .tp-hero__tag > span { font-size: clamp(42px, 12vw, 60px); }
  .tp-hero__lead { padding: 0 6px; }
  .tp-hero__pepa { left: 0; top: auto; bottom: -4px; width: 86px; }
  .tp-hero__boot { right: 8px; top: auto; bottom: -2px; width: 62px; }
}

.tp-ribbon-wrap { position: relative; z-index: 4; height: 0; overflow-x: clip; overflow-y: visible; }
.tp-ribbon-wrap .tp-ribbon { position: absolute; left: -20px; right: -20px; top: -38px; margin: 0; }

/* Карточки сразу перед футером: нижний фигурный край не нужен, у футера свой */
.tp-events:has(+ .tp-footer)::after,
.tp-events:has(+ [data-record-type="823"] + .tp-footer)::after { display: none; }
.tp-events + .tp-footer, .tp-events + [data-record-type="823"] + .tp-footer { margin-top: 0; background: var(--tp-deep); }


/* ---------- Общие заголовки секций ---------- */
.tp-head { text-align: center; margin: 0 auto 40px; max-width: 760px; }
.tp-h2 { margin: 0; font: 600 var(--tp-fs-h2)/.95 var(--tp-font); text-transform: uppercase; letter-spacing: .01em; color: var(--tp-green); }
.tp-lead { margin: 12px 0 0; font: 300 var(--tp-fs-lead)/1.3 var(--tp-font); color: var(--tp-ink); }
.tp-link { font: 400 var(--tp-fs-body)/1.2 var(--tp-font); text-decoration: underline; text-underline-offset: 4px; }
#allrecords .tp-link { color: inherit; }

/* ---------- Гайд участника ---------- */
.tp-guide { background: var(--tp-rose); color: var(--tp-green); font-family: var(--tp-font); }
.tp-guide__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 84px 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.tp-guide__img { display: block; border-radius: 14px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 12px 0 -2px rgba(8,85,79,.18); transition: transform .35s cubic-bezier(.2,.8,.3,1.3); }
.tp-guide__img:hover { transform: rotate(0) translateY(-4px); }
.tp-guide__img img { display: block; width: 100%; height: auto; }
.tp-guide__txt .tp-h2 { text-align: left; }
.tp-guide__txt p { margin: 16px 0 10px; font: 400 var(--tp-fs-body)/1.35 var(--tp-font); color: var(--tp-ink); }
.tp-guide__txt ul { margin: 0 0 28px; padding: 0; list-style: none; font: 400 var(--tp-fs-body)/1.45 var(--tp-font); color: var(--tp-ink); }
.tp-guide__txt li::before { content: '✿'; color: var(--tp-orange); margin-right: 10px; }
.tp-guide__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tp-guide__meta { display: block; margin-top: 12px; font: 300 var(--tp-fs-caption)/1 var(--tp-font); color: var(--tp-ink); opacity: .75; }
@media (max-width: 860px) { .tp-guide__in { grid-template-columns: 1fr; gap: 32px; padding: 64px 20px; } }

/* ---------- Всё про своп (вопросы и правила) ---------- */
.tp-faq { background: var(--tp-cream); color: var(--tp-ink); font-family: var(--tp-font); }
.tp-faq__in { max-width: 880px; margin: 0 auto; padding: 84px 24px 90px; }
.tp-faq__list { border-top: 2px solid rgba(8,85,79,.18); }
.tp-faq__item { border-bottom: 2px solid rgba(8,85,79,.18); }
.tp-faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 56px 22px 0; font: 500 var(--tp-fs-h3)/1.15 var(--tp-font); color: var(--tp-green);
  transition: color .2s;
}
.tp-faq__item summary::-webkit-details-marker { display: none; }
.tp-faq__item summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: var(--tp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23fbf3e8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s, background-color .2s;
}
.tp-faq__item summary:hover { color: var(--tp-orange); }
.tp-faq__item summary:hover::after { background-color: var(--tp-orange); }
.tp-faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--tp-orange); }
.tp-faq__a { padding: 0 56px 24px 0; font: 400 var(--tp-fs-body)/1.4 var(--tp-font); }
.tp-faq__a p { margin: 0 0 10px; }
.tp-faq__a ul { margin: 0 0 10px; padding-left: 0; list-style: none; }
.tp-faq__a li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.tp-faq__a li::before { content: '✿'; position: absolute; left: 0; color: var(--tp-orange); }
#allrecords .tp-faq__a a { color: var(--tp-orange); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .tp-faq__in { padding: 64px 18px 70px; }
  .tp-faq__item summary { padding-right: 48px; }
  .tp-faq__a { padding-right: 0; }
}

/* ---------- О нас пишут ---------- */
.tp-press { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-press__in { max-width: 880px; margin: 0 auto; padding: 72px 24px 84px; }
.tp-press__list { display: grid; gap: 14px; }
.tp-press__item {
  position: relative; display: block; padding: 20px 64px 22px 26px; border-radius: 18px;
  background: #fff; box-shadow: 0 4px 0 rgba(8,85,79,.1); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.tp-press__item:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 7px 0 rgba(8,85,79,.14); }
.tp-press__meta { display: block; font: 600 var(--tp-fs-small)/1 var(--tp-font); text-transform: uppercase; letter-spacing: .06em; color: var(--tp-orange); }
.tp-press__title { display: block; margin-top: 8px; font: 500 var(--tp-fs-h3)/1.15 var(--tp-font); color: var(--tp-green); }
.tp-press__arrow { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 600 var(--tp-fs-h3)/1 var(--tp-font); color: var(--tp-green); transition: transform .2s; }
.tp-press__item:hover .tp-press__arrow { transform: translate(4px, -50%); }
#allrecords .tp-press__item { color: var(--tp-green); }

/* стыки: после зелёных карточек — розовый гайд, после гайда — кремовый блок вопросов */
.tp-faq.tp-sec::before {
  content: ''; position: absolute; left: 0; right: 0; top: -39px; height: 40px; pointer-events: none; z-index: 2;
  background: var(--tp-cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C20 22 20 4 40 4s20 18 40 18 20-18 40-18 20 18 40 18v18Z'/%3E%3C/svg%3E") 0 0 / 160px 40px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C20 22 20 4 40 4s20 18 40 18 20-18 40-18 20 18 40 18v18Z'/%3E%3C/svg%3E") 0 0 / 160px 40px repeat-x;
}

/* ==========================================================================
   ТИПОГРАФИКА — единая шкала (токены в :root). Классы для своих блоков:
   .tp-h1 .tp-h2 .tp-h3 .tp-lead .tp-body .tp-eyebrow .tp-caption
   Ниже те же размеры принудительно применяются к блокам Тильды,
   чтобы шрифты не «скакали» от страницы к странице.
   ========================================================================== */
@media (max-width: 600px) {
  :root { --tp-fs-h3: 25px; --tp-fs-lead: 22px; --tp-fs-body: 20px; --tp-fs-body-sm: 18px; }
}
.tp-h1 { margin: 0; font: 600 var(--tp-fs-h1)/.95 var(--tp-font); text-transform: uppercase; letter-spacing: .01em; color: var(--tp-green); }
.tp-h3 { margin: 0; font: 600 var(--tp-fs-h3)/1.05 var(--tp-font); color: var(--tp-green); }
.tp-body { font: 400 var(--tp-fs-body)/1.4 var(--tp-font); color: var(--tp-ink); }
.tp-eyebrow { margin: 0; font: 600 var(--tp-fs-small)/1 var(--tp-font); text-transform: uppercase; letter-spacing: .08em; color: var(--tp-orange); }
.tp-caption { font: 300 var(--tp-fs-caption)/1.3 var(--tp-font); }

/* Блоки Тильды (кроме zero-блоков .t396 — это нарисованные макеты) */
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-title, .t-section__title) {
  font-family: var(--tp-font) !important; font-size: var(--tp-fs-h2) !important; font-weight: 600 !important;
  line-height: .95 !important; text-transform: uppercase; letter-spacing: .01em;
}
#allrecords .t-rec:not([data-record-type="396"]) :is(.t1065__title, .t469__title, .t733__title) { font-size: var(--tp-fs-h1) !important; }
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-section__descr, .t795__descr, .t1065__descr, .t469__descr) {
  font-family: var(--tp-font) !important; font-size: var(--tp-fs-lead) !important; font-weight: 300 !important; line-height: 1.3 !important;
}
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-heading, .t-name, .t-card__title, .t554__title, .t523__persname, .t523__time) {
  font-family: var(--tp-font) !important; font-size: var(--tp-fs-h3) !important; font-weight: 600 !important; line-height: 1.05 !important;
}
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-descr, .t-text):not(.t-section__descr, .t795__descr, .t1065__descr, .t469__descr, .t1003__item-txt) {
  font-family: var(--tp-font) !important; font-size: var(--tp-fs-body) !important; font-weight: 400 !important; line-height: 1.4 !important;
}
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-card__descr, .t-descr_xs, .t-descr_xxs, .t523__persdescr, .t1065__item-text) {
  font-size: var(--tp-fs-body-sm) !important;
}
/* размеры, вписанные Тильдой прямо в текст, не перебивают шкалу */
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-title, .t-section__title, .t-heading, .t-name, .t-descr, .t-text) [style*="font-size"] { font-size: inherit !important; }
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-title, .t-section__title, .t-heading, .t-name) [style*="font-weight"] { font-weight: inherit !important; }
#allrecords .t1003__item-txt { font-family: var(--tp-font) !important; font-size: var(--tp-fs-h3) !important; font-weight: 600 !important; text-transform: uppercase; }

/* Свои старые блоки страниц событий (id="rec_…") */
#allrecords [id^="rec_"] h2 { font: 600 var(--tp-fs-h2)/.95 var(--tp-font) !important; text-transform: uppercase; letter-spacing: .01em; }
#allrecords [id^="rec_"] h3 { font: 600 var(--tp-fs-h3)/1.05 var(--tp-font) !important; }
#allrecords [id^="rec_"] :is(p, li) { font-family: var(--tp-font) !important; font-size: var(--tp-fs-body) !important; line-height: 1.4 !important; }
#allrecords [id^="rec_"] :is(p.lead, h2 + p) { font-size: var(--tp-fs-lead) !important; font-weight: 300 !important; }
#allrecords [id^="rec_"] .sym { font: 600 var(--tp-fs-small)/1.2 var(--tp-font) !important; text-transform: uppercase; letter-spacing: .06em; }

/* ==========================================================================
   КНОПКИ — одна форма на всём сайте: оранжевая «таблетка» (.tp-btn),
   второстепенная — контурная (.tp-btn--ghost). Кнопки Тильды приводим к ней же.
   ========================================================================== */
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-btn, .t-btnflex, .t-submit, .t-btnflex_type_button):not([class*="__control"]):not([class*="arrow"]),
#allrecords [id^="rec_"] :is(.g-btn) {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  height: auto !important; min-height: 0 !important; width: auto !important;
  padding: 15px 28px 16px !important; border-radius: 100px !important; border: 2px solid transparent !important;
  background: var(--tp-orange) !important; color: #fff !important; box-shadow: none !important;
  font-family: var(--tp-font) !important; font-size: var(--tp-fs-btn) !important; font-weight: 600 !important; line-height: 1 !important;
  letter-spacing: .01em !important; text-transform: none !important; text-decoration: none !important;
  transition: background-color .2s, transform .2s, box-shadow .2s !important;
}
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-btn, .t-btnflex, .t-submit):not([class*="__control"]):not([class*="arrow"]):hover,
#allrecords [id^="rec_"] .g-btn:hover { background: var(--tp-orange-dark) !important; transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.12) !important; }
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-btn, .t-btnflex) :is(.t-btnflex__text, .t-btn__text, td, span) {
  font: inherit !important; color: inherit !important;
}

/* ---------- Шапка простой страницы (/events) ---------- */
.tp-pagehead { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-pagehead__in { max-width: 860px; margin: 0 auto; padding: 72px 24px 64px; text-align: center; }
.tp-pagehead .tp-h1 { margin-top: 14px; }
.tp-pagehead .tp-lead { margin-top: 18px; }
#allrecords .tp-pagehead .tp-lead a { color: var(--tp-orange); text-decoration: underline; text-underline-offset: 3px; }
.tp-pagehead__cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Тепличка в Telegram ---------- */
.tp-tg { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-tg__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 80px 24px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.tp-tg__img { display: block; border-radius: 18px; overflow: hidden; transform: rotate(2deg); box-shadow: 0 12px 0 -2px rgba(8,85,79,.15); }
.tp-tg__img img { display: block; width: 100%; height: auto; }
.tp-tg__txt .tp-h2 { text-align: left; }
.tp-tg__txt .tp-body { margin: 18px 0 28px; }
@media (max-width: 860px) { .tp-tg__in { grid-template-columns: 1fr; gap: 32px; padding: 64px 20px; } .tp-tg__img { max-width: 420px; } }

/* ---------- Итоги события (цифры) ---------- */
.tp-stats { background: var(--tp-grass); color: var(--tp-cream); font-family: var(--tp-font); }
.tp-stats__in { max-width: 960px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.tp-stats .tp-h2 { color: var(--tp-cream); }
.tp-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-stats__card { background: rgba(251,243,232,.14); border-radius: 20px; padding: 26px 20px; display: flex; flex-direction: column; gap: 8px; }
.tp-stats__num { font: 700 var(--tp-fs-h1)/1 var(--tp-font); color: var(--tp-yellow); }
.tp-stats__txt { font: 400 var(--tp-fs-body-sm)/1.3 var(--tp-font); }
.tp-stats__note { max-width: 680px; margin: 28px auto 0; color: var(--tp-cream); }
#allrecords .tp-stats__note a { color: var(--tp-yellow); text-decoration: underline; }
@media (max-width: 600px) { .tp-stats__grid { grid-template-columns: 1fr; } }

/* ---------- Партнёры события ---------- */
.tp-partners { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-partners__in { max-width: 1040px; margin: 0 auto; padding: 72px 24px 80px; }
.tp-partners__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 24px; }
.tp-partners__item { width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.tp-partners__item img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; border: 2px solid rgba(8,85,79,.1); transition: transform .25s; }
.tp-partners__item:hover img { transform: scale(1.05) rotate(-3deg); }
.tp-partners__name { font: 600 var(--tp-fs-body)/1.15 var(--tp-font); color: var(--tp-green); }
.tp-partners__role { margin-top: 4px; font: 300 var(--tp-fs-body-sm)/1.2 var(--tp-font); color: var(--tp-ink); }
@media (max-width: 600px) { .tp-partners__item { width: 140px; } .tp-partners__item img { width: 110px; height: 110px; } }

/* подсветка футера после перехода по «Контакты» */
@keyframes tp-flash { 0% { box-shadow: inset 0 0 0 0 var(--tp-yellow); } 30% { box-shadow: inset 0 6px 0 0 var(--tp-yellow); } 100% { box-shadow: inset 0 0 0 0 var(--tp-yellow); } }
.tp-footer.is-flash { animation: tp-flash 1.6s ease-out; }

/* Обложки страниц событий (Тильда T1065): на телефоне заголовок и пункты не вылезают за край */
@media (max-width: 640px) {
  #allrecords .t1065__title, #allrecords .t1065__title * { word-break: normal !important; overflow-wrap: anywhere; }
  #allrecords .t1065__item-text, #allrecords .t1065__item-text * { word-break: normal !important; overflow-wrap: normal !important; }
  #allrecords .t1065 .tp-btn { white-space: normal; text-align: center; max-width: 100%; }
}
@media (max-width: 700px) { .tp-br { display: none; } }

/* ---------- Своп на вашей площадке (призыв для площадок) ---------- */
.tp-venue { background: var(--tp-rose); color: var(--tp-green); font-family: var(--tp-font); }
.tp-venue__in { max-width: 1040px; margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.tp-venue__art { width: 100%; height: auto; transform-origin: 50% 100%; animation: tp-sway 6s ease-in-out infinite; }
.tp-venue .tp-h2 { margin-top: 10px; }
.tp-venue .tp-body { margin: 16px 0 26px; max-width: 640px; }
.tp-venue__cta { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .tp-venue__in { grid-template-columns: 1fr; gap: 20px; text-align: center; padding: 60px 20px; } .tp-venue__art { width: 140px; margin: 0 auto; } .tp-venue__cta { justify-content: center; } }

/* ---------- Цифры: вариант на 4 карточки ---------- */
.tp-stats__grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .tp-stats__grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Форматы (карточки с номерами) ---------- */
.tp-formats { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-formats__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 84px 24px; }
.tp-formats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-formats__card { background: #fff; border-radius: 20px; padding: 26px 26px 28px; box-shadow: 0 4px 0 rgba(8,85,79,.1); transition: transform .25s; }
.tp-formats__card:hover { transform: translateY(-4px) rotate(-.5deg); }
.tp-formats__card--main { grid-row: span 2; background: var(--tp-green); color: var(--tp-cream); }
.tp-formats__card--main .tp-h3 { color: var(--tp-cream); font-size: clamp(30px, 3vw, 40px); }
.tp-formats__num { display: block; font: 700 var(--tp-fs-small)/1 var(--tp-font); letter-spacing: .08em; color: var(--tp-orange); margin-bottom: 14px; }
.tp-formats__card--main .tp-formats__num { color: var(--tp-yellow); }
.tp-formats__card p { margin: 10px 0 0; font: 400 var(--tp-fs-body-sm)/1.4 var(--tp-font); }
@media (max-width: 900px) { .tp-formats__grid { grid-template-columns: 1fr 1fr; } .tp-formats__card--main { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 560px) { .tp-formats__grid { grid-template-columns: 1fr; } .tp-formats__in { padding: 64px 18px; } }

/* ---------- Две колонки со списками ---------- */
.tp-split { background: var(--tp-rose); font-family: var(--tp-font); }
.tp-split__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 80px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.tp-split .tp-h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 22px; }
.tp-list { list-style: none; margin: 0; padding: 0; }
.tp-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font: 400 var(--tp-fs-body)/1.35 var(--tp-font); color: var(--tp-ink); }
.tp-list li::before { content: '✿'; position: absolute; left: 0; color: var(--tp-orange); }
@media (max-width: 760px) { .tp-split__in { grid-template-columns: 1fr; gap: 36px; padding: 64px 20px; } }

/* ---------- Шаги ---------- */
.tp-steps { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-steps__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 84px 24px; }
.tp-steps__list { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tp-steps__list li { counter-increment: st; position: relative; padding-top: 64px; }
.tp-steps__list li::before {
  content: counter(st); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tp-orange); color: #fff; font: 700 26px/1 var(--tp-font);
}
.tp-steps__list li:not(:last-child)::after { content: ''; position: absolute; top: 23px; left: 58px; right: -8px; border-top: 2px dashed rgba(8,85,79,.25); }
.tp-steps__list p { margin: 8px 0 0; font: 400 var(--tp-fs-body-sm)/1.35 var(--tp-font); color: var(--tp-ink); }
@media (max-width: 900px) { .tp-steps__list { grid-template-columns: 1fr; gap: 22px; } .tp-steps__list li { padding: 4px 0 0 66px; min-height: 48px; } .tp-steps__list li::after { display: none; } }

/* ---------- Финальный контакт ---------- */
.tp-contact { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-contact__in { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; text-align: center; }
.tp-contact .tp-lead { margin-top: 12px; }

/* ---------- Видео и галерея со страниц событий ---------- */
.tp-media { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-media__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 72px 24px; }
.tp-media__main { display: block; width: 100%; max-width: 960px; margin: 0 auto; border-radius: 20px; background: #000; box-shadow: 0 10px 0 -2px rgba(8,85,79,.15); }
.tp-media__row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.tp-media__row video { width: 300px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; background: #000; object-fit: cover; }
.tp-media figcaption { margin-top: 10px; text-align: center; font: 400 var(--tp-fs-body-sm)/1.3 var(--tp-font); color: var(--tp-ink); }
.tp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.tp-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; }
@media (max-width: 760px) { .tp-gallery { grid-template-columns: 1fr 1fr; } }
.tp-media__more { text-align: center; margin: 28px 0 0; }
.tp-media figure { margin: 0; } .tp-media__row video { width: 260px; }

/* ---------- Аудитория (страница «Партнёрам»): крупный двухцветный заголовок + наклонные фото ---------- */
.tp-aud { background: var(--tp-pink); font-family: var(--tp-font); color: var(--tp-ink); overflow-x: clip; }
.tp-aud__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 84px 24px 96px; }
#allrecords .tp-aud__title, .tp-aud__title { margin: 0 0 8px; font: 700 var(--tp-fs-h1)/.95 var(--tp-font); text-transform: uppercase; color: var(--tp-grass); display: flex; flex-direction: column; }
.tp-aud__title em { font-style: normal; color: var(--tp-green); }
.tp-aud__l1 { align-self: flex-start; }
.tp-aud__l2 { align-self: center; }
.tp-aud__l3 { align-self: flex-end; margin-right: 20%; }
.tp-aud__body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-top: 8px; }
.tp-aud__photos { position: relative; height: 440px; }
.tp-aud__photos img { position: absolute; display: block; height: auto; max-width: none; object-fit: cover; border: 12px solid #fff; border-bottom-width: 40px; box-shadow: 0 14px 30px rgba(24,44,35,.18); }
.tp-aud__ph1 { left: 0; top: 120px; width: 60%; aspect-ratio: 3 / 2; transform: rotate(-4deg); }
.tp-aud__ph2 { right: 4%; top: 30px; width: 44%; aspect-ratio: 2 / 3; transform: rotate(5deg); }
.tp-aud__tag { position: absolute; left: 2%; top: 40px; z-index: 2; background: var(--tp-yellow); color: var(--tp-ink); font: 600 var(--tp-fs-small)/1 var(--tp-font); text-transform: uppercase; letter-spacing: .06em; padding: 10px 18px; transform: rotate(-6deg); clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.tp-aud__text .tp-btn { background: var(--tp-green); }
.tp-aud__text .tp-btn:hover { background: var(--tp-deep); }
.tp-aud__text .tp-lead { margin: 0 0 28px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; }
@media (prefers-reduced-motion: no-preference) {
  .tp-aud__photos img { transition: transform .4s; }
  .tp-aud__photos:hover .tp-aud__ph1 { transform: rotate(-6deg) translateY(-6px); }
  .tp-aud__photos:hover .tp-aud__ph2 { transform: rotate(7deg) translateY(-6px); }
}
@media (max-width: 860px) {
  .tp-aud__in { padding: 64px 18px 72px; }
  .tp-aud__l2, .tp-aud__l3 { align-self: flex-start; margin: 0; }
  .tp-aud__body { grid-template-columns: 1fr; gap: 24px; margin-top: 16px; }
  .tp-aud__photos { height: 290px; }
  .tp-aud__ph1 { top: 70px; width: 62%; }
  .tp-aud__tag { top: 10px; }
  .tp-aud__ph2 { width: 46%; right: 0; }
}

/* ---------- Виды событий (страница «Партнёрам») ---------- */
.tp-kinds { background: var(--tp-cream); font-family: var(--tp-font); }
.tp-kinds__in { max-width: var(--tp-wrap); margin: 0 auto; padding: 84px 24px 0; }
.tp-kinds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tp-kinds__card { background: #fff; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; box-shadow: 0 4px 0 rgba(8,85,79,.1); }
.tp-kinds__card--wide { grid-column: 1 / -1; grid-template-columns: 300px 1fr; }
.tp-kinds__img { display: block; }
.tp-kinds__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-kinds__body { padding: 26px 28px 28px; }
.tp-kinds__body .tp-eyebrow { margin: 0 0 6px; }
.tp-kinds__body .tp-h3 { color: var(--tp-green); margin: 0 0 10px; }
.tp-kinds__card--wide .tp-h3 { font-size: clamp(30px, 3vw, 40px); }
.tp-kinds__body p { margin: 0 0 12px; font: 400 var(--tp-fs-body-sm)/1.4 var(--tp-font); color: var(--tp-ink); }
.tp-kinds__body .tp-btn { margin-top: 6px; }
@media (max-width: 860px) { .tp-kinds__grid { grid-template-columns: 1fr; } .tp-kinds__card, .tp-kinds__card--wide { grid-template-columns: 1fr; } .tp-kinds__img img { aspect-ratio: 16 / 10; height: auto; } }
