* {
  box-sizing: border-box;
}

:root {
  --pink: #83ffec;
  --pink-deep: #b013ae;
  --violet: #a78bfa;
  --cream: #fff7f2;
  --ink: #4a3b45;
  --card: #ffffff;
}

body {
  margin: 0;
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe9f1 0%, #f3ecff 50%, #fff7f2 100%);
  background-attachment: fixed;
}

/* --- шапка --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(244, 93, 139, 0.15);
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--pink-deep);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.nav a:hover {
  background: #ffd9e6;
  transform: translateY(-2px);
}

/* --- герой --- */
.hero {
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(244, 93, 139, 0.2);
  animation: float 3s ease-in-out infinite;
}

.hero__title {
  margin: 1rem auto 0.5rem;
  max-width: 34rem;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.2;
}

.accent {
  color: var(--pink-deep);
  text-shadow: 0 3px 0 #ffd0e0;
}

.hero__lead {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #7a6a74;
}

.hero__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem 0 1.25rem;
}

.avatar {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  width: 7.5rem;
  padding: 0.9rem 0.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.25);
  transition: transform 0.25s;
}

.avatar:hover {
  transform: translateY(-6px) rotate(-2deg);
}

.avatar span {
  font-size: 2.4rem;
}

.avatar--a { border: 3px solid var(--pink); }
.avatar--b { border: 3px solid var(--violet); }

.hero__plus {
  font-size: 1.8rem;
  color: var(--pink-deep);
  font-weight: 800;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: scale(0.97); }

.btn--heart {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 93, 139, 0.4);
}

.btn--pink {
  background: var(--pink-deep);
  color: #fff;
  box-shadow: 0 6px 16px rgba(244, 93, 139, 0.35);
}

.hero__joke {
  min-height: 1.5rem;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--violet);
}

/* --- секции --- */
.section {
  padding: 2.5rem 1.25rem;
  max-width: 62rem;
  margin: 0 auto;
}

.section--alt {
  max-width: none;
  background: rgba(255, 255, 255, 0.55);
}

.section--alt > * {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  color: rgb(118, 16, 197);
}

.section__sub {
  text-align: center;
  color: #7a6a74;
  margin-top: 0;
}

/* --- карточки подруг --- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(74, 59, 69, 0.1);
  transition: transform 0.25s;
}

.card:hover { transform: translateY(-6px); }

.card--pink { border-top: 6px solid var(--pink); }
.card--violet { border-top: 6px solid var(--violet); }

.card__ava { font-size: 3rem; }

.card h3 { margin: 0.5rem 0 0.15rem; }

.card__role {
  margin: 0 0 0.6rem;
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.9rem;
}

.card p { line-height: 1.55; }

.card__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.card__tags span {
  background: #ffeef4;
  color: var(--pink-deep);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- кафе --- */
.cafe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.cafe-form__input,
.cafe-form__select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border: 2px solid #ffd0e0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.cafe-form__input { flex: 1 1 14rem; min-width: 10rem; }
.cafe-form__input:focus { outline: none; border-color: var(--pink-deep); }

.cafe-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.cafe-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  box-shadow: 0 6px 16px rgba(74, 59, 69, 0.08);
  animation: pop 0.35s ease;
}

.cafe-item__emoji { font-size: 1.6rem; }

.cafe-item__name { font-weight: 700; flex: 1; }

.cafe-item__stars { white-space: nowrap; }

.cafe-item__del {
  border: none;
  background: #ffe4ec;
  color: var(--pink-deep);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cafe-item__del:hover { background: var(--pink-deep); color: #fff; transform: rotate(90deg); }

.cafe-empty {
  text-align: center;
  color: #9a8b94;
  font-weight: 700;
}

/* --- расписание --- */
.schedule {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.day {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(74, 59, 69, 0.08);
  transition: transform 0.2s;
}

.day:hover { transform: translateY(-5px) rotate(-1deg); }

.day h4 {
  margin: 0 0 0.5rem;
  color: var(--pink-deep);
  font-size: 1rem;
}

.day ul { margin: 0; padding-left: 1.1rem; }
.day li { margin: 0.25rem 0; font-size: 0.92rem; }

/* --- фотоплёнка --- */
.film {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-top: 1.25rem;
}

.polaroid {
  margin: 0;
  background: #fff;
  padding: 0.7rem 0.7rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 22px rgba(74, 59, 69, 0.14);
  transition: transform 0.25s;
}

.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }

.polaroid__img {
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  height: 8.5rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, #ffe3ee, #e9dcff);
}

.polaroid figcaption {
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.tilt-1 { transform: rotate(-3deg); }
.tilt-2 { transform: rotate(2deg); }
.tilt-3 { transform: rotate(-1.5deg); }
.tilt-4 { transform: rotate(2.5deg); }
.tilt-5 { transform: rotate(-2deg); }
.tilt-6 { transform: rotate(1.5deg); }

/* --- футер --- */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-weight: 700;
  color: var(--pink-deep);
  background: #fff;
}

/* --- конфетти --- */
.confetti {
  position: fixed;
  top: -1.5rem;
  font-size: 1.4rem;
  z-index: 50;
  pointer-events: none;
  animation: fall linear forwards;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
