:root {
  --bg: #D2D7D2;
  --bg-deep: #C2C9C2;
  --paper: #E6E9E4;
  --ink: #3A352E;
  --ink-2: #635749;
  --ink-3: #8A8277;
  --stone: #B0A48F;
  --accent: #962D3A;
  --accent-ink: #7A1F2B;
  --rule: rgba(58, 53, 46, 0.18);
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* шапка */
.top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.top__name { color: var(--ink); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.015em; display: inline-flex; align-items: center; gap: 12px; }
.top__sep { width: 1px; height: 1.1em; background: var(--rule); }
.top__sub { font-weight: 500; color: var(--ink-2); font-size: 1.05rem; letter-spacing: 0; }
.top__name:hover { text-decoration: none; }
.top__name:hover .top__sub { color: var(--accent); }
.top__nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.95rem; }
.top__nav a { color: var(--ink-2); }
.top__nav a:hover { color: var(--accent); text-decoration: none; }
.top__nav .top__tg { color: var(--accent); font-weight: 600; }

main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* первый экран */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(40px, 8vw, 110px) 0 clamp(48px, 7vw, 96px);
}
.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-2);
}
.hero__actions { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__more { color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.hero__more:hover { color: var(--accent); text-decoration: none; border-color: currentColor; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #F4F1EC;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-ink); color: #F4F1EC; text-decoration: none; }

.hero__photo { margin: 0; align-self: stretch; }
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  background: transparent;
}
.hero__photo.is-empty img { visibility: hidden; }
.hero__photo.is-empty {
  position: relative;
  min-height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, var(--bg-deep), var(--stone) 140%);
}
.hero__photo.is-empty::after {
  content: 'фотография';
  position: absolute; left: 20px; bottom: 16px;
  font-size: 0.9rem; color: var(--ink-2); opacity: .7;
}

/* разделы */
section { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--rule); }
.section__head { margin-bottom: clamp(24px, 3vw, 40px); max-width: 42em; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.section__head p { margin-top: 12px; color: var(--ink-2); }

/* лента анонсов */
.feed { display: flex; flex-direction: column; }
.feed__empty { color: var(--ink-2); padding: 18px 0; }
.event {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.event:first-child { border-top: 0; }
.event__date { line-height: 1.1; }
.event__day { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.event__month { display: block; color: var(--ink-2); font-size: 0.95rem; margin-top: 4px; }
.event__wd { color: var(--ink-3); }
.event__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.event__meta { color: var(--ink-2); margin-top: 6px; font-size: 0.97rem; }
.event__meta span + span::before { content: ' · '; color: var(--ink-3); }
.event__text { margin-top: 10px; max-width: 38em; }
.event__link { white-space: nowrap; font-weight: 600; padding-top: 6px; }
.event__who {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 10px;
  margin-right: 6px;
}
.event--past { opacity: .62; }
.event--img { grid-template-columns: 7.5rem 200px minmax(0, 1fr) auto; }
.event__pic { display: block; line-height: 0; }
.event__img { width: 200px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--rule); display: block; }

.feed__past { margin-top: 28px; }
.feed__past summary { cursor: pointer; color: var(--ink-2); font-weight: 600; list-style: none; display: inline-block; }
.feed__past summary::-webkit-details-marker { display: none; }
.feed__past summary::after { content: ' ↓'; color: var(--ink-3); }
.feed__past[open] summary::after { content: ' ↑'; }
.feed__past .feed { margin-top: 10px; }

.feed__all { margin-top: 26px; font-weight: 600; }

/* выпуск (неделя) */
.issue { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0 22px; align-items: center; color: var(--ink); background: var(--paper); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.issue:hover { text-decoration: none; color: var(--ink); background: #EDEFEB; }
.issue img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.issue__box { display: block; padding: 16px 20px 16px 0; }
.issue__date { display: block; font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.issue__title { display: block; margin-top: 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.issue__range { display: block; margin-top: 2px; font-size: 0.9rem; color: var(--ink-3); }
.issue__lede { display: block; margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; max-width: 46em; }
.issue__more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 1px; font-size: 0.95rem; }
.home-days { margin-top: 34px; }
.home-days__title { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }
.event__tail { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.event__who { font-size: 0.82rem; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; }
.event__issue { font-size: 0.85rem; }

/* afisha/: вкладки */
.catalog { border-top: 0; padding-top: clamp(28px, 5vw, 64px); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-deep); border-radius: 999px; margin-bottom: 28px; }
.tab { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tab.is-active { background: var(--paper); color: var(--ink); }
.tab:hover:not(.is-active) { color: var(--ink); }

/* afisha/: дни, лента дат */
.days { display: block; }
.strip { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 18px; scrollbar-width: thin; border-bottom: 1px solid var(--rule); }
.strip__month { font-size: 0.78rem; color: var(--ink-3); padding: 0 6px 10px 10px; white-space: nowrap; }
.strip__chip { flex: none; border: 0; background: var(--paper); border-radius: 10px; min-width: 50px; padding: 7px 10px 6px; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.strip__chip:hover { background: var(--bg-deep); }
.strip__chip.sel { background: var(--accent); color: #F4F1EC; }
.strip__chip.past { opacity: .6; }
.strip__chip.today { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.strip__chip.strip__past { color: var(--ink-2); font-size: 0.9rem; padding: 12px 12px; }
.strip__wd { font-size: 0.72rem; color: inherit; opacity: .75; }
.strip__d { font-size: 1.1rem; font-weight: 700; margin-top: 2px; }
.cal__title { font-size: 1.2rem; margin-bottom: 6px; }
.days__list .feed .event:first-child { border-top: 1px solid var(--rule); }

/* о себе */
.about__text { max-width: 36em; font-size: 1.08rem; }
.about__text p { margin-bottom: 1.1em; }
.about__key {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--accent);
  margin: 1.6em 0 !important;
}

/* увлечения */
.hobbies__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; max-width: 60em; }
.hobbies__list div { padding-top: 14px; border-top: 1px solid var(--rule); }
.hobbies__list dt { font-weight: 700; font-size: 1.1rem; }
.hobbies__list dd { margin: 6px 0 0; color: var(--ink-2); }

/* подвал */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.foot p { margin: 0; }
.foot__note { color: var(--ink-3); }

/* телефон */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 36px; }
  .hero__photo { order: -1; max-width: 420px; }
  .hero__photo img { min-height: 0; aspect-ratio: 4 / 5; }
  .hero__photo.is-empty { min-height: 0; aspect-ratio: 4 / 5; }
  .event { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 10px 16px; padding: 18px 0; }
  .event__day { font-size: 1.6rem; }
  .event__link { grid-column: 2; padding-top: 0; }
  .event--img { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .event--img > .event__pic, .event--img > .event__img, .event--img > .event__body { grid-column: 2; }
  .event__img { width: 100%; aspect-ratio: 16 / 9; }
  .hobbies__list { grid-template-columns: 1fr; gap: 18px; }
  .issue { grid-template-columns: 96px minmax(0, 1fr); gap: 0 14px; align-items: start; }
  .issue img { aspect-ratio: 1; }
  .issue__box { padding: 12px 14px 14px 0; }
  .issue__title { font-size: 1.1rem; }
  .top { padding-top: 16px; }
  .top__name { font-size: 1.15rem; gap: 9px; }
  .top__sub { font-size: 0.95rem; }
}

/* страница выпуска афиши */
.issue-page { font-size: 17px; }
.issue-page .top { padding-top: 22px; }
.issue-page .foot { margin-top: 0; }
