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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f3f4f6;
    z-index: 0;
}


h1 {
    text-align: center; /* Выравнивание текста по центру по горизонтали */
    text-transform: uppercase; /* Преобразование текста в верхний регистр */
    padding: 20px 20px; /* Отступы по 20px со всех сторон */
    margin: -40px 0; /* Внешние отступы сверху и снизу */
    # background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(50, 50, 50, 0.85)); /* Темный градиентный фон */
    # backdrop-filter: blur(10px); /* Эффект размытия для создания стеклянного эффекта */
    # border-radius: 15px; /* Закругленные углы */
    # box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /*тень для объема*/
    # color: #000000; /* Белый цвет текста */
    font-size: 2em; /* Размер шрифта */
    # line-height: 1.5em;
    width: calc(100% - 40px);
    max-width: 1200px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto; 
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.2em; /* Уменьшение размера текста на узких экранах */
        padding: 20px 15px; /* Уменьшенные внутренние отступы для мобильных */
        line-height: 1.3em; /* Межстрочная высота на мобильных */
    }
}

h1, h2, h3, h4, h5, h6, p, span, a {
    position: relative; /* Необходимо для работы z-index */
    z-index: 10; /* Высокий z-index для того, чтобы элементы были на переднем плане */
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    overflow-y: auto;
    max-height: calc(100% - 50px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.text-overlay h2 {
    color: #ffffff; /* Задайте нужный цвет */
}

.gallery-item:hover .text-overlay {
    transform: translateY(0);
}

.text-overlay h2 {
    font-size: 1.5em;
    margin-bottom: 8px;
    text-align: center;
}

.text-overlay p {
    font-size: 1em;
    margin-bottom: 10px;
    text-align: left; /* Текст выравнивается по левой стороне */
}

.large {
    width: 100%;
    height: 250px;
}

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

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .large {
        height: 200px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .text-overlay h2 {
        font-size: 1.2em;
    }

    .text-overlay p {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    .more-btn {
        font-size: 0.8em;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .large {
        height: 150px;
    }

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

    .text-overlay h2 {
        font-size: 1.2em;
    }

    .text-overlay p {
        font-size: 0.8em;
    }

    .more-btn {
        font-size: 0.7em;
        padding: 5px 8px;
        position: static;
        margin-top: 10px;
    }
}

.more-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 5px 15px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
    text-align: center;
    margin: 0 auto; /* Центрирование кнопки */
}

.more-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ==
css главной страницы блок izo/24-7.svg с тексом Создание сайтов с нуля (любой сложности); */
@font-face {
    font-family: 'Yanone Kaffeesatz';
    src: url('modules/google-fonts/YanoneKaffeesatz-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Yanone Kaffeesatz';
    src: url('modules/google-fonts/YanoneKaffeesatz-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    background-color: #f3f4f6;
    z-index: 0;
}

p {
    margin: 0;
    padding: 0;
}

.text-content {
    margin: 10px 0; /* верхн. отступ */
}

.custom-container {
    font-family: 'Yanone Kaffeesatz', sans-serif !important;
    display: flex;
    width: 100%;
    color: #000000;
    margin: 20px 0 0 0; /* контейнер отступ сверху */
    padding: 0;
}

.custom-left-block, .custom-right-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.custom-left-block img {
    max-width: 100%;
    height: auto;
}

.custom-right-block {
    flex-direction: column;
    line-height: 1; /* пробелы между строками */
}

.custom-content-text img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.custom-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 0; /* нижний отступ */
    font-size: 1.225em;
    white-space: nowrap;
}

.custom-list-item i {
    margin-right: 10px;
    color: #000000;
}

@media (max-width: 768px) {
    .custom-container {
        flex-direction: column;
        height: auto;
        padding: 0 10px; /* Отступы внутри контейнера для небольшого смещения внутрь */
    }

    .custom-left-block,
    .custom-right-block {
        flex: none;
        width: 100%;
    }

    .custom-left-block img,
    .custom-right-block img {
        width: 100%; /* Устанавливаем ширину изображения на 100% */
        margin-left: 1%;  /* Отступ слева */
        margin-right: 1%; /* Отступ справа */
        height: auto;
        display: block;
    }

    .custom-right-block {
        padding: 15px;
    }

    .custom-list-item {
        font-size: 1em; /* Немного уменьшаем размер текста для узких экранов */
    }
}
