/*
Theme Name: Тунтури
Theme URI: https://tunturi.example
Author: Тунтури
Description: Конструктивистская тема для группы «Тунтури». Индустриал / экспериментал / авангард. Адаптивная, с собственным типом записей «Концерты» и настройкой через Кастомайзер.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tunturi
Tags: music, band, constructivism, red, black
*/

/* ==========================================================================
   1. Переменные и база
   ========================================================================== */

/* Фирменные шрифты группы: Tunturi Bold — собственная разработка (заголовки),
   GOST Type AU — свободный шрифт технической документации (текст).
   Rodchenko снят с сайта: лицензирование оказалось слишком сложным. */
@font-face {
  font-family: "Tunturi";
  src: url("assets/fonts/Tunturi-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GOST Type AU";
  src: url("assets/fonts/GOST-Type-AU.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e9dcbd;
  --paper-2: #e2d2a9;
  --paper-3: #f2e8cf;
  --red: #bf3a2b;
  --red-dark: #a5301f;
  --black: #211c16;
  --ink: #2b241c;
  --frame: #17130e;
  --font-head: "Tunturi", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "GOST Type AU", "Oswald", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

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

a {
  color: var(--red);
}

/* Бумажная фактура: шум + виньетка */
.site {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  /* Настоящая фактура старой газеты: тайл из центра фото,
     края сшивает шумовой слой ::before и виньетка ::after */
  background: var(--paper) url("assets/img/paper-tile.jpg") repeat;
  background-size: 720px auto;
  border: 7px solid var(--frame);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.site::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.55 0 0 0 0 0.48 0 0 0 0 0.36 0 0 0 0.14 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

.site::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 41;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(60, 40, 10, 0.18) 100%);
}

/* Вариант «чистый белый» (Кастомайзер → Оформление → Фон сайта):
   без текстуры, шума и виньетки; плашки и бланки остаются бумажными
   акцентами — коллаж на белом листе. */
body.bg-plain {
  background: #e7e5e0;
}

body.bg-plain .site {
  background: #ffffff;
}

body.bg-plain .site::before,
body.bg-plain .site::after {
  display: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}

/* ==========================================================================
   2. Шапка
   ========================================================================== */

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 34px 6px;
}

/* Логотип: красные буквы, чёрная плашка под правой частью */
.brand {
  position: relative;
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  padding: 10px 22px 14px 0;
  flex-shrink: 0;
}

.brand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34%;
  right: 0;
  bottom: 0;
  background: var(--black);
  transform: skewX(-10deg);
  z-index: 0;
}

.brand::after {
  content: "";
  position: absolute;
  left: -34px;
  right: 55%;
  bottom: -7px;
  height: 9px;
  background: var(--red);
  z-index: 0;
}

.brand-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: 0.02em;
  color: var(--red);
  text-transform: uppercase;
  display: inline-block;
}

.header-right {
  text-align: right;
  padding-top: 14px;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.genres {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.genres::after {
  content: "";
  display: block;
  height: 7px;
  margin-top: 8px;
  background: var(--red);
}

.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-links a {
  color: var(--ink);
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.social-links a:hover {
  color: var(--red);
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Бургер (только мобильные) */
.menu-toggle {
  display: none;
  background: var(--red);
  color: var(--paper-3);
  border: 2px solid var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

/* ==========================================================================
   3. Каркас: левая колонка + основное поле
   ========================================================================== */

/* Сетка: левая колонка (меню + манифест) и основное поле сидят
   в общих строках, поэтому рамки блоков выравниваются по одним линиям:
   низ меню = низ hero, верх и низ манифеста = верх и низ нижнего ряда. */
.site-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "nav   main"
    "motto main";
  gap: 26px;
  padding: 18px 34px 30px;
}

.site-nav {
  grid-area: nav;
}

.motto {
  grid-area: motto;
}

.site-main {
  grid-area: main;
}

/* На главной main растворяется, hero и нижний ряд встают в строки сетки.
   Третья строка (новости) — только в правой колонке: манифест
   в левой не растягивается, растёт лишь основное поле. */
.home .site-body {
  grid-template-areas:
    "nav   hero"
    "motto bottom"
    ".     news";
}

.home .site-main {
  display: contents;
}

.home .hero {
  grid-area: hero;
}

.home .bottom-row {
  grid-area: bottom;
}

.home .news-section {
  grid-area: news;
}

/* --- Навигация --- */
.site-nav {
  border: 2px solid var(--black);
  background: transparent;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 14px 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 9px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .nav-current > a {
  background: var(--red);
  color: var(--paper-3);
  margin-right: 34px;
}

/* --- Манифест под меню --- */
.motto {
  background: var(--red);
  color: var(--paper-3);
  border: 2px solid var(--black);
  padding: 26px 22px;
}

.motto p {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.motto p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

/* Готовый баннер (фото группы с айдентикой уже вшито в картинку):
   один img на всю ширину блока, пропорция ровно как у исходника
   1920×768, поэтому object-fit: cover ничего не обрезает. */
.hero {
  position: relative;
  border: 2px solid var(--black);
  aspect-ratio: 1920 / 768;
  overflow: hidden;
  background: transparent;
}

.hero-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   5. Нижний ряд: релиз / концерты / агитфигура
   ========================================================================== */

.bottom-row {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 26px;
  align-items: stretch;
}

.panel {
  border: 2px solid var(--black);
  padding: 20px 24px 24px;
  position: relative;
}

.panel-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.panel-title::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--black);
  margin-top: 10px;
}

/* --- Релиз --- */
.release-body {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  align-items: flex-start;
}

.release-cover {
  flex: 0 0 44%;
  transform: rotate(-2deg);
  border: 4px solid var(--black);
  box-shadow: 5px 5px 0 rgba(33, 28, 22, 0.28);
  background: var(--black);
}

.release-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.release-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  overflow-wrap: break-word;
}

.release-title a {
  color: inherit;
  text-decoration: none;
}

.release-title a:hover {
  color: var(--red);
}

.release-sub {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}

.btn:hover {
  transform: translate(-1px, -1px);
}

.btn-listen {
  background: var(--black);
  color: var(--paper-3);
  font-size: 16px;
  letter-spacing: 0.1em;
  padding: 10px 28px;
}

.btn-listen:hover {
  background: var(--red);
  color: var(--paper-3);
}

/* --- Концерты --- */
.concerts-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.concert-row {
  display: grid;
  grid-template-columns: minmax(86px, max-content) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 2px solid var(--black);
}

.concert-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.concert-date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--black);
  white-space: nowrap;
}

.concert-place {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.concert-place a {
  color: inherit;
  text-decoration: none;
}

.concert-place a:hover {
  color: var(--red);
}

.concert-place small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

.btn-tickets {
  background: var(--red);
  color: var(--paper-3);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
}

.btn-tickets:hover {
  background: var(--black);
  color: var(--paper-3);
}

/* Архив концертов */
.concerts-section {
  margin-top: 34px;
  max-width: 720px;
}

.concerts-section .concerts-list {
  margin-top: 4px;
}

.concert-row--past {
  opacity: 0.55;
}

.concerts-empty {
  margin: 18px 2px 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Новости на главной --- */
.news-section {
  border: 2px solid var(--black);
  padding: 20px 24px 24px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  margin-top: 18px;
}

.news-item {
  border-top: 2px solid var(--black);
  padding-top: 14px;
}

.news-item-title {
  margin: 6px 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-item-title a {
  color: var(--black);
  text-decoration: none;
}

.news-item-title a:hover {
  color: var(--red);
}

.news-item-excerpt {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.news-item-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

.news-item-link:hover {
  color: var(--black);
}

/* ==========================================================================
   6. Футер
   ========================================================================== */

.site-footer {
  background: var(--black);
  color: var(--paper-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 34px;
  position: relative;
  z-index: 2;
}

.footer-slogan {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.footer-slogan em {
  font-style: normal;
  color: var(--red);
  filter: brightness(1.35);
}

.footer-copy {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  opacity: 0.85;
}

/* ==========================================================================
   7. Внутренние страницы (page / single / архивы)
   ========================================================================== */

.content-area {
  border: 2px solid var(--black);
  padding: 30px 34px 40px;
  background: transparent;
}

.page-heading {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--black);
  overflow-wrap: break-word;
}

.page-heading::after {
  content: "";
  display: block;
  width: 120px;
  height: 7px;
  background: var(--red);
  margin-top: 12px;
}

.entry-meta {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 14px 0 0;
}

/* Текст статей — GOST Type AU */
.entry-content {
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  max-width: 72ch;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
}

.entry-content a {
  color: var(--red);
}

.entry-content blockquote {
  border-left: 6px solid var(--red);
  margin: 24px 0;
  padding: 6px 0 6px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Список записей в архиве */
.post-card {
  border-bottom: 2px solid var(--black);
  padding: 22px 0;
}

.post-card:last-of-type {
  border-bottom: none;
}

.post-card-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.post-card-title a {
  color: var(--black);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--red);
}

.pagination {
  margin-top: 26px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid var(--black);
  color: var(--black);
  text-decoration: none;
  margin-right: 6px;
}

.pagination .page-numbers.current {
  background: var(--red);
  color: var(--paper-3);
  border-color: var(--red);
}

/* Страница 404 и пустые состояния */
.page-404 {
  text-align: center;
  padding: 60px 20px 70px;
}

.code-404 {
  margin: 0 0 30px;
  line-height: 1;
}

.code-404 span {
  position: relative;
  z-index: 0; /* свой stacking context: плашка ::before не проваливается под фон панели */
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(96px, 14vw, 190px);
  color: var(--red);
  padding: 0 40px;
}

/* Чёрная плашка под цифрами — как у логотипа */
.code-404 span::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 30%;
  right: -4%;
  bottom: 4%;
  background: var(--black);
  transform: skewX(-10deg);
  z-index: -1;
}

.page-404 .page-heading {
  margin: 0 auto 18px;
}

.page-404 .page-heading::after {
  margin-left: auto;
  margin-right: auto;
}

.lead-404 {
  margin: 0 auto 34px;
  max-width: 34ch;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ==========================================================================
   8. Плитки: музыка и магазин
   ========================================================================== */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.tile {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--black);
  padding: 20px 20px 22px;
  background: transparent;
}

.tile-cover {
  display: block;
  border: 4px solid var(--black);
  box-shadow: 5px 5px 0 rgba(33, 28, 22, 0.28);
  transform: rotate(-2deg);
  background: var(--black);
  margin: 0 0 20px;
}

.tile:nth-child(even) .tile-cover {
  transform: rotate(2deg);
}

.tile-cover img,
.tile-cover svg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.tile-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--black);
  overflow-wrap: break-word;
}

.tile-title a {
  color: inherit;
  text-decoration: none;
}

.tile-title a:hover {
  color: var(--red);
}

.tile-sub {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.tile-price {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--red);
}

.tile .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Одиночная страница релиза/товара */
.single-media {
  display: flex;
  gap: 34px;
  margin-top: 26px;
  align-items: flex-start;
}

.single-media .tile-cover {
  flex: 0 0 300px;
  margin: 0;
}

.single-media .entry-content {
  margin-top: 0;
}

/* ==========================================================================
   9. Фотографии: горизонтальные и вертикальные кадры без обрезки
   ========================================================================== */

/* CSS-колонки сами держат мозаику: каждая карточка ложится в ближайшую
   по высоте колонку, поэтому портретные и альбомные снимки соседствуют
   без общей сетки с фиксированной высотой строки. */
.photo-grid {
  column-count: 3;
  column-gap: 26px;
  margin-top: 30px;
}

.photo-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 26px;
  border: 2px solid var(--black);
  background: var(--paper-3);
  padding: 10px;
}

.photo-item a {
  display: block;
}

.photo-item img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-item figcaption {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.photo-single img {
  border: 2px solid var(--black);
  max-width: 640px;
}

.photo-single .page-heading {
  margin-top: 22px;
}

/* ==========================================================================
   10. Материалы: документы с печатью
   ========================================================================== */

.document {
  position: relative;
  border: 2px solid var(--black);
  /* Бланк чуть светлее газеты, но текстура просвечивает */
  background: rgba(242, 232, 207, 0.55);
  padding: 46px 50px 54px;
  max-width: 860px;
}

/* Внутренняя рамка бланка */
.document::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--black);
  pointer-events: none;
}

.document-meta {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 20px;
}

.document-meta::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: var(--red);
  margin-top: 12px;
}

.document .page-heading {
  font-size: clamp(24px, 2.6vw, 36px);
  padding-right: 140px;
}

.document .page-heading::after {
  display: none;
}

.document .entry-content {
  font-weight: 400;
}

.document-sign {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-sign small {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* Красная печать «УТВЕРЖДЕНО» */
.stamp {
  position: absolute;
  top: 22px;
  right: 34px;
  width: 148px;
  height: 148px;
  transform: rotate(-12deg);
  opacity: 0.82;
  pointer-events: none;
  z-index: 2;
}

.stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Список документов в архиве */
.doc-card {
  position: relative;
  border: 2px solid var(--black);
  background: rgba(242, 232, 207, 0.55);
  padding: 24px 28px 26px;
  margin-top: 26px;
}

.doc-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--black);
  pointer-events: none;
}

.doc-card .stamp {
  top: 12px;
  right: 18px;
  width: 92px;
  height: 92px;
}

.doc-card .post-card-title {
  padding-right: 100px;
}

.doc-card .entry-meta {
  margin: 0 0 8px;
}

.doc-card .entry-content {
  margin-top: 12px;
}

/* ==========================================================================
   11. Адаптив
   ========================================================================== */

@media (max-width: 1180px) {
  /* В узкой панели обложка встаёт над текстом релиза */
  .release-body {
    flex-direction: column;
  }

  .release-cover {
    flex-basis: auto;
    width: 62%;
    max-width: 260px;
  }

  .photo-grid {
    column-count: 2;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 20px 4px;
  }

  .header-right {
    padding-top: 0;
  }

  .header-meta {
    gap: 18px;
  }

  .genres {
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  /* Одна колонка: меню, контент, манифест — после контента */
  .site-body,
  .home .site-body {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: none;
    padding: 14px 20px 24px;
  }

  .site-nav,
  .site-main,
  .motto,
  .home .hero,
  .home .bottom-row,
  .home .news-section {
    grid-area: auto;
  }

  .site-nav {
    order: 1;
  }

  .site-main,
  .home .hero {
    order: 2;
  }

  .home .bottom-row {
    order: 3;
  }

  .home .news-section {
    order: 4;
  }

  .motto {
    order: 5;
  }

  .menu-toggle {
    display: inline-block;
    order: 3;
  }

  /* Меню-шторка */
  .site-nav {
    display: none;
    border: 2px solid var(--black);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .current-menu-item > a,
  .site-nav .current_page_item > a,
  .site-nav .nav-current > a {
    margin-right: 0;
  }

  .motto {
    margin-top: 22px;
  }
}

@media (max-width: 640px) {
  .site {
    border-width: 5px;
  }

  .brand-text {
    font-size: 42px;
  }

  .header-meta {
    flex-direction: row-reverse;
  }

  .genres {
    display: none;
  }

  .bottom-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .photo-grid {
    column-count: 1;
  }

  .release-body {
    flex-direction: column;
  }

  .release-cover {
    flex-basis: auto;
    width: 70%;
    max-width: 280px;
  }

  .concert-row {
    grid-template-columns: minmax(64px, max-content) 1fr auto;
    gap: 10px;
  }

  .concert-date {
    font-size: 17px;
  }

  .concert-place {
    font-size: 14px;
  }

  .btn-tickets {
    font-size: 11px;
    padding: 6px 10px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 14px 16px;
  }

  .footer-slogan {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .content-area {
    padding: 22px 18px 30px;
  }

  .single-media {
    flex-direction: column;
  }

  .single-media .tile-cover {
    flex-basis: auto;
    width: 80%;
    max-width: 300px;
  }

  .document {
    padding: 30px 22px 36px;
  }

  .document .page-heading {
    padding-right: 0;
    margin-top: 96px;
  }

  .stamp {
    width: 108px;
    height: 108px;
    top: 16px;
    right: 16px;
  }

  .doc-card .post-card-title {
    padding-right: 0;
    margin-top: 76px;
  }
}
