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

body,
html {
    height: 100%;
    font-family: Comfortaa, sans-serif;
    overflow-x: hidden;
}

.section {
    height: auto;
    /*добавил*/
    min-height: fit-content;
    /*добавил*/
    width: 100%;
    /* background-color: white; */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Запрещает повторение */
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.middle-block,
.bottom-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* color: white; */
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease-out;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.top-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* color: white; */
    font-size: 34px;
    font-weight: bold;
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);*/
    transition: transform 0.3s ease-out;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bottom-block {
    /*height: 80%;*/
    height: auto;
    /*добавил*/
    min-height: fit-content;
    /*добавил*/
    /* background-color: rgba(255, 255, 255, 0.75); */
    /* 75% прозрачности
    /*background-color: rgba(0, 116, 125, 0.5);*/
}

.bottom-block-head {
    /*height: 80%;*/
    height: auto;
    /*добавил*/
    min-height: fit-content;
    /*добавил*/
}


.top-block,
.middle-block {
    /*height: 20%;*/
    height: auto;
    /*добавил*/
    min-height: fit-content;
    /*добавил*/
    /*background-color: transparent; /* 100% прозрачности */
    /*background-color: rgba(32, 46, 86, 0.25);*/
    /* background-color: rgba(255, 255, 255, 1); */

}


.content {
    font-family: 'Comfortaa', sans-serif;
    color: #FFDF70;
    padding: 20px;
    text-align: center;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    border-radius: 10px;
}

.content_b {
    font-family: 'Comfortaa', sans-serif;
    color: #202E56;
    padding: 20px;
    text-align: center;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    border-radius: 10px;
}

.content-right {
    text-align: left;
}


/* Подключение шрифта отдельно */
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa/Comfortaa-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa/Comfortaa-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

.site-name {
    font-family: 'Comfortaa', sans-serif;
    font-size: 24px;
    font-weight: 500;
    /* или 300 */
    color: #FFDF70;
    margin-left: 2%;
    margin-top: 15px;
    text-align: center;
    align-items: center;
    align-content: center;
    margin-right: 60%;
}

.site-name>h2 {
    font-size: 30px;
    font-weight: 900;
    /* или 300 */
    white-space: nowrap;
    text-align: center;
    padding-top: 2%;
}

.buttons-section {
    display: flex;
    /* align-self: flex-start; Прижать конкретно этот блок к верху */
    flex-direction: row;
    padding-top: 20px;
    gap: 15px;
    margin-top: 40px;
    margin-left: 5%;
    margin-bottom: 5px;
}

/* Стили для всех кнопок */
.tg-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #202E56 0%, #202E56 20%, #00747D);
    /*color: white;*/
    color: #FFDF70;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    line-height: 1;
    /* или конкретное значение */
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Comfortaa', sans-serif;
}

.tg-button:hover {
    background: linear-gradient(135deg, #006699, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

/*for mobiles*/

img {
    max-width: 100%;
    height: auto;
}

#section5 .buttons-section {
    margin-top: 0px;
    margin-left: 0%;

}

.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: #FFDF70;
    text-decoration: none;
}

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

.article-card-horizontal .article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #8e8e8e;
}

.privacy-policy {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: left;
}

.privacy-policy h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.privacy-policy p {
    margin-bottom: 15px;
    line-height: 1.6;
}


strong,
b {
    font-weight: 600;
    text-shadow: 0 0 1.5px currentColor;
}


.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg,
            #F5F0E8 0%,
            #FAF6EF 50%,
            #F5F0E8 100%);
    background-size: 200% 200%;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 15px;
    text-decoration: none;
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
}

.scroll-to-top:hover {
    background: #00747D;
}

@media (max-width: 768px) {
    .scroll-to-top {
        display: none;
    }
}