/* style.css - Адаптивный дизайн */
* {
    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;
    color: #393939;
    font-size: 12pt;
    max-width: 400px;
}

.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: 1fr 1fr;
    gap: 22px;
    margin-bottom: 26px;
    z-index: 2;
}

.landing-info-card h2 {
    text-align: left;
    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;
}

.landing-stages {
    width: min(1240px, 94%);
    background: rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    padding: 20px;
    z-index: 2;
}

.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;
}

.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;
}

@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-info-section {
        grid-template-columns: 1fr;
    }

    .landing-about-head {
        flex-direction: column;
    }

    .landing-stage-card h3 {
        min-height: 0;
    }

    .participants-map-card {
        padding: 16px 12px;
    }

    .participants-map-frame {
        width: 100%;
        height: min(520px, calc(100vh - 220px));
        min-height: 260px;
    }
}
/* ===== КНОПКИ ===== */
.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-size: 1.2rem;
    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-wrap {
    overflow-x: auto;
}

.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;
}

.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: break-word;
}

@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;
    }
}
