/* ===== ПЕРЕМЕННЫЕ ТЕМ ===== */
:root[data-theme="dark"] {
    --bg: #0c0b0a;
    --bg-soft: #121110;
    --bg-card: #161514;
    --text: #ece7e1;
    --text-muted: #8c857d;
    --border: #232120;
    --border-hover: #3a3532;
    --accent: #b3453f;
    --accent-soft: rgba(179, 69, 63, 0.12);
}

:root[data-theme="light"] {
    --bg: #f6f2ea;
    --bg-soft: #fdfaf5;
    --bg-card: #ffffff;
    --text: #1a1614;
    --text-muted: #6b625b;
    --border: #e3ddd3;
    --border-hover: #c9c0b3;
    --accent: #8f2f2a;
    --accent-soft: rgba(143, 47, 42, 0.08);
}

/* ===== БАЗА ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
    font-weight: 600;
}

img, svg, iframe { max-width: 100%; }
button { font-family: inherit; }

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.logo-mark,
.logo-mark svg {
    pointer-events: none;
}

.video-poster-img {
    pointer-events: none;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* ===== ВЕРХНИЕ КНОПКИ ===== */
.top-controls {
    position: fixed;
    top: calc(26px + env(safe-area-inset-top, 0px));
    right: calc(26px + env(safe-area-inset-right, 0px));
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.lang-toggle,
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lang-toggle:hover,
.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--accent);
}

.lang-toggle:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lang-toggle {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lang-current {
    display: block;
    line-height: 1;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: opacity 0.35s ease, transform 0.45s ease;
}
:root[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
:root[data-theme="dark"] .icon-sun  { opacity: 0; transform: rotate(-45deg) scale(0.7); }
:root[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(45deg) scale(0.7); }
:root[data-theme="light"] .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }

/* ===== ЯКОРЬ ВВЕРХ/ВНИЗ ===== */
.scroll-anchor {
    position: fixed;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    right: calc(26px + env(safe-area-inset-right, 0px));
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease,
                border-color 0.25s ease, color 0.25s ease, visibility 0.3s;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.scroll-anchor.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-anchor:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.scroll-anchor:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.scroll-anchor svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

.scroll-anchor.point-down svg {
    transform: rotate(180deg);
}

/* ===== ШАПКА ===== */
.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 70px;
}

.hero-content {
    max-width: 620px;
    animation: fadeUp 0.9s ease both;
}

.logo-mark {
    width: 92px;
    height: 92px;
    margin: 0 auto 40px;
    color: var(--text);
    opacity: 0.9;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--accent);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.4rem, 8vw, 4rem);
    line-height: 1.05;
    margin-bottom: 26px;
    font-style: italic;
    font-weight: 600;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.8;
    text-wrap: balance;
}

/* ===== ЦИТАТА ДНЯ ===== */
.quote-section {
    max-width: 720px;
    margin: 0 auto 90px;
    padding: 0 24px;
}

.quote-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    padding: 44px 40px;
    text-align: center;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.quote-card:hover { border-color: var(--border-hover); }

.quote-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.quote-card blockquote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.05rem, 3.6vw, 1.35rem);
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 20px;
    text-wrap: balance;
}

.quote-card cite {
    display: block;
    font-style: normal;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.quote-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.quote-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.quote-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.quote-action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.quote-action svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ===== ССЫЛКИ ===== */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 0 24px 100px;
    max-width: 880px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.25s ease, background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.link-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-soft);
}
.link-icon {
    font-size: 1rem;
    color: var(--accent);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.link-name { flex: 1; }
.link-arrow {
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.25s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.link-card:hover .link-arrow {
    transform: translateX(3px);
    color: var(--accent);
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 36px;
}
.section-head h2 {
    font-size: clamp(1.35rem, 4vw, 1.95rem);
    font-style: italic;
    white-space: nowrap;
    font-weight: 600;
    text-wrap: balance;
}
.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    transform: translateY(-6px);
}

/* ===== НОВИНКИ ===== */
.news {
    padding: 40px 24px 80px;
    max-width: 780px;
    margin: 0 auto;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-item {
    padding: 26px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.news-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-soft);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.news-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--accent-soft);
    color: var(--accent);
}
.news-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}
.news-item h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-wrap: balance;
}
.news-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.news-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.news-link:hover { opacity: 0.7; }

/* ===== ТОП ВИДЕО ===== */
.top-videos {
    padding: 40px 24px 90px;
    max-width: 1280px;
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.video-card {
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.video-card:hover { border-color: var(--border-hover); }

.video-link {
    display: block;
    text-align: center;
    padding: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-top: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.video-link:hover {
    color: var(--accent);
    background: var(--bg-soft);
}

/* ===== ВИДЕО: ФОЛБЭК ===== */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    transition: opacity 0.4s ease;
}

.video-frame.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-soft);
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.video-frame.is-failed.is-loading::after {
    opacity: 0;
}

.video-frame.is-failed iframe {
    opacity: 0;
    pointer-events: none;
}

.video-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 2;
}

.video-frame.is-failed .video-fallback {
    opacity: 1;
    visibility: visible;
}

.blood-print {
    width: 78px;
    height: 78px;
    margin-bottom: 8px;
    animation: printIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    filter: drop-shadow(0 4px 12px rgba(90, 24, 21, 0.4));
}
.blood-print svg { width: 100%; height: 100%; display: block; }

@keyframes printIn {
    0%   { transform: scale(1.35); opacity: 0; }
    60%  { transform: scale(0.96); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.fallback-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin: 0;
}

.fallback-text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 260px;
    margin: 0;
}

.retry-btn {
    margin-top: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.retry-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.retry-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== ВИДЕО: ПРЕВЬЮ-ПОСТЕР ===== */
.video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
    display: block;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.4s ease;
}

.video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.75) saturate(0.9);
}

.video-poster:hover .video-poster-img {
    transform: scale(1.04);
    filter: brightness(0.9) saturate(1);
}

.video-poster:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    pointer-events: none;
}
.video-play svg {
    width: 26px;
    height: 26px;
    margin-left: 3px;
}
.video-poster:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.video-frame.is-loading .video-poster {
    opacity: 0.25;
    pointer-events: none;
}
.video-frame.is-loading .video-play {
    display: none;
}

/* ===== РЕКЛАМА ===== */
.ad-section {
    text-align: center;
    padding: 0 24px 110px;
}
.ad-btn {
    display: inline-block;
    padding: 15px 36px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.25s ease, color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.ad-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== ПОДВАЛ ===== */
footer {
    text-align: center;
    padding: 70px 24px 60px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 18px;
}

footer a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
footer a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.copyright {
    margin-top: 18px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.45;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.footer-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.footer-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-sep { color: var(--border-hover); }
.footer-age { color: var(--text-muted); font-size: 0.85rem; }

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.legal-modal {
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0;
    max-width: 640px;
    width: 92vw;
    max-height: 88vh;
    max-height: 88dvh;
    overflow: visible;
    box-shadow: none;
    margin: auto;
    position: fixed;
    inset: 0;
}

.legal-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: backdropIn 0.4s ease both;
}

@keyframes backdropIn {
    from { opacity: 0; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
    to   { opacity: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes modalOut {
    0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    100% { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(6px); }
}

@keyframes backdropOut {
    0%   { opacity: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    100% { opacity: 0; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}

.legal-modal.is-closing::backdrop {
    animation: backdropOut 0.32s ease forwards;
}

.modal-content.is-closing {
    animation: modalOut 0.32s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* КРЕСТИК: ВНЕ .modal-content — не уезжает при скролле */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
    background: var(--bg-card);
}
.modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.modal-header {
    padding: 56px 44px 36px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-card) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.modal-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.3rem, 5vw, 1.9rem);
    margin-bottom: 10px;
    color: var(--text);
    position: relative;
    z-index: 1;
    text-wrap: balance;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
}

.modal-text {
    padding: 40px 44px 48px;
}

.modal-block {
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    animation: blockIn 0.5s ease both;
}

.modal-block:nth-child(1) { animation-delay: 0.15s; }
.modal-block:nth-child(2) { animation-delay: 0.22s; }
.modal-block:nth-child(3) { animation-delay: 0.29s; }
.modal-block:nth-child(4) { animation-delay: 0.36s; }
.modal-block:nth-child(5) { animation-delay: 0.43s; }
.modal-block:nth-child(6) { animation-delay: 0.50s; }
.modal-block:nth-child(7) { animation-delay: 0.57s; }

@keyframes blockIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-block-last {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.modal-num {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
    width: 32px;
    padding-top: 2px;
}

.modal-block-content { flex: 1; min-width: 0; }

.modal-block-content h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
    text-wrap: balance;
}

.modal-block-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

.modal-block-content p + p {
    margin-top: 10px;
}

.modal-block-content strong {
    color: var(--text);
    font-weight: 600;
}

.modal-block-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.modal-block-content a:hover {
    border-bottom-color: var(--accent);
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 12px;
}
.modal-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.modal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
}

.modal-meta {
    margin-top: 12px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    opacity: 0.65;
}

/* ===== ПОЛОСА ПРОГРЕССА СКРОЛЛА ===== */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 1100;
    pointer-events: none;
    transition: transform 0.1s linear;
}

/* ===== АНИМАЦИЯ СМЕНЫ ЦИТАТЫ ===== */
.quote-card.quote-swap blockquote,
.quote-card.quote-swap cite {
    animation: quoteSwap 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes quoteSwap {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== ТОСТ ===== */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 20px);
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    z-index: 1200;
    max-width: calc(100vw - 40px);
    text-align: center;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ===== ПЛАВНОЕ ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ===== */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NOSCRIPT ===== */
.noscript-banner {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== ФОКУС ===== */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

a, button, .link-card, .ad-btn, .video-link, .news-link {
    -webkit-tap-highlight-color: transparent;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .top-videos { max-width: 100%; }
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: calc(110px + env(safe-area-inset-top, 0px)) 20px 50px;
        min-height: auto;
    }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 2.6rem); }
    .logo-mark { width: 76px; height: 76px; margin-bottom: 32px; }
    .tagline { font-size: 0.96rem; }

    .quote-section { margin-bottom: 60px; }
    .quote-card { padding: 32px 22px; }

    .section-head { margin-bottom: 26px; gap: 16px; }

    .links {
        padding: 0 20px 70px;
        grid-template-columns: 1fr;
    }

    .news, .top-videos { padding: 30px 20px 60px; }
    .ad-section { padding: 0 20px 80px; }
    .news-item { padding: 22px; }

    .top-controls {
        top: calc(14px + env(safe-area-inset-top, 0px));
        right: calc(14px + env(safe-area-inset-right, 0px));
        gap: 6px;
    }
    .lang-toggle,
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    .lang-toggle {
        font-size: 0.68rem;
    }

    .scroll-anchor {
        width: 42px;
        height: 42px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        right: calc(18px + env(safe-area-inset-right, 0px));
    }

    footer {
        padding: 50px 20px calc(46px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 520px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero h1 { font-size: clamp(2rem, 10vw, 2.4rem); }
    .eyebrow { font-size: 0.66rem; letter-spacing: 0.18em; }
    .link-card { padding: 18px 20px; font-size: 0.92rem; }
    .news-item h3 { font-size: 1.05rem; }
    .ad-btn {
        width: 100%;
        text-align: center;
        padding: 15px 24px;
        font-size: 0.85rem;
    }
    .footer-links { gap: 8px; }

    .legal-modal {
        width: 94vw;
        margin: auto;
    }
    .modal-header { padding: 40px 20px 24px; }
    .modal-header h2 { font-size: 1.3rem; }
    .modal-text { padding: 24px 20px 32px; }
    .modal-block {
        gap: 12px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .modal-num { width: 24px; font-size: 0.95rem; }
    .modal-block-content h3 { font-size: 1rem; }
    .modal-block-content p { font-size: 0.86rem; }
    .modal-list li { font-size: 0.86rem; }
    .modal-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .quote-actions { gap: 6px; }
    .quote-action {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        font-size: 0.74rem;
        padding: 8px 10px;
    }
    .quote-action svg {
        width: 12px;
        height: 12px;
    }

    .video-play {
        width: 54px;
        height: 54px;
    }
    .video-play svg {
        width: 22px;
        height: 22px;
    }

    .toast {
        font-size: 0.82rem;
        padding: 11px 18px;
    }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.9rem; }
    .logo-mark { width: 66px; height: 66px; margin-bottom: 24px; }
    .quote-card { padding: 26px 18px; }
    .news-item { padding: 18px; }
    .fallback-text { font-size: 0.78rem; }
    .top-controls { gap: 5px; }
    .lang-toggle,
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    .lang-toggle { font-size: 0.64rem; }
}

/* ===== ПЕЧАТЬ ===== */
@media print {
    body::before {
        content: "Saitenly — personal creative project. Copying the design and layout is discouraged.";
        display: block;
        text-align: center;
        padding: 12px;
        font-size: 12px;
        color: #8c857d;
    }
    .top-controls,
    .scroll-anchor,
    .progress-bar,
    .toast {
        display: none !important;
    }
}

/* ===== ДОСТУПНОСТЬ: УМЕНЬШЕННАЯ АНИМАЦИЯ ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .blood-print { animation: none; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .progress-bar { transition: none; }
    .toast { transition: opacity 0.15s ease; }
    .modal-content.is-closing { animation: none; opacity: 0; }
    .legal-modal.is-closing::backdrop { animation: none; opacity: 0; }
}