/* KAIF — kaifclub.com
   Стиль: чёрный фон, глубокий красный, жирный узкий капс (по афишам, KAIF MEMORY.md §17.1) */

:root {
  --black: #08070a;
  --black-soft: #101014;
  --red-deep: #7a0d18;
  --red: #c2132a;
  --red-bright: #ff2740;
  --sunset: #ff6a3d;
  --cream: #f3e7d8;
  --gold: #d9a441;
  --white: #ffffff;
  --grey: #8e8a92;
  --line: rgba(243, 231, 216, 0.14);

  --font-display: "Archivo Black", "Anton", Impact, "Haettenschweiler", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Типографика ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}

h2 {
  font-size: clamp(30px, 5vw, 54px);
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: 700;
  margin-bottom: 14px;
}

.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(243,231,216,0.78); max-width: 62ch; }

.muted { color: var(--grey); }

/* ---------- Шапка ---------- */

header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 7, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; }
.logo-lg img { height: 78px; }

.nav-links { display: flex; gap: 30px; align-items: center; }

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(243,231,216,0.72);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.lang {
  display: flex;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.lang b { color: var(--white); }
.lang span { color: var(--grey); }

.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 24px; cursor: pointer; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 17px 34px;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 rgba(255, 39, 64, 0);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 39, 64, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(243,231,216,0.35);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cream); transform: translateY(-2px); }

.btn-sm { padding: 12px 22px; font-size: 13px; }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 75% 20%, rgba(194,19,42,0.5) 0%, transparent 55%),
    radial-gradient(90% 70% at 20% 90%, rgba(255,106,61,0.22) 0%, transparent 60%),
    linear-gradient(180deg, #14060a 0%, var(--black) 70%);
}

/* Афиша ближайшей вечеринки фоном первого экрана */
.hero-photo {
  position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 22%;
  opacity: 0.5;
  filter: saturate(1.05);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(8,7,10,0.86) 42%, rgba(8,7,10,0.25) 100%),
    linear-gradient(180deg, rgba(8,7,10,0.9) 0%, transparent 30%, var(--black) 96%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero h1 {
  font-size: clamp(56px, 13vw, 168px);
  letter-spacing: -0.01em;
  transform: skewX(-6deg);
  margin-bottom: 18px;
}

.hero h1 .slash { color: var(--red-bright); }

.hero-tag {
  font-size: clamp(12px, 1.4vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cream);
  margin-bottom: 44px;
  font-weight: 600;
  max-width: 62ch;
  line-height: 1.9;
}

/* Карточка ближайшей вечеринки */
.next-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  background: rgba(16,16,20,0.72);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-bright);
  padding: 26px 30px;
  max-width: 860px;
  backdrop-filter: blur(8px);
}

.next-date { text-align: center; line-height: 1; }
.next-date .d { font-family: var(--font-display); font-size: 62px; color: var(--white); }
.next-date .m { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red-bright); margin-top: 6px; }

.next-info .city { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; }
.next-info .venue { font-size: 15px; color: var(--grey); letter-spacing: 0.06em; margin-top: 4px; }
.next-info .theme { font-size: 14px; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; }

/* ---------- Секции ---------- */

section { padding: 100px 0; position: relative; }
section.tight { padding: 70px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }

/* Афиша-сетка событий */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }

.event-card {
  position: relative;
  background: var(--black-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-5px); border-color: rgba(255,39,64,0.55); }

.event-poster {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(80% 60% at 50% 15%, rgba(194,19,42,0.55), transparent 65%),
    linear-gradient(160deg, #1b0a10, #0a0709);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  position: relative;
}

.event-poster.has-img {
  background-size: cover;
  background-position: center;
  padding: 18px;
}

.poster-day {
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 0.8;
  color: var(--white);
  transform: skewX(-6deg);
}
.poster-month { font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red-bright); margin-top: 8px; }
.poster-city { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; }
.poster-country { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }

.event-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.event-venue { font-size: 14px; color: var(--grey); }
.event-price { font-family: var(--font-display); font-size: 20px; }
.event-price small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--grey); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 2px; }

.event-poster.has-img .badge { top: auto; bottom: 16px; right: 16px; }

.badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--red-bright); color: var(--white);
  padding: 6px 11px; font-weight: 700;
}
.badge.soldout { background: var(--grey); }
.badge.few { background: var(--gold); color: #201400; }

/* Про бренд */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { border-top: 2px solid var(--red); padding-top: 14px; }
.stat .n { font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px); color: var(--white); }
.stat .l { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }

.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-ph {
  aspect-ratio: 3/4;
  background: linear-gradient(150deg, #1d0b11, #0b0809);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(142,138,146,0.6);
  text-align: center; padding: 12px;
}
.photo-ph:nth-child(2) { margin-top: 34px; }

/* Музыка — имена артистов */
.artists { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.artist {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(15px, 1.7vw, 21px);
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border: 1px solid var(--line);
  color: rgba(243,231,216,0.9);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.artist:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.artist.more { border-style: dashed; color: var(--grey); }

/* Формат вечера */
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; margin-top: 40px; }
.format-card { border: 1px solid var(--line); padding: 28px 26px; background: rgba(16,16,20,0.5); }
.format-card .ic { font-size: 28px; margin-bottom: 14px; }
.format-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 19px; margin-bottom: 10px; }
.format-card p { color: rgba(243,231,216,0.75); font-size: 15px; margin: 0; }

.pull {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.08;
  color: var(--white);
  margin: 34px 0;
}
.pull span { color: var(--red-bright); }

/* Города */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.city-tile {
  border: 1px solid var(--line);
  padding: 22px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .2s, border-color .2s;
}
.city-tile:hover { background: rgba(194,19,42,0.12); border-color: rgba(255,39,64,0.5); }
.city-tile .name { font-family: var(--font-display); font-size: 21px; text-transform: uppercase; }
.city-tile .flag { font-size: 22px; }

/* Подписка */
.subscribe { background: linear-gradient(140deg, #1a0710, #0b0709); border: 1px solid var(--line); padding: clamp(34px, 5vw, 64px); }
.sub-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sub-form input, .sub-form select {
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  min-width: 210px;
  flex: 1;
}
.sub-form input:focus, .sub-form select:focus { outline: none; border-color: var(--red-bright); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-q { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq-a { color: rgba(243,231,216,0.72); margin-top: 12px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--red-bright); }

/* Футер */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--grey); }
.foot-links a:hover { color: var(--cream); }
.foot-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; font-weight: 700; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--grey); border-top: 1px solid var(--line); padding-top: 24px; flex-wrap: wrap; }

/* ---------- Страница события ---------- */

.ev-hero { padding: 130px 0 60px; position: relative; overflow: hidden; }
.ev-hero-bg { position: absolute; inset: 0; background: radial-gradient(90% 70% at 70% 10%, rgba(194,19,42,0.45), transparent 60%), linear-gradient(180deg, #15060b, var(--black)); }
.ev-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }

.ev-poster {
  aspect-ratio: 4/5;
  background: radial-gradient(70% 55% at 50% 20%, rgba(194,19,42,0.6), transparent 65%), linear-gradient(160deg, #1e0a11, #090708);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(142,138,146,0.7); text-align: center; padding: 20px;
}

.ev-title { font-size: clamp(40px, 7vw, 88px); transform: skewX(-5deg); margin-bottom: 10px; }
.ev-sub { font-size: clamp(16px, 2vw, 20px); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 30px; }

.ev-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 34px 0; }
.ev-meta div { border-left: 2px solid var(--red); padding-left: 14px; }
.ev-meta .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 5px; }
.ev-meta .v { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; }

/* Тарифы */
.tiers { display: flex; flex-direction: column; gap: 12px; }
.tier {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  border: 1px solid var(--line); padding: 18px 20px;
  transition: border-color .2s, background .2s;
}
.tier.active { border-color: var(--red-bright); background: rgba(194,19,42,0.13); }
.tier.done { opacity: 0.42; }
.tier .t-name { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; }
.tier .t-left { font-size: 12px; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.tier .t-left.out { color: var(--grey); }
.tier .t-price { font-family: var(--font-display); font-size: 26px; }
.tier .t-price small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--grey); letter-spacing: 0.1em; text-align: right; }

.buy-box { background: var(--black-soft); border: 1px solid var(--line); padding: 26px; position: sticky; top: 90px; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.buy-total .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.buy-total .val { font-family: var(--font-display); font-size: 30px; }
.qty { display: flex; align-items: center; gap: 14px; }
.qty button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 20px; cursor: pointer; }
.qty button:hover { border-color: var(--red-bright); color: var(--white); }
.qty .num { font-family: var(--font-display); font-size: 22px; min-width: 28px; text-align: center; }

.pay-note { font-size: 12px; color: var(--grey); margin-top: 14px; line-height: 1.5; }

.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; }
.info-cols h3 { font-size: 18px; margin-bottom: 12px; color: var(--white); }
.info-cols p { color: rgba(243,231,216,0.72); font-size: 15px; }

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

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .ev-grid { grid-template-columns: 1fr; gap: 36px; }
  .buy-box { position: static; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .next-card { grid-template-columns: auto 1fr; }
  .next-card .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding-top: 100px; }
  .next-card { padding: 20px; gap: 20px; }
  .next-date .d { font-size: 46px; }
  .stats { grid-template-columns: 1fr; }
  .photo-ph:nth-child(2) { margin-top: 0; }
}
