.gl-language-switcher {
    display: inline-flex;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #4eae36;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
}

.header-actions {
    align-items: center;
}

.header-actions .header-product-search {
    order: 1;
    min-width: 0;
}

.header-actions .gl-language-switcher {
    order: 2;
}

.header-actions .header-cart {
    order: 3;
    white-space: nowrap;
}

.hero-copy,
.inner-hero,
.partner-hero-copy {
    min-width: 0;
}

html[lang^="hy"] .hero h1,
html[lang^="hy"] .partner-hero h1 {
    font-size: clamp(52px, 5.5vw, 84px);
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

html[lang^="hy"] .inner-hero h1,
html[lang^="hy"] .section h2,
html[lang^="hy"] .content-block h2 {
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.gl-language-link {
    min-width: 42px;
    padding: 9px 12px;
    color: #27312a;
    font: 600 13px/1 Arial, sans-serif;
    text-align: center;
    text-decoration: none;
}

.gl-language-link:hover,
.gl-language-link:focus,
.gl-language-link.is-active {
    color: #fff;
    background: #4eae36;
}

@media (max-width: 767px) {
    .site-header {
        height: auto;
        min-height: 88px;
        padding-top: 14px;
        padding-bottom: 14px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-header .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .site-header .header-actions .header-product-search {
        width: 100%;
        grid-column: 1 / -1;
    }

    .site-header .gl-language-switcher {
        display: inline-flex;
        justify-self: start;
    }

    .site-header .header-cart {
        justify-self: end;
    }

    .gl-language-link {
        min-width: 38px;
        padding: 8px 9px;
    }

    html[lang^="hy"] .hero h1,
    html[lang^="hy"] .partner-hero h1 {
        font-size: 42px;
        line-height: 1.02;
    }
}

@media (max-width: 480px) {
    .site-header .header-actions { grid-template-columns: 1fr auto; }
}
