* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat';
    font-weight: 600;
    background: black;
    margin: 0;
    padding: 8px;
    height: 100vh;
}

.mondrian-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 18px;
    height: 100%;
    margin: 0;
    border: 4px solid #000;
    background: #000;
    box-sizing: border-box;
}

.grid-item {
    font-size: 1.2em;
    line-height: 1.5;
    padding: 20px;

    background: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.red-bg {
    background: #FF4136;
    color: white;
}

.blue-bg {
    background: #0074D9;
    color: white;
}
.blue-bg a {
    color: white;
}

.yellow-bg {
    background: #FFDC00;
}

ul {
    list-style: none;
    line-height: 1.5;
    font-size: 0.9em;
}

.map {
    width: 100%;
    height: 100%;
    border: none;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Специфичные позиции элементов */
.title { 
    grid-area: 1 / 1 / 2 / 3; 
    font-family: "Sverdlovsk";
    font-size: 4em;
}
.desc { grid-area: 2 / 1 / 4 / 2; }
.map-container { grid-area: 1 / 3 / 3 / 4; }
.official { grid-area: 3 / 2 / 4 / 3; }
.unofficial { grid-area: 3 / 3 / 4 / 4; background-color: #000; color: #fff;}
.unofficial a { color: #fff;}
.orgs { grid-area: 4 / 2 / 5 / 3; }
.photo-1 { grid-area: 2 / 2 / 3 / 3; background-color: #000; padding: 0;}
.photo-2 { grid-area: 4 / 1 / 5 / 2; }
.photo-3 { grid-area: 4 / 3 / 5 / 4; }

@media (max-width: 1024px) {
    .grid-item {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
    }
    
    .mondrian-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        min-height: 100vh;
    }

    .grid-item {
        grid-area: auto !important;
        min-height: 200px;
    }

    .title {
        grid-area: 1 / 1 / 2 / 3;
        font-size: 2em;
    }
    .desc { grid-area: 2 / 1 / 4 / 2; }
    .map-container { grid-area: 1 / 3 / 3 / 4; }
    .official { grid-area: 3 / 2 / 4 / 3; }
    .unofficial { grid-area: 4 / 1 / 5 / 2; }
    .orgs { grid-area: 4 / 2 / 5 / 3; }
    .photo-1 { grid-area: 2 / 2 / 3 / 3; }
    .photo-2 { grid-area: 3 / 3 / 4 / 4; }
    .photo-3 { grid-area: 4 / 3 / 5 / 4; }
}
