/*
 * Гран-КуражЪ · общая система оформления
 * 01 — переменные и основа; 02 — шапка и меню; 03 — общие блоки;
 * 04 — простые внутренние страницы; 05 — подвал; 06 — адаптация.
 * Стили главной, дискографии, статей и истории подключаются отдельно.
 */

/* 01. Цвет, типографика, размеры */
:root {
  --bg: #070809;
  --surface: #101214;
  --surface-2: #181b1e;
  --line: #303438;
  --line-soft: #24282c;
  --text: #f2f2ef;
  --text-soft: #cbd0d3;
  --muted: #a0a7ad;
  --red: #d22a31;
  --accent: #f07479;
  --container: 1200px;
  --reading: 720px;
  --gutter: clamp(20px, 3vw, 40px);
  --header-height: 80px;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --condensed: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 55vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button, summary, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button, summary {
  cursor: pointer;
}

button {
  color: inherit;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

p, li {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

::selection {
  background: #8b242c;
  color: #fff;
}

[hidden] {
  display: none !important;
}

.container, .page-hero-inner {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 16px;
  padding: 12px 18px;
  background: #fff;
  color: #111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}


/* 02. Единая шапка. У мобильного меню сохранена нативная работа без JS. */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: #070809;
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1380px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
}

.site-logo {
  flex: 0 0 116px;
}

.site-logo img {
  width: 116px;
  height: 72px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  height: 100%;
}

.desktop-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: 11px;
  font: 700 12px/1.2 var(--condensed);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  content: "";
  height: 2px;
  bottom: 18px;
  left: 11px;
  right: 11px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.desktop-nav a:is(:hover, :focus-visible, [aria-current])::after {
  transform: scaleX(1);
}

.header-social, .mobile-social {
  display: flex;
  gap: 4px;
}

.header-social a, .mobile-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text-soft);
  border: 1px solid transparent;
}

.header-social a:is(:hover, :focus-visible), .mobile-social a:is(:hover, :focus-visible) {
  background: var(--surface-2);
  border-color: var(--line);
  color: #fff;
}

.social-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.mobile-menu {
  display: none;
}


/* 03. Общие элементы и герои внутренних страниц */
.button-outline, .mini-button, .status-pill, .back-top {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #606970;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.button-outline:is(:hover, :focus-visible), .mini-button:is(:hover, :focus-visible) {
  border-color: var(--accent);
  background: #291317;
}

.text-link, .story-back, .release-source-link {
  display: inline-block;
  padding-block: 10px;
  color: var(--text-soft);
}

.text-link:hover, .story-back:hover, .release-source-link:hover {
  color: var(--accent);
}

.eyebrow, .page-hero-kicker, .history-hero-kicker, .catalog-kicker {
  display: block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section, .page-section {
  padding-block: 56px 0;
}

.section:last-child, .page-section:last-child {
  padding-bottom: 72px;
}

.section-head, .page-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2, .page-section-head h2 {
  margin: 0;
  font: 400 clamp(28px, 2.6vw, 38px)/1.15 var(--display);
}

.section-head > a, .section-head > span, .page-section-head > span {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
}

.section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.section-head > a:hover {
  color: #fff;
}

.page-hero, .discography-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 370px;
  background: #101317;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero-bg, .discography-hero-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.page-hero-bg picture, .discography-hero-bg picture {
  width: 100%;
  height: 100%;
}

.page-hero-bg img, .discography-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.page-hero::after, .discography-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 6, 8, .9), rgba(4, 6, 8, .54)), linear-gradient(0deg, #070809, transparent 80%);
}

.page-hero-inner, .discography-hero-inner {
  padding-block: 32px 44px;
}

.page-hero h1, .discography-hero h1 {
  max-width: 960px;
  margin: 16px 0;
  font: 400 clamp(38px, 5vw, 68px)/1.08 var(--display);
  letter-spacing: -.025em;
}

.page-hero p, .discography-hero-inner > p {
  max-width: 710px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.page-hero p[class$="kicker"] {
  margin-top: 24px;
  color: var(--accent);
  font-size: 12px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  padding-block: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs i {
  color: var(--muted);
  font-style: normal;
}

.breadcrumbs span {
  overflow-wrap: anywhere;
}

.lead, .prose p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.release-note {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--red);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}


/* 04. Концерты, состав, медиа, карта сайта */
.concert-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
}

.concert-announcement h2 {
  margin: 0 0 8px;
  font: 400 28px/1.2 var(--display);
}

.concert-announcement p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
}

.concert-announcement a {
  flex-shrink: 0;
}

.full-concert {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.full-concert:last-child {
  border-bottom: 1px solid var(--line);
}

.full-concert > time {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.full-concert h2, .full-concert h3 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.4;
}

.full-concert p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  min-height: 36px;
  padding: 7px 14px;
  border-color: var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

a.status-pill {
  min-height: 44px;
}










.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}

.media-item {
  border-bottom: 1px solid var(--line);
}

.media-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-copy {
  padding: 22px 0 24px;
}

.media-copy small {
  color: var(--accent);
  font-size: 12px;
}

.media-copy h2, .media-copy h3 {
  margin: 8px 0;
  font: 400 28px/1.2 var(--display);
}

.media-copy p {
  color: var(--muted);
  margin: 0 0 10px;
}

.media-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-tree {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.site-tree section {
  min-width: 0;
}

.site-tree h2 {
  margin-top: 0;
  font: 400 28px/1.2 var(--display);
}

.site-tree ul {
  padding: 0;
  list-style: none;
}

.site-tree a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--text-soft);
}

.site-tree a:hover {
  color: var(--accent);
}

.not-found {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 24px;
}

.not-found h1 {
  margin: 0;
  color: var(--accent);
  font: 400 clamp(80px, 18vw, 170px)/1 var(--display);
}

.not-found p {
  color: var(--muted);
  margin-block: 28px;
}


/* 05. Подвал */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050607;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 48px;
  padding-block: 48px 36px;
}

.footer-logo {
  display: block;
  width: 112px;
  margin-bottom: 20px;
}

.footer-motto {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
}

.footer-caption {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links h2, .footer-community h2, .footer-author h2 {
  margin: 0 0 14px;
  font: 600 13px/1.4 var(--body);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
}

.footer-social a:hover {
  border-color: var(--muted);
  color: #fff;
}

.footer-author {
  padding-block: 24px;
  border-top: 1px solid var(--line-soft);
}

.footer-author h2 {
  color: var(--text-soft);
  margin-bottom: 8px;
}

.footer-author p {
  margin: 0;
  max-width: 1040px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer-author a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
  padding-block: 14px;
}

.footer-bottom small {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
}

.footer-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-utility a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
}

.footer-utility a:hover {
  color: #fff;
}

.back-top {
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  border-color: var(--line);
}


/* 06. Адаптация под содержание, а не под модель устройства */
@media (max-width: 1180px) {
  :root {
    --header-height: 70px;
  }
  .header-inner {
    justify-content: space-between;
  }
  .site-logo {
    flex-basis: 100px;
  }
  .site-logo img {
    width: 100px;
    height: 64px;
  }
  .desktop-nav, .header-social {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu summary span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform .18s ease;
  }
  .mobile-menu[open] summary span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu[open] summary span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu[open] summary span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px var(--gutter) max(24px, env(safe-area-inset-bottom));
    background: #0c0e10;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px #0009;
  }
  .mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    max-width: 760px;
    margin: auto;
  }
  .mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding-block: 8px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .mobile-menu nav a[aria-current] {
    color: var(--accent);
  }
  .mobile-social {
    max-width: 760px;
    margin: 16px auto 0;
    gap: 8px;
  }
  .mobile-social a {
    border: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-logo {
    float: left;
    margin: 0 24px 0 0;
    width: 90px;
  }
  .footer-caption {
    max-width: none;
  }
  .site-tree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .concert-announcement {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .section, .page-section {
    padding-top: 38px;
  }
  .section:last-child, .page-section:last-child {
    padding-bottom: 48px;
  }
  .section-head, .page-section-head {
    align-items: start;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 20px;
  }
  .section-head h2, .page-section-head h2 {
    font-size: 28px;
  }
  .page-hero {
    min-height: 300px;
  }
  .page-hero-inner, .discography-hero-inner {
    padding-block: 24px 34px;
  }
  .page-hero p {
    font-size: 16px;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .full-concert {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .full-concert > time {
    grid-column: 1 / -1;
  }
  .full-concert h2, .full-concert h3 {
    font-size: 17px;
  }
  .full-concert .status-pill {
    align-self: start;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-social {
    max-width: 440px;
  }
  .footer-bottom-inner {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 8px;
  }
  .footer-utility {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .back-top {
    grid-column: 2;
    grid-row: 1;
  }
  .site-tree {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 380px) {
  .mobile-menu nav {
    grid-template-columns: 1fr;
  }
}

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

@media print {
  .site-header, .site-footer, .skip-link, .slider-controls, .history-toc, .interview-rail {
    display: none;
  }
  body, main {
    background: #fff;
    color: #111;
  }
  .container {
    width: 100%;
  }
  a {
    text-decoration: underline;
  }
}

/* 07. Общие переходы между разделами и действия читателя. */
.header-search {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-soft);
}

.header-search:is(:hover, [aria-current]) {
  color: var(--accent);
}

.page-hero--compact {
  min-height: 290px;
}

.page-hero--compact .page-hero-inner {
  padding-block: 32px;
}

.page-hero--compact h1 {
  font-size: clamp(36px, 5vw, 62px);
  margin-block: 18px;
}

.page-hero--compact p {
  max-width: 780px;
}

.page-hero--compact p a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.action-row, .section-links, .section-return {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.section-links {
  gap: 8px;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.section-links a:hover {
  border-color: var(--accent);
}

.section-links--spaced {
  padding-top: 24px;
}

.action-row .text-link, .section-return .text-link {
  min-height: 44px;
  padding-block: 10px;
}

.related-section {
  padding-block: 28px 48px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-link {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.related-link > span {
  color: var(--muted);
  font-size: 12px;
}

.related-link h3 {
  margin: 14px 0 22px;
  font: 400 24px/1.25 var(--display);
}

.related-link b {
  margin-top: auto;
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}

.related-link:hover {
  border-color: var(--muted);
}

.section-return {
  padding-bottom: 48px;
}

.reading-progress {
  position: fixed;
  z-index: 101;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--accent);
  pointer-events: none;
}


.not-found-content {
  max-width: 850px;
  padding-block: 48px 72px;
}

.not-found-content h1 {
  margin: 12px 0 20px;
  font: 400 clamp(34px, 5vw, 54px)/1.15 var(--display);
}

.not-found-content > p {
  color: var(--text-soft);
}

.not-found-content .catalog-tools {
  grid-template-columns: 1fr;
}

.error-code, .page-kicker {
  color: var(--accent);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .header-search {
    margin-left: auto;
  }
  .mobile-menu {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .page-hero--compact {
    min-height: 0;
  }
  .page-hero--compact .page-hero-inner {
    padding-block: 24px 28px;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .related-link {
    padding: 18px 48px 18px 18px;
  }
  .related-link h3 {
    margin: 8px 0 0;
    font-size: 23px;
  }
  .related-link b {
    position: absolute;
    right: 20px;
    top: 40%;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 12px;
  }
  .full-concert {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .page-hero--compact .page-hero-inner {
    padding-block: 18px;
  }
  .page-hero--compact h1 {
    margin-block: 12px;
    font-size: 34px;
  }
  .page-hero--compact p {
    font-size: 16px;
    line-height: 1.65;
  }
}

/* Из титров альбома — к биографии музыканта. */
.person-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #767b80;
  text-underline-offset: 4px;
}

.person-link:hover {
  color: var(--accent);
}
