header {
    padding: 0.45rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

header .head_teach {
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

header .top_master {
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

header .site-logo {
    width: 88px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

header .top_master:hover .site-logo {
    transform: scale(1.02);
}

header .main_info {
    margin-top: 0;
    width: auto;
    max-width: none;
    flex: 1;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

header .header_base {
    padding: 0.35rem 0.7rem;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

header .header_base:hover {
    transform: translateY(-1px);
}

header .menu_toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 2;
    flex-shrink: 0;
}

header .menu_toggle_bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header .menu_toggle[aria-expanded="true"] .menu_toggle_bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

header .menu_toggle[aria-expanded="true"] .menu_toggle_bar:nth-child(2) {
    opacity: 0;
}

header .menu_toggle[aria-expanded="true"] .menu_toggle_bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.contest_info .footer_workshops a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contest_info .footer_workshops a:hover {
    color: rgb(203, 212, 198);
}

.contest_info .footer_contact {
    margin-top: 1rem;
}

.info_hub .msg_info p {
    color: #000000;
    font-size: 18px;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.info_hub .msg_info a {
    color: rgb(203, 212, 198);
    text-decoration: none;
    font-weight: 600;
}

.info_hub .msg_info a:hover {
    color: rgb(168, 179, 161);
    text-decoration: underline;
}

.contact_box form input[type="tel"],
.contact_box form input[type="email"] {
    width: 100%;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 20px;
    position: relative;
    border-radius: 10px;
    font-size: 12px;
    color: #000000;
    background: rgb(237, 239, 234);
}

.contact_box form input[type="tel"]:focus,
.contact_box form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(203, 212, 198, 0.1);
    background: #ffffff;
    border-color: rgb(203, 212, 198);
}

.contact_box .form-phone-error {
    display: block;
    color: #c0392b;
    font-size: 12px;
    margin: -12px 0 12px;
    line-height: 1.4;
}

@media (max-width: 991px) {
    header .site-logo {
        width: 80px;
    }

    header .header_base {
        padding: 0.32rem 0.6rem;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    header {
        padding: 0.35rem 0;
    }

    header .head_teach {
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    header .menu_toggle {
        display: flex;
        order: 2;
    }

    header .top_master {
        order: 1;
        padding: 0.15rem 0.35rem;
    }

    header .main_info {
        order: 3;
        display: none;
        flex-direction: column;
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
        margin-top: 0.5rem;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        gap: 0.35rem;
        overflow: visible;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    header .main_info.menu_open {
        display: flex;
    }

    header .header_base {
        width: 100%;
        white-space: normal;
        text-align: left;
        padding: 0.45rem 0.65rem;
        font-size: 13px;
    }

    header .site-logo {
        width: 72px;
    }
}

@media (max-width: 480px) {
    header .site-logo {
        width: 64px;
    }

    header .main_info {
        padding: 0.45rem;
        margin-top: 0.4rem;
    }

    header .menu_toggle {
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    .contact_box form input[type="tel"],
    .contact_box form input[type="email"],
    .contact_box form input[type="text"] {
        padding: 12px 15px;
        margin-bottom: 15px;
        font-size: 16px;
    }

    .privacy_ctrl {
        padding: 15px 12px;
    }

    .cookie_verify {
        font-size: 16px;
        line-height: 1.4;
        white-space: normal;
    }
}
