* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    color: #222;

    background-image: url("differnet_foto/foto_main/fon.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Основной фон */
.FON {
    min-height: 100vh;
    padding: 30px;
    background: rgba(0, 0, 0, 0.25);
}
/* Заголовок */
.WELLCOME {
    text-align: center;
    margin-bottom: 40px;
}
.WELLCOME h1 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}
/* Контейнер карточек */
.LIST {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}
/* Карточка */
.BOX {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Эффект наведения */
.BOX:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}


/* Фото */
.FOTO-BOX {
    width: 100%;
    height: 320px;
    overflow: hidden;
}


.FOTO-BOX img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}


/* Увеличение картинки при наведении */
.BOX:hover img {
    transform: scale(1.05);
}


/* Описание */
.DESCRIPTION {
    padding: 20px;
    text-align: center;
}


.DESCRIPTION h2 {
    margin: 0;
    font-size: 22px;
}


.DESCRIPTION a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}


.DESCRIPTION a:hover {
    color: #0077cc;
}


/* Ссылки на картинке */
.FOTO-BOX a {
    display: block;
    height: 100%;
}


/* Мобильная версия */
@media (max-width: 600px) {

    .FON {
        padding: 15px;
    }

    .WELLCOME h1 {
        font-size: 28px;
    }

    .LIST {
        gap: 20px;
    }

    .FOTO-BOX {
        height: 180px;
    }
}