/* =========================
   GLOBAL STYLES
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================
   HEADER
   ========================= */

.header {
    width: 100%;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd;
}

/* Верхняя часть шапки */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    max-width: 1200px;
    min-height: 120px;
    margin: 0 auto;
    padding: 20px;
}

/* Логотип */

.logo {
    flex-shrink: 0;
    font-size: 28px;
    font-weight: bold;
}

.logo a {
    display: inline-block;
}

/* Текст справа от логотипа */

.header-text {
    text-align: right;
    color: #555;
}

.header-text p {
    margin: 0;
}


/* =========================
   NAVIGATION
   ========================= */

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;

    min-height: 55px;
    padding: 10px 20px;

    background-color: #e5e5e5;
    border-top: 1px solid #ddd;
}

.navigation a {
    padding: 5px 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navigation a:hover {
    color: #777;
}


/* =========================
   MAIN CONTENT
   ========================= */

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main section {
    margin-bottom: 60px;
}

.main h2 {
    margin: 0 0 25px;
    font-size: 28px;
    font-weight: 600;
}


/* =========================
   GALLERY
   ========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}


/* =========================
   ABOUT
   ========================= */

#about p {
    max-width: 800px;
    color: #555;
}


/* =========================
   FOOTER
   ========================= */

.footer {
    background-color: #f2f2f2;
    border-top: 1px solid #ddd;
}

/* Верхняя часть подвала */

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 20px;
}

.footer-content h3 {
    margin: 0 0 15px;
    font-size: 20px;
}

.footer-content p {
    margin: 8px 0;
    color: #555;
}

.footer-contacts a:hover {
    text-decoration: underline;
}

/* Нижняя часть подвала */

.footer-bottom {
    padding: 15px 20px;
    text-align: center;

    background-color: #e5e5e5;
    border-top: 1px solid #ddd;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #666;
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

/* Планшеты */

@media (max-width: 768px) {

    .header-top {
        min-height: 100px;
    }

    .logo {
        font-size: 24px;
    }

    .navigation {
        gap: 25px;
        flex-wrap: wrap;
    }

    .main {
        padding: 30px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .footer-content {
        gap: 25px;
    }
}


/* Смартфоны */

@media (max-width: 480px) {

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }

    .header-text {
        text-align: left;
    }

    .navigation {
        justify-content: space-around;
        gap: 10px 20px;
        padding: 15px;
    }

    .main {
        padding: 25px 15px;
    }

    .main section {
        margin-bottom: 40px;
    }

    .main h2 {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
}
