/* ═══════════════════════════════════════════
   IAКИМАНКА — новый сайт молодёжного клуба
   ═══════════════════════════════════════════ */

:root {
  --cream: #FAF4EB;
  --cream-2: #F3E9DC;
  --ink: #33202F;
  --plum: #513148;
  --plum-deep: #3B2237;
  --berry: #DB5462;
  --berry-dark: #C4404E;
  --gold: #E9A13B;
  --white: #FFFDFA;
  --radius: 24px;
  --radius-lg: 36px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Golos Text', sans-serif;
  --shadow: 0 20px 60px -20px rgba(59, 34, 55, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

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

/* ── типографика ── */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: .5em;
}
.h2--light { color: var(--white); }
.accent { color: var(--berry); }
.accent-gold { color: var(--gold); }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--berry);
  background: rgba(219, 84, 98, .1);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold); background: rgba(233, 161, 59, .15); }

.lead { font-size: 1.18rem; font-weight: 500; }

.section { padding: clamp(70px, 9vw, 130px) 0; }
.section--plum { background: var(--plum-deep); color: rgba(255, 253, 250, .85); }
.section--cream { background: var(--cream-2); }
.section--berry {
  background: linear-gradient(150deg, var(--berry) 0%, var(--berry-dark) 60%, #A83341 100%);
  color: rgba(255, 253, 250, .92);
}
.section-sub { max-width: 560px; color: rgba(51, 32, 47, .7); margin-bottom: 10px; }

/* ── кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--berry { background: var(--berry); color: #fff; box-shadow: 0 12px 30px -10px rgba(219, 84, 98, .55); }
.btn--berry:hover { background: var(--berry-dark); box-shadow: 0 16px 36px -10px rgba(219, 84, 98, .65); }
.btn--ghost { border-color: rgba(59, 34, 55, .25); color: var(--ink); }
.btn--ghost:hover { border-color: var(--plum); background: rgba(81, 49, 72, .05); }
.btn--light { background: var(--white); color: var(--berry-dark); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ═══════════ HEADER ═══════════ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.header.scrolled {
  background: rgba(250, 244, 235, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px -12px rgba(59, 34, 55, .18);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; gap: 28px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.logo__badge {
  width: 38px;
  height: 38px;
  color: var(--berry);
  margin-right: 9px;
  flex-shrink: 0;
}
.logo__text { color: var(--ink); }

/* глиф Ꙗ из логотипа: рисуется в размер заглавных букв текущего шрифта */
.ya {
  display: inline-block;
  height: .74em;
  width: .985em;
  fill: currentColor;
}
/* запрет переноса строки внутри слова с глифом */
.nb { white-space: nowrap; }
.logo--footer .logo__text { color: #fff; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: rgba(51, 32, 47, .8);
  transition: color .2s;
}
.nav a:hover { color: var(--berry); }

.header__cta { flex-shrink: 0; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 170px);
  text-align: center;
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
}
.hero__blob--1 { width: 480px; height: 480px; background: #F6C6CC; top: -120px; left: -140px; }
.hero__blob--2 { width: 520px; height: 520px; background: #F3DCB8; top: 40px; right: -180px; }

.hero__badge {
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--plum);
  background: var(--white);
  border: 1px solid rgba(81, 49, 72, .15);
  border-radius: 999px;
  padding: 9px 22px;
  box-shadow: 0 8px 24px -12px rgba(59, 34, 55, .2);
}

.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10.5vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 26px 0 22px;
}
.hero__title-ia { color: var(--berry); }

.hero__sub {
  position: relative;
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(51, 32, 47, .8);
}
.hero__sub em { font-style: normal; color: var(--berry); font-weight: 600; }

.hero__chips { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip {
  font-size: .88rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--white);
  border: 1px solid rgba(81, 49, 72, .14);
  border-radius: 999px;
  padding: 8px 18px;
}

.hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: clamp(50px, 7vw, 80px); }

/* коллаж */
.hero__collage { position: relative; }
.hero__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__photo img { width: 100%; height: clamp(300px, 48vw, 620px); object-fit: cover; }

.hero__sticker {
  position: absolute;
  width: clamp(120px, 16vw, 210px);
  background: var(--white);
  border-radius: 18px;
  padding: 8px 8px 10px;
  box-shadow: 0 18px 40px -14px rgba(59, 34, 55, .35);
  transition: transform .4s var(--ease);
}
.hero__sticker img { border-radius: 12px; aspect-ratio: 3/3.4; object-fit: cover; width: 100%; }
.hero__sticker figcaption { font-size: .82rem; font-weight: 600; color: var(--plum); text-align: center; padding-top: 7px; }
.hero__sticker--left { left: clamp(-10px, 1vw, 30px); top: -40px; transform: rotate(-7deg); }
.hero__sticker--right { right: clamp(14px, 2.5vw, 44px); bottom: clamp(20px, 3vw, 44px); transform: rotate(6deg); }
.hero__sticker--left:hover { transform: rotate(-3deg) scale(1.04); }
.hero__sticker--right:hover { transform: rotate(2deg) scale(1.04); }

/* бегущая строка: идёт ниже фотографии, не перекрывая людей на снимке */
.marquee {
  margin-top: clamp(26px, 4vw, 56px);
  position: relative;
  z-index: 2;
  background: var(--plum-deep);
  transform: rotate(-1.2deg) scale(1.02);
  padding: 16px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ ABOUT ═══════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about__sticky { position: sticky; top: 110px; }
.about__stats { display: grid; gap: 14px; margin-top: 34px; }
.stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--white);
  border: 1px solid rgba(81, 49, 72, .1);
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: 0 10px 30px -18px rgba(59, 34, 55, .2);
}
.stat b { font-family: var(--font-display); font-size: 1.9rem; color: var(--berry); font-weight: 700; }
.stat span { color: rgba(51, 32, 47, .7); font-weight: 500; }

.about__body p { margin-bottom: 1.2em; color: rgba(51, 32, 47, .82); }
.about__body .lead { color: var(--ink); }

.about__arches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  align-items: end;
}
.arch { border-radius: 200px 200px 22px 22px; overflow: hidden; box-shadow: var(--shadow); }
.arch img { width: 100%; height: 260px; object-fit: cover; transition: transform .6s var(--ease); }
.arch:hover img { transform: scale(1.06); }
.arch--tilt-l { transform: rotate(-3deg) translateY(10px); }
.arch--tilt-r { transform: rotate(3deg) translateY(10px); }
.arch--up img { height: 300px; }

/* ═══════════ EVENTS ═══════════ */
.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px;
}
.event-card {
  background: rgba(255, 253, 250, .06);
  border: 1px solid rgba(255, 253, 250, .12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), background .3s;
}
.event-card:hover { transform: translateY(-8px); background: rgba(255, 253, 250, .1); }
.event-card__img { overflow: hidden; }
.event-card__img img { width: 100%; height: 240px; object-fit: cover; transition: transform .6s var(--ease); }
.event-card:hover .event-card__img img { transform: scale(1.06); }
.event-card__body { padding: 26px; }
.event-card__body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.event-card__body p { font-size: .95rem; margin-bottom: 16px; color: rgba(255, 253, 250, .75); }
.event-card__links { display: flex; flex-direction: column; gap: 6px; }
.link-arrow {
  font-weight: 600;
  font-size: .92rem;
  color: var(--gold);
  text-decoration: none;
}
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ═══════════ TEAMS ═══════════ */
.teams__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.team-card {
  background: var(--white);
  border: 1px solid rgba(81, 49, 72, .09);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card:nth-child(4n+1) { background: #FDEEEA; }
.team-card:nth-child(4n+2) { background: #FBF3E2; }
.team-card:nth-child(4n+3) { background: #EFEAF6; }
.team-card:nth-child(4n+4) { background: #E9F2EA; }
.team-card__icon { font-size: 2rem; margin-bottom: 14px; }
.team-card h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: .92rem; color: rgba(51, 32, 47, .72); }
.team-card p a { color: var(--berry); font-weight: 600; }
.team-card--cta {
  background: var(--plum-deep) !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.team-card--cta p { color: rgba(255, 253, 250, .75); margin-bottom: 12px; }
.btn--light.btn--sm { background: var(--gold); color: var(--plum-deep); align-self: flex-start; }

/* ═══════════ MEDIA ═══════════ */
.media__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 250px);
  gap: 22px;
  margin-top: 46px;
}
.media-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.media-card--big { grid-row: span 2; }
.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.media-card:hover img { transform: scale(1.05); }
.media-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(to top, rgba(40, 20, 36, .88) 0%, rgba(40, 20, 36, .25) 55%, transparent 100%);
  color: #fff;
}
.media-card__tag {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--berry);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.media-card__overlay h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.media-card__overlay p { font-size: .92rem; color: rgba(255, 255, 255, .85); }

/* ═══════════ PRIEST ═══════════ */
.priest__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.priest__photo {
  border-radius: 300px 300px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 380px;
}
.priest__photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.priest__body .lead { margin: 14px 0 28px; color: rgba(51, 32, 47, .8); }
.priest__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ═══════════ JOIN ═══════════ */
.join__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 46px 0;
}
.step {
  background: rgba(255, 253, 250, .12);
  border: 1px solid rgba(255, 253, 250, .18);
  border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(4px);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--berry-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.step p { font-size: .95rem; }

.join__contacts { display: grid; gap: 14px; max-width: 640px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 16px 22px;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.contact-card:hover { transform: translateX(6px); box-shadow: 0 14px 34px -14px rgba(40, 20, 36, .45); }
.contact-card__ava {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--berry-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.contact-card div { display: flex; flex-direction: column; line-height: 1.35; }
.contact-card b { font-weight: 700; }
.contact-card div span { font-size: .86rem; color: rgba(51, 32, 47, .6); }
.contact-card__tg { margin-left: auto; font-weight: 600; color: var(--berry); font-size: .92rem; white-space: nowrap; }

/* ═══════════ GALLERY ═══════════ */
.gallery { padding-bottom: 40px; }
.gallery .container { margin-bottom: 40px; }
.gallery__row { overflow: hidden; padding: 12px 0; }
.gallery__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.gallery__track--rev { animation-direction: reverse; }
.gallery__row:hover .gallery__track { animation-play-state: paused; }
.gallery__track img {
  height: clamp(180px, 24vw, 280px);
  width: auto;
  border-radius: 18px;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.gallery__track img:hover { transform: scale(1.04) rotate(1deg); }

/* ═══════════ CTA ═══════════ */
.cta { padding-top: 60px; }
.cta__box {
  background: linear-gradient(140deg, var(--plum-deep), var(--plum) 70%, #6b4260);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: clamp(50px, 7vw, 90px) 30px;
  color: rgba(255, 253, 250, .85);
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: '✦';
  position: absolute;
  font-size: 200px;
  color: rgba(233, 161, 59, .1);
  top: -60px;
  right: -20px;
  transform: rotate(15deg);
}
.cta__box p { max-width: 440px; margin: 0 auto 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: #281424; color: rgba(255, 253, 250, .75); padding: 70px 0 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 253, 250, .12);
}
.footer__note { margin-top: 16px; font-size: .92rem; line-height: 1.7; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col b { color: #fff; margin-bottom: 6px; font-family: var(--font-display); font-size: .95rem; font-weight: 600; }
.footer__col a { text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: .85rem;
  color: rgba(255, 253, 250, .45);
}

/* ═══════════ REVEAL ═══════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .gallery__track { animation: none; }
}

/* ═══════════ АДАПТИВ ═══════════ */
@media (max-width: 1024px) {
  .teams__grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__sticky { position: static; }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
  .media__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .media-card { min-height: 240px; }
  .media-card--big { grid-column: span 2; grid-row: auto; min-height: 320px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: var(--cream);
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1.3rem;
    transform: translateY(-100%);
    transition: transform .45s var(--ease), visibility .45s;
    z-index: -1;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-family: var(--font-display); font-weight: 600; }
  .burger { display: block; margin-left: auto; z-index: 10; }
  .header__cta { display: none; }
  .header__inner { justify-content: space-between; }
  body.menu-open { overflow: hidden; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .events__grid, .join__steps { grid-template-columns: 1fr; }
  .teams__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-card { padding: 22px 18px; }
  .media__grid { grid-template-columns: 1fr; }
  .media-card--big { grid-column: auto; }
  .priest__grid { grid-template-columns: 1fr; }
  .priest__photo { max-width: 300px; margin-inline: auto; }
  .about__stats { grid-template-columns: 1fr; }
  .about__arches { gap: 10px; }
  .arch img { height: 160px; }
  .arch--up img { height: 185px; }
  .hero__sticker--left { top: -26px; }
  .hero__sticker--right { bottom: 14px; right: 10px; }
  .marquee { margin-top: 22px; }
  .marquee__track { animation-duration: 14s; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-card__tg { display: none; }
}

@media (max-width: 460px) {
  .teams__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
