html,
body {
    background-color: #20213E !important;
}

.oganov-widget {
    border: 1px dashed #c8c8c8;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.oganov-widget__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Force light background for multilingual key marketing blocks. */
.elementor-element:has(.elementor-widget-oganov-feedback),
.elementor-element:has(.elementor-widget-oganov-gold-visa-block),
.elementor-element:has(.elementor-widget-oganov-contact-form-main),
.elementor-element:has(.elementor-widget-oganov-cta) {
    background-color: #f6f6fa !important;
    background-image: none !important;
}

.elementor-element:has(.elementor-widget-oganov-services-list) {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Global accordion hardening for multilingual home/FAQ sections */
.accord-item h2,
.accord-item p {
    overflow-wrap: anywhere;
}

.accord-item .elementor-heading-title,
.accord-item .elementor-heading-title span,
.accord-item h2,
.accord-item h2 span {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
}

.accord-item h2 {
    font-size: clamp(30px, 2.4vw, 56px);
    line-height: 1.05;
}

.accord-toggle .icon-closed,
.accord-toggle .icon-open {
    width: 56px !important;
    height: 56px !important;
}

/* Keep FAQ open/close icon buttons identical on mobile across locales/pages. */
.accord-toggle {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    flex: 0 0 56px !important;
}

.accord-toggle .icon-closed,
.accord-toggle .icon-open,
.accord-toggle .icon-closed.elementor-widget-mobile__width-auto,
.accord-toggle .icon-closed.elementor-widget-mobile__width-initial,
.accord-toggle .icon-open.elementor-widget-mobile__width-auto,
.accord-toggle .icon-open.elementor-widget-mobile__width-initial {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    flex: 0 0 56px !important;
}

html[lang^="hy"] .elementor-widget-heading .elementor-heading-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

html[lang^="hy"] .accord-item h2 {
    font-size: clamp(22px, 5.8vw, 42px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html[lang^="hy"] .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(34px, 9vw, 72px) !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html[lang^="hy"] .elementor-widget-heading h1.elementor-heading-title span {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

html[lang^="hy"] .elementor-widget-heading h1.elementor-heading-title .blue {
    display: inline;
    margin-inline-start: 0.2em;
}

/* Services pages should have white canvas in all locales, not global navy background. */
body:has(.elementor-widget-oganov-services-list),
body:has(.elementor-widget-oganov-services-list) #content,
body:has(.elementor-widget-oganov-services-list) .site,
body:has(.elementor-widget-oganov-services-list) .elementor,
body:has(.elementor-widget-oganov-services-list) .elementor-location-single {
    background-color: #ffffff !important;
    background-image: none !important;
}

body:has(.elementor-widget-oganov-services-list) .elementor-element:has(.elementor-widget-oganov-services-list) {
    background-color: #ffffff !important;
}

/* Header mobile row alignment */
@media (max-width: 1024px) {
    .elementor-location-header .elementor-widget-icon-list .elementor-icon-list-items {
        gap: 0 !important;
        row-gap: 0 !important;
    }

    .elementor-location-header .elementor-widget-icon-list .elementor-icon-list-item {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1 !important;
    }

    .elementor-location-header .elementor-widget-icon-list .elementor-icon-list-item + .elementor-icon-list-item {
        margin-top: 2px !important;
    }

    .elementor-location-header .elementor-widget-icon-list .elementor-icon-list-text {
        line-height: 1 !important;
    }

    .elementor-location-header .oganov-language-switcher,
    .elementor-location-header .elementor-widget-oganov-language-switcher {
        align-self: center !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    .elementor-location-header .elementor-widget-oganov-language-switcher {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
    }

    .elementor-location-header .elementor-widget-oganov-language-switcher .elementor-widget-container {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .elementor-location-header .elementor-widget-icon-list {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    /* Header mobile contacts + language switcher alignment (all locales) */
    .elementor-location-header .e-con:has(.elementor-widget-icon-list):has(.elementor-widget-oganov-language-switcher) {
        align-items: center !important;
        gap: 6px !important;
        justify-content: space-between !important;
        display: flex !important;
    }
}
