@font-face { font-family: Manrope; src: url('/assets/fonts/manrope-variable.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: Oswald; src: url('/assets/fonts/oswald-variable.woff2') format('woff2'); font-weight: 200 700; font-style: normal; font-display: swap; }
:root {
  --bg: #151718; --surface: #202324; --surface-2: #2a2e2f; --text: #f7f5ed; --muted: #b9bfbe;
  --accent: #d5ee79; --on-accent: #151718; --line: #3c4141; --link: var(--accent); --radius: 12px; --max: 1320px;
  --display: Oswald, sans-serif; --body: Manrope, sans-serif; --hero-text: #fffdf7; --hero-muted: #e0e3df;
  --hero-shade: linear-gradient(90deg,rgba(10,13,13,.92),rgba(10,13,13,.28));
  --shadow: 0 18px 50px rgba(8,11,11,.2); color-scheme: dark;
  font-family: var(--body); background: var(--bg); color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; scrollbar-color: var(--muted) var(--bg); }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; }
::selection { background: var(--accent); color: var(--on-accent); }
button,input { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
img,svg { display: block; max-width: 100%; }
button:focus-visible,a:focus-visible,input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 70; transform: translateY(-160%); padding: 12px 18px; background: var(--text); color: var(--bg); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 96px; padding: 20px max(32px,calc((100% - var(--max))/2)); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 48px; color: var(--accent); }
.brand-mark svg { width: 38px; height: 38px; }
.brand strong { display: block; font-family: var(--display); font-size: 1.45rem; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.brand small { display: block; color: var(--muted); font-size: .61rem; margin-top: 5px; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { display: flex; min-height: 44px; align-items: center; font-size: .78rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover,.site-nav a[aria-current='page'] { color: var(--link); border-bottom-color: currentColor; }
.header-listen { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px 18px; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 800; text-decoration: none; }
.header-listen .icon { width: 15px; height: 15px; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 9px 13px; color: var(--text); border: 1px solid var(--line); background: none; font-size: .8rem; }
main { min-height: 65vh; }
h1,h2,h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.09; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(3rem,6vw,5.5rem); }
h2 { font-size: clamp(2.1rem,3.7vw,3.6rem); }
h3 { font-size: 1.65rem; }
p { text-wrap: pretty; }
.section { width: min(var(--max),calc(100% - 64px)); margin: 0 auto; padding: 92px 0 78px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr minmax(220px,.75fr) auto; gap: 30px; align-items: end; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; max-width: 55ch; font-size: .94rem; }
.section-head > a { white-space: nowrap; }
.lead { max-width: 58ch; color: var(--muted); font-size: 1.07rem; line-height: 1.8; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 54px; padding: 14px 24px; border: 1px solid transparent; font-size: .86rem; font-weight: 800; text-decoration: none; border-radius: var(--button-radius,2px); transition: transform .18s ease-out,background-color .18s ease-out; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero { position: relative; isolation: isolate; color: var(--hero-text); min-height: 660px; display: flex; flex-direction: column; overflow: hidden; }
.hero-media { position: absolute; z-index: -2; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position,center); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: var(--hero-shade); }
.hero-layout { width: min(var(--max),calc(100% - 64px)); margin: auto; padding: 80px 0 70px; display: grid; grid-template-columns: minmax(0,1fr) 290px; align-items: end; gap: 90px; }
.hero-copy { max-width: 830px; }
.hero h1 { font-size: clamp(3.5rem,7vw,6rem); line-height: 1.04; max-width: 13ch; }
.hero .lead { color: var(--hero-muted); margin: 25px 0 0; max-width: 50ch; font-size: 1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 34px; }
.hero-story { display: grid; gap: 13px; padding: 23px 0; border-top: 1px solid rgba(255,255,255,.5); text-decoration: none; }
.hero-story strong { font-size: 1.15rem; line-height: 1.5; font-weight: 600; }
.hero-story .icon { transition: transform .2s ease-out; }
.hero-story:hover .icon { transform: translate(4px,-4px); }
.hero-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 18px max(32px,calc((100% - var(--max))/2)); border-top: 1px solid rgba(255,255,255,.24); color: var(--hero-muted); font-size: .69rem; letter-spacing: .04em; }
.hero-genre { color: var(--hero-text); font-weight: 700; }
.genre-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 46px; padding: 21px 24px; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.genre-strip span { display: inline-flex; gap: 46px; align-items: center; }
.genre-strip span + span::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.grid { display: grid; }
.station-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 50px; border-top: 1px solid var(--line); }
.station-card { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 0 22px; padding: 30px 0; border-bottom: 1px solid var(--line); min-width: 0; transition: background-color .2s ease-out; }
.station-identity { grid-column: 1; grid-row: 1 / 4; width: 66px; height: 72px; background: var(--surface-2); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.station-identity .icon { height: 18px; }
.station-initials { font-family: var(--display); font-size: 1.1rem; font-weight: 500; }
.station-content { grid-column: 2; min-width: 0; }
.station-card h2,.station-card h3 { font-size: 1.44rem; line-height: 1.24; letter-spacing: -.015em; }
.station-card p { margin: 10px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.station-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .65rem; color: var(--muted); margin-top: 14px; }
.tag { display: inline-block; }
.station-actions { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.station-action { display: inline-flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 44px; border: 0; padding: 8px 0; background: none; color: var(--link); font-size: .78rem; font-weight: 800; }
.station-action .icon { width: 16px; height: 16px; }
.station-detail { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: .72rem; }
.station-detail .icon { width: 15px; height: 15px; }
.station-card.is-current .station-identity { background: var(--accent); color: var(--on-accent); }
.station-card:hover h2,.station-card:hover h3 { color: var(--link); }
.editorial-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 65px; align-items: center; }
.editorial-media { overflow: hidden; background: var(--surface); }
.editorial-media img { width: 100%; height: 430px; object-fit: cover; object-position: var(--hero-position,center); }
.editorial-copy h2 { max-width: 20ch; }
.editorial-copy p { max-width: 45ch; color: var(--muted); margin-block: 24px; }
.editorial-copy .text-link { color: var(--link); }
.content-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px; }
.journal-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 0; border-top: 2px solid var(--text); min-width: 0; }
.journal-card h2,.journal-card h3 { font-size: 1.85rem; line-height: 1.22; }
.article-category { display: block; margin-top: 20px; font-size: .69rem; font-weight: 800; color: var(--link); }
.journal-card p { font-size: .88rem; color: var(--muted); margin: 12px 0 26px; }
.journal-card > a { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; margin-top: auto; font-size: .79rem; font-weight: 700; text-decoration: none; }
.journal-card > a:hover { text-decoration: underline; }
.journal-index { margin-top: 45px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.discover-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.discover-section p { max-width: 58ch; margin: 0; font-size: 1.25rem; line-height: 1.7; }
.discover-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.prose { max-width: 74ch; margin-inline: auto; }
.prose h1 { font-size: clamp(2.7rem,5.8vw,4.8rem); max-width: 20ch; }
.prose .lead { font-size: 1.1rem; padding-bottom: 30px; margin: 26px 0 36px; border-bottom: 1px solid var(--line); }
.prose p,.prose li { line-height: 1.9; color: var(--muted); }
.prose h2 { margin-top: 48px; font-size: clamp(1.65rem,3vw,2.3rem); line-height: 1.3; }
.prose h3 { margin-top: 32px; }
.prose a { color: var(--link); }
.prose .button.primary { color: var(--on-accent); }
.prose dl { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 25px; padding: 26px 0; margin: 30px 0; border-block: 1px solid var(--line); }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; overflow-wrap: anywhere; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 34px; font-size: .72rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.notice { padding: 22px; background: var(--surface); margin-block: 26px; }
.contact-email { font-size: clamp(1.2rem,4vw,2rem); overflow-wrap: anywhere; }
.player-shell { position: fixed; z-index: 50; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(160px,.55fr); align-items: center; gap: 28px; width: 100%; min-height: 86px; padding: 13px max(28px,calc((100% - var(--max))/2)); background: var(--player-bg,var(--bg)); color: var(--player-text,var(--text)); border-top: 1px solid var(--line); box-shadow: 0 -8px 36px rgba(0,0,0,.12); }
.player-info { display: flex; align-items: center; gap: 17px; min-width: 0; }
.player-info > span:last-child { min-width: 0; }
.player-info strong,.player-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-info strong { font-size: .86rem; font-weight: 800; }
.player-info small { font-size: .6875rem; color: var(--muted); }
.player-source { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--link); font-size: .6875rem; line-height: 1.6; }
.live-dot { display: block; width: 8px; height: 8px; flex-shrink: 0; background: var(--muted); border-radius: 50%; }
.is-playing .live-dot { background: var(--accent); animation: onair 1.8s ease-in-out infinite; }
.player-controls { display: flex; align-items: center; gap: 12px; }
.icon-button,.play-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--player-text,var(--text)); }
.icon-button .icon { width: 18px; height: 18px; }
.play-button { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0; }
.play-button::before { content: ''; width: 18px; height: 18px; background: currentColor; clip-path: polygon(18% 5%,92% 50%,18% 95%); }
.play-button[aria-label='Остановить эфир']::before,
.play-button[aria-label='Закрыть плеер станции']::before,
.play-button[aria-label='Отменить подключение']::before { clip-path: inset(12%); }
.volume-control { display: flex; gap: 16px; align-items: center; justify-self: end; font-size: .65rem; color: var(--muted); }
.volume-control input { width: 110px; min-height: 32px; accent-color: var(--accent); }
.station-widget { grid-column: 1/-1; border: 0; width: min(100%,400px); height: 200px; margin: 0 auto; background: var(--panel); color-scheme: normal; }
.widget-help { grid-column: 1/-1; font-size: .75rem; margin: 0; text-align: center; }
.site-footer { width: min(var(--max),calc(100% - 64px)); margin: 15px auto 0; padding: 60px 0 130px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 34px; color: var(--muted); }
.site-footer strong { font-family: var(--display); font-size: 2.1rem; font-weight: 500; color: var(--text); }
.site-footer p { max-width: 53ch; font-size: .82rem; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: .72rem; }
.copyright { grid-column: 1/-1; font-size: .67rem !important; }
.external-dialog { width: min(570px,calc(100% - 32px)); padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; max-height: calc(100dvh - 32px); overflow: auto; }
.external-dialog::backdrop { background: rgba(8,12,14,.78); }
.external-dialog form { margin: 0; padding: 34px; }
.external-dialog h2 { font-size: 2rem; line-height: 1.25; }
.external-dialog p { color: var(--muted); font-size: .88rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.no-script { margin: 25px; padding: 20px; background: var(--surface); }
.empty-state { color: var(--muted); padding: 35px; border: 1px dashed var(--line); }
@keyframes onair { 50% { opacity: .4; } }
@media (max-width: 1150px) {
  .site-header { gap: 18px; padding-inline: 24px; }
  .site-nav { gap: 18px; }
  .header-listen { display: none; }
  .hero-layout { gap: 40px; grid-template-columns: minmax(0,1fr) 240px; }
  .hero h1 { font-size: clamp(3.5rem,7.8vw,6rem); }
  .section-head { grid-template-columns: 1fr 1fr; }
  .section-head > a { grid-column: 2; }
}
@media (max-width: 900px) {
  .site-header { min-height: 80px; padding: 16px 24px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 22px; }
  .site-nav a { width: fit-content; }
  .hero-layout { grid-template-columns: 1fr; padding-block: 70px 45px; gap: 36px; }
  .hero h1 { max-width: 15ch; }
  .hero-story { max-width: 450px; grid-template-columns: 1fr auto; gap: 7px 15px; padding: 18px 0 0; }
  .hero-story strong { grid-column: 1; font-size: .95rem; }
  .hero-story .icon { grid-column: 2; grid-row: 1; align-self: center; }
  .station-grid { gap: 0 28px; }
  .station-card { grid-template-columns: 46px minmax(0,1fr); column-gap: 15px; }
  .station-identity { width: 46px; height: 56px; }
  .station-identity .icon { display: none; }
  .editorial-feature { gap: 35px; }
  .editorial-media img { height: 360px; }
  .content-grid { gap: 24px; }
  .journal-card h2,.journal-card h3 { font-size: 1.55rem; }
  .player-shell { grid-template-columns: minmax(0,1fr) auto; gap: 20px; }
  .volume-control { display: none; }
  .discover-section { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 24px; }
  .site-header { padding: 14px 20px; min-height: 76px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; }
  .brand-mark svg { width: 30px; }
  .brand strong { font-size: 1.15rem; }
  .brand small { font-size: .49rem; }
  .menu-toggle { padding: 8px 10px; }
  .menu-toggle .icon { width: 17px; }
  .section { width: calc(100% - 40px); padding: 62px 0 48px; }
  .hero { min-height: 620px; }
  .hero-layout { width: calc(100% - 40px); padding-block: 60px 35px; }
  .hero h1 { font-size: clamp(3rem,12.7vw,4.6rem); max-width: 13ch; }
  .hero .lead { font-size: .88rem; line-height: 1.8; margin-top: 22px; }
  .hero-actions { gap: 12px 22px; margin-top: 27px; }
  .hero-actions .button { min-height: 51px; padding-inline: 19px; }
  .hero-actions .text-link { font-size: .75rem; }
  .hero-bottom { padding: 16px 20px; font-size: .61rem; }
  .hero-bottom > span:last-child { display: none; }
  .genre-strip { gap: 7px 18px; padding: 16px 20px; font-size: 1rem; justify-content: flex-start; }
  .genre-strip span { gap: 18px; }
  .section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 19px; margin-bottom: 28px; }
  .section-head p { font-size: .84rem; }
  .station-grid { grid-template-columns: 1fr; }
  .station-card { grid-template-columns: 54px minmax(0,1fr); gap: 0 18px; padding-block: 26px; }
  .station-identity { width: 54px; height: 62px; }
  .station-card h2,.station-card h3 { font-size: 1.4rem; }
  .station-card p { font-size: .8rem; }
  .station-actions { gap: 8px 18px; }
  .editorial-feature { grid-template-columns: 1fr; gap: 28px; }
  .editorial-media img { height: 280px; }
  .editorial-copy h2 { font-size: 2.25rem; }
  .editorial-copy p { font-size: .88rem; margin-block: 20px; }
  .content-grid,.journal-index { grid-template-columns: 1fr; gap: 0; }
  .journal-card { padding: 26px 0; }
  .journal-card h2,.journal-card h3 { font-size: 1.7rem; }
  .journal-card p { margin-bottom: 13px; }
  .discover-section p { font-size: 1.07rem; }
  .prose h1 { font-size: clamp(2.4rem,10.6vw,3.4rem); overflow-wrap: anywhere; }
  .prose .lead { font-size: .97rem; }
  .prose p,.prose li { font-size: .9rem; }
  .prose dl { grid-template-columns: 1fr; gap: 4px; }
  .prose dd { margin-bottom: 14px; }
  .player-shell { padding: 12px 15px calc(12px + env(safe-area-inset-bottom)); min-height: 83px; gap: 10px; }
  .player-info { gap: 10px; }
  .player-info strong { font-size: .8125rem; }
  .live-dot { display: none; }
  .player-controls { gap: 0; }
  .play-button { width: 44px; height: 44px; }
  .site-footer { width: calc(100% - 40px); grid-template-columns: 1fr; padding: 40px 0 130px; gap: 25px; }
  .site-footer nav { align-items: flex-start; }
  .external-dialog form { padding: 25px; }
  .external-dialog h2 { font-size: 1.8rem; }
  .dialog-actions { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}

.discover-actions { grid-column: 2; }
@media(max-width:900px) { .discover-actions { grid-column: 1; } }
body:has(.station-widget:not([hidden])) .site-footer { padding-bottom: 360px; }
