/* ЦСП АРТ, cspart.pro. Палитра из логотипа: тёмно-синий + золото. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-v40-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-v40-cyrillic_latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
}

:root {
  --ink-deep: #0a1730;   /* фон страницы */
  --ink: #0e1f40;        /* карточки */
  --ink-line: #1d3158;   /* границы */
  --gold: #c9a85c;       /* акцент */
  --gold-light: #efe2b4; /* светлое золото, блики */
  --paper: #f2efe6;      /* основной текст */
  --mist: #a9b4cc;       /* вторичный текст */
  --display: 'Playfair Display', 'Georgia', serif;
  --body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-light); }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(10, 23, 48, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-line);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold-light);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
}
.topbar__brand img { border-radius: 6px; }

.topbar__phone {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.topbar__phone:hover { color: var(--gold-light); }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 56px 20px 88px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, #16294f 0%, var(--ink-deep) 70%);
}

.hero__emblem { display: flex; justify-content: center; }
.hero__emblem img {
  width: min(300px, 64vw);
  border-radius: 18px;
  /* края JPG растворяются в фоне страницы */
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 42%, transparent 82%);
  mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 42%, transparent 82%);
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.16;
  margin-top: 8px;
  background: linear-gradient(160deg, var(--gold-light) 20%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 18px auto 32px;
  max-width: 560px;
  color: var(--mist);
  font-size: clamp(16px, 2.4vw, 19px);
}

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.btn--gold {
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 65%);
  color: #241b06;
  box-shadow: 0 6px 24px rgba(201, 168, 92, 0.25);
}
.btn--gold:hover { box-shadow: 0 10px 30px rgba(201, 168, 92, 0.4); }

.btn--line {
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.btn--line:hover { background: rgba(201, 168, 92, 0.12); }

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

.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 40px;
}

.events, .leads, .contacts {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* ---------- Лента событий ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
}

.event {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  padding: 34px 36px;
}

.event--featured {
  border-color: rgba(201, 168, 92, 0.55);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.event__when { text-align: left; }
.event__date {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
  color: var(--gold-light);
}
.event__month {
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--gold);
}

.event__body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(21px, 2.8vw, 27px);
  line-height: 1.28;
  margin-bottom: 10px;
}

.event__meta {
  color: var(--mist);
  font-size: 15px;
  margin-bottom: 16px;
}

.event__body p { margin-bottom: 14px; }

.event__price {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 18px;
}

.event__links a { font-size: 15px; line-height: 1.9; }

.event__body .btn { margin-top: 8px; }

/* ---------- Ведущие ---------- */

.leads__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.lead {
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  overflow: hidden;
}

.lead img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1);
}

.lead__text { padding: 24px 28px 28px; }
.lead__text h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--gold-light);
}
.lead__text p { color: var(--mist); font-size: 15.5px; }

/* ---------- Контакты ---------- */

.contacts { text-align: center; }

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.contact {
  display: block;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  padding: 20px 16px;
  text-decoration: none;
  transition: border-color 0.18s ease;
}
a.contact:hover { border-color: var(--gold); }

.contact__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact__value {
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Футер ---------- */

.footer {
  border-top: 1px solid var(--ink-line);
  padding: 26px 20px 34px;
  text-align: center;
  color: var(--mist);
  font-size: 14px;
}
.footer a { color: var(--mist); }
.footer a:hover { color: var(--gold-light); }

/* ---------- Появление при скролле ---------- */

/* включается только когда JS добавил has-js на html */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.has-js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Мобильная версия ---------- */

@media (max-width: 760px) {
  .events, .leads, .contacts { padding: 36px 16px; }

  .event {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 22px;
  }
  .event__when {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .leads__grid { grid-template-columns: 1fr; }

  .contacts__grid { grid-template-columns: 1fr 1fr; }

  .hero { padding: 40px 16px 64px; }
}

@media (max-width: 420px) {
  .contacts__grid { grid-template-columns: 1fr; }
  .topbar__phone { font-size: 14px; }
}
