/* Site chrome is the shared header/footer shell; chrome-audience is its Home/Business navigation.
   Editorial buttons and stored module settings stay independent. */
.chrome-audience {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid #dce5f1;
    border-radius: 9px;
    background: #fff;
}
.chrome-audience .header-type-switcher__option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: var(--ui-ink);
    font: inherit;
    line-height: 18px;
    text-decoration: none;
    cursor: pointer;
}
.chrome-audience .header-type-switcher__option.active,
#header .chrome-audience .header-type-switcher__segment.active {
    --chrome-shade: 0;
    background-image: var(--ui-chrome-gradient);
    background-origin: border-box;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.chrome-audience .header-type-switcher__option.active::after,
#header .chrome-audience .header-type-switcher__segment.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #000;
    opacity: var(--chrome-shade);
    z-index: -1;
    pointer-events: none;
    transition: opacity .15s ease;
}
.chrome-audience .header-type-switcher__option.active:hover,
#header .chrome-audience .header-type-switcher__segment.active:hover { --chrome-shade: .08; }
.chrome-audience .header-type-switcher__option.active:active,
#header .chrome-audience .header-type-switcher__segment.active:active { --chrome-shade: .18; }
.chrome-audience .header-type-switcher__option:not(.active):hover { background: var(--ui-choice-hover); }
.chrome-audience .header-type-switcher__option:focus-visible {
    outline: 2px solid var(--ui-business);
    outline-offset: 2px;
}
#header .chrome-audience .header-type-switcher__segment.active > a {
    background: transparent;
    color: #fff;
}
#header .chrome-desktop-panel.top-panel,
#header .chrome-mobile-panel { background: var(--ui-chrome-surface); }
#header .chrome-mobile-panel { display: none; }
#header .chrome-desktop-panel.top-panel { overflow: visible; }
#header .top-panel .container { gap: 16px; align-items: center; flex-wrap: wrap; }
#header .header-type-navigation { flex-wrap: wrap; gap: 10px; }
#header .telephone-links { flex-wrap: wrap; justify-content: flex-end; }
#header .telephone-links > .link { white-space: nowrap; }
#header .bottom-panel { padding: 24px 0; }
#header .desktop-menu .site-menu { gap: 24px; font-size: 18px; flex-wrap: wrap; }
#header .desktop-menu .site-menu > li { flex-shrink: 0; }
#header .desktop-menu .menu-logo { min-width: 170px; }
#header .desktop-menu .chrome-standard-logo { display: block; }
#header .desktop-menu .btn-chrome { padding: 8px 24px; font-size: 18px; line-height: 24px; white-space: nowrap; }
#header .desktop-menu .site-menu > li > a:not(.btn) { color: #333; white-space: nowrap; font-size: inherit; font-weight: 600; line-height: 1.4; padding: 0; background: transparent; }
#header .desktop-menu .site-menu > li > a:not(.btn):hover { color: var(--ui-business); }
#header .desktop-menu .search-link { min-width: 25px; }
#footer .footer-content { background: #fff; }
#footer .footer-content .container { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(250px, 1.3fr); gap: 40px 28px; }
#footer .footer-links { grid-column: 1 / 5; grid-row: 1 / 4; gap: 24px; }
#footer .footer-content .bottom-nav { flex: 1; min-width: 0; width: auto; }
#footer .footer-content .bottom-nav > .title { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
#footer .footer-mini-block.phone { grid-column: 5; grid-row: 1; grid-template-columns: minmax(0, 1fr) 50px; column-gap: 12px; }
#footer .footer-mini-block.socials { grid-column: 5; grid-row: 2; }
#footer .footer-mini-block.subscribe { grid-column: 5; grid-row: 3 / 5; }
#footer .footer-mini-block.applications { grid-column: 1 / 3; grid-row: 4; }
#footer .footer-mini-block.speedtest { grid-column: 3 / 5; grid-row: 4; }
#footer .footer-mini-block.privacy { grid-column: 1 / 5; grid-row: 5; color: #939393; }
#footer .footer-mini-block.search { display: none; }
#footer .footer-content .title { color: #333; }
#footer .footer-content a:not(.btn) { color: #666; }
#footer .footer-content a:not(.btn):hover,
#footer .footer-content .privacy a { color: var(--ui-business); }
#footer .footer-mini-block.phone .search-link { width: 50px; min-width: 50px; height: 50px; padding: 0; }
#footer .footer-content .btn-chrome:not(.search-link) { min-height: 40px; padding: 8px 22px; font-size: 16px; line-height: 20px; }
#footer .footer-content .btn.speedtest { padding-left: 50px; }
#footer .btn-chrome.search-link::before {
    content: '';
    position: absolute;
    inset: 12px;
    background: url('../img/search/button-header_mobile-v2.svg') center / contain no-repeat;
    pointer-events: none;
}
#footer .footer-mini-block.phone .phone-link { color: #555; }
#footer .footer-content .custom-checkbox input:checked + .custom-check { background: var(--ui-chrome-surface); }
#footer .footer-content .custom-checkbox .custom-check { border-color: var(--ui-chrome-surface); }
#footer .footer-end { background: var(--ui-chrome-surface); }
#footer .footer-end .payments img { filter: grayscale(1) brightness(0) invert(1); }
#footer .footer-end .container { min-height: 46px; }

@media (min-width: 768px) {
    body.site-with-footer { padding-top: 0; }
    #header .chrome-mobile-panel { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    #header .bottom-panel { padding: 16px 0; }
    #header .desktop-menu .site-menu { gap: 14px; font-size: 14px; }
    #header .desktop-menu .menu-logo { min-width: 100px; }
    #header .desktop-menu .chrome-standard-logo { width: 100px !important; height: auto !important; }
    #header .desktop-menu .btn-chrome { padding: 8px 13px; font-size: 16px; line-height: 20px; }
    #header .top-panel .container { gap: 6px 12px; }
    #header .telephone-links { margin-left: auto; gap: 0; }
    #header .telephone-links > .link { padding-left: 8px; padding-right: 8px; font-size: 12px; }
    #header .telephone-links > .telephone { padding-left: 28px; }
    #header .header-subbrand-links__item { padding-left: 6px; padding-right: 6px; font-size: 12px; }
    #header .header-type-switcher__option { padding-left: 9px; padding-right: 9px; font-size: 12px; }
    #footer .footer-content .container { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
    #footer .footer-links { grid-column: 1 / -1; grid-row: 1; }
    #footer .footer-mini-block.phone { display: grid; grid-column: 2; grid-row: 2; grid-template-columns: 1fr 50px; }
    #footer .footer-mini-block.socials { grid-column: 1; grid-row: 2; }
    #footer .footer-mini-block.subscribe { grid-column: 3; grid-row: 2 / 4; }
    #footer .footer-mini-block.applications { grid-column: 1; grid-row: 3; }
    #footer .footer-mini-block.speedtest { grid-column: 2; grid-row: 3; }
    #footer .footer-mini-block.privacy { grid-column: 1 / -1; grid-row: 4; margin: 0; }
    #footer .footer-content .title { font-size: 16px; line-height: 1.5; }
    #footer .footer-mini-block.applications .app-buttons img { height: 30px; }
    #footer .footer-content .btn.speedtest { padding-right: 12px; }
}
@media (max-width: 767px) {
    body.site-with-footer { --chrome-header-height: 74px; padding-top: var(--chrome-header-height); }
    body.site-with-footer.with-1-extra-padding { padding-top: calc(var(--chrome-header-height) + 36px); }
    #header .chrome-desktop-panel { display: none !important; }
    #header .chrome-mobile-panel { display: block; position: fixed; }
    #header .chrome-mobile-panel.chrome-header-hidden { transform: translateY(-100%); }
    #header .mobile-menu__head { min-height: var(--chrome-header-height); padding: 10px 20px; gap: 16px; }
    #header .mobile-menu__logo { flex: 0 0 26px; width: 26px; height: 29px; }
    #header .mobile-menu__logo img { object-fit: contain; }
    #header .mobile-menu__connect-button { flex: 1; min-width: 0; }
    #header .mobile-menu__connect-button .btn-chrome { width: auto; max-width: 100%; padding: 7px 12px; font-size: 16px; line-height: 20px; border-color: #d4e1f3 !important; }
    #header .mobile-menu__icon-links { gap: 22px; }
    #header .mobile-menu__icon-links a { width: 24px; height: 28px; padding: 0; background-position: center; flex-shrink: 0; }
    #header .mobile-menu__burger .line { width: 24px; }
    #header .mobile-menu__body.open {
        height: calc(100vh - var(--chrome-header-height) - var(--smartbanner-header-offset, 0px));
        height: calc(100dvh - var(--chrome-header-height) - var(--smartbanner-header-offset, 0px));
    }
    #header .yamigom-subheader + .mobile-menu__body.open {
        height: calc(100vh - var(--chrome-header-height) - 36px - var(--smartbanner-header-offset, 0px));
        height: calc(100dvh - var(--chrome-header-height) - 36px - var(--smartbanner-header-offset, 0px));
    }
    #footer .footer-content { background: #f5f4f6; padding: 40px 0; }
    #footer .footer-content .container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    #footer .footer-links { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 22px; }
    #footer .footer-content .bottom-nav { width: 100%; margin: 0; flex: auto; }
    #footer .footer-content .bottom-nav .title { font-size: 18px; line-height: 26px; }
    #footer .footer-content .bottom-nav > .title { cursor: pointer; }
    #footer .footer-content .bottom-nav .collapse-toggle { display: block !important; }
    #footer .footer-mini-block.search { display: block; grid-column: 1; grid-row: 2; }
    #footer .footer-mini-block.search form { width: 100%; }
    #footer .footer-mini-block.search input { width: 100%; padding: 12px; border: 1px solid #d1d3d4; border-radius: 8px; font-size: 16px; background: #fff; }
    #footer .footer-mini-block.socials { grid-column: 1; grid-row: 3; }
    #footer .footer-mini-block.speedtest { grid-column: 1; grid-row: 4; }
    #footer .footer-mini-block.subscribe { grid-column: 1; grid-row: 5; }
    #footer .footer-mini-block.applications { grid-column: 1; grid-row: 6; }
    #footer .footer-mini-block.privacy { grid-column: 1; grid-row: 7; margin: 0; }
    #footer .footer-mini-block.phone { display: none; }
    #footer .footer-content .btn-chrome { min-height: 40px; }
    #footer .footer-end .payments { background: #f5f4f6; }
    #footer .footer-end .payments img { filter: none; }
    #footer .footer-end .copyrights { background: var(--ui-chrome-surface); }
}
@media (max-width: 374px) {
    #header .mobile-menu__head { padding-left: 12px; padding-right: 12px; gap: 10px; }
    #header .mobile-menu__icon-links { gap: 14px; }
    #header .mobile-menu__connect-button .btn-chrome { padding-left: 9px; padding-right: 9px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .chrome-audience .header-type-switcher__option.active::after,
    #header .chrome-audience .header-type-switcher__segment.active::after { transition: none; }
}
