/*
 * EUROSPACE mobile — перенесено из реального demo.perevod-ekb.ru/demo-v1/
 * Исходные breakpoints/геометрия сохранены.
 * Desktop не меняется.
 */

@media (max-width: 1024px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .es-demo {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .es-demo img,
    .es-demo svg,
    .es-demo video,
    .es-demo iframe {
        max-width: 100%;
        height: auto;
    }

    .es-demo > section > .container {
        width: auto !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    .es-demo-hero__grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 22px !important;
    }

    .es-demo-hero-card {
        width: 100%;
        max-width: none;
    }

    .es-demo-services {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .es-demo-price-layout,
    .es-demo-price-layout--expert {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .es-demo-price-aside,
    .es-demo-order-sidebar {
        position: static !important;
        width: 100%;
        max-width: none;
    }

    .es-demo-trust__grid,
    .es-demo-expertise {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.eurospace-mobile-quickbar {
    display: none;
}

@media (max-width: 991px) {
    .eurospace-demo-header .header_top-panel {
        display: none !important;
    }

    .eurospace-demo-header .eurospace-mobile-quickbar {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid #e5d9d2;
        background: #ffffff;
    }

    .eurospace-demo-header
    .eurospace-mobile-quickbar__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 46px;
        padding: 5px 0;
    }

    .eurospace-demo-header
    .eurospace-mobile-order-link {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        min-height: 34px;
        color: #52291c;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
    }

    .eurospace-demo-header
    .eurospace-mobile-order-link::after {
        content: "↓";
        margin-left: 5px;
        font-size: 15px;
        font-weight: 400;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials li {
        margin: 0;
        padding: 0;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 31px;
        height: 31px;
        border: 1px solid #dfd1c9;
        border-radius: 50%;
        color: #52291c;
        background: #ffffff;
        text-decoration: none;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials img {
        display: block;
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials__max {
        font-size: 8px;
        font-weight: 700;
        line-height: 1;
    }

    .eurospace-demo-header .main-head {
        padding: 0 !important;
        border-bottom: 1px solid #e5d9d2;
        background: #ffffff;
    }

    .eurospace-demo-header
    .main-head .es-main-header-row {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr)
            clamp(78px, 21vw, 102px)
            38px !important;
        column-gap: clamp(5px, 1.8vw, 10px) !important;
        align-items: center !important;
        min-height: 76px !important;
    }

    .eurospace-demo-header
    .es-main-header-logo {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .eurospace-demo-header
    .head-logo .logo,
    .eurospace-demo-header
    .head-logo .logo img {
        display: block;
        width: min(100%, 205px) !important;
        max-width: 100% !important;
        height: auto;
    }

    .eurospace-demo-header
    .es-main-header-ratings {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        align-self: center;
        width: clamp(78px, 21vw, 102px);
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .eurospace-demo-header
    .eurospace-rating-widget {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 1px 4px;
        width: 100%;
        min-width: 0;
        min-height: 35px;
        padding: 4px 6px;
        border: 1px solid #dfd1c9;
        border-radius: 7px;
        color: #52291c !important;
        background: #ffffff;
        text-decoration: none !important;
        box-shadow: none;
    }

    .eurospace-rating-widget__platform {
        min-width: 0;
        font-size: 9px;
        font-weight: 700;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .eurospace-rating-widget__score {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    .eurospace-rating-widget__star {
        color: #d29b26;
        font-size: 11px;
        line-height: 1;
    }

    .eurospace-rating-widget__count {
        grid-column: 1 / -1;
        color: #856d63;
        font-size: 7.5px;
        font-weight: 400;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .eurospace-rating-widget.is-2gis
    .eurospace-rating-widget__platform {
        color: #168f4e;
    }

    .eurospace-rating-widget.is-yandex
    .eurospace-rating-widget__platform {
        color: #d9342b;
    }

    .eurospace-demo-header
    .es-main-nav {
        display: none !important;
    }

    .eurospace-demo-header
    .es-main-header-mobile-actions {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        min-width: 38px;
    }

    .eurospace-demo-header
    .mobile_phone-number {
        display: none !important;
    }

    .eurospace-demo-header
    .hamburger {
        display: inline-flex !important;
        margin-left: auto;
        position: relative;
        z-index: 10070;
        pointer-events: auto !important;
    }

    body .head-nav[data-mobile-menu] {
        position: fixed !important;
        top: var(--eurospace-side-menu-top, 0px) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(88vw, 430px) !important;
        height: auto !important;
        max-height: calc(
            100dvh - var(--eurospace-side-menu-top, 0px)
        ) !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        color: #fff;
        background: #5b2c1e !important;
        z-index: 10050 !important;

        transform: translate3d(105%, 0, 0) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition:
            transform .25s ease,
            opacity .2s ease,
            visibility 0s linear .25s !important;
    }

    body .head-nav[data-mobile-menu].is-open {
        transform: translate3d(0, 0, 0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transition:
            transform .25s ease,
            opacity .2s ease,
            visibility 0s linear 0s !important;
    }

    body .head-nav[data-mobile-menu] .menu_close-btn {
        display: none !important;
    }

    body .head-nav[data-mobile-menu] .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px 24px max(24px, env(safe-area-inset-bottom)) !important;
    }

    body .head-nav[data-mobile-menu] ul {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    body .head-nav[data-mobile-menu] li {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    body .head-nav[data-mobile-menu] li:first-child {
        border-top: 0;
    }

    body .head-nav[data-mobile-menu] a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 10px 0;
        color: rgba(255, 255, 255, .92) !important;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.35;
        text-decoration: none !important;
    }

    body .head-nav[data-mobile-menu] ul ul {
        padding-left: 16px !important;
    }

    body .head-nav[data-mobile-menu]
    .es-python-regions {
        display: flex;
        gap: 8px;
        padding-top: 14px !important;
    }

    body .head-nav[data-mobile-menu]
    .es-python-regions a {
        width: auto;
        min-height: 38px;
        padding: 7px 10px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 6px;
    }

    body .head-nav[data-mobile-menu]
    .es-python-regions a.is-active {
        color: #52291c !important;
        background: #fff;
    }

    .eurospace-mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 10040;
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background: rgba(35, 18, 12, .42);
        transition: opacity .2s ease, visibility 0s linear .2s;
    }

    .eurospace-mobile-menu-overlay.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity .2s ease, visibility 0s;
    }
}

@media (max-width: 767px) {
    .es-demo {
        --mobile-pad: 14px;
    }

    .es-demo > section > .container {
        padding-right: var(--mobile-pad) !important;
        padding-left: var(--mobile-pad) !important;
    }

    .es-demo h1 {
        max-width: none;
        margin-bottom: 10px;
        font-size: clamp(29px, 9vw, 38px) !important;
        line-height: 1.06 !important;
    }

    .es-demo h2 {
        margin-bottom: 5px;
        font-size: clamp(25px, 7.5vw, 31px) !important;
        line-height: 1.08 !important;
    }

    .es-demo h3 {
        font-size: 21px;
        line-height: 1.15;
    }

    .es-demo-kicker {
        margin-bottom: 6px;
        font-size: 11px;
        letter-spacing: .07em;
    }

    .es-demo-hero {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .es-demo-hero__grid {
        gap: 14px !important;
    }

    .es-demo-lead {
        margin-bottom: 14px !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    .es-demo-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        margin-bottom: 12px !important;
    }

    .es-demo .main-btn,
    .es-demo-secondary-btn {
        width: 100%;
        min-width: 0;
        min-height: 44px !important;
        padding: 9px 10px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        text-align: center;
    }

    .es-demo-facts,
    .es-demo-facts--two {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        max-width: none;
    }

    .es-demo-facts > div {
        min-width: 0;
        padding: 8px 7px !important;
        border-radius: 7px;
    }

    .es-demo-facts strong {
        font-size: 14px;
        line-height: 1.15;
    }

    .es-demo-facts span {
        margin-top: 2px;
        font-size: 10px;
        line-height: 1.2;
    }

    .es-demo-hero-card {
        padding: 15px !important;
        border-radius: 9px !important;
        box-shadow: none !important;
    }

    .es-demo-hero-card h2 {
        margin-bottom: 6px;
        font-size: 22px !important;
    }

    .es-demo-hero-card p {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.35;
    }

    .es-demo-hero-card small {
        margin-top: 9px;
        font-size: 12px;
    }

    .es-demo-section,
    .es-demo-section--services {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .es-demo-section-heading,
    .es-demo-section-heading--services {
        display: block !important;
        margin-bottom: 8px !important;
    }

    .es-demo-section-heading p,
    .es-demo-section-heading--services p {
        margin: 2px 0 0 !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .es-demo-services {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .es-demo-service-card {
        min-height: 90px !important;
        padding: 11px 10px !important;
        border-radius: 8px !important;
    }

    .es-demo-service-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .es-demo-service-card__num {
        flex-basis: 25px !important;
        font-size: 11px !important;
    }

    .es-demo-service-card__body {
        min-width: 0;
        padding-right: 8px !important;
    }

    .es-demo-service-card__body strong {
        margin-bottom: 0 !important;
        font-size: 14px !important;
        line-height: 1.18 !important;
        overflow-wrap: anywhere;
    }

    .es-demo-service-card__body span {
        display: none !important;
    }

    .es-demo-service-card__arrow {
        right: 8px !important;
        bottom: 6px !important;
        font-size: 17px !important;
    }

    .es-demo-v1
    .es-demo-hero__content
    > .es-demo-offices {
        width: 100%;
        margin-top: 8px !important;
    }

    .es-demo-offices {
        gap: 8px;
    }

    .es-demo-v1 .es-demo-offices__summary,
    .es-demo-offices__summary {
        min-height: 46px !important;
        padding: 10px 12px !important;
        font-size: 16px !important;
    }

    .es-demo-v1 .es-demo-offices__summary-icon,
    .es-demo-offices__summary-icon {
        width: 20px;
        height: 20px;
        font-size: 21px;
    }

    .es-demo-offices__content {
        padding: 0 8px 8px !important;
    }

    .es-demo-v1 .es-demo-office-card,
    .es-demo-office-card {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 11px 4px !important;
    }

    .es-demo-v1 .es-demo-office-card__head h3,
    .es-demo-office-card__head h3 {
        font-size: 16px !important;
    }

    .es-demo-v1 .es-demo-office-card__details,
    .es-demo-v1 .es-demo-office-card__hours,
    .es-demo-office-card__details,
    .es-demo-office-card__hours {
        font-size: 12px !important;
    }

    .es-demo-v1 .es-demo-office-card__actions,
    .es-demo-office-card__actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .es-demo-v1 .es-demo-office-card__buttons,
    .es-demo-office-card__buttons,
    .es-office-card-main-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .es-demo-v1 .es-demo-office-card__messengers,
    .es-demo-office-card__messengers,
    .es-office-card-messengers {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .es-demo-v1
    .es-demo-office-card__buttons
    .es-demo-office-action,
    .es-demo-office-card__buttons
    .es-demo-office-action {
        width: 100% !important;
        min-height: 40px !important;
        justify-self: stretch !important;
    }

    .es-demo-v1
    .es-demo-office-card__messengers
    .es-demo-office-action.is-messenger,
    .es-demo-office-card__messengers
    .es-demo-office-action.is-messenger {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        border-radius: 8px !important;
        justify-self: stretch !important;
    }

    .es-office-card-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .es-office-card-layout__left,
    .es-office-card-layout__right {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    #online-order {
        scroll-margin-top: 122px;
    }

    .es-demo-order-panel {
        padding: 13px !important;
        border-radius: 8px !important;
    }

    .es-demo-order-grid,
    .es-demo-order-form.is-compact .es-demo-order-grid,
    .es-order-form__grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    .es-demo-order-form input[type="text"],
    .es-demo-order-form input[type="email"],
    .es-demo-order-form input[type="tel"],
    .es-demo-order-form textarea,
    .es-demo-order-form select,
    .es-order-form input,
    .es-order-form textarea,
    .es-order-form select {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px;
        font-size: 16px !important;
        box-sizing: border-box;
    }

    .es-demo-order-form textarea,
    .es-order-form textarea {
        min-height: 96px;
    }

    .es-demo-file-label {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 9px 10px;
        text-align: center;
    }

    .es-demo-order-bottom,
    .es-demo-order-form.is-compact .es-demo-order-bottom {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        margin-top: 11px !important;
    }

    .es-demo-submit,
    .es-order-form .main-btn {
        width: 100% !important;
        min-width: 0 !important;
    }

    .es-demo-consents,
    .es-order-form__check {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .es-demo-news-limit .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .es-demo-trust {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .es-demo-trust__grid,
    .es-demo-expertise {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .es-demo-trust__grid > div,
    .es-demo-expertise article {
        padding: 12px;
    }

    #prices {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .legacy-price-main-tabs,
    .legacy-price-subtabs {
        display: grid !important;
        width: 100% !important;
        gap: 6px !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .legacy-price-main-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .legacy-price-subtabs--translation {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .legacy-price-subtabs--languages {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .legacy-price-subtabs--countries {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .legacy-price-tab {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 7px 6px !important;
        border-radius: 6px !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    .legacy-price-content {
        margin-top: 10px !important;
    }

    .legacy-price-group + .legacy-price-group {
        margin-top: 20px !important;
    }

    .legacy-price-group__title {
        margin: 0 0 8px !important;
        font-size: 21px !important;
        line-height: 1.15 !important;
    }

    .legacy-price-table {
        overflow: hidden !important;
        border: 1px solid #e2d7d0 !important;
        border-radius: 8px !important;
        background: #fff !important;
    }

    .legacy-price-header {
        display: none !important;
    }

    .legacy-price-row,
    .legacy-price-row--stacked {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px 12px !important;
        min-height: 0 !important;
        padding: 13px 12px !important;
        border-bottom: 1px solid #eee6e1 !important;
    }

    .legacy-price-row:last-child {
        border-bottom: 0 !important;
    }

    .legacy-price-name {
        grid-column: 1 / -1 !important;
        min-width: 0 !important;
        color: #52291c !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }

    .legacy-price-name__title {
        font-weight: 600 !important;
    }

    .legacy-price-lines {
        gap: 5px !important;
        margin-top: 6px !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .legacy-price-value {
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        color: #52291c !important;
        background: transparent !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }

    .legacy-price-value--stacked {
        display: grid !important;
        gap: 5px !important;
    }

    .legacy-price-order-cell {
        justify-self: end !important;
        align-self: end !important;
    }

    .legacy-price-order {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        min-height: 38px !important;
        padding: 0 !important;
        color: #52291c !important;
        background: transparent !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    .legacy-price-order b {
        font-size: 26px !important;
        font-weight: 400 !important;
    }

    .legacy-price-row--language {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            auto !important;
        gap: 8px !important;
        padding: 13px 12px !important;
    }

    .legacy-price-row--language
    .legacy-price-name {
        grid-column: 1 / -1 !important;
    }

    .legacy-price-row--language
    .legacy-price-value {
        grid-column: auto !important;
    }

    .legacy-price-row--language
    .legacy-price-value:nth-of-type(1)::before {
        content: "На русский";
        display: block;
        margin-bottom: 3px;
        color: #856d63;
        font-size: 10px;
        font-weight: 400;
        line-height: 1.1;
    }

    .legacy-price-row--language
    .legacy-price-value:nth-of-type(2)::before {
        content: "С русского";
        display: block;
        margin-bottom: 3px;
        color: #856d63;
        font-size: 10px;
        font-weight: 400;
        line-height: 1.1;
    }

    .legacy-price-row--language
    .legacy-price-order-cell {
        grid-column: 3 !important;
    }
}

@media (max-width: 420px) {
    .es-demo {
        --mobile-pad: 11px;
    }

    .es-demo-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .es-demo-hero-card {
        padding: 13px !important;
    }

    .es-demo-facts > div {
        padding: 7px 4px !important;
    }

    .es-demo-facts strong {
        font-size: 13px;
    }

    .es-demo-facts span {
        font-size: 9px;
    }

    .legacy-price-tab {
        font-size: 12px !important;
    }
}

@media (max-width: 390px) {
    .eurospace-demo-header
    .eurospace-mobile-quickbar__inner {
        gap: 5px;
    }

    .eurospace-demo-header
    .eurospace-mobile-order-link {
        font-size: 12px;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials {
        gap: 4px;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials a {
        width: 28px;
        height: 28px;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials img {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 389px) {
    .eurospace-demo-header
    .main-head .es-main-header-row {
        grid-template-columns:
            minmax(0, 1fr)
            78px
            38px !important;
        column-gap: 5px !important;
        min-height: 76px !important;
    }

    .eurospace-demo-header
    .es-main-header-ratings {
        width: 78px !important;
        gap: 3px !important;
    }

    .eurospace-demo-header
    .eurospace-rating-widget {
        min-height: 30px;
        padding: 3px 5px;
        border-radius: 6px;
    }

    .eurospace-rating-widget__platform {
        font-size: 8px;
    }

    .eurospace-rating-widget__score {
        font-size: 11px;
    }

    .eurospace-rating-widget__star {
        font-size: 10px;
    }

    .eurospace-rating-widget__count {
        display: none;
    }

    .eurospace-demo-header
    .head-logo .logo,
    .eurospace-demo-header
    .head-logo .logo img {
        width: min(100%, 180px) !important;
    }

    .es-demo-facts--two {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .legacy-price-row--language {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;
    }

    .legacy-price-row--language
    .legacy-price-order-cell {
        grid-column: 1 / -1 !important;
        justify-self: stretch !important;
    }

    .legacy-price-row--language
    .legacy-price-order {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

@media (max-width: 350px) {
    .es-demo-services {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .legacy-price-main-tabs,
    .legacy-price-subtabs--translation,
    .legacy-price-subtabs--languages,
    .legacy-price-subtabs--countries {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 339px) {
    .eurospace-demo-header
    .main-head .es-main-header-row {
        grid-template-columns:
            minmax(0, 1fr)
            72px
            34px !important;
        column-gap: 4px !important;
    }

    .eurospace-demo-header
    .es-main-header-ratings {
        width: 72px !important;
    }

    .eurospace-demo-header
    .eurospace-rating-widget {
        min-height: 28px;
        padding: 3px 4px;
    }

    .eurospace-rating-widget__platform {
        font-size: 7.5px;
    }

    .eurospace-rating-widget__score {
        font-size: 10px;
    }

    .eurospace-demo-header
    .head-logo .logo,
    .eurospace-demo-header
    .head-logo .logo img {
        width: min(100%, 165px) !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .es-demo-service-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .es-demo a,
    .es-demo button,
    .es-demo summary {
        -webkit-tap-highlight-color: rgba(82, 41, 28, .12);
    }
}
