@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

/* Оптимизация загрузки изображений */
img {
    image-rendering: auto;  /* по умолчанию хорошее качество */
}

/* Только для растровых изображений (PNG, JPG) */
img[src$=".png"],
img[src$=".jpg"],
img[src$=".jpeg"],
img[src$=".webp"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    background-color: #1E1E1E;
    margin: 0;
}

/* HEADER */
.top-block {
    width: 350px;
    height: 50px;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    /* liquid glass */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 50px;

    border-radius: 100px;

    margin: 0;  
}

.top-block button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-block button img {
    display: block;
}

.top-block button,
.top-block a.btn-home {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-home img,
.btn-menu img {
    width: 20px;
    height: 20px;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    transition: opacity 0.2s ease;
}

.nav-news,
.nav-products {
    font-size: 16px;
    color: #3E3E3E;
    margin: 0;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-block;      
    text-decoration: none;
}

.nav-news:hover,
.nav-products:hover {
    color: white;
}

.btn-menu img {
    width: 31px;
    height: 31px;
}

.btn-home .icon-hover,
.btn-menu .icon-hover {
    display: none;
}

.btn-home .icon-normal,
.btn-menu .icon-normal {
    display: block;
}

.btn-home:hover .icon-normal,
.btn-menu:hover .icon-normal {
    display: none;
}

.btn-home:hover .icon-hover,
.btn-menu:hover .icon-hover {
    display: block;
}

.menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-dropdown {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 350px;
    height: 194px;
    z-index: 1001;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;

    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border-radius: 20px;

    isolation: isolate;
}

.menu-dropdown.menu-dropdown-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-dropdown-link {
    display: block;
    padding: 12px 16px;
    font-size: 32px;
    font-weight: 500;
    color: #373737;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-dropdown-link:hover {
    color: black;
}

.menu-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

/* END HEADER */

/* MAIN BLOCK */

.posts-section {
    display: flex;
    flex-direction: column;
    align-items: center;   /* центрируем детей по горизонтали */
    max-width: 1000px;     /* по желанию, ширина области постов */
    margin: 0 auto;        /* центрируем сам posts-section относительно страницы */
    padding: 80px 20px 60px;
    justify-content: center;
    min-height: 100vh;
}

.label-new {
    width: 138px;
    height: 56px;
    border-radius: 100px;
    border: none;
    background-image: url('../images/news/label-new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
}

.new-post {
    width: 700px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.header-new-post {
    width: 700px;     
    height: 100px;
    background-image: url('../images/news/background-header-new-post.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0px;       
    align-items: flex-start;

    margin: 0 0 10px 0;
}

.avatar-cycle {
    width: 80px;
    height: 80px;
    background: #C98E0F;
    border-radius: 100px;
    border: none;
    cursor: pointer;

    margin-left: 10px;  
    margin-top: 10px;    

    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-photo {
    width: 74px;
    height: 74px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
}

.title-new-post,
.subtitle-new-post {
    grid-column: 2;        
    text-align: center;   
    margin: 0;
}

.title-new-post {
    color: #C98E0F;
    font-size: 28px;
    font-weight: bold;
    max-width: 100%;
    margin: 17px 0 4px 0;
}

.subtitle-new-post {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
    margin: -35px 0 0 0;
}

.content-new-post {
    width: 700px;     
    height: 715px;
    max-height: 100%;
    max-width: 100%;
    background-image: url('../images/news/background-content-new-post.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 30px;
    border: none;
}

.content-new-post-text {
    color: white;
    font-size: 32px;
    width: 658px;
    font-weight: normal;
}

.line-new-post {
    color: white;
    font-size: 32px;
    width: 658px;
    font-weight: normal;
}

.line-new-post-1, .line-new-post-2, 
.line-new-post-3, .line-new-post-4 {
    margin-bottom: 30px;
}

.highlight {
    font-weight: 500;
}

.bottom-new-post {
    display: flex;
    align-items: center;
    margin-top: 40px;
    position: relative;
}

.time-post,
.hashtag {
    margin: 0;
    font-size: 25px;
}

.time-post {
    margin: 0;
    font-size: 25px;
    font-weight: 500;
    color: #CBCBCB;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);  /* центр по горизонтали и вертикали */
    text-align: center;
    white-space: nowrap;
}

.hashtag {
    font-weight: normal;
    color: #C98D0F;
    margin: 0;
    margin-left: 8px;
}

.btn-supports {
    width: 104px;
    height: 40px;
    max-height: 100%;
    max-width: 100%;
    background-image: url('../images/news/background-btn-supports.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100px;
    border: none;
    cursor: pointer;
}

.icon-btn-supports {
    width: 20px;
    height: 20px;
}

.label-supports {
    color: #AB5EFF;
    font-size: 25px;
    font-weight: 400;
}

.btn-share {
    width: 131px;
    height: 40px;
    max-height: 100%;
    max-width: 100%;
    background-image: url('../images/news/background-btn-share.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.icon-btn-share {
    width: 20px;
    height: 20px;
}

.label-share {
    color: #52B851;
    font-size: 25px;
    font-weight: 400;
}

.separator-new-post {
    width: 700px;
    height: 1px;
    background: #464646;
    border: none;
    border-radius: 12px;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* COMMON POSTS */
.post {
    width: 700px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.header-post {
    width: 700px;    
    height: 100px;
    display: flex;           /* ставим детей в линию */
    align-items: center;    
    gap: 12px;
    margin-bottom: 10px;
}

.header-author {
    width: 100px;
    height: 100px;
    background-image: url('../images/news/background-avatar-post.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    border: none;

    display: flex;
    align-items: center;    
    justify-content: center;
}

.author-icon {
    width: 80px;
    height: 80px;
    border-radius: 100px;
    border: 3px solid white;
    cursor: pointer;
}

.header-title-post {
    width: 588px;
    height: 100px;
    background-image: url('../images/news/background-common-header-post.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    border: none;

    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: center;       
    padding-left: 0;
}

.title-post,
.subtitle-post {
    margin: 0;
    text-align: center;        
}

.title-post {
    font-size: 30px;
    font-weight: bold;
    color: white;
}

.subtitle-post {
    font-size: 20px;
    font-weight: 400;
    color: #979797;
}

.content-post {
    width: 700px;     
    height: 950px;
    max-height: 100%;
    max-width: 100%;
    background-image: url('../images/news/background-common-post.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 30px;
    border: none;
}

.content-post-vihi {
    width: 700px;     
    height: 823px;
    max-height: 100%;
    max-width: 100%;
    background-image: url('../images/news/background-common-post-vihi.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 30px;
    border: none;
}

.line-post {
    color: white;
    font-size: 32px;
    font-weight: 400;
    font-style: normal;
}

.line-post-1, .line-post-2, 
.line-post-3, .line-post-4,
.line-post-5 {
    margin-bottom: 30px;
}

.picture {
    width: 658px;
    height: 200px;
    border-radius: 30px;
    border: none;
    margin-bottom: 20px;
}

.picture-volp {
    width: 658px;
    height: 200px;
    border-radius: 30px;
    border: none;
}

.picture-vihi {
    width: 658px;
    height: 200px;
    border-radius: 30px;
    border: none;
}

.description-picture {
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    color: #7E7E7E;
}

.text-post {
    margin-bottom: 40px;
}

.bottom-post {
    display: flex;
    align-items: center;
    margin-top: 40px;
    position: relative;
}

.time-post,
.hashtag {
    margin: 0;
    font-size: 25px;
}

.time-post {
    margin: 0;
    font-size: 25px;
    font-weight: 500;
    color: #CBCBCB;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);  /* центр по горизонтали и вертикали */
    text-align: center;
    white-space: nowrap;
}

.hashtag {
    font-weight: normal;
    color: #C98D0F;
    margin: 0;
    margin-left: 8px;
}

.btn-supports {
    width: 104px;
    height: 40px;
    max-height: 100%;
    max-width: 100%;
    background-image: url('../images/news/background-btn-common-supports.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100px;
    border: none;
    cursor: pointer;
}

.icon-btn-supports {
    width: 20px;
    height: 20px;
}

.label-supports {
    color: #AB5EFF;
    font-size: 25px;
    font-weight: 400;
}

.btn-share {
    width: 131px;
    height: 40px;
    max-height: 100%;
    max-width: 100%;
    background-image: url('../images/news/background-btn-common-share.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.icon-btn-share {
    width: 20px;
    height: 20px;
}

.label-share {
    color: #52B851;
    font-size: 25px;
    font-weight: 400;
}

/* END MAIN BLOCK */

/* BASEMENT */
.basement {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 auto;
    margin-top: -40px;
}

.separator {
    width: 1000px;
    max-width: 100%;
    height: 1px;
    background-color: #FFFFFF;
}

.basement-footer {
    max-width: 100%;
    width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.title-copyright {
    font-size: 16px;
    color: #FFFFFF;
    margin: 0;
}

.title-country {
    font-size: 16px;
    color: #FFFFFF;
    margin: 0;
}

/* END BASEMENT */

/* Mobile adaptation */

@media (max-width: 480px) {
    /* Header */
    .top-block {
        width: 350px;  
        height: 50px;       
        gap: 50px;           
        padding: 0 10px;
    }

    .nav-news,
    .nav-products {
        font-size: 14px;
    }

    /* MAIN BLOCK */

    .header-block {
        width: 100%;
        max-height: 400px;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .header-image {
        display: flex;
        height: 400px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .mission-block {
        width: 100%;
        max-width: 100%; 
        margin: 10px auto 0; 
        padding-top: 23px;
        padding-bottom: 23px;
        text-align: center;
        color: #282828; 
        background: #D9D9D9;
        font-size: 24px; 
        line-height: 1.3;
    }

    .highlight {
        color: #F73131;
    }

    .volp-block {
        width: 100%;
        max-height: 709px;
        margin: 0;
        padding: 0;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        box-sizing: border-box;
    
    }

    .volp-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* END MAIN BLOCK */

    /* BASEMENT */
    .basement {
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        margin: 0 auto;
        margin-top: -60px;
    }

    .separator {
        width: 1000px;
        max-width: 100%;
        height: 1px;
        background-color: #FFFFFF;
    }

    .basement-footer {
        max-width: 100%;
        width: 1000px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        margin-top: 10px;
    }

    .title-copyright {
        font-size: 16px;
        color: #FFFFFF;
        margin: 0;
    }

    .title-country {
        font-size: 16px;
        color: #FFFFFF;
        margin: 10px auto 0 auto;
    }

    /* END BASEMENT */
}

@media (max-width: 360px) {
   /* Header */
    .top-block {
        width: 350px;  
        height: 50px;       
        gap: 50px;           
        padding: 0 10px;
    }

    .nav-news,
    .nav-products {
        font-size: 14px;
    }

    /* MAIN BLOCK */

    .header-block {
        width: 100%;
        max-height: 300px;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .header-image {
        display: flex;
        height: 300px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .mission-block {
        width: 100%;
        max-width: 100%; 
        margin: 10px auto 0; 
        padding-top: 23px;
        padding-bottom: 23px;
        text-align: center;
        color: #282828; 
        background: #D9D9D9;
        font-size: 18px; 
        line-height: 1.3;
    }

    .highlight {
        color: #F73131;
    }

    .volp-block {
        width: 100%;
        max-height: 508.5px;
        margin: 0;
        padding: 0;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        box-sizing: border-box;
    
    }

    .volp-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* END MAIN BLOCK */

    /* BASEMENT */
    .basement {
        width: 100%;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        margin: 0 auto;
        margin-top: -60px;
    }

    .separator {
        width: 1000px;
        max-width: 100%;
        height: 1px;
        background-color: #FFFFFF;
    }

    .basement-footer {
        max-width: 100%;
        width: 1000px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    .title-copyright {
        font-size: 12px;
        color: #FFFFFF;
        margin: 0;
    }

    .title-country {
        font-size: 12px;
        color: #FFFFFF;
        margin: 0;
    }

    /* END BASEMENT */
}