/* Компактный адаптивный дизайн для WindLoadCalc */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    color: #2a3542;
    background-color: #f3f6fb;
    padding: 8px;
}

.header {
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(70, 90, 130, 0.08);
    margin-bottom: 12px;
    text-align: center;
}

.header h1 {
    color: #2d4f7a;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.header h1 .year {
    font-size: 32px;
    font-weight: bold;
    color: #3a5e93;
}

.subtitle {
    color: #3a5e93;
    font-size: 14px;
    margin-bottom: 4px;
}

.version {
    color: #6a7d94;
    font-size: 12px;
}

.main {
    max-width: 100%;
    margin: 0 auto;
}

section {
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(70, 90, 130, 0.08);
    margin-bottom: 12px;
}

section h2 {
    color: #2d4f7a;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    border-bottom: 2px solid #c9daf1;
    padding-bottom: 4px;
}

section p {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
}

section a {
    color: #3a5e93;
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

/* Галерея скриншотов */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ccd9eb;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Список отчетов */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.report-link {
    display: block;
    padding: 8px 12px;
    background-color: #eef4ff;
    border: 1px solid #d6e3fb;
    border-radius: 4px;
    color: #2d4f7a;
    font-size: 13px;
    text-align: center;
    transition: background-color 0.2s;
}

.report-link:hover {
    background-color: #dbe7fb;
    text-decoration: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: #cccccc;
}

/* Адаптивность для планшетов */
@media (max-width: 1919px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 767px) {
    body {
        padding: 6px;
    }

    .header {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header h1 .year {
        font-size: 26px;
    }

    .subtitle {
        font-size: 13px;
    }

    section {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    section h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    section p {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .report-link {
        padding: 10px;
        font-size: 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox {
        padding: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Адаптивность для небольших телефонов */
@media (max-width: 479px) {
    body {
        padding: 4px;
    }

    .header {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .header h1 {
        font-size: 18px;
    }

    .header h1 .year {
        font-size: 22px;
    }

    .subtitle {
        font-size: 12px;
    }

    section {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    section h2 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    section p {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .gallery {
        gap: 4px;
    }

    .report-link {
        padding: 8px;
        font-size: 11px;
        min-height: 44px;
    }

    .lightbox-close {
        top: 5px;
        right: 15px;
        font-size: 30px;
    }
}

