/* Стили главной страницы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma;
    background: #eeeff1;
    min-height: 100vh;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    width: 100%;
    padding: 0px;
}

/* ===== ШАПКА ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 20px 27px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
}

.gri-brand {
    display: inline-block;
    color: #1376bc;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: Tahoma;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-center {
    flex: 2;
    text-align: center;
    max-width: 714px;
}

.header-center h3 {
    font-size: 23pt;
    color: #234a8b;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 0 10px;
}


.header-center h3::before {
    left: -40px;
}

.header-center h3::after {
    right: -40px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 2.4rem;
    height: 100%;
    align-content: center;
    align-items: center;
}

.amblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.amblem span {
    text-align: center;
    font-family: Tahoma;
    font-size: 12pt;
    max-width: 400px;
    color: #334155;
    line-height: 1.37;
}

.city-name {
    align-items: center;
    text-align: center;
    gap: 6px;
    background: #f0f4f8;
    padding: 8px 16px;
    border-radius: 40px;
    color: #1376bc;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}


.city-icon {
    font-size: 1.1rem;
}

.logo {
    max-width: 106px;
    width: 106px;
    height: 106px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}


/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 0;
    padding-bottom: 36px;
    width: 100%;
    position: relative;
    isolation: isolate;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(images/podlozhka.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: 700;
    color: #005b9d;
    line-height: 1.3;
    max-width: 968px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-hero h1 {
    margin-top: 40px;
}

.landing-about-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px;
    gap: 12px 20px;
    height: 100%;
}

.landing-about-footer img {
    width: clamp(78px, 18vw, 120px);
    height: clamp(78px, 18vw, 120px);
}

.final-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: 700;
    color: #005b9d;
    line-height: 1.3;
    max-width: inherit;
    margin: 0 auto;
    padding: 20px 15px;
    padding-bottom: 0px;
    margin-bottom: 0px;
}
.final-hero {
    margin-bottom: 20px;
}

.participants-map-block {
    width: 100%;
    max-width: 1200px;
    padding: 16px 14px;
    margin: 0 auto 30px;
    z-index: 2;
}
.participants-map-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border: 1px solid rgba(19, 118, 188, 0.12);
    padding: 22px 18px 20px;
}
.landing-info-section {
    width: min(1240px, 94%);
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 22px;
    margin-bottom: 42px;
    z-index: 2;
}

.landing-info-card h2 {
    text-align: center;
    margin-bottom: 16px;
}

.landing-about-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    border: 1px solid rgba(19, 118, 188, 0.12);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    padding: 22px;
    color: #334155;
    line-height: 1.45;
    display: flex;
    position: static;
    text-align: center;
    flex-direction: column;
    justify-content: space-evenly;
}

.landing-about-head {
    display: block;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.landing-about-card p {
    font-size: 1rem;
    margin-bottom: 14px;
    text-align: initial;
    padding: 5px;
}

.landing-link {
    color: #2b5ca8;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    align-items: initial;
    margin-top: 30px;
}

.landing-plan-btn {
    background: linear-gradient(180deg, #ffd24a 0%, #efb82f 100%);
    border: 1px solid #dfab25;
    color: #1f3f77;
    text-decoration: none;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}
a.landing-plan-btn:hover {
    background: linear-gradient(180deg, #d0aa36 0%, #b88c1d 100%);
    color: #ffffff;
}
.landing-document-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: space-around;
}

.landing-stages {
    width: min(1240px, 94%);
    background: rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    padding: 20px;
    z-index: 2;
}

/* ===== ГЛАВНАЯ: МЕРОПРИЯТИЯ ===== */
.home-info-section {
    margin-top: 36px;
}

.events-section h2 {
    color: #234a8b;
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 36px;
}

.events-section {
    width: min(1240px, 94%);
    margin-bottom: 30px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    z-index: 2;
}

.team-rating-section {
    width: min(1240px, 94%);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 57, 94, .12);
    z-index: 2;
}
.team-rating-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.team-rating-heading h2 { margin: 4px 0 0; color: #173f72; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.team-rating-kicker { color: #c4343d; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.team-rating-count { padding: 8px 13px; border-radius: 20px; background: #eef4fa; color: #315779; font-weight: 700; }
.team-rating-table-wrap { overflow-x: auto; }
.team-rating-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.team-rating-table th, .team-rating-table td { padding: 15px 18px; border-bottom: 1px solid #e6edf4; text-align: left; }
.team-rating-table th { color: #64788a; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.team-rating-table th:first-child, .team-rating-table td:first-child { width: 110px; text-align: center; }
.team-rating-table th:last-child, .team-rating-table td:last-child { width: 130px; text-align: right; }
.team-rating-table tbody tr:last-child td { border-bottom: 0; }
.team-rating-table tbody tr:hover { background: #f8fafc; }
.team-rating-place { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf1f8; color: #174f83; font-weight: 800; }
.team-rating-table tbody tr:nth-child(1) .team-rating-place { background: #ffd95a; color: #604800; }
.team-rating-table tbody tr:nth-child(2) .team-rating-place { background: #dce3e9; color: #43515d; }
.team-rating-table tbody tr:nth-child(3) .team-rating-place { background: #e8b98f; color: #653c1e; }
.rating-criteria-action { display: flex; justify-content: center; margin-top: 24px; }
.rating-criteria-action .landing-plan-btn { text-align: center; }

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.event-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 250px;
    padding: 20px;
    border: 1px solid #d8e1ec;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.event-card-hidden {
    display: none;
}

.event-year {
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 20px;
    background: #e7f1fb;
    color: #234a8b;
    font-weight: 700;
}

.event-date {
    align-self: center;
    padding: 5px 11px;
    border-radius: 20px;
    background: #e7f1fb;
    color: #234a8b;
    font-weight: 700;
}

.event-card h3 {
    text-align: center;
    color: #234a8b;
    font-size: 1.15rem;
    line-height: 1.35;
}

.event-title-link {
    color: inherit;
    text-decoration: none;
}

.event-title-link:hover,
.event-title-link:focus-visible {
    color: #1376bc;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.event-card p {
    text-align: center;
    color: #475569;
    line-height: 1.5;
}

.event-link,
.events-more {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffd24a 0%, #efb82f 100%);
    color: #1f3f77;
    font-weight: 700;
    text-decoration: none;
}

.event-link {
    margin-top: auto;
    padding: 11px 14px;
    text-align: center;
}

.event-link:hover{
    background: linear-gradient(180deg, #b9972f, #c59723);
    color: #ffffff;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.team-rating-empty {
    padding: 32px 16px !important;
    text-align: center;
    color: #667085;
}

.footer-place-image {
    display: block;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.event-actions .event-link {
    width: 100%;
    margin-top: 0;
}

.event-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #1f3f77cf;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.event-action:hover,
.event-action:focus-visible {
    background: #fff;
    border: 2px solid #1f3f77;
    color: #1f3f77;
    transform: translateY(-1px);
}

.events-more {
    display: block;
    margin: 22px auto 0;
    padding: 13px 24px;
    cursor: pointer;
    font-size: 1rem;
}

.table-empty {
    text-align: center;
}

.footer .contact-item a {
    color: #fff;
    text-decoration: none;
}

.footer-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.footer-place span {
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    font-weight: 800;
}

.footer-place strong {
    font-size: 1.35rem;
}

@media (max-width: 1000px) {
    .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
    .events-section { padding: 18px 14px; }
    .events-grid { grid-template-columns: 1fr; }
    .team-rating-section { padding: 20px 12px; }
    .team-rating-heading { align-items: flex-start; flex-direction: column; }
    .team-rating-table th, .team-rating-table td { padding: 12px 8px; }
}

.landing-stages h2 {
    text-align: center;
    color: #234a8b;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 20px;
}

.landing-stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 14px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.landing-stage-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    border: 1px solid #d8e1ec;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.landing-stage-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e7eef9;
    color: #2c5ea8;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.landing-stage-card h3 {
    color: #234a8b;
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 14px;
    min-height: 72px;
    text-align: center;
}

.landing-stage-date {
    border: 1px solid #ecc65f;
    background: #fff5dd;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0.95rem;
    margin-top: auto;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 54px;
}

.landing-stage-links {
    min-height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
}

.landing-stage-links a {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.landing-requirements-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1a3d76;
    color: #fff !important;
    font-weight: 700;
    padding: 8px 11px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(30, 71, 138, 0.22);
}

.landing-requirements-btn:hover {
    background: #163a75;
}

.landing-stage-btn {
    background: #4d7abb;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.landing-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #334155;
    font-size: 1.15rem;
}

.btn-header-participant {
    background: #2c5ea8;
    color: #fff;
    padding: 11px 20px;
    font-size: 1rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-header-participant:hover {
    background: #234a8b;
}
.header-account-actions{display:flex;flex-direction:column;gap:16px;align-items:stretch}.btn-header-application{border:1px solid #2c5ea8;background:#2fa75b;color:#ffffff;padding:9px 16px;border-radius:12px;font:inherit;font-weight:700;cursor:pointer}.btn-header-application:hover{background:#267744}.application-modal{width:min(850px,calc(100% - 28px));max-height:92vh;padding:0;border:0;border-radius:20px;box-shadow:0 24px 80px #10284455;color:#263442}.application-modal::backdrop{background:#0b1e35aa;backdrop-filter:blur(3px)}.application-modal-head{display:flex;justify-content:space-between;gap:20px;padding:25px 28px 18px;border-bottom:1px solid #e2e9ef}.application-modal-head small{color:#c4343d;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.application-modal-head h2{margin:5px 0;color:#173f72;font-size:28px}.application-modal-head p{margin:0;color:#64788a}.application-close{width:40px;height:40px;flex:none;border:0;border-radius:50%;background:#eef2f6;color:#40566b;font-size:28px;cursor:pointer}.application-notice{margin:20px 28px 0;padding:13px 16px;border-radius:9px;background:#e4f4e9;color:#17622e}.application-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:24px 28px 28px}.application-form label{display:grid;gap:7px;color:#334d65;font-size:14px;font-weight:700}.application-form input{width:100%;padding:12px;border:1px solid #cbd7e1;border-radius:9px;font:inherit}.application-form input:focus{border-color:#2c5ea8;outline:0;box-shadow:0 0 0 3px #2c5ea81a}.application-consent,.application-submit{grid-column:1/-1}.application-form .application-consent{display:flex;align-items:flex-start;font-weight:400}.application-consent input{width:18px;height:18px;flex:none}.application-submit{padding:13px;border:0;border-radius:10px;background:#2c5ea8;color:#fff;font:inherit;font-weight:800;cursor:pointer}@media(max-width:650px){.application-form{grid-template-columns:1fr;padding:20px}.application-modal-head{padding:20px}.header-account-actions{width:min(280px,100%)}}

.inline-icon,
.btn-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-icon {
    width: 1.05em;
    height: 1.05em;
}

.participants-map-block h2 {
    color: #005b9d;
    margin: 0 0 14px;
    text-align: center;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    letter-spacing: 0.2px;
}

.participants-map-frame {
    width: 100%;
    max-width: 900px;
    height: min(calc(100% - 48px));
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #d5e6f5;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
    background: #eef5fc;
}

.participants-map-frame iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 900px;
    max-height: 100%;
    border: 0;
    display: block;
}

.participants-map-block--final {
    margin-bottom: 24px;
}

.participants-map-block--final .participants-map-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
}

.participants-map-card.landing-info-card {
    min-height: 542px;
}

@media (max-width: 925px) {
    .landing-info-section {
        grid-template-columns: 1fr;
    }
    
    .participants-map-frame {
        width: 100%;
        height: min(520px, calc(100vh - 220px));
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 12px;
    }

    .header-left {
        justify-content: center;
    }

    .header-right {
        justify-content: center;
        width: 100%;
    }

    .logo {
        width: 68px;
        height: 68px;
    }

    .landing-about-head {
        flex-direction: column;
    }

    .landing-stage-card h3 {
        min-height: 0;
    }

    .participants-map-card {
        padding: 16px 12px;
    }
}



/* ===== КНОПКИ ===== */
.button-group {
    margin-top: 40px;
    display: flex;
    gap: 45px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 86px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    padding: 14px 42px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    border: none;
    border-radius: 60px;
    font-family: Tahoma;
    text-align: center;
    min-width:228.11px;
}

.btn-guest {
    background: #005b9d;
    color: #ffffff;
}

.btn-guest:hover {
    background: #0971bc;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(19, 118, 188, 0.3);
}

.btn-participant {
    background: #029150;
    color: #ffffff;
}

.btn-participant:hover {
    background: #06a960;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(38, 153, 38, 0.3);
}

/* ===== БЛОКИ КОНТЕНТА ===== */
.content-block {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #1376bc;
    color: #ffffff;
}

.block-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    border-radius: 50%;
    margin-left: 20px;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.block-content {
    padding: 40px 30px;
    min-height: 300px;
}

/* Пустые слоты */
.empty-slot {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    color: #64748b;
}

.empty-slot p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* Специфичные стили блоков */
.participant-block .block-header {
    background: #029150;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #1376bc;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: 50px 30px 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.85;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    text-decoration: none;
}

.footer-agree {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-agree a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.92rem;
    opacity: 0.85;
    display: inline-block;
}

.footer-agree a:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.85;
    font-size: 0.9rem;
}

.contact-icon {
    font-size: 1rem;
    min-width: 20px;
}

.footer-image {
    text-align: center;
}

.footer-image img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
}

.image-placeholder {
    background: rgba(255,255,255,0.15);
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.image-placeholder span {
    font-size: 2rem;
    opacity: 0.6;
}

.image-placeholder p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 20px 30px;
    text-align: center;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-to-top {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Tahoma;
    border-radius: 30px;
}

.back-to-top:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Адаптивность футера */
@media (max-width: 900px) {
    .header-center h3::before, .header-center h3::after {
        display: none;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1242px) {
    .header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .header-left {
        order: 1;
        width: 100%;
        flex: 0 0 auto;
        justify-content: center;
    }

    .header-center {
        order: 2;
        width: 100%;
        flex: 0 0 auto;
        max-width: 100%;
    }

    .header-center h3 {
        display: block;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .header-right {
        order: 3;
        width: 100%;
        flex: 0 0 auto;
        justify-content: space-evenly;
        gap: inherit;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 20px 25px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main {
        padding: 30px 20px 25px;
    }
    
    .footer-col h4::after {
        width: 30px;
    }
    
    .back-to-top {
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .footer-col h4 {
        font-size: 1rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
}

/* ===== ОБЩАЯ АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header {
        padding: 12px 18px;
    }
    
    
    .gri-brand {
        font-size: 1.3rem;
        padding: 5px 15px;
    }
    
    .city-name {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 1rem;
    }
    
    .block-header {
        padding: 15px 20px;
    }
    
    .block-header h2 {
        font-size: 1.3rem;
    }
    
    .block-content {
        padding: 25px 20px;
    }
}

@media (max-width: 580px) {
    .header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px 18px;
        text-align: center;
    }
    
    .header-left, .header-right {
        width: 100%;
        flex: 0 0 auto;
        text-align: center;
    }

    .header-left {
        order: 1;
    }

    .header-right {
        order: 3;
    }

    .header-center {
        order: 2;
        width: 100%;
        flex: 0 0 auto;
        text-align: center;
        margin-top: 2px;
    }
    
    .header-center h3 {
        display: block;
        font-size: 15pt;
    }
    
    .amblem span {
        font-size: 11pt;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .button-group {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .empty-slot p {
        font-size: 1rem;
    }
    
    .placeholder-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    
    .gri-brand {
        font-size: 1.1rem;
        padding: 4px 12px;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ АДАПТИВНЫЕ СТИЛИ ===== */

/* Адаптивные карточки для мобильных устройств */
@media (max-width: 768px) {
    /* Стили для гостевого модуля */
    .guest-block .tasks-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .guest-block .task-card {
        padding: 18px;
    }
    
    .guest-block .task-header {
        min-height: auto;
        flex-direction: column;
        gap: 10px;
    }
    
    .guest-block .task-header h4 {
        font-size: 1rem;
    }
    
    .guest-block .task-number {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .guest-block .task-links {
        gap: 12px;
        margin-bottom: 18px;
    }
    
    .guest-block .task-link {
        font-size: 0.8rem;
    }
    
    .guest-block .btn-view-task {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Результаты - превращаем таблицу в карточки */
    .guest-block .results-table thead {
        display: none;
    }
    
    .guest-block .results-table,
    .guest-block .results-table tbody,
    .guest-block .results-table tr,
    .guest-block .results-table td {
        display: block;
        width: 100%;
    }
    
    .guest-block .results-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        background: white;
        overflow: hidden;
    }
    
    .guest-block .results-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }
    
    .guest-block .results-table td:last-child {
        border-bottom: none;
    }
    
    .guest-block .results-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: #1376bc;
    }
    
    .guest-block .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .guest-block .results-header h3 {
        font-size: 1.1rem;
    }
    
    .guest-block .btn-back {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .guest-block .protocol-link-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* Стили для модуля участника */
@media (max-width: 768px) {
    .participant-block .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .participant-block .profile-info h3 {
        font-size: 1.2rem;
    }
    
    .participant-block .profile-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .participant-block .profile-stats span {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
    
    .participant-block .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .participant-block .section-header h3 {
        font-size: 1.1rem;
    }
    
    .participant-block .btn-add-story {
        width: 100%;
        text-align: center;
    }
    
    /* Превращаем таблицу материалов в карточки */
    .participant-block .stories-table {
        display: block;
    }
    
    .participant-block .story-row {
        display: flex;
        flex-direction: column;
        padding: 15px;
        margin-bottom: 15px;
        background: #f8f9fa;
        border-radius: 12px;
        border-left: 4px solid #1376bc;
    }
    
    .participant-block .story-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .participant-block .story-status,
    .participant-block .story-points,
    .participant-block .story-date {
        margin-bottom: 8px;
        font-size: 0.85rem;
    }
    
    .participant-block .story-actions {
        margin-top: 10px;
    }
    
    /* Карточки конкурсов */
    .participant-block .competitions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .participant-block .competition-card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }
    
    .participant-block .competition-info h4 {
        font-size: 1rem;
    }
    
    .participant-block .deadline-link,
    .participant-block .requirements-link {
        display: inline-block;
        margin: 5px;
        font-size: 0.8rem;
    }
    
    .participant-block .btn-participate {
        width: 100%;
        margin-top: 12px;
        padding: 10px;
        font-size: 0.85rem;
    }
    
    /* Статистика */
    .participant-block .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .participant-block .stat-card {
        padding: 15px;
    }
    
    .participant-block .stat-value {
        font-size: 1.5rem;
    }
    
    .participant-block .stat-label {
        font-size: 0.75rem;
    }
}

/* Мобильные телефоны (до 480px) */
@media (max-width: 480px) {
    .guest-block .block-content,
    .participant-block .block-content {
        padding: 15px;
    }
    
    .guest-block .task-card {
        padding: 15px;
    }
    
    .guest-block .results-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .participant-block .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .participant-block .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .participant-block .stat-card {
        padding: 12px;
    }
    
    /* Модальное окно */
    .modal-content {
        width: 95%;
        margin: 30% auto;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* Планшеты (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .guest-block .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .participant-block .competitions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .participant-block .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Десктоп (1025px и выше) */
@media (min-width: 1025px) {
    .guest-block .tasks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .participant-block .competitions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .participant-block .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Стили для форм авторизации */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.login-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #d9232c;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #1376bc;
    box-shadow: 0 0 0 3px rgba(19, 118, 188, 0.1);
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #d9232c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-form button:hover {
    background: #b01a22;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #dc3545;
}

/* Стили для профиля участника */
.profile-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #1376bc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.profile-info h3 {
    font-size: 1.4rem;
    color: #1376bc;
    margin-bottom: 10px;
}

.profile-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.profile-stats span {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
}

/* Секции */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-header h3 {
    color: #1376bc;
    font-size: 1.3rem;
}

.btn-add-story {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-story:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Таблица материалов */
.stories-table {
    overflow-x: auto;
}

.story-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
}

.story-row:hover {
    background: #f8f9fa;
}

.story-title {
    font-weight: 600;
    color: #1376bc;
}

.story-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-align: center;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-moderation {
    background: #fff3cd;
    color: #856404;
}

.story-points {
    font-weight: 600;
    color: #ffc107;
}

.story-date {
    color: #666;
    font-size: 0.85rem;
}

.action-btn {
    background: #1376bc;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    background: #0a5a8f;
}

/* Карточки конкурсов */
.competitions-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.competition-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s;
}

.competition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.competition-icon {
    font-size: 2rem;
}

.competition-info h4 {
    color: #1376bc;
    margin-bottom: 10px;
}

.deadline-link, .requirements-link {
    display: inline-block;
    margin-right: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.deadline-link:hover, .requirements-link:hover {
    color: #1376bc;
}

.btn-participate {
    background: #1376bc;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-participate:hover {
    background: #0a5a8f;
    transform: translateY(-2px);
}

/* Статистика */
.stats-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #1376bc 0%, #0a5a8f 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Спиннер загрузки */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1376bc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Всплывающие уведомления */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Спиннер загрузки */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1376bc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Уведомления */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Участник: авторизация и кабинет */
.participant-content {
    display: grid;
    gap: 20px;
}

.participant-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.participant-form {
    display: grid;
    gap: 12px;
}

.participant-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.participant-form input,
.participant-form select {
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    padding: 10px;
}

.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

.btn-primary {
    background: #1376bc;
    color: #fff;
}

.btn-secondary {
    background: #eef2f7;
    color: #2f3a4d;
}

.participant-cabinet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.participant-stats {
    display: grid;
    gap: 8px;
    margin: 12px 0 20px;
}

.participant-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.participant-alert.success {
    background: #e8f7ee;
    color: #12733a;
}

.participant-alert.error {
    background: #fdebec;
    color: #992020;
}

/* ===== БЛОК ФИНАЛЬНЫХ РЕЗУЛЬТАТОВ ===== */
.final-results-block {
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 25px;
    margin: 0 0 30px;
    z-index: 2;
    margin-top: 50px;
}

.final-results-block h2 {
    color: #005b9d;
    margin-top: 64px;
}

.final-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: center;
}

.final-links a {
    text-decoration: none;
    background: #eef6fd;
    color: #0a5a8f;
    border: 1px solid #c7def2;
    border-radius: 24px;
    padding: 7px 14px;
    font-weight: 600;
}

.final-links-text {
    background: #f7fbff;
    color: #0a5a8f;
    border: 1px solid #d7e8f7;
    border-radius: 12px;
    padding: 8px 12px;
    line-height: 1.4;
}

.final-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.final-table th,
.final-table td {
    border-bottom: 1px solid #e9ecef;
    padding: 10px;
    text-align: left;
}

.final-table th {
    background: #1376bc;
    color: #fff;
    white-space: nowrap
}

.final-table td a {
    color: #1376bc;
    font-weight: 600;
}

.final-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.final-gallery-item {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.final-gallery img {
    width: 100%;
    height: 284px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.gallery-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-popup[aria-hidden="false"] {
    display: flex;
}

.gallery-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.gallery-popup-content {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 95vw);
    max-height: 90vh;
}

.gallery-popup-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.gallery-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.gallery-popup-prev {
    left: 12px;
}

.gallery-popup-next {
    right: 12px;
}

.gallery-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.gallery-popup-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-popup {
        padding: 12px;
    }

    .gallery-popup-nav {
        width: 38px;
        height: 38px;
        font-size: 30px;
    }

    .gallery-popup-prev {
        left: 4px;
    }

    .gallery-popup-next {
        right: 4px;
    }
}

/* ===== ГЛОБАЛЬНЫЕ RESPONSIVE OVERRIDES ===== */
img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
}

th,
td {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Keep table labels readable: long words scroll with their table instead of
   being split into individual letters on narrow screens. */
.team-rating-table th,
.team-rating-table td,
.results-table th,
.results-table td,
.stories-table th,
.stories-table td,
.materials-table th,
.materials-table td,
.event-participants-table th,
.event-participants-table td {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

@media (max-width: 768px) {
    .content-block {
        width: min(1200px, 96%);
        margin: 20px auto;
        border-radius: 14px;
        overflow: hidden;
    }
}

@media (max-width: 580px) {
    .button-group {
        margin-bottom: 44px;
    }
}

@media (max-width: 480px) {
    .main {
        padding-bottom: 24px;
    }

    .participants-map-block {
        padding: 10px 8px;
        margin-bottom: 18px;
    }

    .participants-map-card {
        padding: 12px 8px;
        border-radius: 14px;
    }

    .participants-map-frame {
        min-height: 220px;
        height: min(440px, calc(100vh - 190px));
        border-radius: 10px;
    }

    .landing-stages,
    .landing-about-card {
        padding: 14px;
        border-radius: 14px;
    }

    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .close-btn {
        margin-left: 0;
    }
}
.event-detail-page{width:min(1050px,calc(100% - 32px));margin:40px auto}.event-detail-page article,.event-detail-page section{margin:22px 0;padding:28px;border-radius:18px;background:#fff;box-shadow:0 4px 22px #20384d1a}.event-detail-page h1{font-size:clamp(28px,5vw,48px)}

/* ===== ПУБЛИЧНЫЕ СТРАНИЦЫ МЕРОПРИЯТИЙ ===== */
.event-public-body { background: linear-gradient(135deg, #eef4fb 0%, #f8fafc 52%, #fff6cf 100%); color: #26384d; }
.event-public-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px max(4vw, 20px); background: #fff; box-shadow: 0 4px 20px rgba(31, 63, 119, .1); }
.event-public-brand { display: flex; align-items: center; gap: 14px; color: #234a8b; font-weight: 700; line-height: 1.4; text-decoration: none; }
.event-public-brand img { width: 62px; height: 62px; object-fit: contain; }
.event-back-link { padding: 12px 18px; border-radius: 12px; background: linear-gradient(180deg, #ffd24a, #efb82f); color: #1f3f77; font-weight: 700; text-decoration: none; white-space: nowrap; }
.event-back-link:hover {background: linear-gradient(180deg, #b9972f, #c59723); color: #ffffff;}
.event-public-page { width: min(1100px, calc(100% - 32px)); min-height: calc(100vh - 190px); margin: 42px auto; }
.event-breadcrumbs { margin-bottom: 20px; color: #52657a; font-size: .95rem; }
.event-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.event-breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.event-breadcrumbs li:not(:last-child)::after { margin-left: 8px; color: #8ca0b5; content: '/'; }
.event-breadcrumbs li:last-child { overflow: hidden; color: #26384d; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.event-breadcrumbs a { color: #234a8b; text-decoration: none; }
.event-breadcrumbs a:hover, .event-breadcrumbs a:focus-visible { text-decoration: underline; }
.event-public-intro, .event-public-content { padding: clamp(24px, 5vw, 48px); border: 1px solid rgba(216, 225, 236, .9); border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: 0 14px 38px rgba(31, 63, 119, .1); }
.event-public-intro { position: relative; overflow: hidden; }
.event-public-intro::after { position: absolute; right: -60px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 210, 74, .24); content: ''; }
.event-public-intro time { display: inline-block; position: relative; z-index: 1; padding: 7px 14px; border-radius: 30px; background: #e7f1fb; color: #234a8b; font-weight: 700; }
.event-public-intro h1 { position: relative; z-index: 1; max-width: 850px; margin: 18px 0 14px; color: #234a8b; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; }
.event-public-intro p { position: relative; z-index: 1; max-width: 800px; color: #52657a; font-size: 1.08rem; line-height: 1.7; }
.event-detail-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.event-public-content { margin-top: 24px; }
.event-public-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.event-public-heading span { width: 9px; height: 38px; border-radius: 8px; background: #ffd24a; }
.event-public-heading h2 { color: #234a8b; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.event-public-empty { padding: 38px 24px; border: 2px dashed #cbd8e7; border-radius: 16px; background: #f8fbff; color: #62758a; text-align: center; }
.public-team-list { display: grid; gap: 10px; }
.public-team-list div { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 20px; border-radius: 13px; background: #f5f8fc; border-left: 4px solid #ffd24a; }
.public-team-list span { flex-shrink: 0; color: #234a8b; font-weight: 700; }
.event-participants-table-wrap { overflow-x: auto; border: 1px solid #d8e1ec; border-radius: 14px; }
.event-participants-table { width: 100%; min-width: 900px; border-collapse: collapse; background: #fff; }
.event-participants-table th, .event-participants-table td { padding: 16px 20px; border-bottom: 1px solid #e4eaf1; text-align: left; }
.event-participants-table th { background: #f0f5fb; color: #234a8b; font-weight: 700; }
.event-participants-table th:last-child, .event-participants-table td:last-child { width: 140px; text-align: center; }
.event-participants-table tbody tr:last-child td { border-bottom: 0; }
.event-participants-table .event-participants-empty { height: 110px; color: #62758a; font-size: 1.08rem; font-weight: 600; text-align: center; }
.event-stages-list{display:grid;gap:14px}.event-stage-card{overflow:hidden;padding:0}.event-stage-card summary{display:flex;align-items:center;gap:14px;padding:20px 24px;cursor:pointer;list-style:none}.event-stage-card summary::-webkit-details-marker{display:none}.event-stage-card summary>span:nth-child(2){display:grid;gap:4px}.event-stage-card summary strong{color:#243746;font-size:1.08rem}.event-stage-card summary small{color:#647582}.event-stage-open{margin-left:auto;color:#1376bc;font-weight:700}.event-stage-card[open] .event-stage-open{font-size:0}.event-stage-card[open] .event-stage-open::after{content:'\421\43a\440\44b\442\44c';font-size:1rem}.event-stage-body{padding:0 24px 24px}.event-stage-body .event-participants-table-wrap{margin-top:20px}.event-no-material{color:#91a0ac}.stage-points{display:grid;gap:8px;margin:4px 0;padding:16px;border:1px solid #d8e1ec;border-radius:10px}.stage-points legend{padding:0 6px;font-weight:700}.stage-points label{display:flex;align-items:center;justify-content:space-between;gap:16px}.stage-points input{width:120px}.stage-points small{color:#647582}
.public-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.public-gallery a { overflow: hidden; border-radius: 14px; background: #e7f1fb; box-shadow: 0 6px 18px rgba(31, 63, 119, .12); }
.public-gallery img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .25s ease; }
.public-gallery a:hover img, .public-gallery a:focus-visible img { transform: scale(1.04); }
.event-public-footer { padding: 24px; background: #234a8b; color: #fff; text-align: center; }
@media (max-width: 620px) { .event-public-header { align-items: flex-start; flex-direction: column; } .event-back-link { width: 100%; text-align: center; } .event-public-brand img { width: 50px; height: 50px; } .event-public-page { margin: 24px auto; } .public-team-list div { align-items: flex-start; flex-direction: column; } }
.event-stages-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.event-stage-card{position:relative;border:1px solid #dce6ed;border-radius:14px;background:#fff;box-shadow:0 7px 22px #183b5d12}.event-stages-grid .event-stage-card{padding:24px}.event-stage-card h3{margin:8px 0 12px;color:#243746}.event-stage-card>p{color:#647582;line-height:1.55}.event-stage-number{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:#1376bc;color:#fff;font-weight:800}.event-stage-deadline{font-weight:650}.event-stage-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.event-stage-links a{padding:8px 12px;border-radius:7px;background:#e8f3fa;color:#1376bc;font-weight:700;text-decoration:none}
.event-published-materials{display:grid;gap:12px}.event-published-materials article{display:grid;gap:5px;padding:16px;border:1px solid #dce6ec;border-radius:12px;background:#fff}.event-published-materials small{color:#677783}

/* Матрица рейтинга по мероприятиям */
.team-rating-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.team-rating-table.rating-matrix{width:max-content;min-width:100%;table-layout:auto}
.team-rating-table.rating-matrix th,.team-rating-table.rating-matrix td{max-width:170px;white-space:normal}
.team-rating-table.rating-matrix th:nth-child(2),.team-rating-table.rating-matrix td:nth-child(2){max-width:170px}
.team-rating-table.rating-matrix th:nth-child(3),.team-rating-table.rating-matrix td:nth-child(3),.team-rating-table.rating-matrix th:nth-child(4),.team-rating-table.rating-matrix td:nth-child(4){max-width:170px;white-space:normal}
.team-rating-table.rating-matrix .event-heading{max-width:170px;border-left:2px solid #d9e4ed;text-align:center;white-space:normal;text-transform:none}
.team-rating-table.rating-matrix .score-heading,.team-rating-table.rating-matrix .place-heading,.team-rating-table.rating-matrix .event-score,.team-rating-table.rating-matrix .event-place{text-align:center}
.team-rating-table.rating-matrix .event-score{border-left:2px solid #e1e9f0;font-weight:750}
.team-rating-table.rating-matrix .total-score{border-left:2px solid #cbd9e5;text-align:center}

/* Центрированное окно заявки и действия выгрузки таблиц */
.application-modal[open]{position:fixed;top:50%;right:auto;bottom:auto;left:50%;margin:0;transform:translate(-50%,-50%);overflow:auto}
.application-consents{display:grid;grid-column:1/-1;gap:18px}
.application-form .application-consent{gap:10px;font-size:16px;line-height:1.45}
.application-consent a{color:#24568d;text-decoration:underline;text-underline-offset:2px}
.application-consent a:hover{color:#173f72}
.table-heading-actions,.event-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.event-table-actions{margin:0 0 12px}
.event-public-heading .table-export-button{margin-left:auto}
.table-export-button{padding:10px 15px;border:1px solid #2c5ea8;border-radius:9px;background:#fff;color:#24568d;font:inherit;font-weight:750;cursor:pointer;white-space:nowrap}
.table-export-button:hover{background:#edf5fc}
@media(max-width:650px){.table-heading-actions{align-items:flex-start;flex-direction:column}.event-public-heading{flex-wrap:wrap}.event-public-heading .table-export-button{width:100%;margin:10px 0 0}}

/* Keep table columns readable without splitting words into individual letters. */
table th,
table td {
    max-width: 130px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
