@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;
}

.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(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 */

/* Support Section */
.support-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 160px 20px 60px;
    max-width: 600px;
    margin: 0 auto;
}

/* Avatar */
.support-avatar-wrapper {
    margin-bottom: 0px;
}

.support-avatar {
    width: 109px;
    height: 150px;
    display: block;
}

/* Title */
.support-title {
    font-size: 64px;
    font-weight: 600;
    color: #282828;
    margin: 0 0 60px 0;
    text-align: center;
}

/* Form */
.support-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Form Group */
.form-group {
    position: relative;
    width: 100%;
}

/* Form Input */
.form-input {
    width: 100%;
    font-size: 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #000000;
    background: transparent;
    border: none;
    border-bottom: 1px solid #282828;
    padding: 8px 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: #0066CC;
}

/* Textarea */
.form-textarea {
    resize: none;
    min-height: 40px;
}

/* Form Label */
.form-label {
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 30px;
    color: #4D4D4D;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Label Effect */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -24px;
    font-size: 18px;
    color: #0066CC;
}

/* Send Button */
.send-button {
    width: 160px;
    height: 50px;
    margin: 20px auto 0;
    font-size: 24px;
    color: white;
    background: #005BD8;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.send-button:hover {
    background: #0068F8;
    transform: scale(1.05);
}

.send-button:active {
    transform: scale(0.95);
}

/* Support form message */
.support-message {
    display: block;
    font-size: 16px;
    margin-top: 16px;
    text-align: center;
    min-height: 1.5em;
}

.support-message.error {
    color: #c00;
}

.support-message.success {
    color: #0066CC;
}

.send-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 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 */

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

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

    /* Hero Section */
    .hero-section {
        padding: 120px 20px 20px;
    }

    .logotype {
        width: 80px;
        margin-bottom: 24px;
    }

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

    .separator-main {
        width: 90%;
    }

    /* Content */
    .content-wrapper {
        padding: 0 20px;
    }

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

    .about-description {
        font-size: 22px;
    }

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

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

    .ceo-avatar {
        width: 48px;
        height: 59px;
    }

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

    .contact-label,
    .contact-email {
        font-size: 22px;
    }

    /* Basement */
    .separator {
        width: 90%;
    }

    .basement-footer {
        width: 90%;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Mobile - 480px */
@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;
    }

    /* Support Section */
    .support-section {
        padding: 120px 15px 100px;
        max-width: 90%;
    }

    .support-avatar {
        width: 114px;        
        height: 153px;
    }

    .support-title {
        font-size: 66px;       
        margin-bottom: 40px;
    }

    /* Form */
    .support-form {
        gap: 30px;             
    }

    .form-input {
        font-size: 24px;       
        padding: 6px 0;
    }

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

    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
        top: -22px;
        font-size: 16px;       
    }

    .send-button {
        width: 140px;         
        height: 45px;          
        font-size: 20px;       
        margin-top: 15px;
        font-weight: normal;
    }

    /* 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;
    }
}

/* Small Mobile - 360px */
@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;
    }

    /* Support Section */
    .support-section {
        padding: 124px 10px 100px;
        max-width: 95%;
    }

    .support-avatar {
        width: 96px;        
        height: 127px;        
    }

    .support-title {
        font-size: 55px;       
        margin-bottom: 30px;
    }

    /* Form */
    .support-form {
        gap: 25px;             
    }

    .form-input {
        font-size: 20px;      
        padding: 5px 0;
    }

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

    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
        top: -20px;
        font-size: 14px;      
    }

    .send-button {
        width: 125px;         
        height: 38px;         
        font-size: 20px;       
        margin-top: 12px;
        font-weight: normal;
    }

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

    .separator {
        width: 300px;
        height: 1px;
        background-color: #282828;
    }

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

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

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