/* ==========================================================================
   template25 «Студия» — музыкальные сайты сетки.
   Тёмный зал звукозаписи: графит, янтарная подсветка пульта, узкий плотный
   шрифт в заголовках, крупная обложка главного материала, след звуковой
   волны на карточках. Шрифты системные, внешних запросов нет.
   ========================================================================== */
:root {
  --bg: #121317; --panel: #1A1C21; --panel-2: #212429; --line: rgba(255, 255, 255, .1);
  --ink: #F2EFE9; --ink-soft: #A8A49C; --ink-faint: #8A857D;
  --amber: #E9A33C; --crimson: #D7444B;
  --display: "Avenir Next Condensed", "Oswald", "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(90% 60% at 50% -10%, rgba(233, 163, 60, .14), transparent 60%); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
main { position: relative; z-index: 1; }
.kicker { display: inline-block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { display: inline-block; border: 1px solid var(--amber); background: var(--amber); color: #1A1308; border-radius: 10px; padding: 10px 18px; font: 700 15px var(--sans); cursor: pointer; }
.btn:hover { background: #F2B65A; }
.btn[disabled] { opacity: .6; cursor: default; }
.empty { color: var(--ink-soft); }

/* шапка — как панель пульта, с полосками-эквалайзером */
.head { border-bottom: 1px solid var(--line); background: rgba(18, 19, 23, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 24px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; min-width: 0; }
.logo-name { overflow-wrap: anywhere; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; }
.eq i { width: 4px; background: var(--amber); border-radius: 2px; animation: eq 1.4s ease-in-out infinite; transform-origin: bottom; }
.eq i:nth-child(1) { height: 10px; } .eq i:nth-child(2) { height: 20px; animation-delay: .2s; }
.eq i:nth-child(3) { height: 14px; animation-delay: .4s; } .eq i:nth-child(4) { height: 24px; animation-delay: .6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 13px; border-radius: 8px; font-size: 14.5px; color: var(--ink-soft); }
.nav a:hover, .nav a.on { background: var(--panel-2); color: var(--ink); }
.menu-toggle { display: none; }
.burger { display: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }

/* реклама: свой слой под закреплённой шапкой, формат заранее неизвестен */
.header-banner, .ad-slot, .banner-left-wrapper, ntvk-tag, [id^="yandex_rtb"] { position: relative; z-index: 0; isolation: isolate; }
.header-banner { width: 100%; margin: 18px auto 0; overflow: hidden; }
.header-banner-stage { width: 100%; display: flex; justify-content: center; overflow: hidden; }
.header-banner-slot { width: 728px; min-width: 728px; max-width: none; transform-origin: top center; }
.ad-slot { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-slot > * { max-width: 100%; }
.ad-bottom { align-items: stretch; margin: 40px 0 0; }
.banner-left-wrapper { position: sticky; top: 90px; }

/* первый экран: большая обложка и две поменьше */
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; margin: 28px 0 0; }
.feature, .mini { position: relative; overflow: hidden; display: flex; align-items: flex-end; background: var(--panel); }
.feature { border-radius: 20px; min-height: 440px; }
.mini { border-radius: 18px; min-height: 210px; }
.feature .shot, .mini .shot { position: absolute; inset: 0; background: radial-gradient(60% 50% at 30% 20%, rgba(233, 163, 60, .45), transparent 60%), linear-gradient(160deg, #4A3520, #1A1410 70%); }
.mini .shot { background: linear-gradient(150deg, #2E3C52, #13161C); }
.side-stack .mini:nth-child(2) .shot { background: linear-gradient(150deg, #45283A, #151016); }
.feature .shot img, .mini .shot img { width: 100%; height: 100%; object-fit: cover; }
.feature .grooves { position: absolute; top: -20%; right: -20%; width: 460px; height: 460px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255, 255, 255, .06) 0 2px, transparent 2px 7px); opacity: .7; pointer-events: none; }
/* Затемнение под текстом плотное с первой строки: на светлых обложках
   (ноты, сцена) подпись раздела иначе сливалась с картинкой. */
.feature .body, .mini .body { position: relative; width: 100%; background: linear-gradient(180deg, rgba(10, 10, 12, 0), rgba(10, 10, 12, .82) 28%, rgba(10, 10, 12, .96)); }
.feature .kicker, .mini .kicker { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.feature .body { padding: 80px 36px 32px; }
.mini .body { padding: 50px 20px 20px; }
.feature h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; margin: 10px 0 0; letter-spacing: .01em; }
.feature p { color: var(--ink-soft); margin: 12px 0 0; max-width: 52ch; font-size: 16px; }
.side-stack { display: grid; gap: 20px; }
.mini h3 { font-family: var(--display); font-size: 21px; line-height: 1.15; margin: 8px 0 0; letter-spacing: .01em; }
.feature h2 a:hover, .mini h3 a:hover, .card h3 a:hover { color: var(--amber); }

/* заголовки секций */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 44px 0 18px; }
.section-head h1, .section-head h2 { font-family: var(--display); font-size: 30px; line-height: 1.1; margin: 6px 0 0; letter-spacing: .02em; text-transform: uppercase; font-weight: 700; }

/* карточки со следом звуковой волны */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(233, 163, 60, .45); }
.card .shot { display: block; aspect-ratio: 16 / 10; position: relative; background: linear-gradient(150deg, #3A4A3C, #14181A); overflow: hidden; }
.card:nth-child(3n+2) .shot { background: linear-gradient(150deg, #4A3B2A, #191411); }
.card:nth-child(3n) .shot { background: linear-gradient(150deg, #2C3550, #121419); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; }
.card .shot::after { content: ""; position: absolute; left: 18px; bottom: 14px; right: 18px; height: 30px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 2px, transparent 2px 6px); -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.card .body { padding: 18px 20px 22px; }
.card h3 { font-family: var(--display); font-size: 19px; line-height: 1.2; margin: 9px 0 8px; overflow-wrap: break-word; }
.card p { margin: 0; color: var(--ink-faint); font-size: 14.5px; line-height: 1.5; }

/* лента с колонкой баннера */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 10px; }
.feed-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feed-ad { min-width: 0; padding-top: 60px; }

/* разделы */
.shelf { margin-top: 20px; }
.rubrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rubrics a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.rubrics a:hover { border-color: rgba(233, 163, 60, .45); }
.rubrics b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: .02em; }
.rubrics span { font-size: 13px; color: var(--ink-faint); }

/* пагинация */
.pages { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; padding: 0; }
.pages a, .pages span { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--ink-soft); }
.pages span { border-color: transparent; }
.pages a:hover { border-color: var(--amber); color: var(--ink); }
.pages a.on { background: var(--amber); border-color: var(--amber); color: #1A1308; }

/* раздел и служебные страницы */
.page-head { padding: 36px 0 4px; }
.page-head h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 8px 0 6px; letter-spacing: .02em; text-transform: uppercase; }
.page-head p { margin: 0; color: var(--ink-soft); }

/* статья — как «образец текста» макета */
.crumbs { font-size: 13px; color: var(--ink-faint); padding: 24px 0 0; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--amber); }
.track { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px 40px 36px; }
.track h1 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; margin: 10px 0 12px; letter-spacing: .01em; overflow-wrap: break-word; }
.dateline { font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; }
.cover-img { margin: 0 0 26px; }
.cover-img img { width: 100%; border-radius: 14px; }
.article-content { font-size: 18px; line-height: 1.75; color: #DAD6CE; overflow-wrap: break-word; }
.article-content > p:first-of-type::first-letter { font-family: var(--display); font-size: 62px; line-height: .9; float: left; padding: 4px 12px 0 0; color: var(--amber); }
.article-content p { margin: 0 0 22px; }
.article-content h2, .article-content h3 { font-family: var(--display); color: var(--ink); letter-spacing: .01em; line-height: 1.15; }
.article-content h2 { font-size: 28px; margin: 36px 0 12px; }
.article-content h3 { font-size: 22px; margin: 28px 0 10px; }
.article-content a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 22px auto; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 0 0 22px; }
.article-content li { margin: 6px 0; }
.article-content li::marker { color: var(--amber); }
.article-content blockquote { margin: 0 0 22px; padding: 16px 20px; border-left: 3px solid var(--amber); background: rgba(233, 163, 60, .08); border-radius: 0 12px 12px 0; color: var(--ink); }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 22px 0; }
.article-content th, .article-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-content th { color: var(--ink); background: var(--panel-2); }
.article-content iframe, .article-content video { max-width: 100%; }
.share { margin: 10px 0 0; }
.related-articles .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* боковая колонка статьи */
.side { min-width: 0; }
.side .box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 8px; margin-bottom: 22px; }
.side h4 { font-family: var(--display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.fresh-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.fresh-item img, .fresh-item .ph { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
.fresh-item span { font-size: 14.5px; line-height: 1.35; }
.fresh-item:hover span { color: var(--amber); }
.rub { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.rub span { color: var(--ink-faint); }
.rub:hover { color: var(--amber); }

/* обратная связь */
.contact { max-width: 640px; padding-bottom: 40px; }
.contact-lead { color: var(--ink-soft); }
.contact-form label { display: block; margin: 0 0 16px; font-weight: 600; font-size: 15px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: 400 16px var(--sans); color: var(--ink); background: var(--panel); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-note { min-height: 1.6em; color: var(--ink-soft); }

/* 404 */
.lost { text-align: center; padding: 72px 0; }
.lost .big { font-family: var(--display); font-size: 110px; line-height: 1; color: var(--amber); }
.lost h1 { font-family: var(--display); font-size: 34px; text-transform: uppercase; margin: 12px 0; }
.lost p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 24px; }

/* подвал */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: #0E0F12; position: relative; z-index: 1; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 34px; padding-top: 40px; padding-bottom: 30px; }
.site-footer .about { color: var(--ink-faint); margin: 10px 0 0; max-width: 42ch; }
.site-footer h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink-soft); font-size: 15px; }
.site-footer ul a:hover { color: var(--amber); }
.copy { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); }
.copy .wrap { padding: 16px 24px; }
.copy a { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 980px) {
  .hero, .layout { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .burger { display: block; }
  .nav { display: none; width: 100%; padding-bottom: 12px; }
  .nav ul { flex-direction: column; }
  .menu-toggle:checked ~ .nav { display: block; }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .feed-ad { order: -1; padding-top: 0; }
  .banner-left-wrapper, .feed-ad .banner-left-wrapper { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid, .feed-layout .grid, .related-articles .grid { grid-template-columns: minmax(0, 1fr); }
  .logo { font-size: 20px; }
  .feature { min-height: 340px; }
  .feature .body { padding: 60px 20px 22px; }
  .track { padding: 24px 18px 26px; border-radius: 16px; }
  .article-content { font-size: 17px; }
  .article-content table { display: block; overflow-x: auto; }
  .section-head h1, .section-head h2 { font-size: 24px; }
  .copy .wrap { padding: 14px 16px; }
}
