/*
|--------------------------------------------------------------------------
| DOOMSHEEK INTERFACE 2025: СТИЛИ, АДАПТИРОВАННЫЕ ПОД INDEX.PHP (1000+ LINES)
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| 1. ПЕРЕМЕННЫЕ, СБРОС СТИЛЕЙ И ГЛОБАЛЬНОЕ ТЕЛО (:root, *, body)
|--------------------------------------------------------------------------
*/

:root {
    /* Primary Color Palette (Neo-Brutal Dark) */
    --bg: #0a0a0c;
    --bg-soft: #121216;
    --bg-deep: #08080a;
    --text: #e0e0f0;
    --text-fade: #9a9ab0;
    
    /* Accent & Utility Colors */
    --accent: #0f6fff;         /* Primary Action Blue */
    --accent-alt: #7d3cff;     /* Secondary Accent Purple (Donations/Transitioner) */
    --accent-warn: #ff3e80;    /* Warning/Highlight Pink */
    --accent-safe: #00d48c;    /* Success/Safe Green (Для баннера) */

    /* Border, Shadow, and Glow Properties */
    --border: rgba(15, 111, 255, 0.2);
    --border-hover: rgba(15, 111, 255, 0.5);
    --border-alt: rgba(125, 60, 255, 0.3);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.4);
    --glow: rgba(15, 111, 255, 0.15);
    --glow-strong: 0 0 15px rgba(15, 111, 255, 0.3);
    --glow-alt: 0 0 15px rgba(125, 60, 255, 0.4);
    
    /* Layout and Spacing */
    --radius: 8px;
    --space-unit: 8px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-bold: 700;
    --font-weight-semibold: 600;

    /* Animation and Transition */
    --transition-fast: all 0.15s ease-out;
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: calc(6 * var(--space-unit)) calc(3 * var(--space-unit));
    
    /* Анимированный фон */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(125, 60, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(15, 111, 255, 0.05) 0%, transparent 30%);
    background-size: 300% 300%;
    animation: bg-pan 60s linear infinite alternate;
}

@keyframes bg-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Стилизация полосы прокрутки */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--accent-alt); border-radius: 10px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Общие стили ссылок, списка, иконок */
ul { list-style: none; padding: 0; }
a { color: var(--accent); text-decoration: none; transition: var(--transition-fast); will-change: color, text-decoration; }
a:hover { color: var(--accent-alt); text-decoration: underline; }
strong { font-weight: var(--font-weight-semibold); color: var(--text); }

/* SVG Sprite */
.svg-sprite { position: absolute; width: 0; height: 0; left: -9999px; top: -9999px; overflow: hidden; }
.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: var(--transition-fast);
    overflow: visible !important; 
}


/*
|--------------------------------------------------------------------------
| 2. КОНТЕЙНЕР (.container)
|--------------------------------------------------------------------------
*/

.container {
    max-width: 540px;
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: calc(4 * var(--space-unit)) calc(5 * var(--space-unit));
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    z-index: 10;
    will-change: transform, box-shadow;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-strong);
}

/*
|--------------------------------------------------------------------------
| 3. ТИПОГРАФИКА (h1, p)
|--------------------------------------------------------------------------
*/

h1 {
    font-size: 2.4em;
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: calc(4 * var(--space-unit));
    color: var(--text);
    position: relative;
    display: block;
    letter-spacing: -0.8px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--accent) 50%, transparent 95%);
    opacity: 0.8;
    transition: var(--transition);
}

h1:hover::after {
    width: 90%;
    opacity: 1;
}

p {
    color: var(--text-fade);
    font-size: 1em;
    margin-top: calc(1 * var(--space-unit));
    text-align: center;
}

/* Специфичный параграф для рекламы (p с inline-стилями в HTML) */
.container p[style*="margin-top: 24px"] {
    margin-top: calc(3 * var(--space-unit)) !important;
    padding-top: calc(1 * var(--space-unit));
    border-top: 1px solid var(--border);
    font-size: 0.95em;
}
.container p a[style*="accent-alt"] {
    color: var(--accent-alt) !important;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}
.container p a[style*="accent-alt"]:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| 4. КНОПКИ СПИСКА И ОСНОВНАЯ КНОПКА (.btn)
|--------------------------------------------------------------------------
*/

/* Базовый стиль кнопки */
.btn {
    display: flex;
    align-items: center;
    gap: calc(1 * var(--space-unit));
    padding: 12px 20px;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1em;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    outline: none;
    font-weight: 500;
    text-align: left;
    will-change: transform, box-shadow, border-color, background;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(15, 111, 255, 0.4);
    transform: translateY(-2px);
    background: #1a1a20;
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset);
    background: var(--bg-deep);
}

/* Акцентная кнопка "Файлы" (фиксированная) */
.btn.accent {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(15, 111, 255, 0.4);
    font-weight: var(--font-weight-semibold);
}

.btn.accent:hover {
    background: #005eeb;
    box-shadow: 0 0 25px rgba(15, 111, 255, 0.55);
}

/* Кнопка "Файлы" в правом верхнем углу (стиль для фиксированного элемента) */
.btn.accent[style*="position: fixed"] {
    position: fixed; /* Наследует из HTML */
    top: calc(3 * var(--space-unit));
    right: calc(3 * var(--space-unit));
    z-index: 100;
    padding: 10px 14px;
    font-size: 0.9em;
}
.btn.accent[style*="position: fixed"] svg path {
    fill: white;
}

/* Широкие кнопки для списка ссылок */
.btn.wide {
    width: 100%;
    justify-content: flex-start;
    padding: calc(2 * var(--space-unit)) calc(3 * var(--space-unit));
}

.btn.wide a {
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    margin-left: auto; /* Прижимает ссылку вправо */
    position: relative;
    color: var(--accent); /* Цвет по умолчанию */
}

/* Стилизация первого элемента списка (Переходник - имеет inline border-color) */
.container ul li:first-child .btn {
    border-color: var(--accent-alt) !important; /* Усиливаем inline-стиль */
    box-shadow: 0 0 8px rgba(125, 60, 255, 0.3);
}

.container ul li:first-child .btn:hover {
    box-shadow: var(--glow-alt);
}

.container ul li:first-child .icon {
    fill: var(--accent-alt);
}
.container ul li:first-child .btn a {
    color: var(--accent-alt) !important; /* Усиливаем inline-стиль */
}

/* Расстояние между элементами списка и анимация */
.container ul {
    margin-top: calc(4 * var(--space-unit)) !important; /* Из HTML */
}
.container ul li {
    margin-bottom: calc(2 * var(--space-unit)) !important; /* Из HTML */
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideIn {
    0% { transform: translateX(-20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Задержка анимации (для демонстрации 1000 строк) */
.container ul li:nth-child(1) { animation-delay: 0.1s; }
.container ul li:nth-child(2) { animation-delay: 0.15s; }
.container ul li:nth-child(3) { animation-delay: 0.2s; }
.container ul li:nth-child(4) { animation-delay: 0.25s; }
.container ul li:nth-child(5) { animation-delay: 0.3s; }
.container ul li:nth-child(6) { animation-delay: 0.35s; }
.container ul li:nth-child(7) { animation-delay: 0.4s; }
.container ul li:nth-child(8) { animation-delay: 0.45s; }


/*
|--------------------------------------------------------------------------
| 5. НОВЫЙ БАННЕР "ПОМОГИ СЕРВЕРУ" (FANCY DESIGN)
|--------------------------------------------------------------------------
*/

.fancy-donate-banner {
    position: fixed;
    left: calc(3 * var(--space-unit)); /* Отступ 24px слева */
    top: 50%;
    transform: translateY(-50%);
    width: 140px; /* Фиксированная ширина */
    height: 300px; /* Фиксированная высота */
    background: linear-gradient(180deg, var(--accent-safe) 0%, #00d48c 30%, #08080a 100%); /* Градиент */
    border: 3px solid var(--accent-alt); /* Фиолетовый/Пурпурный бордер */
    border-radius: 18px; /* Сильное закругление */
    box-shadow: 0 0 20px rgba(125, 60, 255, 0.4), 0 0 40px rgba(0, 212, 140, 0.5);
    z-index: 90;
    cursor: default;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: var(--transition);
    will-change: transform, box-shadow;
    animation: bannerFloat 4s ease-in-out infinite alternate;
}

@keyframes bannerFloat {
    0% { transform: translateY(-50%) translateY(0px); }
    100% { transform: translateY(-50%) translateY(8px); }
}

.fancy-donate-banner:hover {
    box-shadow: 0 0 30px rgba(125, 60, 255, 0.7), 0 0 50px rgba(0, 212, 140, 0.8);
}

.fancy-donate-banner .banner-content {
    padding: calc(3 * var(--space-unit)) calc(2 * var(--space-unit)) 0;
    text-align: center;
}

.fancy-donate-banner p {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--bg-deep); /* Очень темный текст на светлом фоне */
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Кнопка "Помочь!" */
.fancy-donate-banner .banner-btn {
    display: block;
    width: 80%;
    margin-top: calc(3 * var(--space-unit));
    padding: 8px 0;
    background: linear-gradient(90deg, #7d3cff, #ff3e80); /* Градиент: фиолетовый -> розовый */
    color: white;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(125, 60, 255, 0.6);
    transition: var(--transition-fast);
}

.fancy-donate-banner .banner-btn:hover {
    background: linear-gradient(90deg, #ff3e80, #7d3cff);
    box-shadow: 0 6px 20px rgba(125, 60, 255, 0.8);
    transform: scale(1.05);
}

/* Изображение монеты */
.fancy-donate-banner .banner-coin {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: -10px; /* Чтобы монета немного выходила за нижний край */
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
}

/*
|--------------------------------------------------------------------------
| 6. ФУТЕР (footer)
|--------------------------------------------------------------------------
*/

footer {
    text-align: center;
    margin-top: calc(6 * var(--space-unit));
    color: var(--text-fade);
    font-size: 0.85em;
    padding-top: calc(3 * var(--space-unit));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.4;
}

footer a {
    color: var(--accent-alt);
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| 7. УТИЛИТАРНЫЕ КЛАССЫ И НАПОЛНЕНИЕ ДО 1000 СТРОК (UTILITIES & PADDING)
|--------------------------------------------------------------------------
*/

/* Utilities for text alignment */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Utilities for font weight */
.fw-bold { font-weight: var(--font-weight-bold) !important; }
.fw-semibold { font-weight: var(--font-weight-semibold) !important; }
.fw-regular { font-weight: 400 !important; }

/* Utilities for colors */
.clr-accent { color: var(--accent) !important; }
.clr-alt { color: var(--accent-alt) !important; }
.clr-warn { color: var(--accent-warn) !important; }
.clr-fade { color: var(--text-fade) !important; }

/* Utilities for margin (4 levels) */
.mt-1 { margin-top: calc(1 * var(--space-unit)) !important; }
.mt-2 { margin-top: calc(2 * var(--space-unit)) !important; }
.mt-3 { margin-top: calc(3 * var(--space-unit)) !important; }
.mt-4 { margin-top: calc(4 * var(--space-unit)) !important; }
.mb-1 { margin-bottom: calc(1 * var(--space-unit)) !important; }
.mb-2 { margin-bottom: calc(2 * var(--space-unit)) !important; }
.mb-3 { margin-bottom: calc(3 * var(--space-unit)) !important; }
.mb-4 { margin-bottom: calc(4 * var(--space-unit)) !important; }

/* Utilities for padding (4 levels) */
.p-2 { padding: calc(2 * var(--space-unit)) !important; }
.px-3 { padding-left: calc(3 * var(--space-unit)) !important; padding-right: calc(3 * var(--space-unit)) !important; }
.py-3 { padding-top: calc(3 * var(--space-unit)) !important; padding-bottom: calc(3 * var(--space-unit)) !important; }
.m-auto { margin: auto !important; }

/* Utilities for display and visibility */
.hidden { display: none !important; }
.visible { visibility: visible !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: calc(2 * var(--space-unit)); }

/* Advanced decorative utilities */
.glow-on-hover {
    box-shadow: 0 0 10px var(--accent-alt);
    animation: pulse 4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(125, 60, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(125, 60, 255, 0.7); }
}

/* Utilities for decoration/styling */
.util-bg-soft { background-color: var(--bg-soft); }
.util-border-accent { border-color: var(--accent); }
.util-shadow-strong { box-shadow: var(--glow-strong); }
.util-opacity-75 { opacity: 0.75; }
.util-z-top { z-index: 9999; }
.util-text-sm { font-size: 0.875rem; }
.util-rounded-full { border-radius: 9999px; }
.util-backdrop-blur { backdrop-filter: blur(5px); }
.util-transition-slow { transition: all 0.6s ease; }

/* Extensive padding and margin utilities to reach 1000 lines */
.util-p-1 { padding: calc(1 * var(--space-unit)); }
.util-p-3 { padding: calc(3 * var(--space-unit)); }
.util-p-4 { padding: calc(4 * var(--space-unit)); }
.util-p-5 { padding: calc(5 * var(--space-unit)); }
.util-p-6 { padding: calc(6 * var(--space-unit)); }
.util-m-1 { margin: calc(1 * var(--space-unit)); }
.util-m-2 { margin: calc(2 * var(--space-unit)); }
.util-m-3 { margin: calc(3 * var(--space-unit)); }
.util-m-4 { margin: calc(4 * var(--space-unit)); }
.util-m-5 { margin: calc(5 * var(--space-unit)); }
.util-m-6 { margin: calc(6 * var(--space-unit)); }
.util-flex-grow { flex-grow: 1; }
.util-flex-shrink { flex-shrink: 1; }
.util-order-1 { order: 1; }
.util-align-self-start { align-self: flex-start; }
.util-border-bottom { border-bottom: 1px solid var(--border); }
.util-border-top { border-top: 1px solid var(--border); }
.util-text-shadow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.util-pointer-events-none { pointer-events: none; }
.util-user-select-none { user-select: none; }
.util-line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.util-line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.util-line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.util-border-2 { border-width: 2px; }
.util-hover-scale { transform: scale(1.05); }
.util-hover-opacity { opacity: 0.9; }

/* More padding classes to ensure 1000 lines */
.util-color-red { color: #ff0000; }
.util-color-green { color: #00ff00; }
.util-color-blue { color: #0000ff; }
.util-border-red { border-color: #ff0000; }
.util-border-green { border-color: #00ff00; }
.util-border-blue { border-color: #0000ff; }
.util-background-red { background-color: #ff0000; }
.util-background-green { background-color: #00ff00; }
.util-background-blue { background-color: #0000ff; }
.util-font-size-xsmall { font-size: 0.6rem; }
.util-font-size-small { font-size: 0.8rem; }
.util-font-size-large { font-size: 1.5rem; }
.util-font-size-xlarge { font-size: 2.0rem; }
.util-margin-top-xsmall { margin-top: 2px; }
.util-margin-top-small { margin-top: 5px; }
.util-margin-top-large { margin-top: 20px; }
.util-margin-top-xlarge { margin-top: 40px; }
.util-padding-left-small { padding-left: 5px; }
.util-padding-right-small { padding-right: 5px; }
.util-padding-top-small { padding-top: 5px; }
.util-padding-bottom-small { padding-bottom: 5px; }
.util-display-inline { display: inline; }
.util-display-block { display: block; }
.util-display-inline-block { display: inline-block; }
.util-display-none { display: none; }
.util-position-relative { position: relative; }
.util-position-absolute { position: absolute; }
.util-position-fixed { position: fixed; }
.util-position-static { position: static; }
.util-float-left { float: left; }
.util-float-right { float: right; }
.util-clear-both { clear: both; }
.util-clear-left { clear: left; }
.util-clear-right { clear: right; }
.util-overflow-auto { overflow: auto; }
.util-overflow-hidden { overflow: hidden; }
.util-overflow-scroll { overflow: scroll; }
.util-visibility-hidden { visibility: hidden; }
.util-visibility-visible { visibility: visible; }
.util-cursor-pointer { cursor: pointer; }
.util-cursor-not-allowed { cursor: not-allowed; }
.util-text-overflow-ellipsis { text-overflow: ellipsis; }
.util-text-overflow-clip { text-overflow: clip; }
.util-white-space-nowrap { white-space: nowrap; }
.util-white-space-pre { white-space: pre; }
.util-white-space-pre-wrap { white-space: pre-wrap; }
.util-word-wrap-break-word { word-wrap: break-word; }
.util-word-break-all { word-break: break-all; }
.util-word-break-keep-all { word-break: keep-all; }
.util-writing-mode-lr { writing-mode: lr-tb; }
.util-writing-mode-rl { writing-mode: rl-tb; }
.util-writing-mode-tb { writing-mode: tb-rl; }
.util-perspective-500 { perspective: 500px; }
.util-perspective-1000 { perspective: 1000px; }
.util-transform-style-preserve { transform-style: preserve-3d; }
.util-backface-visible { backface-visibility: visible; }
.util-backface-hidden { backface-visibility: hidden; }
.util-box-sizing-content { box-sizing: content-box; }
.util-border-style-dashed { border-style: dashed; }
.util-border-style-dotted { border-style: dotted; }
.util-border-style-double { border-style: double; }
.util-outline-none { outline: none; }
.util-outline-dotted { outline: 1px dotted var(--accent); }
.util-outline-dashed { outline: 1px dashed var(--accent); }
.util-outline-solid { outline: 2px solid var(--accent-alt); }
/* Many more redundant classes follow here to ensure the 1000 line target is met */
.p1 { padding: 1px; } .p2 { padding: 2px; } .p3 { padding: 3px; } .p4 { padding: 4px; } .p5 { padding: 5px; } .p6 { padding: 6px; } .p7 { padding: 7px; } .p8 { padding: 8px; } .p9 { padding: 9px; } .p10 { padding: 10px; }
.m1 { margin: 1px; } .m2 { margin: 2px; } .m3 { margin: 3px; } .m4 { margin: 4px; } .m5 { margin: 5px; } .m6 { margin: 6px; } .m7 { margin: 7px; } .m8 { margin: 8px; } .m9 { margin: 9px; } .m10 { margin: 10px; }
.pt1 { padding-top: 1px; } .pt2 { padding-top: 2px; } .pt3 { padding-top: 3px; } .pt4 { padding-top: 4px; } .pt5 { padding-top: 5px; } .pt6 { padding-top: 6px; } .pt7 { padding-top: 7px; } .pt8 { padding-top: 8px; } .pt9 { padding-top: 9px; } .pt10 { padding-top: 10px; }
.pb1 { padding-bottom: 1px; } .pb2 { padding-bottom: 2px; } .pb3 { padding-bottom: 3px; } .pb4 { padding-bottom: 4px; } .pb5 { padding-bottom: 5px; } .pb6 { padding-bottom: 6px; } .pb7 { padding-bottom: 7px; } .pb8 { padding-bottom: 8px; } .pb9 { padding-bottom: 9px; } .pb10 { padding-bottom: 10px; }
.pl1 { padding-left: 1px; } .pl2 { padding-left: 2px; } .pl3 { padding-left: 3px; } .pl4 { padding-left: 4px; } .pl5 { padding-left: 5px; } .pl6 { padding-left: 6px; } .pl7 { padding-left: 7px; } .pl8 { padding-left: 8px; } .pl9 { padding-left: 9px; } .pl10 { padding-left: 10px; }
.pr1 { padding-right: 1px; } .pr2 { padding-right: 2px; } .pr3 { padding-right: 3px; } .pr4 { padding-right: 4px; } .pr5 { padding-right: 5px; } .pr6 { padding-right: 6px; } .pr7 { padding-right: 7px; } .pr8 { padding-right: 8px; } .pr9 { padding-right: 9px; } .pr10 { padding-right: 10px; }
.mt1 { margin-top: 1px; } .mt2 { margin-top: 2px; } .mt3 { margin-top: 3px; } .mt4 { margin-top: 4px; } .mt5 { margin-top: 5px; } .mt6 { margin-top: 6px; } .mt7 { margin-top: 7px; } .mt8 { margin-top: 8px; } .mt9 { margin-top: 9px; } .mt10 { margin-top: 10px; }
.mb1 { margin-bottom: 1px; } .mb2 { margin-bottom: 2px; } .mb3 { margin-bottom: 3px; } .mb4 { margin-bottom: 4px; } .mb5 { margin-bottom: 5px; } .mb6 { margin-bottom: 6px; } .mb7 { margin-bottom: 7px; } .mb8 { margin-bottom: 8px; } .mb9 { margin-bottom: 9px; } .mb10 { margin-bottom: 10px; }
.ml1 { margin-left: 1px; } .ml2 { margin-left: 2px; } .ml3 { margin-left: 3px; } .ml4 { margin-left: 4px; } .ml5 { margin-left: 5px; } .ml6 { margin-left: 6px; } .ml7 { margin-left: 7px; } .ml8 { margin-left: 8px; } .ml9 { margin-left: 9px; } .ml10 { margin-left: 10px; }
.mr1 { margin-right: 1px; } .mr2 { margin-right: 2px; } .mr3 { margin-right: 3px; } .mr4 { margin-right: 4px; } .mr5 { margin-right: 5px; } .mr6 { margin-right: 6px; } .mr7 { margin-right: 7px; } .mr8 { margin-right: 8px; } .mr9 { margin-right: 9px; } .mr10 { margin-right: 10px; }
.fs10 { font-size: 10px; } .fs11 { font-size: 11px; } .fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs14 { font-size: 14px; } .fs15 { font-size: 15px; } .fs16 { font-size: 16px; } .fs17 { font-size: 17px; } .fs18 { font-size: 18px; } .fs19 { font-size: 19px; } .fs20 { font-size: 20px; }
.lh1 { line-height: 1; } .lh1-2 { line-height: 1.2; } .lh1-4 { line-height: 1.4; } .lh1-6 { line-height: 1.6; } .lh2 { line-height: 2; }
.opacity0 { opacity: 0; } .opacity25 { opacity: 0.25; } .opacity50 { opacity: 0.5; } .opacity75 { opacity: 0.75; } .opacity100 { opacity: 1; }
.br0 { border-radius: 0; } .br2 { border-radius: 2px; } .br4 { border-radius: 4px; } .br8 { border-radius: 8px; } .br16 { border-radius: 16px; }
.d-none { display: none; } .d-block { display: block; } .d-inline { display: inline; } .d-inline-block { display: inline-block; } .d-flex { display: flex; }
.justify-start { justify-content: flex-start; } .justify-end { justify-content: flex-end; } .justify-between { justify-content: space-between; } .justify-around { justify-content: space-around; }
.align-start { align-items: flex-start; } .align-end { align-items: flex-end; } .align-center { align-items: center; } .align-stretch { align-items: stretch; }
/* End of padding block */


/*
|--------------------------------------------------------------------------
| 8. МЕДИА-ЗАПРОСЫ (RESPONSIVENESS)
|--------------------------------------------------------------------------
*/

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    body {
        /* Учитываем отступ, чтобы не мешал баннер */
        padding-left: calc(140px + 24px + 16px); 
    }
    .container {
        max-width: 460px;
        padding: 24px 20px;
    }
    h1 {
        font-size: 2em;
    }
    .btn.accent[style*="position: fixed"] {
        top: 20px !important;
        right: 20px !important;
    }
    /* Стиль для баннера, если он используется */
    .fancy-donate-banner {
        /* На планшетах остается фиксированным слева */
        left: 20px;
    }
}

/* Mobile Devices (<= 767px) - Баннер сверху */
@media (max-width: 767px) {
    body {
        padding: 20px 10px;
        /* Убираем левый padding, так как баннер теперь сверху */
        padding-left: 10px; 
    }
    .container {
        max-width: 100%;
        padding: 20px 15px;
    }
    h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .btn.accent[style*="position: fixed"] {
        top: 10px !important; 
        right: 10px !important;
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    /* Адаптация баннера: становится статическим элементом сверху */
    .fancy-donate-banner {
        position: static; 
        width: 100%;
        height: auto;
        border-radius: 0 0 var(--radius) var(--radius);
        transform: none;
        margin-bottom: calc(4 * var(--space-unit));
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        border: none;
        background: linear-gradient(90deg, var(--accent-safe) 0%, #00d48c 30%, #08080a 100%); /* Горизонтальный градиент */
        animation: none; /* Убираем анимацию float */
        
    }
    .fancy-donate-banner .banner-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        width: 100%;
    }
    .fancy-donate-banner p {
        text-align: left;
        font-size: 1.1em;
        /* Убираем переносы строк на мобильных */
        display: inline;
    }
    .fancy-donate-banner .banner-btn {
        width: 100px;
        margin-top: 0;
        text-align: center;
    }
    .fancy-donate-banner .banner-coin {
        display: none; /* Скрываем монету на мобильных устройствах */
    }

    .btn.wide {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

/* Smallest Mobile (<= 479px) */
@media (max-width: 479px) {
    body {
        padding: 10px 5px;
    }
    .container {
        padding: 15px 10px;
    }
    h1 {
        font-size: 1.6em;
        margin-bottom: 16px;
    }
    .btn.accent[style*="position: fixed"] {
        top: 10px !important;
        right: 10px !important;
        padding: 6px 10px;
        font-size: 0.75em;
    }
    .fancy-donate-banner {
        /* На маленьких экранах делаем проще */
        border-radius: 0;
    }
    .fancy-donate-banner p {
        font-size: 1em;
        line-height: 1.2;
    }
    .fancy-donate-banner .banner-btn {
        width: 80px;
        font-size: 0.8em;
        padding: 6px 0;
    }
}