/* 
   SURZHIKOVA: CINEMATIC ROCK EDITORIAL STYLE
   Colors: Fire Orange (#FF4500), Soft Black (#0c0c0c), Paper White (#f0f0eb)
*/

:root {
    --fire-orange: #FF4500;
    --soft-black: #0c0c0c;
    --paper-white: #f0f0eb;
    --electric-blue: #00E5FF;
    --font-druk: 'Syne', sans-serif;
    --font-playfair: 'Playfair Display', serif;
    --font-main: 'Montserrat', sans-serif;
}

/* --- БАЗОВЫЕ НАСТРОЙКИ (Mobile First) --- */
body {
    background-color: var(--soft-black);
    color: var(--paper-white);
    margin: 0;
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Эффект шума старой кинопленки */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.05;
    z-index: 9999;
    pointer-events: none;
}

/* --- ТИПОГРАФИКА (адаптивные размеры через clamp) --- */
h1, h2, .druk-font {
    font-family: var(--font-druk);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.9;
    margin: 0;
    word-break: break-word;
}

.italic-sub {
    font-family: var(--font-playfair);
    font-style: italic;
    color: var(--fire-orange);
    font-weight: 400;
}

/* --- ШАПКА (EDITORIAL HEADER) --- */
.editorial-header {
    position: absolute;
    top: 0; width: 100%; z-index: 1000;
    padding: 20px 0;
}

.header-main-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 5%;
    align-items: center;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-slogan {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 10px;
    font-weight: 300;
    opacity: 0.8;
}

.header-right {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.header-right a {
    color: var(--paper-white);
    text-decoration: none;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
}

.header-right a:hover {
    color: var(--fire-orange);
}

/* --- HERO SECTION (КОСОЙ СРЕЗ) --- */
.hero-parallax {
    position: relative;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    background: #000;
}

.hero-bg {
    position: absolute;
    top: -10%; left: 0; width: 100%; height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-mist {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(12,12,12,0.95) 0%, rgba(12,12,12,0.4) 70%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5% 80px;
}

.hero-content h1 {
    font-size: clamp(3rem, 12vw, 13rem);
    text-shadow: 0 0 50px rgba(0,0,0,0.5);
    line-height: 0.9;
}

/* --- МАНИФЕСТ (BLOCK MANIFESTO) --- */
.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 5%;
    align-items: center;
}

.manifesto-text h2 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    color: var(--fire-orange);
    margin-bottom: 25px;
}

.editorial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    border-left: 0.5px solid var(--fire-orange);
    padding-left: 20px;
    color: rgba(240, 240, 235, 0.85);
}

/* Рваная бумага / Коллаж */
.torn-paper {
    background: var(--paper-white);
    padding: 8px;
    box-shadow: 15px 15px 0 var(--fire-orange);
    transform: rotate(1deg);
    position: relative;
    transition: transform 0.5s ease;
    max-width: 90%;
    margin: 0 auto;
}

.torn-paper img {
    width: 100%;
    display: block;
}

/* АНИМАЦИЯ ФОТО (ЧБ -> ЦВЕТ) */
.scroll-photo {
    filter: grayscale(1) brightness(0.6);
    transition: filter 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-photo.colored {
    filter: grayscale(0) brightness(1);
}

/* --- БЛОК "ПРАВДА" (DOSSIER) --- */
.section-truth {
    background-color: var(--paper-white);
    color: #000;
    padding: 80px 5%;
}

.archive-dossier {
    border: 0.5px solid #000;
    padding: 25px;
    position: relative;
}

.dossier-label {
    font-family: var(--font-druk);
    font-size: 0.7rem;
    border-bottom: 0.5px solid #000;
    margin-bottom: 30px;
    display: inline-block;
    letter-spacing: 1px;
    cursor: text;
}

/* --- ФУТЕР --- */
.editorial-footer {
    padding: 60px 5% 30px;
    background: #080808;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand h3 {
    font-family: var(--font-druk);
    font-size: 1.8rem;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.col-title {
    font-size: 9px;
    letter-spacing: 2px;
    opacity: 0.35;
    display: block;
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    color: var(--fire-orange);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--paper-white);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 0.5px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 8px;
    letter-spacing: 1.5px;
    opacity: 0.4;
    font-family: var(--font-main);
}

/* --- КНОПКИ (ОСТРЫЕ УГЛЫ) --- */
.btn-sharp {
    background: var(--fire-orange);
    color: #fff;
    border: none;
    padding: 14px 25px;
    font-family: var(--font-druk);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
}

.btn-sharp:hover {
    background: #e63e00;
    transform: scale(1.02);
}

/* --- КОНСТРУКТОР (АДМИН-ПАНЕЛЬ) --- */
.admin-constructor-panel {
    position: fixed;
    bottom: 15px; left: 15px;
    background: var(--paper-white);
    padding: 15px;
    z-index: 10001;
    color: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    border: 1px solid #000;
    max-width: calc(100% - 30px);
    font-size: 12px;
}

.block-controls {
    position: absolute;
    top: -14px; left: 0;
    display: flex;
    gap: 3px;
    z-index: 100;
}

.block-controls button {
    background: var(--fire-orange);
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-family: var(--font-druk);
    font-size: 8px;
}

/* Режим редактирования */
[contenteditable="true"]:focus {
    outline: 2px dashed var(--fire-orange);
    background: rgba(255, 69, 0, 0.05);
}

/* ГАЛЕРЕЯ (BLOCK GALLERY) */
.gallery-section {
    padding: 80px 4%;
    background: var(--soft-black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #151515;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Уголки */
.corner {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 5;
    pointer-events: none;
}
.corner-tl { top: 6px; left: 6px; border-top: 1.5px solid var(--fire-orange); border-left: 1.5px solid var(--fire-orange); }
.corner-tr { top: 6px; right: 6px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; }
.corner-bl { bottom: 6px; left: 6px; border-bottom: 1.5px solid #fff; border-left: 1.5px solid #fff; }
.corner-br { bottom: 6px; right: 6px; border-bottom: 1.5px solid var(--fire-orange); border-right: 1.5px solid var(--fire-orange); }

/* Градиент дымки справа налево */
.gallery-mist-right {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(270deg, rgba(12,12,12,0.7) 0%, transparent 70%);
    z-index: 3;
    pointer-events: none;
}

/* Лайтбокс (полный экран) */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 95%; max-height: 90%; box-shadow: 0 0 30px rgba(255,69,0,0.3); border: 1px solid rgba(255,255,255,0.1); }

/* Админ-кнопка внутри галереи */
.admin-gallery-add {
    grid-column: span 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--fire-orange);
    color: var(--fire-orange);
    font-family: var(--font-druk);
    cursor: pointer;
    aspect-ratio: 1/1;
    font-size: 0.9rem;
    text-align: center;
}

/* --- ОБНОВЛЕННЫЙ БЛОК: ЦИТАТА, АВТОГРАФ И ДЫМКА --- */
.block-quote-autograph { 
    position: relative; 
    padding: 120px 5%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; 
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.12) 0%, var(--soft-black) 75%);
}

.block-quote-autograph::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(255, 69, 0, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255, 69, 0, 0.08) 0%, transparent 45%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 1;
}

.autograph-bg { 
    position: absolute; 
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0;
    pointer-events: none; 
    z-index: 2;
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 20px rgba(255, 69, 0, 0.15));
}

.quote-text-large { 
    font-family: var(--font-playfair);
    font-style: italic;
    font-size: clamp(1.8rem, 6vw, 4.2rem); 
    line-height: 1.1;
    position: relative; 
    z-index: 3; 
    text-shadow: 0 10px 40px rgba(0,0,0,0.9), 0 0 20px rgba(255, 69, 0, 0.2);
    padding: 0 10px;
}

/* БЛОК ВИНИЛОВ (DISCOGRAPHY) */
.records-section {
    padding: 80px 5% 150px;
    background: #080808;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    margin-bottom: -60px;
}

.records-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.record-item {
    text-align: center;
    perspective: 1000px;
}

.vinyl-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.vinyl-plate {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #222 0%, #000 70%);
    border-radius: 50%;
    border: 1px solid #333;
    z-index: 1;
    transform: translateX(15px);
    transition: 0.5s ease;
}

.record-cover {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.8);
}

.record-item:hover .vinyl-plate {
    transform: translateX(40px) rotate(90deg);
}

.vinyl-link-btn {
    display: block;
    margin-top: 12px;
    font-family: var(--font-druk);
    font-size: 8px;
    color: var(--fire-orange);
    text-decoration: none;
    letter-spacing: 1px;
}
.vinyl-link-btn:hover { text-decoration: underline; }

.admin-vinyl-link-input {
    background: #222;
    border: 1px solid var(--fire-orange);
    color: #fff;
    font-size: 10px;
    padding: 4px;
    width: 100%;
    margin-top: 5px;
}

/* БЛОК НАСЛЕДИЕ (GITIS) */
.legacy-split {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 0.5px solid var(--fire-orange);
}

.legacy-info {
    padding: 40px 5%;
    border-right: none;
    border-bottom: 0.5px solid var(--fire-orange);
}

.legacy-photo {
    height: 350px;
    min-height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
}

.legacy-tag {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--fire-orange);
    color: #fff;
    padding: 8px 20px;
    font-family: var(--font-druk);
    transform: rotate(-90deg);
    cursor: text;
    border: none;
    white-space: nowrap;
    font-size: 0.8rem;
}

/* --- СТРАНИЦА: ПИСЬМО АРТИСТКЕ --- */
.letter-section {
    padding: 100px 5% 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: auto;
    background: radial-gradient(circle at top right, rgba(255, 69, 0, 0.05) 0%, var(--soft-black) 60%);
}

.letter-photo-side {
    position: static;
    height: auto;
}

.letter-quote-box {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 0.5px solid var(--fire-orange);
}

/* Стили формы */
.editorial-form {
    background: transparent;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editorial-label {
    font-family: var(--font-druk);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--fire-orange);
    text-transform: uppercase;
}

.editorial-input {
    background: transparent;
    border: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.3);
    color: var(--paper-white);
    padding: 8px 0;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.editorial-input:focus {
    outline: none;
    border-color: var(--fire-orange);
}

.editorial-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.char-counter {
    text-align: right;
    font-family: var(--font-druk);
    font-size: 8px;
    margin-top: 5px;
    opacity: 0.5;
}

.file-upload-zone {
    margin: 30px 0;
    padding: 20px;
    border: 0.5px dashed rgba(255,255,255,0.2);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.file-upload-zone:hover {
    border-color: var(--fire-orange);
    background: rgba(255, 69, 0, 0.02);
}

.btn-send-letter {
    width: 100%;
    margin-top: 15px;
}

/* --- АРХИВ ПРИШЕДШИХ ПИСЕМ (ТОЛЬКО ДЛЯ АДМИНА) --- */
.admin-inbox-section {
    padding: 60px 5%;
    background: var(--paper-white);
    color: #000;
    border-top: 1px solid #000;
}

.inbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.letter-card {
    border: 0.5px solid #000;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background 0.3s;
}

.letter-meta {
    font-family: var(--font-druk);
    font-size: 9px;
    line-height: 1.8;
}

.letter-body {
    font-size: 1rem;
    line-height: 1.5;
}

.letter-actions {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-letter-del {
    color: red;
    font-family: var(--font-druk);
    font-size: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.letter-card .italic-sub {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 8px;
    display: block;
}

/* --- АРХИВ ТАЙМЛАЙН (адаптирован) --- */
.archive-page-wrapper {
    background-color: var(--soft-black);
    color: var(--paper-white);
    min-height: 100vh;
    padding-top: 100px;
}

.timeline-outer {
    position: relative;
    top: auto;
    z-index: 500;
    background: rgba(12, 12, 12, 0.96);
    backdrop-filter: blur(15px);
    padding: 40px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.timeline-track {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.timeline-progress {
    position: absolute;
    left: 0; top: 50%;
    height: 2px;
    background: var(--fire-orange);
    width: 0%;
    transform: translateY(-50%);
    transition: width 1s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 10px var(--fire-orange);
    z-index: 2;
}

.timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 30px;
    height: 60px;
    background: transparent;
}

.marker-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.timeline-marker.is-major .marker-visual {
    height: 25px;
    width: 2px;
    background: #fff;
}

.timeline-marker.is-major .year-label {
    position: absolute;
    top: -35px;
    font-family: var(--font-druk);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    transition: 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.timeline-marker.is-minor .marker-visual {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

.timeline-marker.is-minor:hover .marker-visual {
    height: 25px;
    width: 1px;
    border-radius: 0;
    background: var(--fire-orange);
}

.timeline-marker:hover .year-label {
    color: var(--fire-orange);
    transform: scale(1.1);
}

.timeline-marker.active .marker-visual {
    background: var(--fire-orange);
    height: 35px;
    width: 2px;
    border-radius: 0;
    box-shadow: 0 0 15px var(--fire-orange);
}

.timeline-marker.active .year-label {
    color: var(--fire-orange);
    font-size: 14px;
    top: -40px;
    opacity: 1;
}

.date-tooltip {
    position: absolute;
    bottom: -12px;
    background: var(--fire-orange);
    color: #fff;
    font-family: var(--font-druk);
    font-size: 8px;
    padding: 3px 8px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    z-index: 20;
}

.timeline-marker:hover .date-tooltip {
    opacity: 1;
    bottom: -8px;
}

.archive-container {
    padding: 0 5% 80px;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.archive-card {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.archive-img-wrapper {
    background: #111;
    padding: 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.archive-card img {
    width: 100%;
    display: block;
    filter: grayscale(1) brightness(0.8);
    transition: 1.2s ease;
}

.archive-card.colored img {
    filter: grayscale(0) brightness(1);
}

.archive-info {
    margin-top: 15px;
    padding-left: 8px;
    border-left: 1px solid var(--fire-orange);
}

.archive-date {
    font-family: var(--font-druk);
    color: var(--fire-orange);
    font-size: 10px;
    letter-spacing: 2px;
}

.archive-caption {
    font-family: var(--font-playfair);
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.admin-archive-panel {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: var(--paper-white);
    padding: 20px;
    z-index: 2000;
    color: #000;
    border: 1px solid #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    max-width: calc(100% - 30px);
    width: 260px;
}

.admin-archive-panel input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    font-family: var(--font-main);
    font-size: 12px;
}

/* --- КОНТАКТЫ (АДАПТИРОВАНЫ) --- */
.contacts-hero {
    position: relative;
    min-height: 70vh;
    height: auto;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 115%;
    background-size: cover;
    background-position: center 20%;
    z-index: 1;
}

.contacts-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, 
        rgba(12,12,12,0.9) 0%, 
        rgba(12,12,12,0.5) 50%, 
        rgba(12,12,12,0.2) 100%);
    z-index: 2;
}

.contacts-hero-content {
    position: relative;
    z-index: 10;
    padding: 120px 5% 60px;
}

.contacts-hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 6rem);
    margin-bottom: 30px;
}

.contacts-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
}

.contact-business-item {
    margin-bottom: 25px;
}

.contact-data-large {
    font-family: var(--font-druk);
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    color: var(--paper-white);
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
    word-break: break-word;
    transition: color 0.3s ease;
}

.contact-data-large:hover {
    color: var(--fire-orange);
}

.admin-hero-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    font-size: 8px;
    background: rgba(0,0,0,0.5);
    border: 0.5px solid #fff;
    padding: 6px 10px;
}

.hub-divider {
    padding: 40px 5% 0;
}

/* --- ЭФФЕКТ ДИНАМИЧЕСКОГО ФОНА ПРИ СКРОЛЛЕ --- */
body::after {
    content: "";
    position: fixed;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(255, 69, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 40%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.scrolling-down::before { opacity: 1; }
body.scrolling-up::after { opacity: 1; }

/* --- ХАБ ССЫЛОК --- */
.links-hub-section {
    padding: 80px 5%;
    background: var(--soft-black);
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.links-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hub-link-item {
    display: block;
    padding: 25px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hub-link-label {
    font-family: var(--font-druk);
    font-size: 1.8rem;
    color: var(--paper-white);
    line-height: 1.2;
    word-break: break-word;
}

.hub-link-arrow {
    position: absolute;
    top: 15px; right: 15px;
    color: var(--fire-orange);
    font-family: var(--font-druk);
    font-size: 1.2rem;
}

.admin-hub-input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--fire-orange);
    color: #fff;
    font-size: 10px;
    padding: 5px;
    margin-top: 10px;
    width: 100%;
}

/* --- ТИЗЕР БИОГРАФИИ --- */
.bio-teaser-section {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--paper-white);
    color: #000;
    min-height: auto;
    align-items: center;
}

.bio-teaser-photo {
    height: 300px;
    min-height: auto;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    transition: filter 1s ease;
}

.bio-teaser-content {
    padding: 40px 5%;
}

.bio-teaser-content h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #000;
    margin-bottom: 20px;
}

.bio-teaser-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 100%;
}

.btn-bio-dark {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    border: none;
    font-family: var(--font-druk);
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-bio-dark:hover {
    background: var(--fire-orange);
    transform: scale(1.02);
}

/* --- БИОГРАФИЯ (EDITORIAL BIO) --- */
.bio-chapter-header {
    padding: 60px 5%;
    background: var(--soft-black);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.chapter-number {
    font-family: var(--font-druk);
    font-size: 5rem;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px var(--fire-orange);
    opacity: 0.5;
}

.chapter-title-box h2 {
    font-size: clamp(1.8rem, 6vw, 4rem);
    color: var(--paper-white);
    margin: 0;
}

.bio-split-block {
    padding: 60px 5%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.bio-split-block.reverse {
    direction: ltr;
}

.bio-split-photo-wrap {
    position: relative;
    padding: 10px;
}

.bio-split-photo-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0.5px solid var(--fire-orange);
    transform: translate(-10px, 10px);
    z-index: 1;
}

.bio-split-img {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
}

.bio-document-block {
    background: var(--paper-white);
    color: #000;
    padding: 50px 5%;
    margin: 60px 0;
    clip-path: polygon(0% 1%, 100% 0%, 98% 99%, 2% 100%);
}

.document-inner {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 25px;
    font-family: 'Courier Prime', monospace;
    position: relative;
    font-size: 0.9rem;
}

.document-stamp {
    position: absolute;
    top: 10px; right: 10px;
    border: 2px solid #7e1111;
    color: #7e1111;
    padding: 3px 10px;
    font-weight: bold;
    transform: rotate(10deg);
    font-family: var(--font-druk);
    opacity: 0.6;
    font-size: 0.7rem;
}

.bio-milestone {
    padding: 80px 5%;
    text-align: center;
}

.milestone-year {
    font-family: var(--font-druk);
    font-size: clamp(4rem, 15vw, 10rem);
    color: var(--fire-orange);
    display: block;
    margin-bottom: 15px;
    letter-spacing: -3px;
}

.milestone-text {
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.2rem;
    font-family: var(--font-playfair);
    font-style: italic;
    padding: 0 10px;
}

.bio-full-parallax {
    position: relative;
    height: 70vh;
    min-height: 400px;
    background-attachment: scroll; /* на мобильных fixed не всегда работает */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.full-parallax-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 90%;
    padding: 20px;
}

/* --- ПАНЕЛЬ ФОРМАТИРОВАНИЯ ТЕКСТА --- */
.floating-text-tools {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10005;
    background: var(--soft-black);
    padding: 10px;
    border: 1px solid var(--fire-orange);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-text-tools.active {
    opacity: 1;
    pointer-events: all;
}

.tool-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 16px;
}

.tool-btn:hover {
    background: var(--fire-orange);
    border-color: var(--fire-orange);
}

.tool-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 3px 0;
}

/* ============================================= */
/*          МЕДИА-ЗАПРОСЫ ДЛЯ ПЛАНШЕТОВ           */
/* ============================================= */
@media (min-width: 600px) and (max-width: 1024px) {
    .header-main-bar {
        padding: 0 4%;
    }
    
    .hero-content {
        padding: 120px 5% 80px;
    }
    
    .manifesto-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding: 100px 5%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .records-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legacy-split {
        grid-template-columns: 1fr 1fr;
    }
    
    .legacy-info {
        padding: 60px 5%;
        border-right: 0.5px solid var(--fire-orange);
        border-bottom: none;
    }
    
    .letter-section {
        grid-template-columns: 1fr 1.2fr;
        padding: 120px 5% 80px;
    }
    
    .letter-photo-side {
        position: sticky;
        top: 100px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .letter-card {
        display: grid;
        grid-template-columns: 150px 1fr 120px;
        gap: 20px;
    }
    
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .links-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bio-teaser-section {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .bio-teaser-photo {
        height: 100%;
        min-height: 500px;
    }
    
    .bio-split-block {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-nav {
        gap: 60px;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .timeline-outer {
        padding: 50px 0;
    }
    
    .timeline-track {
        max-width: 85%;
    }
    
    .contacts-main-grid {
        grid-template-columns: 1fr 1.2fr;
        max-width: 90%;
    }
}

/* ============================================= */
/*            ДЕСКТОП (>= 1025px)                */
/* ============================================= */
@media (min-width: 1025px) {
    .editorial-header {
        padding: 35px 0;
    }
    
    .header-main-bar {
        padding: 0 5%;
    }
    
    .hero-content {
        padding-left: 10%;
    }
    
    .manifesto-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        padding: 160px 10%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .records-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .legacy-split {
        grid-template-columns: 1fr 1fr;
    }
    
    .legacy-info {
        padding: 80px;
        border-right: 0.5px solid var(--fire-orange);
        border-bottom: none;
    }
    
    .legacy-photo {
        min-height: 500px;
    }
    
    .letter-section {
        grid-template-columns: 1fr 1.2fr;
        padding: 150px 10% 100px;
    }
    
    .letter-photo-side {
        position: sticky;
        top: 150px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .letter-card {
        display: grid;
        grid-template-columns: 200px 1fr 150px;
        gap: 40px;
    }
    
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .links-hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bio-teaser-section {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .bio-teaser-photo {
        min-height: 500px;
    }
    
    .bio-teaser-content {
        padding: 80px;
    }
    
    .bio-split-block {
        grid-template-columns: 1fr 1fr;
        gap: 100px;
    }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-nav {
        gap: 80px;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .timeline-outer {
        position: sticky;
        top: 0;
        padding: 70px 0;
    }
    
    .timeline-track {
        max-width: 92%;
    }
    
    .contacts-main-grid {
        grid-template-columns: 1fr 1.2fr;
        max-width: 90%;
        gap: 60px;
    }
    
    .hub-link-label {
        font-size: 2.5rem;
    }
}

/* Дополнительные фиксы для очень маленьких экранов (< 480px) */
@media (max-width: 480px) {
    .header-right {
        gap: 10px;
    }
    
    .header-right a {
        font-size: 8px;
        letter-spacing: 1px;
    }
    
    .hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .torn-paper {
        max-width: 100%;
        box-shadow: 10px 10px 0 var(--fire-orange);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .vinyl-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .legacy-tag {
        font-size: 0.7rem;
        padding: 6px 15px;
    }
    
    .btn-sharp {
        padding: 12px 20px;
        font-size: 0.7rem;
    }
    
    .chapter-number {
        font-size: 4rem;
    }
    
    .bio-document-block {
        padding: 30px 4%;
    }
    
    .document-inner {
        padding: 15px;
    }
    
    .admin-constructor-panel {
        padding: 10px;
        font-size: 10px;
    }
    
    .admin-archive-panel {
        width: 220px;
        padding: 15px;
    }
    
    .floating-text-tools {
        left: 5px;
    }
    
    .tool-btn {
        width: 32px;
        height: 32px;
    }
}

/* ============================================= */
/*  ФИНАЛЬНЫЙ ТЮНИНГ ШРИФТОВ ДЛЯ МОБИЛЬНЫХ (<600px) */
/*  Убираем переносы, делаем текст компактнее       */
/* ============================================= */
@media (max-width: 600px) {

    /* Общее правило для всех заголовков и крупных блоков */
    h1, h2, h3, .druk-font, .chapter-number, .milestone-year, 
    .hub-link-label, .quote-text-large, .hero-content h1 {
        word-break: keep-all;      /* не разрывать слова */
        hyphens: none;             /* запретить переносы */
        overflow-wrap: normal;
    }

    /* Уточнённые размеры для самых проблемных мест */
    .hero-content h1 {
        font-size: 12vw;           /* вместо clamp, даёт плавное уменьшение */
        line-height: 1;
        letter-spacing: -0.02em;
    }

    .quote-text-large {
        font-size: 7vw;
        line-height: 1.2;
        padding: 0 5px;
    }

    .manifesto-text h2 {
        font-size: 10vw;
        line-height: 1;
    }

    .chapter-number {
        font-size: 18vw;
        -webkit-text-stroke: 0.5px var(--fire-orange);
    }

    .chapter-title-box h2 {
        font-size: 8vw;
    }

    .milestone-year {
        font-size: 18vw;
        letter-spacing: -0.02em;
    }

    .milestone-text {
        font-size: 5vw;
        line-height: 1.3;
    }

    .bio-teaser-content h2 {
        font-size: 11vw;
    }

    .hub-link-label {
        font-size: 2rem;
        word-break: break-word;     /* если всё же длинное, разрыв по словам */
    }

    .contact-data-large {
        font-size: 6vw;
    }

    /* Админ-панель и мелкие надписи остаются читаемыми */
    .editorial-text {
        font-size: 4vw;
    }

    /* Винтажные углы и детали */
    .legacy-tag {
        font-size: 3vw;
        padding: 5px 12px;
    }

    /* Предотвращаем разрыв email/телефона */
    .contact-data-large,
    a[href^="mailto"],
    a[href^="tel"] {
        word-break: break-all;
    }
}

/* ============================================================ */
/*   ФИНАЛЬНЫЙ МОБИЛЬНЫЙ ТЮНИНГ (ВСТАВИТЬ В САМЫЙ КОНЕЦ)        */
/* ============================================================ */

@media (max-width: 600px) {
    /* 1. Исправляем наложение номера главы на заголовок */
    .bio-chapter-header {
        padding: 40px 6% 20px;
        display: block; /* Стэкаем номер и заголовок вертикально */
    }

    .chapter-number {
        font-size: 4rem; /* Уменьшаем номер, чтобы он не доминировал */
        margin-bottom: -10px;
        opacity: 0.3;
        -webkit-text-stroke: 1px var(--fire-orange);
    }

    .chapter-title-box h2 {
        font-size: 2.2rem; /* Оптимальный размер для мобил */
        line-height: 1;
        letter-spacing: -1px;
    }

    /* 2. Лечим блок "МАСТЕР / ПРЕПОДАВАТЕЛЬ" */
    .section-truth .archive-dossier > div {
        display: block !important; /* Убираем две колонки, делаем одну */
    }

    .section-truth h2 {
        font-size: 2.5rem !important; /* Уменьшаем размер заголовка "МАСТЕР" */
        margin-bottom: 20px;
        text-align: left;
        letter-spacing: -1px;
        word-break: break-word !important; /* Разрешаем перенос длинных слов */
        hyphens: auto; /* Добавляем переносы */
    }

    /* Специально для слова "ПРЕПОДАВАТЕЛЬ" */
    .section-truth h2 br {
        display: none; /* Убираем ручные переносы, если они есть */
    }

    /* 3. Делаем текст биографии читаемым */
    .editorial-text {
        font-size: 1.05rem; /* Чуть крупнее для глаз */
        padding-left: 15px;
        border-left-width: 2px;
        text-align: left !important; /* На мобильных выравнивание по ширине часто создает дырки */
        hyphens: auto;
    }

    /* 4. Исправляем блоки "СПЛИТ" (Фото + Текст) */
    .bio-split-block {
        padding: 30px 6%;
        gap: 25px;
    }

    .bio-split-photo-wrap::before {
        transform: translate(-10px, 10px); /* Уменьшаем вылет рамки */
    }

    /* 5. Увеличиваем отступы в текстовых блоках, чтобы не было "каши" */
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* 6. Глобальный фикс длинных слов для всех заголовков */
    h1, h2, .druk-font {
        word-break: break-word !important;
        hyphens: auto !important;
        overflow-wrap: anywhere !important;
    }

    /* 7. Блок "ДОКУМЕНТ" (с желтым фоном) */
    .bio-document-block {
        padding: 40px 4%;
        clip-path: none; /* Убираем кривой срез, на мобиле он ест место */
    }

    .document-inner {
        padding: 20px;
        font-size: 0.95rem;
    }
}

/* Фикс для совсем узких экранов (iPhone SE и др) */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .chapter-title-box h2 {
        font-size: 1.8rem;
    }
    .section-truth h2 {
        font-size: 2rem !important;
    }
}

/* ============================================================ */
/*   ФИНАЛЬНЫЙ МОБИЛЬНЫЙ ТЮНИНГ ДЛЯ ЧИТАЕМОСТИ БИОГРАФИИ        */
/* ============================================================ */

@media (max-width: 600px) {
    /* 1. Уменьшаем базовый размер шрифта для всей страницы */
    body {
        font-size: 14px; 
    }

    /* 2. Основной текст биографии (те самые 2-4 слова) */
    .editorial-text {
        font-size: 0.95rem !important; /* Уменьшаем размер букв */
        line-height: 1.4 !important;    /* Плотнее межстрочный интервал */
        padding-left: 12px !important;  /* Уменьшаем левый отступ у линии */
        border-left-width: 1px !important;
        text-align: left !important;    /* Отключаем justify, если он был (он создает дыры) */
        word-break: normal !important;  /* Убираем жесткий разрыв слов */
        hyphens: auto !important;       /* Включаем мягкие переносы */
    }

    /* 3. Расширяем контейнеры, чтобы текст занимал больше места по ширине */
    .bio-split-block, 
    .bio-chapter-header, 
    .section-truth, 
    .bio-document-block {
        padding-left: 4% !important;
        padding-right: 4% !important;
        gap: 20px !important;
    }

    /* 4. Исправляем блок "МАСТЕР / ПРЕПОДАВАТЕЛЬ" (Досье) */
    .section-truth .archive-dossier {
        padding: 15px !important; /* Меньше рамок вокруг досье */
    }
    
    .section-truth .archive-dossier > div {
        display: block !important; /* Убираем колонки, делаем текст под заголовком */
    }

    .section-truth h2 {
        font-size: 1.8rem !important; /* Заголовок МАСТЕР станет компактнее */
        margin-bottom: 15px !important;
    }

    /* 5. Исправляем блок с номером главы (01, 02 и т.д.) */
    .chapter-number {
        font-size: 3.5rem !important;
        margin-bottom: 0 !important;
    }

    .chapter-title-box h2 {
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
    }

    /* 6. Уменьшаем "Вехи" (Года) */
    .milestone-year {
        font-size: 4rem !important;
        letter-spacing: -2px !important;
    }

    .milestone-text {
        font-size: 1rem !important;
        padding: 0 !important;
    }

    /* 7. Тизер биографии */
    .bio-teaser-content {
        padding: 20px 5% !important;
    }

    .bio-teaser-content h2 {
        font-size: 1.8rem !important;
    }
}

/* Фикс для микро-экранов (iPhone SE и старые модели) */
@media (max-width: 360px) {
    .editorial-text {
        font-size: 0.9rem !important;
    }
    .chapter-title-box h2 {
        font-size: 1.4rem !important;
    }
}

