/* =========================================
   ПОДВАЛ САЙТА (MAIN FOOTER)
   ========================================= */
.main-footer {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(255,255,255,0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(0,0,0,0.2) 0%, transparent 55%),
        linear-gradient(170deg, #2d5080 0%, #365a89 30%, #2a4a73 65%, #1e3558 100%);
    color: #ffffff;
    padding: 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* ── Логотип footer — как в header ── */
.footer-info {
    flex: 1 1 300px;
    /* Нейморфная тёмная карточка — утопленная, даёт глубину */
    background: rgba(0,0,0,0.12);
    border-radius: var(--radius-lg) ;
    padding: 24px 28px;
    box-shadow:
        inset 3px 3px 10px rgba(0,0,0,0.3),
        inset -2px -2px 8px rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .footer-info { flex: 1 1 30px; padding: 18px 16px; }
}

.footer-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo-box {
    padding: 8px;
    border-radius: var(--radius) ;
    background: rgba(255,255,255,0.12);
    box-shadow:
        6px 6px 14px rgba(0,0,0,0.35),
        -3px -3px 8px rgba(255,255,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease;
}
.footer-logo-link:hover .footer-logo-box {
    box-shadow: inset 4px 4px 10px rgba(0,0,0,0.3), inset -2px -2px 6px rgba(255,255,255,0.06);
}
.footer-logo-box img { height: 44px; width: auto; display: block; }
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}
.footer-logo-brand span { color: var(--gold); }
.footer-logo-sub {
    font-size: 0.52rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 2px;
    line-height: 1.2;
}

.footer-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    max-width: 320px;
    margin-bottom: 18px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Навигация — 2 колонки ── */
.footer-nav, .footer-contacts { flex: 1 1 200px; }

.footer-nav h4, .footer-contacts h4 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: none;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.footer-nav-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-nav-grid ul li { margin-bottom: 13px; }
.footer-nav-grid ul li a {
    display: block;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 6px 12px;
    border-radius: var(--radius-xs) ;
    margin-left: -12px;
    transition: all 0.18s ease;
    box-shadow: none;
}
.footer-nav-grid ul li a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.04) !important;
    box-shadow: inset 3px 3px 7px rgba(0,0,0,0.28), inset -2px -2px 5px rgba(255,255,255,0.05) !important;
    padding-left: 12px !important;
}

/* ── Администрирование — выпуклая карточка ── */
.footer-contacts p {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0;
    line-height: 1.6;
}
.footer-admin-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius) ;
    padding: 18px 20px;
    box-shadow: 6px 6px 14px rgba(0,0,0,0.3), -3px -3px 8px rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.footer-admin-card p {
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.5;
}
.footer-mail {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: color 0.2s;
}
.footer-mail:hover { color: var(--gold); }
.footer-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius-sm) ;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.25), -2px -2px 5px rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}
.footer-admin-btn:hover {
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.13);
    color: #ffffff;
}

/* ── Судейский корпус — отступ между блоками ── */
.footer-judge-title {
    margin-top: 20px;
}

/* ── Нижняя панель ── */
.footer-bottom {
    background-color: rgb(39 65 100);
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}
.copyright { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 400; }
.developer { font-size: 0.75rem; color: rgba(255,255,255,0.3); font-weight: 400; }
.developer a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.developer a:hover { color: rgba(255,255,255,0.75); }

/* ── text-align override ── */
.main-footer,
.main-footer .footer-info,
.main-footer .footer-nav,
.main-footer .footer-contacts {
    text-align: left !important;
}

/* ── Мобайл ── */
@media (max-width: 768px) {
    .main-footer { overflow-x: hidden; }
    .footer-container {
        flex-direction: column;
        text-align: left;
        gap: 20px;
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
    }
    .footer-info,
    .footer-nav,
    .footer-contacts {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex: 1 1 auto;
    }
    .footer-logo-sub { white-space: normal; }
    .footer-desc { margin: 0; max-width: 100%; }
    .footer-socials { justify-content: flex-start; }
    .footer-social-btn { width: 100%; max-width: 100%; box-sizing: border-box; }
    .footer-admin-card { width: 100%; box-sizing: border-box; }
    .footer-nav-grid { gap: 0 10px; }
    .footer-nav-grid ul li a { padding: 6px 8px; margin-left: -8px; font-size: 0.82rem; }
    .footer-bottom .footer-container { padding: 0 16px; gap: 10px; }
}



/* тут CSS от страницы с описаием правил */ 

 * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: #f0f4f8; color: #1a2940; }
  .page { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }

  /* ОБЛОЖКА — нейморфная */
  .cover { background: var(--bg); border-radius: var(--radius); padding: 28px 32px 24px;
            margin-bottom: 24px; box-shadow: var(--neu-out); }
  .cover h1 { display: none; }
  .cover .sub { display: none; }
  .cover hr { border: none; border-top: 1px solid rgba(194,200,208,0.5); margin-bottom: 20px; }
  .changes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .change-card { background: var(--bg); border-radius: var(--radius-sm); padding: 16px 18px;
                  display: flex; gap: 14px; align-items: flex-start;
                  box-shadow: var(--neu-out-sm); }
  .change-num { font-size: 2rem; font-weight: 900; color: var(--gold); min-width: 28px; line-height: 1; }
  .change-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; color: var(--primary); }
  .change-text { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

  /* СЕКЦИИ — нейморфные */
  .section { background: var(--bg); border-radius: var(--radius); padding: 0 0 24px;
              margin-bottom: 20px; box-shadow: var(--neu-out); overflow: hidden; }
  .section h2 { font-size: 1rem; font-weight: 800; color: var(--primary);
                 background: var(--bg); box-shadow: var(--neu-in);
                 padding: 14px 24px; margin-bottom: 20px; letter-spacing: 0.5px;
                 text-transform: uppercase; }
  .section > *:not(h2) { padding-left: 24px; padding-right: 24px; }
  .section > .score-legend { padding-left: 24px; }
  .section > div[style*="overflow"] { padding-left: 24px; padding-right: 24px; }
  .section > p { padding-left: 24px; padding-right: 24px; }
  .section h3 { font-size: 0.95rem; font-weight: 700; color: #2d5a8e; margin: 16px 0 8px; padding-left: 24px; }

  /* Параграфы формулы */
  .rf-text { font-size: 0.9rem; line-height: 1.8; color: var(--text); }

  /* Заметка в обложке */
  .cover-note { margin-bottom: 20px; border-left: 4px solid var(--accent);
                 padding: 12px 16px; background: rgba(45,90,142,0.06);
                 border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .cover-note-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
  .cover-note-text { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

  /* ФОРМУЛА */
  .formula-box { background: #e3f0fb; border-left: 4px solid #1565c0;
                  border-radius: var(--radius-xs) ; padding: 12px 16px;
                  font-size: 1rem; color: #1565c0; font-weight: 700; margin-bottom: 8px; }

  /* ТАБЛИЦА ПАРАМЕТРОВ */
  .param-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.88rem; }
  .param-table th { background: #1a3a5c; color: white; padding: 8px 12px; text-align: center; }
  .param-table td { padding: 7px 12px; border-bottom: 1px solid #e0eaf4; }
  .param-table tr:nth-child(even) td { background: #f0f6fc; }
  .param-key { font-weight: 700; text-align: center !important; }
  .param-gold { color: #e65100; font-weight: 700; }
  .param-green { color: #2e7d32; font-weight: 700; }
  .param-red { color: #c62828; font-weight: 700; }

  /* ТАБЛИЦА БАЛЛОВ */
  .score-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
  .score-table th { background: #1a3a5c; color: white; padding: 8px 6px; text-align: center;
                     font-size: 0.82rem; line-height: 1.4; }
  .score-table td { padding: 5px 6px; border-bottom: 1px solid #e8f0f8; text-align: center; }
  .score-table tr:nth-child(even) td { background: #f5f9fd; }
  .score-table td.place { font-weight: 600; color: #546e7a; background: #f0f4f8 !important; }
  .score-table td.val { font-weight: 500; }
  .score-table td.gold { color: #1a3a5c; font-weight: 700; }
  .score-table td.t13 { color: #1b5e20; font-weight: 700; background: #e8f5e9 !important; border-top: 2px solid #43a047; }
  .score-table td.t23 { color: #bf360c; font-weight: 700; background: #fff3e0 !important; border-top: 2px solid #ef6c00; }
  .score-table td.empty { color: #cfd8dc; }
  .score-table td.zero { color: #c62828; font-weight: 700; background: #fbe9e7 !important; }
  .score-legend { font-size: 0.8rem; color: #546e7a; font-style: italic; margin-bottom: 12px; }

  /* ГРАФИКИ */
  .charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .chart-wrap { position: relative; height: 320px; }
  .chart-wrap-full { position: relative; height: 300px; margin-bottom: 20px; }

  /* ЗАТУХАНИЕ */
  .decay-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 20px; }
  .decay-table th { background: #1a3a5c; color: white; padding: 8px 12px; text-align: center; }
  .decay-table td { padding: 8px 12px; border-bottom: 1px solid #e0eaf4; }
  .decay-table tr:nth-child(even) td { background: #f0f6fc; }

  /* ТУРНИРНЫЙ КОЭФ */
  .tk-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 16px; }
  .tk-table th { background: #1a3a5c; color: white; padding: 8px 12px; text-align: center; }
  .tk-table td { padding: 8px 12px; border-bottom: 1px solid #e0eaf4; }
  .tk-table tr:nth-child(even) td { background: #f0f6fc; }

  /* ПРИНЦИПЫ — стиль как на скриншотах: светло-голубые карточки с тёмно-синим левым бордером */
  .principles { display: flex; flex-direction: column; gap: 12px; }
  .principle { background: #dde9f5; border-radius: 0; padding: 16px 20px;
                display: flex; gap: 0; align-items: stretch;
                border: none; overflow: hidden; }
  .principle-num-wrap { background: #1a3a5c; color: white; font-size: 1.8rem; font-weight: 900;
                         min-width: 52px; display: flex; align-items: center; justify-content: center;
                         margin: -16px 16px -16px -20px; padding: 16px 12px; flex-shrink: 0; }
  .principle-title { font-weight: 700; font-size: 0.97rem; margin-bottom: 5px; color: #1a2940; }
  .principle-text { font-size: 0.86rem; color: #374a60; line-height: 1.55; }

  /* БЛОК "КАК УСТРОЕН РЕЙТИНГ" — чекбоксы */
  .honest-list { display: flex; flex-direction: column; gap: 12px; }
  .honest-item { background: #dde9f5; padding: 16px 20px; display: flex; gap: 0; align-items: stretch; overflow: hidden; border-radius: 0; }
  .honest-check { background: #1a3a5c; color: white; font-size: 1.2rem; font-weight: 900;
                   min-width: 52px; display: flex; align-items: center; justify-content: center;
                   margin: -16px 16px -16px -20px; padding: 16px 12px; flex-shrink: 0; }
  .honest-title { font-weight: 700; font-size: 0.97rem; margin-bottom: 5px; color: #1a2940; }
  .honest-text { font-size: 0.86rem; color: #374a60; line-height: 1.55; }

  /* СЕКЦИЯ-ЗАГОЛОВОК на весь блок (как "Знаешь, почему наш рейтинг объективный?") */
  .section-hero { background: white; border-radius: var(--radius-sm) ; padding: 0;
                   margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); overflow: hidden; }
  .section-hero-title { background: #2d6199; color: white; font-size: 1.35rem; font-weight: 700;
                          text-align: center; padding: 20px 24px; }
  .section-hero-body { padding: 20px 24px 24px; }

  /* ФУТЕР */
  footer { text-align: center; color: #90a4ae; font-size: 0.8rem;
            font-style: italic; padding: 16px 0; }

  @media (max-width: 700px) {
    .changes, .charts-grid { grid-template-columns: 1fr; }
    .cover h1 { font-size: 1.4rem; }
    .principle-num-wrap, .honest-check { min-width: 40px; font-size: 1.4rem; }
  }
  
  /* Принудительно гасим "застрявший" курсив во всем подвале */
.main-footer *:not(.footer-logo-brand):not(.footer-logo-brand span):not(.footer-logo-sub) {
    font-style: normal !important;
}


/* ── Блок согласия в copyright ────────────────────────────────── */
.footer-consent-note {
    margin-top: 12px;
}
.footer-consent-note__text {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}
.footer-consent-note__text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.18s;
}
.footer-consent-note__text a:hover { opacity: 0.75; }

/* ── Cookie-баннер ────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 40px);
    max-width: 720px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.cookie-banner--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}
.cookie-banner-inner {
    background: var(--bg);
    border-radius: var(--radius) ;
    box-shadow: 8px 8px 20px rgba(160,170,185,0.45), -4px -4px 12px rgba(255,255,255,0.9);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 0;
    font-size: 0.84rem;
    color: var(--text);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.cookie-banner-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.cookie-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.cookie-link:hover { opacity: 0.75; }
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn-accept {
    padding: 9px 22px;
    border: none;
    border-radius: var(--radius-sm) ;
    background: var(--bg);
    box-shadow: 4px 4px 10px rgba(160,170,185,0.5), -3px -3px 8px rgba(255,255,255,0.9);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent);
    cursor: pointer;
    transition: box-shadow 0.18s;
    white-space: nowrap;
}
.cookie-btn-accept:hover { box-shadow: inset 3px 3px 8px rgba(160,170,185,0.45), inset -2px -2px 6px rgba(255,255,255,0.8); }
.cookie-btn-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s;
}
.cookie-btn-more:hover { color: var(--primary); }

/* ── Мобилка ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cookie-banner { bottom: 14px; width: calc(100% - 24px); }
    .cookie-banner-inner { padding: 14px 16px; gap: 12px; }
    .copyright-links { gap: 4px 8px; }
    .copyright-dot { display: none; }
    .copyright-links a { display: block; }
}
@media (max-width: 430px) {
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
    .cookie-banner-actions { width: 100%; }
    .cookie-btn-accept { flex: 1; text-align: center; }
}
