/* HEADER */
* {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    position: relative;
}

/* MAIN PART */
main {
    width: 100%;
    display: grid;
    box-sizing: border-box;
}

.main-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    margin: 30px auto 48px;
    gap: 16px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

.first-two {
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 16px;
}

.main-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-block img {
    width: 100%;
    aspect-ratio: 16 / 9;
    rotate: -2deg;
}

#cafe-mobile {
    display: none;
}

@media only screen and (max-width: 768px) {
    #cafe-desktop {
        display: none;
    }

    #cafe-mobile {
        display: block;
    }
}

.main-block h1 {
    margin: 0;
}

.first-sc {
    align-self: center;
    gap: 8px;
}

.first-sc h1, .first-sc p {
    margin: 0;
}

.create-event-btn {
    text-align: center;
    background-color: #5e93a3;
    border: 0.125px solid #5e93a3;
    border-radius: 1.5rem;
    color: #fff;
    max-width: 100%;
    outline: none;
    padding: 0.625rem 0.9375rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    transition: 0.3s;
    margin-top: 15px;
}

.create-event-btn:hover {
    background-color: #497884;
}


.second-sc {
    gap: 16px;
}

.smaller-block {
    display: flex;
    flex-direction: column;
    height: inherit;
}

.smaller-block p {
    font-size: 18px;
}

@media only screen and (max-width: 1432px) {
    .main-section, .supplier-section {
        width: calc(100% - 32px);
    }
}

@media only screen and (max-width: 1000px) {
    .main-section {
        grid-template-columns: 1fr;
    }

    .second-sc {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media only screen and (max-width: 599px) {
    .main-block {
        grid-area: second;
    }

    .main-block img {
        width: calc(100% + 32px);
        transform: translateX(-16px);
        rotate: 0deg;
    }

    .first-sc {
        grid-area: first;
    }
    .first-two {
        grid-template-columns: repeat(1, 1fr);
        gap: 24px;
        grid-template-areas: "second" "first";
    }
    .cities-image {
        display: block;
    }
}


/* Supplier Section */
.supplier-section {
    margin: 50px auto;
    display: grid;
    gap: 0.5rem;
}

.supplier-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.supplier-block {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.2s;
}

.supplier-block:hover {
    transform: scale(1.05);
}

.supplier-block img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.supplier-block h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

.supplier-block p {
    font-size: 1rem;
    color: #666;
}
/* Supplier Section */
.supplier-section {
    margin-top: 50px;
}

.supplier-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.supplier-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.supplier-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.supplier-item h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

.supplier-item p {
    font-size: 1rem;
    color: #666;
}