/* =========================================================
   Мастер-класс «Психосоматика» — стили
   Палитра и шрифт взяты из макета в Фигме
   ========================================================= */

:root {
  --cream: #fff2b1;   /* фон секций, светлый текст */
  --dark:  #361111;   /* основной тёмный: текст, кнопки, теги */
  --red:   #a03e3e;   /* бордовый: полоса с датой, подвал, карточки */
  --blue:  #3b4fa6;   /* синий акцент: звёзды, точки, карточка события */
  --ochre: #b8813c;   /* охра: точки, карточка «Слепой баттл» */
  --rust:  #a6513a;   /* карточки ингредиентов */

  --font: "Lora", Georgia, "Times New Roman", serif;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Кнопки и теги ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45em 1.4em;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--cream);
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn--dark { background: var(--dark); }
.btn--blue { background: var(--blue); }
.btn--red  { background: var(--red); }
.btn--sm   { font-size: clamp(15px, 1.5vw, 22px); padding: .35em 1.1em; }
.btn--lg {
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  padding: .3em 1.6em;
  border-radius: 6px;
  min-width: min(430px, 100%);
}

.tags { display: flex; gap: 12px; flex-wrap: wrap; }
.tags--col { flex-direction: column; }
.tag {
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--radius);
  padding: .2em 1.4em;
  font-size: clamp(14px, 1.3vw, 20px);
  text-align: center;
  min-width: 96px;
}

.section-title {
  font-weight: 700;
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.1;
  color: var(--dark);
}
.section-title--right  { text-align: right; }
.section-title--center { text-align: center; }

/* Звёзды-декор */
.deco-star { position: absolute; pointer-events: none; }
.deco-star--blue { fill: var(--blue); }
.deco-star--red  { fill: var(--red); }

/* Конфетти-точки: позиция и размер задаются переменными в разметке */
.confetti,
.events__burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti i,
.events__burst i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c);
}

/* ---------- 1. Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid rgba(54, 17, 17, .08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.nav { display: flex; gap: clamp(16px, 3vw, 48px); }
.nav a {
  font-size: clamp(15px, 1.6vw, 22px);
  text-decoration: none;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

/* ---------- 2. Главный экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(56vw, 780px);
  display: flex;
  color: var(--cream);
  /* Запасной фон в палитре макета — виден, пока не добавлена картинка img/hero.jpg */
  background:
    radial-gradient(60% 90% at 78% 40%, var(--blue) 0 24%, transparent 25%),
    radial-gradient(70% 110% at 60% 30%, var(--cream) 0 30%, transparent 31%),
    radial-gradient(80% 120% at 40% 20%, var(--red) 0 38%, transparent 39%),
    radial-gradient(90% 130% at 30% 90%, var(--ochre) 0 40%, transparent 41%),
    var(--dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(28px, 6vw, 110px);
  padding-bottom: clamp(20px, 3vw, 44px);
}
.hero__title {
  max-width: 420px;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(54, 17, 17, .35);
}
.hero__title b { display: block; font-weight: 700; }
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__date {
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: .9;
  text-shadow: 0 2px 18px rgba(54, 17, 17, .35);
}

/* ---------- 3. О мероприятии ---------- */

.about {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0;
}
.about__inner {
  position: relative;
  max-width: 640px;
  text-align: center;
}
.about__title {
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.15;
  margin-bottom: .8em;
}
.about__text {
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.3;
}
.about__text + .about__text { margin-top: .2em; }

/* ---------- 4. Полоса с датой ---------- */

.band {
  position: relative;
  background: var(--red);
  color: var(--cream);
  text-align: center;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
}
.band__text { font-size: clamp(34px, 5vw, 72px); line-height: 1; }
.band__sprig {
  position: absolute;
  width: 42px;
  height: 28px;
  fill: var(--cream);
  color: var(--cream);
}
.band__sprig--left  { left: 2.5%; top: 18%; transform: rotate(60deg); }
.band__sprig--right { right: 2.5%; bottom: 14%; transform: rotate(180deg); }

/* ---------- 5. Меню ---------- */

.menu { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.menu .section-title { margin-bottom: clamp(24px, 4vw, 56px); }
.menu__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 2vw, 28px);
}
.menu-card__name {
  text-align: center;
  font-weight: 400;
  font-size: clamp(16px, 1.7vw, 26px);
  margin-bottom: 12px;
}
.menu-card__frame {
  background: var(--red);
  border-radius: 4px;
  padding: 8% 8% 32%;
  transition: transform .2s ease;
}
.menu-card:hover .menu-card__frame { transform: translateY(-6px) rotate(-1deg); }
.menu-card__img {
  aspect-ratio: 357 / 385;
  background: var(--dark) center / cover no-repeat;
}

/* ---------- 6. Ингредиенты ---------- */

.ingredients {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 96px) 0;
}
.ingredients .section-title { margin-bottom: clamp(32px, 5vw, 72px); }
.ingredients__star-l { width: clamp(90px, 13vw, 240px); height: auto; aspect-ratio: 120/100; left: 3%; top: 2%; transform: rotate(-10deg); }
.ingredients__star-r { width: clamp(90px, 12vw, 220px); height: auto; aspect-ratio: 120/100; right: 3%; top: 3%; transform: scaleX(-1) rotate(-15deg); }

.ingr__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px) clamp(24px, 12vw, 260px);
  max-width: 1120px;
  margin: 0 auto;
}
.ingr {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--rust);
  color: var(--cream);
  padding: 18px 22px;
  min-height: 170px;
  max-width: 440px;
  border-radius: 2px;
}
.ingr:nth-child(even) { justify-self: end; }
.ingr__img {
  flex: 0 0 auto;
  width: clamp(76px, 9vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dark) center / cover no-repeat;
}
.ingr p { font-size: clamp(15px, 1.35vw, 19px); line-height: 1.3; }
.ingr b { font-weight: 700; }

/* ---------- 7. События ---------- */

.events { padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.events__inner { display: grid; gap: clamp(16px, 2vw, 28px); }
.events__head { position: relative; padding-right: 240px; min-height: 120px; }
.events__head .section-title { font-size: clamp(32px, 4vw, 60px); }
.events__burst { left: auto; width: 230px; height: 230px; top: -10px; right: 20px; }
.events__burst .deco-star { width: 100%; height: 100%; inset: 0; }

.event {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  border-radius: 2px;
}
.event__img { background: var(--dark) center / cover no-repeat; }
.event--ochre .event__img--tall { background-position: 40% center; }
.event__title {
  font-weight: 700;
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.1;
}
.event__text { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.4; }

.event--wide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(14px, 1.6vw, 28px);
  background: var(--red);
}
.event--wide .event__img { min-height: 320px; }
.event--wide .event__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 8px 8px 0;
}
.event--wide .event__title { margin-top: auto; }
.event--wide .btn { margin-top: auto; min-width: 240px; }

.events__row {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}

.event--blue {
  background: var(--blue);
  padding: clamp(14px, 1.6vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.event__img--banner { aspect-ratio: 1203 / 328; }
.event__body--split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}
.event__body--split > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.event--blue .btn { min-width: 220px; }
.confetti--corner { inset: auto auto 0 0; width: 120px; height: 140px; }
.event--blue .event__body { position: relative; z-index: 1; padding-left: 0; }

.event--ochre { background: var(--ochre); }
.event--split {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 20px;
  padding: clamp(14px, 1.6vw, 24px);
}
.event__img--tall { min-height: 100%; aspect-ratio: 434 / 739; }
.event--split .event__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.event--split .event__title { color: var(--dark); }
.event--split .event__text { color: var(--dark); margin-top: auto; }
.event--split .btn { margin-top: 8px; }

/* ---------- 8. Локация ---------- */

.place { background: var(--red); color: var(--cream); }
.place__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: start;
  padding-top: clamp(18px, 2vw, 32px);
  padding-bottom: clamp(18px, 2vw, 32px);
}
.place__title {
  font-weight: 700;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.15;
  max-width: 340px;
}
.place__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.place__pics--one { grid-template-columns: 1fr; }
.place__img {
  aspect-ratio: 779 / 387;
  background: var(--dark) center / cover no-repeat;
}

/* ---------- 9. Подвал ---------- */

.footer {
  background: var(--red);
  color: var(--cream);
  border-top: 1px solid rgba(255, 242, 177, .2);
}
.footer__inner {
  display: flex;
  justify-content: flex-end;
  gap: clamp(32px, 4vw, 64px);
  padding-top: clamp(20px, 2.5vw, 36px);
  padding-bottom: clamp(24px, 3vw, 44px);
}
.footer__col { max-width: 220px; font-size: 15px; line-height: 1.35; display: grid; gap: 6px; align-content: start; }
.footer__title { font-weight: 700; font-size: clamp(22px, 2vw, 30px); margin-bottom: 4px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
  .menu__list { grid-template-columns: repeat(3, 1fr); }
  .ingr__list { gap: 16px 24px; }
  .ingr { max-width: none; }
  .ingr:nth-child(even) { justify-self: stretch; }
  .events__row { grid-template-columns: 1fr; }
  .event--wide { grid-template-columns: 1fr; }
  .event--wide .event__body { padding: 0; }
  .event__img--tall { aspect-ratio: auto; min-height: 280px; }
  .place__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header__inner { min-height: 56px; }
  .nav { gap: 14px; }
  .hero { min-height: 520px; }
  .hero__bottom { flex-direction: column-reverse; align-items: stretch; }
  .hero__date { align-self: flex-end; }
  .btn--lg { min-width: 0; width: 100%; }
  .about .confetti { opacity: .35; }
  .menu__list { grid-template-columns: repeat(2, 1fr); }
  .ingr__list { grid-template-columns: 1fr; }
  .ingr { min-height: 0; }
  .events__head { padding-right: 0; min-height: 0; }
  .events__burst { width: 110px; height: 110px; top: -40px; right: 0; opacity: .6; }
  .event__body--split { grid-template-columns: 1fr; }
  .tags--col { flex-direction: row; }
  .event--split { grid-template-columns: 1fr; }
  .place__pics { grid-template-columns: 1fr; }
  .footer__inner { justify-content: flex-start; flex-wrap: wrap; }
  .band__sprig { width: 30px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
