@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;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, sans-serif;
    background-color: white;
}

/* HEADER */
.top-block {
    width: 350px;
    height: 50px;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    /* liquid glass */
    background: rgba(32, 32, 32, 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;  
    margin-bottom: 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;
}

/* Обёртка кнопки меню для выпадающего блока */
.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(32, 32, 32, 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 CONTENT */

/* Content Wrapper */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 160px 20px 20px;
    text-align: center;
}

.logotype {
    width: 100px;
    height: auto;
    margin-bottom: 30px;
}

.company-name {
    font-size: 96px;
    font-weight: bold;
    color: #282828;
    margin: 0;
}

.separator-main {
    width: 100%;
    max-width: 1000px;
    height: 1px;
    background-color: #282828;
    margin: 0 auto 20px;
}

/* Sections */
section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 30px;
    font-weight: bold;
    color: #8C8C8C;
    margin: 0 0 20px 0;
}

/* About Section */
.about-description {
    font-size: 30px;
    line-height: 1.6;
    color: #282828;
    margin: 0 0 30px 0;
    max-width: 970px;
}

.mission-block {
    display: flex;
    gap: 10px;
    margin-top: 0;
}

.mission-label {
    font-size: 30px;
    font-weight: bold;
    color: #282828;
    margin: 0;
}

.mission-text {
    font-size: 30px;
    color: #757575;
    margin: 0;
}

/* CEO Section */
.ceo-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ceo-emoji {
    font-size: 48px;
    line-height: 1;
}

.ceo-name {
    font-size: 30px;
    font-weight: 600;
    color: #282828;
    margin: 0;
}

/* Contact Section */
.contact-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.contact-label {
    font-size: 30px;
    font-weight: 600;
    color: #282828;
}

.contact-email {
    font-size: 30px;
    color: #757575;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #000000;
    text-decoration: underline;
}

/* END MAIN CONTENT */

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

.separator {
    width: 1000px;
    height: 1px;
    background-color: #282828;
    margin-top: 30px;
}

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

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

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

/* Mobile adaptation */

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

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

    .btn-home img {
        width: 20px;
        height: 20px;
    }

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

    /* Hero Section */
    .hero-section {
        padding: 140px 15px 15px;
    }

    .logotype {
        width: 100px;
        margin-bottom: 20px;
    }

    .company-name {
        font-size: 96px;
    }

    .separator-main {
        max-width: 400px;
    }

    /* Content */
    .content-wrapper {
        max-width: 400px;    
    }

    section {
        margin-bottom: 10px;
        text-align: left;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .about-description {
        font-size: 24px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .mission-block {
        gap: 8px;
    }

    .mission-label {
        font-size: 24px;
    }

    .mission-text {
        font-size: 24px;
    }

    .ceo-avatar {
        width: 52px;
        height: 64px;
    }

    .ceo-name {
        font-size: 24px;
        font-weight: normal;
    }

    .contact-info {
        flex-direction: row;        
        align-items: baseline;      
        gap: 10px;
    }

    .contact-section {
        margin-bottom: 100px;
    }

    .contact-label {
        font-size: 24px;
    }

    .contact-email {
        font-size: 24px;
    }

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

    .separator {
        width: 400px;
        height: 1px;
        background-color: #282828;
        margin-top: 0px;
    }

    .basement-footer {
        width: 400px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
    }

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

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

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

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

    .btn-home img {
        width: 20px;
        height: 20px;
    }

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

    /* Hero Section */
    .hero-section {
        padding: 140px 10px 12px;
    }

    .logotype {
        width: 100px;
        margin-bottom: 16px;
    }

    .company-name {
        font-size: 72px;
    }

    .separator-main {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 12px;
    }

    /* Content */
    .content-wrapper {
        max-width: 340px;
        padding-left: 20px;
        padding-right: 10px;
    }

    section {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .about-description {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .mission-block {
        flex-direction: column;  /* в колонку на маленьких экранах */
        gap: 6px;
    }

    .mission-label {
        font-size: 20px;
    }

    .mission-text {
        font-size: 20px;
    }

    .ceo-avatar {
        width: 52px;
        height: 64px;
    }

    .ceo-name {
        font-size: 20px;
        font-weight: normal;
    }

    .contact-info {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .contact-label {
        font-size: 20px;
    }

    .contact-email {
        font-size: 20px;
        word-break: break-all;  /* разрывать длинный email */
    }

    /* Basement */
    .separator {
        max-width: 300px;
        margin-top: 16px;
    }

    .basement-footer {
        width: 90%;
        margin-top: 6px;
    }

    .title-copyright,
    .title-country {
        font-size: 12px;
    }
}

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

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

    .btn-home img {
        width: 20px;
        height: 20px;
    }

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

    /* Hero Section */
    .hero-section {
        padding: 140px 10px 12px;
    }

    .logotype {
        width: 100px;
        margin-bottom: 16px;
    }

    .company-name {
        font-size: 72px;
    }

    .separator-main {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 12px;
    }

    /* Content */
    .content-wrapper {
        max-width: 340px;
        padding-left: 20px;
        padding-right: 10px;
    }

    section {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .about-description {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .mission-block {
        flex-direction: column;  /* в колонку на маленьких экранах */
        gap: 6px;
    }

    .mission-label {
        font-size: 20px;
    }

    .mission-text {
        font-size: 20px;
    }

    .ceo-avatar {
        width: 52px;
        height: 64px;
    }

    .ceo-name {
        font-size: 20px;
        font-weight: normal;
    }

    .contact-info {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .contact-label {
        font-size: 20px;
    }

    .contact-email {
        font-size: 20px;
        word-break: break-all;  /* разрывать длинный email */
    }

    /* Basement */
    .separator {
        max-width: 300px;
        margin-top: 16px;
    }

    .basement-footer {
        width: 90%;
        margin-top: 6px;
    }

    .title-copyright,
    .title-country {
        font-size: 12px;
    }
}

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

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

    .btn-home img {
        width: 20px;
        height: 20px;
    }

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

    /* Hero Section */
    .hero-section {
        padding: 140px 10px 12px;
    }

    .logotype {
        width: 100px;
        margin-bottom: 16px;
    }

    .company-name {
        font-size: 72px;
    }

    .separator-main {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 12px;
    }

    /* Content */
    .content-wrapper {
        max-width: 340px;
        padding-left: 20px;
        padding-right: 10px;
    }

    section {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .about-description {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .mission-block {
        flex-direction: column;  /* в колонку на маленьких экранах */
        gap: 6px;
    }

    .mission-label {
        font-size: 20px;
    }

    .mission-text {
        font-size: 20px;
    }

    .ceo-avatar {
        width: 52px;
        height: 64px;
    }

    .ceo-name {
        font-size: 20px;
        font-weight: normal;
    }

    .contact-info {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .contact-label {
        font-size: 20px;
    }

    .contact-email {
        font-size: 20px;
        word-break: break-all;  /* разрывать длинный email */
    }

    /* Basement */
    .separator {
        max-width: 300px;
        margin-top: 16px;
    }

    .basement-footer {
        width: 90%;
        margin-top: 6px;
    }

    .title-copyright,
    .title-country {
        font-size: 12px;
    }
}

/* Hover только на устройствах с мышью */
@media (hover: hover) {
    .btn-home:hover .icon-normal,
    .btn-menu:hover .icon-normal {
        display: none;
    }

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

/* На touch устройствах hover не работает */
@media (hover: none) {
    .btn-menu .icon-hover {
        display: none !important;
    }
    
    .btn-menu .icon-normal {
        display: block !important;
    }
}