/* EUROSPACE: общие стили двух тестовых главных */
.es-demo{--brown:#52291c;--dark:#35170f;--cream:#f7f2ee;--line:#e2d7d0;--muted:#786a64;color:var(--brown);background:#fff}.es-demo *{box-sizing:border-box}.es-demo h1,.es-demo h2,.es-demo h3,.es-demo p{margin-top:0}.es-demo h1{max-width:850px;margin-bottom:22px;font-size:clamp(34px,4vw,58px);line-height:1.06;color:var(--dark)}.es-demo h2{margin-bottom:12px;font-size:clamp(28px,3vw,42px);line-height:1.12;color:var(--dark)}.es-demo h3{color:var(--dark)}.es-demo-switch{border-bottom:1px solid var(--line)}.es-demo-switch .container{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:10px;padding-bottom:10px;font-size:14px}.es-demo-switch span{color:var(--muted)}.es-demo-switch a{padding:6px 13px;border:1px solid var(--line);border-radius:999px;text-decoration:none}.es-demo-switch a.is-active{border-color:var(--brown);color:#fff;background:var(--brown)}
.es-demo-hero{padding:54px 0}.es-demo-hero--light{background:radial-gradient(circle at 86% 12%,rgba(122,73,55,.13),transparent 28%),linear-gradient(135deg,#fff 0%,#fbf7f4 62%,#efe5de 100%)}.es-demo-hero--dark{color:#fff;background:linear-gradient(110deg,#2f140d,#6a3827)}.es-demo-hero--dark h1,.es-demo-hero--dark h2,.es-demo-hero--dark .es-demo-lead{color:#fff}.es-demo-hero__grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:48px;align-items:center}.es-demo-kicker{display:block;margin-bottom:12px;color:#885946;font-size:13px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.es-demo-hero--dark .es-demo-kicker,.es-demo-contact-band .es-demo-kicker{color:#dec3b4}.es-demo-lead{max-width:760px;margin-bottom:28px;color:var(--muted);font-size:19px;line-height:1.55}.es-demo-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:32px}.es-demo .main-btn,.es-demo-secondary-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 24px;border-radius:7px;text-decoration:none}.es-demo-secondary-btn{border:1px solid var(--brown);color:var(--brown);background:transparent}.es-demo-hero--dark .es-demo-secondary-btn,.es-demo-contact-band .es-demo-secondary-btn{border-color:rgba(255,255,255,.58);color:#fff}.es-demo-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:760px}.es-demo-facts>div{padding:14px 16px;border:1px solid rgba(90,43,29,.12);border-radius:10px;background:rgba(255,255,255,.65)}.es-demo-facts strong,.es-demo-facts span{display:block}.es-demo-facts span{color:var(--muted);font-size:13px}.es-demo-hero-card{padding:30px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.92);box-shadow:0 16px 45px rgba(90,43,29,.09)}.es-demo-hero-card--dark{border-color:rgba(255,255,255,.18);color:#fff;background:rgba(255,255,255,.08);box-shadow:none}.es-demo-hero-card h2{font-size:27px}.es-demo-hero-card p,.es-demo-hero-card small{color:var(--muted);line-height:1.55}.es-demo-hero-card small{display:block;margin-top:16px}.es-demo-hero-card__label{display:inline-block;margin-bottom:12px;color:#8b5c47;font-size:13px;font-weight:700;text-transform:uppercase}.es-demo-check-list{display:grid;gap:12px;margin:20px 0 0;padding:0;list-style:none}.es-demo-check-list li{position:relative;padding-left:25px}.es-demo-check-list li:before{position:absolute;left:0;content:'✓';color:#e4c6b7}
.es-demo-section{padding:62px 0}.es-demo-section--muted{background:var(--cream)}.es-demo-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.es-demo-section-heading p{max-width:760px;margin-bottom:0;color:var(--muted);line-height:1.5}.es-demo-section-heading>a{flex:0 0 auto;font-weight:700;text-decoration:none}.es-demo-services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.es-demo-service-card{position:relative;display:flex;min-height:154px;padding:22px 18px;border:1px solid var(--line);border-radius:10px;color:var(--brown);background:#fff;text-decoration:none;transition:.2s}.es-demo-service-card:hover{border-color:rgba(82,41,28,.55);color:var(--brown);transform:translateY(-3px);box-shadow:0 14px 28px rgba(90,43,29,.08)}.es-demo-service-card__num{flex:0 0 38px;color:#b89a8b;font-size:13px;font-weight:700}.es-demo-service-card__body{display:block;padding-right:15px}.es-demo-service-card__body strong,.es-demo-service-card__body span{display:block}.es-demo-service-card__body strong{margin-bottom:8px;font-size:17px;line-height:1.25}.es-demo-service-card__body span{color:var(--muted);font-size:14px;line-height:1.45}.es-demo-service-card__arrow{position:absolute;right:16px;bottom:15px;font-size:20px}
.es-demo-price-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;align-items:start}.es-demo-price-layout--expert{grid-template-columns:minmax(0,1fr) 360px}.es-demo-price-browser{position:relative;scroll-margin-top:120px}.es-demo-price-navigation{margin-bottom:18px}.es-demo-price-tabs,.es-demo-price-navigation .price-tabs,.es-demo-price-navigation .price-subtabs,.es-demo-price-navigation .price-languages,.es-demo-price-navigation .price-legalization{display:flex;gap:9px;margin-bottom:12px;overflow-x:auto;padding-bottom:4px}.es-demo-price-tabs a,.es-demo-price-navigation button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:6px;color:var(--brown);background:#fff;white-space:nowrap;text-decoration:none;cursor:pointer}.es-demo-price-tabs a.is-active,.es-demo-price-navigation button.active{border-color:var(--brown);color:#fff;background:var(--brown)}.es-demo-price-navigation .hidden{display:none!important}.es-demo-price-status{min-height:22px;margin-bottom:8px;color:var(--muted);font-size:14px}.es-demo-price-browser.is-loading .es-demo-price-content{opacity:.48;pointer-events:none}.es-demo-price-content{position:relative;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;transition:opacity .2s}.es-demo-price-content.is-clipped{max-height:620px}.es-demo-price-content .container{width:100%!important;max-width:none!important;padding-left:0!important;padding-right:0!important}.es-demo-price-fade{position:absolute;right:0;bottom:0;left:0;height:110px;pointer-events:none;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 82%)}.es-demo-price-aside,.es-demo-order-sidebar{padding:26px;border:1px solid var(--line);border-radius:10px;background:#fff}.es-demo-price-aside{position:sticky;top:20px}.es-demo-price-aside p,.es-demo-order-sidebar>p{color:var(--muted);line-height:1.5}.es-demo-price-aside__contact{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.es-demo-price-aside__contact span,.es-demo-price-aside__contact a{display:block}.es-demo-price-aside__contact span{margin-bottom:6px;color:var(--muted);font-size:13px}.es-demo-price-aside__contact a{font-size:18px;font-weight:700;text-decoration:none}.es-demo-center-action{display:flex;justify-content:center;margin-top:18px}
.es-demo-order-panel{padding:30px;border:1px solid var(--line);border-radius:12px;background:var(--cream)}.es-demo-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.es-demo-order-form.is-compact .es-demo-order-grid{grid-template-columns:1fr;gap:12px}.es-demo-order-form .form-group{margin-bottom:0}.es-demo-order-form .form-control{width:100%}.es-demo-file-label{width:100%;min-height:48px}.es-demo-order-bottom{display:grid;grid-template-columns:auto minmax(280px,1fr);gap:28px;align-items:start;margin-top:22px}.es-demo-order-form.is-compact .es-demo-order-bottom{grid-template-columns:1fr;gap:14px}.es-demo-submit{position:relative;min-width:190px}.es-demo-consents{display:grid;gap:8px}.es-demo-consents label{margin-bottom:0}.es-demo-trust{padding:35px 0;border-top:1px solid var(--line)}.es-demo-trust__grid,.es-demo-expertise{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.es-demo-trust__grid strong,.es-demo-trust__grid span{display:block}.es-demo-trust__grid span{color:var(--muted);font-size:14px}.es-demo-metrics{border-bottom:1px solid var(--line)}.es-demo-metrics__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.es-demo-metrics__grid>div{padding:22px 24px;border-right:1px solid var(--line)}.es-demo-metrics__grid>div:last-child{border-right:0}.es-demo-metrics strong,.es-demo-metrics span{display:block}.es-demo-metrics span{color:var(--muted);font-size:13px}.es-demo-expertise article{padding:24px;border-top:3px solid var(--brown);background:var(--cream)}.es-demo-expertise article>span{display:block;margin-bottom:20px;color:#ad8d7c}.es-demo-expertise p{margin-bottom:0;color:var(--muted);line-height:1.5}.es-demo-contact-band{padding:48px 0;color:#fff;background:var(--dark)}.es-demo-contact-band .container{display:flex;align-items:center;justify-content:space-between;gap:28px}.es-demo-contact-band h2{max-width:780px;margin-bottom:0;color:#fff}.es-demo-contact-band__actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:1200px){.es-demo-services,.es-demo-expertise{grid-template-columns:repeat(2,minmax(0,1fr))}.es-demo-trust__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:992px){.es-demo-hero__grid,.es-demo-price-layout,.es-demo-price-layout--expert{grid-template-columns:1fr}.es-demo-price-aside{position:static}.es-demo-metrics__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.es-demo-contact-band .container{align-items:flex-start;flex-direction:column}}@media(max-width:768px){.es-demo-hero,.es-demo-section{padding:42px 0}.es-demo-section-heading{align-items:flex-start;flex-direction:column}.es-demo-facts,.es-demo-order-grid,.es-demo-order-bottom,.es-demo-services,.es-demo-expertise,.es-demo-trust__grid{grid-template-columns:1fr}.es-demo-order-panel,.es-demo-price-aside,.es-demo-order-sidebar,.es-demo-hero-card{padding:20px}}@media(max-width:520px){.es-demo h1{font-size:34px}.es-demo h2{font-size:28px}.es-demo-lead{font-size:17px}.es-demo-metrics__grid{grid-template-columns:1fr}.es-demo-actions,.es-demo-contact-band__actions{flex-direction:column;align-items:stretch}}


/* v3: постоянные индексируемые подменю прайса */

.es-demo-price-nav-levels {
    display: grid;
    gap: 10px;
}

.es-demo-price-tabs--main {
    margin-bottom: 0 !important;
}

.es-demo-price-submenu-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.es-demo-price-submenu-row__title {
    margin-right: 2px;
    color: var(--brown-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.es-demo-price-submenu-row__divider {
    width: 1px;
    height: 28px;
    margin: 0 4px;
    background: var(--line);
}

.es-demo-price-submenu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.es-demo-price-submenu-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--brown);
    background: #fff;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.es-demo-price-submenu-links a:hover {
    border-color: var(--brown);
    color: var(--brown);
}

.es-demo-price-submenu-links a.is-active {
    border-color: var(--brown);
    color: #fff;
    background: var(--brown);
}

@media (max-width: 992px) {
    .es-demo-price-submenu-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .es-demo-price-submenu-row__divider {
        width: 100%;
        height: 1px;
        margin: 3px 0;
    }
}

@media (max-width: 520px) {
    .es-demo-price-submenu-links {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .es-demo-price-submenu-links a {
        justify-content: flex-start;
        width: 100%;
    }
}


/* v4: исправление переполнения прайса и адаптивной сетки */

.es-demo {
    overflow-x: hidden;
}

.es-demo-price-layout,
.es-demo-price-layout > *,
.es-demo-price-browser,
.es-demo-price-navigation,
.es-demo-price-nav-levels {
    min-width: 0;
}

.es-demo-price-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 290px);
}

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

.es-demo-price-tabs--main {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

.es-demo-price-tabs--main a {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 9px 10px;
    white-space: normal !important;
    text-align: center;
    line-height: 1.2;
}

.es-demo-price-submenu-row--translations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.es-demo-price-submenu-group {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 9px;
    min-width: 0;
    padding: 3px;
}

.es-demo-price-submenu-group + .es-demo-price-submenu-group {
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.es-demo-price-submenu-row--translations .es-demo-price-submenu-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.es-demo-price-submenu-row--translations .es-demo-price-submenu-links a {
    width: 100%;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    white-space: normal;
    text-align: center;
}

.es-demo-price-submenu-row--legalization {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
}

.es-demo-price-submenu-row--legalization .es-demo-price-submenu-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 130px));
    width: 100%;
}

.es-demo-price-submenu-row--legalization .es-demo-price-submenu-links a {
    width: 100%;
}

@media (max-width: 1280px) {
    .es-demo-price-layout,
    .es-demo-price-layout--expert {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-demo-price-aside {
        position: static;
    }

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

@media (max-width: 900px) {
    .es-demo-price-tabs--main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .es-demo-price-submenu-row--translations {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-demo-price-submenu-group + .es-demo-price-submenu-group {
        padding-top: 14px;
        padding-left: 3px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .es-demo-price-submenu-row--legalization {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 9px;
    }
}

@media (max-width: 680px) {
    .es-demo-price-submenu-row--translations .es-demo-price-submenu-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-demo-price-submenu-row--legalization .es-demo-price-submenu-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .es-demo-price-submenu-links a {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .es-demo-price-tabs--main,
    .es-demo-price-submenu-row--legalization .es-demo-price-submenu-links {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* v5: два варианта поведения подменю */

/* Версия 1: Перевод и Легализация не дублируются в верхнем меню. */
.es-demo-price-nav-levels--persistent .es-demo-price-tabs--main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Версия 2: строка появляется только для выбранного раздела. */
.es-demo-price-nav-levels--contextual [data-price-submenu] {
    display: none;
}

.es-demo-price-nav-levels--contextual [data-price-submenu].is-visible {
    display: grid;
    animation: esDemoSubmenuIn .22s ease both;
}

@keyframes esDemoSubmenuIn {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .es-demo-price-nav-levels--persistent .es-demo-price-tabs--main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .es-demo-price-nav-levels--persistent .es-demo-price-tabs--main {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* v6: адрес раздела меняется через History API */
.es-demo-price-browser {
    scroll-margin-top: 18px;
}


/* v8: заголовок выбранного прайса и описание услуги */

.es-demo-price-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
    margin: 8px 0 18px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.es-demo-price-heading__text {
    min-width: 0;
}

.es-demo-price-heading__text .es-demo-kicker {
    margin-bottom: 7px;
}

.es-demo-price-heading h3 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(23px, 2.2vw, 32px);
    line-height: 1.18;
}

.es-demo-price-description {
    width: min(100%, 310px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    overflow: hidden;
}

.es-demo-price-description summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 48px;
    padding: 11px 15px;
    color: var(--brown);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.es-demo-price-description summary::-webkit-details-marker {
    display: none;
}

.es-demo-price-description summary:hover {
    background: rgba(82, 41, 28, .05);
}

.es-demo-price-description__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}

.es-demo-price-description[open]
    .es-demo-price-description__icon {
    transform: rotate(45deg);
}

.es-demo-price-description__body {
    padding: 0 15px 15px;
    border-top: 1px solid var(--line);
}

.es-demo-price-description__body p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 760px) {
    .es-demo-price-heading {
        grid-template-columns: minmax(0, 1fr);
        padding: 17px;
    }

    .es-demo-price-description {
        width: 100%;
        max-width: none;
    }
}


/* v9: компактная кнопка под названием, описание на всю ширину */

.es-demo-price-heading {
    display: block;
    padding: 20px 22px;
}

.es-demo-price-heading__text {
    display: block;
    width: 100%;
}

.es-demo-price-heading h3 {
    max-width: none;
}

.es-demo-price-description {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.es-demo-price-description summary {
    display: inline-flex;
    width: auto;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--brown);
    background: var(--cream);
    font-size: 14px;
    line-height: 1.2;
}

.es-demo-price-description summary:hover {
    border-color: var(--brown);
    background: rgba(82, 41, 28, .06);
}

.es-demo-price-description__icon {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    font-size: 16px;
}

.es-demo-price-description__body {
    width: 100%;
    margin-top: 10px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
}

.es-demo-price-description__body p {
    margin: 0;
}

@media (max-width: 760px) {
    .es-demo-price-heading {
        padding: 17px;
    }

    .es-demo-price-description summary {
        min-height: 32px;
        padding: 5px 9px;
        font-size: 13px;
    }

    .es-demo-price-description__body {
        padding: 14px;
    }
}


/* v10: компактная вертикальная компоновка */

/* Основные секции */
.es-demo-section {
    padding-top: 34px;
    padding-bottom: 34px;
}

.es-demo-section-heading {
    margin-bottom: 18px;
}

.es-demo-section-heading h2 {
    margin-bottom: 6px;
}

.es-demo-section-heading p {
    margin-top: 6px;
}

/* Первый экран */
.es-demo-hero {
    padding-top: 36px;
    padding-bottom: 36px;
}

.es-demo-hero h1 {
    margin-bottom: 14px;
}

.es-demo-lead {
    margin-bottom: 20px;
}

.es-demo-actions {
    margin-bottom: 22px;
}

/* Блок услуг */
.es-demo-services {
    gap: 10px;
}

.es-demo-service-card {
    min-height: 118px;
    padding: 16px 15px;
}

.es-demo-service-card__num {
    flex-basis: 30px;
}

.es-demo-service-card__body strong {
    margin-bottom: 5px;
    font-size: 16px;
}

.es-demo-service-card__body span {
    font-size: 13px;
    line-height: 1.35;
}

.es-demo-service-card__arrow {
    right: 13px;
    bottom: 10px;
}

/* Навигация прайса */
.es-demo-price-tabs {
    margin-bottom: 12px;
}

.es-demo-price-nav-levels {
    gap: 8px;
}

.es-demo-price-submenu-row {
    padding: 8px 10px;
}

.es-demo-price-submenu-row--translations {
    gap: 10px;
}

.es-demo-price-submenu-group {
    gap: 7px;
}

.es-demo-price-submenu-group + .es-demo-price-submenu-group {
    padding-left: 12px;
}

/* Заголовок выбранного прайса */
.es-demo-price-heading {
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 14px 16px;
}

.es-demo-price-heading__text .es-demo-kicker {
    margin-bottom: 4px;
}

.es-demo-price-heading h3 {
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1.12;
}

.es-demo-price-description {
    margin-top: 9px;
}

.es-demo-price-description__body {
    margin-top: 8px;
    padding: 12px 14px;
}

/* Прайс и боковой блок */
.es-demo-price-layout {
    gap: 18px;
}

.es-demo-price-aside,
.es-demo-order-sidebar {
    padding: 20px;
}

.es-demo-price-aside h3,
.es-demo-order-sidebar h3 {
    margin-bottom: 8px;
}

/* Форма */
.es-demo-order-panel {
    padding: 22px;
}

.es-demo-order-grid {
    gap: 13px;
}

.es-demo-order-bottom {
    margin-top: 16px;
}

/* Преимущества и нижние блоки */
.es-demo-trust {
    padding-top: 24px;
    padding-bottom: 24px;
}

.es-demo-metrics__grid > div {
    padding: 16px 20px;
}

.es-demo-expertise {
    gap: 12px;
}

.es-demo-expertise article {
    padding: 18px;
}

.es-demo-expertise article > span {
    margin-bottom: 12px;
}

.es-demo-contact-band {
    padding-top: 32px;
    padding-bottom: 32px;
}

/* Убираем лишнее пространство, которое иногда создают
   вложенные контейнеры старых шаблонов прайса */
.es-demo-price-content > .translation-section_body,
.es-demo-price-content > .translation-section_mod-body,
.es-demo-price-content > .unified-inner_section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.es-demo-price-content > .translation-section_body > .container,
.es-demo-price-content > .translation-section_mod-body > .container,
.es-demo-price-content > .unified-inner_section > .container {
    padding-top: 0 !important;
}

/* Уменьшаем отступ перед самой таблицей */
.es-demo-price-content .translation-section_body,
.es-demo-price-content .translation-section_mod-body,
.es-demo-price-content .unified-inner_section {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .es-demo-section {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .es-demo-hero {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .es-demo-section-heading {
        margin-bottom: 15px;
    }

    .es-demo-service-card {
        min-height: 104px;
        padding: 14px;
    }

    .es-demo-price-heading {
        padding: 13px 14px;
    }

    .es-demo-order-panel,
    .es-demo-price-aside,
    .es-demo-order-sidebar {
        padding: 16px;
    }
}


/* v11: максимально компактный заголовок блока услуг */

.es-demo-section--services {
    padding-top: 18px;
    padding-bottom: 22px;
}

.es-demo-section-heading--services {
    display: block;
    margin: 0 0 8px;
    padding: 0;
}

.es-demo-section-heading--services > div {
    display: block;
    margin: 0;
    padding: 0;
}

.es-demo-section-heading--services h2 {
    display: block;
    margin: 0 0 2px !important;
    padding: 0 !important;
    line-height: 1.08;
}

/* Отключаем декоративные точки/линии и их скрытую высоту
   из основного шаблона сайта. */
.es-demo-section-heading--services h2::before,
.es-demo-section-heading--services h2::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    content: none !important;
}

.es-demo-section-heading--services p {
    display: block;
    max-width: 1100px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35;
}

/* Расстояние от пояснения до карточек оставляем небольшим,
   но визуально различимым. */
.es-demo-section-heading--services + .es-demo-services {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .es-demo-section--services {
        padding-top: 14px;
        padding-bottom: 18px;
    }

    .es-demo-section-heading--services {
        margin-bottom: 6px;
    }

    .es-demo-section-heading--services h2 {
        margin-bottom: 2px !important;
    }

    .es-demo-section-heading--services + .es-demo-services {
        margin-top: 6px;
    }
}


/* v12: только содержательные элементы без служебных подписей */

/* Убираем декоративные точки/линии во всех заголовках демо-страниц. */
.es-demo .es-demo-section-heading h2::before,
.es-demo .es-demo-section-heading h2::after,
.es-demo .es-demo-price-heading h3::before,
.es-demo .es-demo-price-heading h3::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    content: none !important;
}

/* После удаления подписи и пояснения заголовок прайса
   располагается непосредственно над меню. */
.es-demo-section--muted .es-demo-section-heading {
    margin-bottom: 10px;
}

.es-demo-section--muted .es-demo-section-heading h2 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Название выбранного раздела без дополнительной подписи. */
.es-demo-price-heading {
    margin-top: 8px;
    margin-bottom: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.es-demo-price-heading__text .es-demo-kicker {
    display: none !important;
}

.es-demo-price-heading h3 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Удалённые абзацы не должны оставлять пустое место. */
.es-demo-section-heading > div:empty,
.es-demo-section-heading p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
   v13: полноценная мобильная адаптация
   ============================================================ */

.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 a,
.es-demo button,
.es-demo summary,
.es-demo input,
.es-demo textarea,
.es-demo select {
    touch-action: manipulation;
}

/* Планшеты и небольшие ноутбуки */
@media (max-width: 1024px) {
    .es-demo > section > .container,
    .es-demo-switch > .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);
        gap: 22px;
    }

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

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

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

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

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

/* Телефоны */
@media (max-width: 767px) {
    .es-demo {
        --mobile-pad: 14px;
    }

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

    /* Переключатель тестовых версий */
    .es-demo-switch .container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }

    .es-demo-switch span {
        display: none;
    }

    .es-demo-switch a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 38px;
        padding: 6px 8px;
        border-radius: 7px;
        font-size: 12px;
        line-height: 1.15;
        text-align: center;
    }

    /* Типографика */
    .es-demo h1 {
        max-width: none;
        margin-bottom: 10px;
        font-size: clamp(29px, 9vw, 38px);
        line-height: 1.06;
    }

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

    .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;
        padding-bottom: 20px;
    }

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

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

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

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

    .es-demo-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        max-width: none;
    }

    .es-demo-facts > div {
        min-width: 0;
        padding: 8px 7px;
        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;
        border-radius: 9px;
        box-shadow: none;
    }

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

    .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-check-list {
        gap: 7px;
        margin-top: 10px;
        font-size: 14px;
    }

    /* Секции */
    .es-demo-section,
    .es-demo-section--services {
        padding-top: 18px;
        padding-bottom: 18px;
    }

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

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

    /* Карточки услуг: две компактные карточки в ряд */
    .es-demo-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

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

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

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

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

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

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

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

    /* Прайс */
    .es-demo-price-layout {
        gap: 12px;
    }

    .es-demo-price-navigation {
        margin-bottom: 8px;
    }

    .es-demo-price-nav-levels {
        gap: 6px;
    }

    .es-demo-price-tabs--main,
    .es-demo-price-nav-levels--persistent .es-demo-price-tabs--main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .es-demo-price-tabs--main a {
        min-height: 44px;
        padding: 7px 6px;
        border-radius: 6px;
        font-size: 13px;
        line-height: 1.15;
    }

    .es-demo-price-submenu-row,
    .es-demo-price-submenu-row--translations,
    .es-demo-price-submenu-row--legalization {
        padding: 8px;
        border-radius: 7px;
    }

    .es-demo-price-submenu-row--translations {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .es-demo-price-submenu-group {
        gap: 5px;
        padding: 0;
    }

    .es-demo-price-submenu-group + .es-demo-price-submenu-group {
        padding-top: 8px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .es-demo-price-submenu-row__title {
        font-size: 12px;
        line-height: 1.25;
        white-space: normal;
    }

    .es-demo-price-submenu-row--translations
        .es-demo-price-submenu-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .es-demo-price-submenu-row--legalization {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .es-demo-price-submenu-row--legalization
        .es-demo-price-submenu-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .es-demo-price-submenu-links a {
        min-height: 42px;
        padding: 6px 4px;
        border-radius: 5px;
        font-size: 12px;
        line-height: 1.12;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .es-demo-price-status {
        min-height: 0;
        margin: 0;
        font-size: 12px;
    }

    .es-demo-price-heading {
        margin-top: 7px;
        margin-bottom: 8px;
        padding: 11px 12px;
        border-radius: 8px;
    }

    .es-demo-price-heading h3 {
        font-size: 21px;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .es-demo-price-description {
        margin-top: 7px;
    }

    .es-demo-price-description summary {
        min-height: 38px;
        padding: 7px 9px;
        font-size: 13px;
    }

    .es-demo-price-description__body {
        margin-top: 6px;
        padding: 11px;
        font-size: 14px;
    }

    /* Широкие таблицы не растягивают страницу:
       прокручивается только содержимое прайса */
    .es-demo-price-content {
        max-width: 100%;
        border-radius: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .es-demo-price-content table {
        min-width: 620px;
    }

    .es-demo-price-content th,
    .es-demo-price-content td {
        font-size: 14px;
    }

    .es-demo-price-content button,
    .es-demo-price-content .btn-order {
        min-height: 40px;
    }

    /* Боковая карточка после прайса */
    .es-demo-price-aside,
    .es-demo-order-sidebar {
        padding: 14px;
        border-radius: 8px;
    }

    .es-demo-price-aside h3,
    .es-demo-order-sidebar h3 {
        margin-bottom: 6px;
        font-size: 21px;
    }

    .es-demo-price-aside p,
    .es-demo-order-sidebar > p {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.35;
    }

    .es-demo-price-aside__contact {
        margin-top: 12px;
        padding-top: 11px;
    }

    /* Формы */
    .es-demo-order-panel {
        padding: 13px;
        border-radius: 8px;
    }

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

    .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 {
        min-height: 44px;
        font-size: 16px !important;
    }

    .es-demo-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);
        gap: 10px;
        margin-top: 11px;
    }

    .es-demo-submit {
        width: 100%;
        min-width: 0;
    }

    .es-demo-consents {
        gap: 6px;
        font-size: 12px;
        line-height: 1.3;
    }

    /* Новости, преимущества, контакты */
    .es-demo-news-limit .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

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

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

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

    .es-demo-contact-band {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .es-demo-contact-band .container,
    .es-demo-contact-band__actions {
        width: 100%;
    }

    .es-demo-contact-band__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

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

    .es-demo-metrics__grid > div {
        padding: 12px;
    }
}

/* Узкие телефоны */
@media (max-width: 420px) {
    .es-demo {
        --mobile-pad: 11px;
    }

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

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

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

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

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

    .es-demo-price-tabs--main,
    .es-demo-price-nav-levels--persistent .es-demo-price-tabs--main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .es-demo-price-submenu-row--translations
        .es-demo-price-submenu-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .es-demo-price-submenu-links a {
        font-size: 11px;
    }

    .es-demo-price-content table {
        min-width: 580px;
    }
}

/* Очень узкие экраны */
@media (max-width: 350px) {
    .es-demo-services {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-demo-price-tabs--main,
    .es-demo-price-nav-levels--persistent .es-demo-price-tabs--main {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-demo-price-submenu-row--translations
        .es-demo-price-submenu-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* На сенсорных устройствах не применяем hover-сдвиги */
@media (hover: none) and (pointer: coarse) {
    .es-demo-service-card:hover {
        transform: none;
        box-shadow: none;
    }

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


/* v14: новый адаптивный карточный прайс */
.es-demo-price-content .es-price-list {
    min-width: 0;
    max-width: 100%;
}

.es-demo-price-content .es-price-card {
    max-width: 100%;
}


/* v15: на мобильном блок перевода показывается первым */

@media (max-width: 767px) {
    .es-demo-price-nav-levels {
        display: flex;
        flex-direction: column;
    }

    .es-demo-price-submenu-row--translations {
        order: 1;
    }

    .es-demo-price-tabs--main {
        order: 2;
    }

    .es-demo-price-submenu-row--legalization {
        order: 3;
    }
}


/* v16: блоки перевода первыми на всех экранах */

.es-demo-price-nav-levels {
    display: flex;
    flex-direction: column;
}

.es-demo-price-submenu-row--translations {
    order: 1;
}

.es-demo-price-tabs--main {
    order: 2;
}

.es-demo-price-submenu-row--legalization {
    order: 3;
}


/* ============================================================
   v17: финальный белый вариант и спокойная типографика прайса
   ============================================================ */

/* Переключатель вариантов больше не используется. */
.es-demo-switch {
    display: none !important;
}

/* Всё меню прайса использует основной шрифт сайта и обычное начертание. */
.es-demo-price-navigation,
.es-demo-price-navigation *,
.es-demo-price-tabs,
.es-demo-price-tabs *,
.es-demo-price-submenu-row,
.es-demo-price-submenu-row *,
.es-demo-price-submenu-group,
.es-demo-price-submenu-group * {
    font-family: inherit !important;
}

.es-demo-price-tabs a,
.es-demo-price-submenu-links a,
.es-demo-price-submenu-row__title {
    font-weight: 400 !important;
}

/* Активная кнопка отличается цветом, но не жирностью. */
.es-demo-price-tabs a.is-active,
.es-demo-price-submenu-links a.is-active {
    font-weight: 400 !important;
}

/* Только название выбранного раздела над прайсом выделяется жирным. */
.es-demo-price-heading h3 {
    font-family: inherit !important;
    font-weight: 700 !important;
}

/* Кнопка описания не конкурирует с названием раздела. */
.es-demo-price-description summary {
    font-family: inherit !important;
    font-weight: 400 !important;
}

/* Карточки прайса: один шрифт и обычное начертание всех данных. */
.es-demo-price-content .es-price-list,
.es-demo-price-content .es-price-list * {
    font-family: inherit !important;
}

.es-demo-price-content .es-price-card__title,
.es-demo-price-content .es-price-card__more,
.es-demo-price-content .es-price-card__description,
.es-demo-price-content .es-price-card__description *,
.es-demo-price-content .es-price-card__price-label,
.es-demo-price-content .es-price-card__price-value,
.es-demo-price-content .es-price-card__price-empty,
.es-demo-price-content .es-price-card__order {
    font-weight: 400 !important;
}

/* Название позиции больше не выглядит как второй заголовок раздела. */
.es-demo-price-content .es-price-card__title {
    font-size: 17px;
    line-height: 1.4;
}

/* Цена сохраняет читаемость без жирного начертания. */
.es-demo-price-content .es-price-card__price-value {
    font-size: 17px;
    line-height: 1.3;
}

/* На телефоне сохраняется та же иерархия. */
@media (max-width: 767px) {
    .es-demo-price-content .es-price-card__title {
        font-size: 16px;
        line-height: 1.4;
    }

    .es-demo-price-content .es-price-card__price-value {
        font-size: 16px;
    }

    .es-demo-price-tabs a,
    .es-demo-price-submenu-links a,
    .es-demo-price-submenu-row__title {
        font-weight: 400 !important;
    }

    .es-demo-price-heading h3 {
        font-weight: 700 !important;
    }
}


/* ============================================================
   v18: упрощение первого экрана и компьютерного меню
   ============================================================ */

#demo-services-v1 {
    scroll-margin-top: 110px;
}

/*
 * На компьютере убираем правый боковой блок первого экрана.
 * На планшете и телефоне он остаётся без изменений.
 */
@media (min-width: 992px) {
    .es-demo-v1 .es-demo-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 980px;
    }

    .es-demo-v1 .es-demo-hero-card {
        display: none !important;
    }

    .es-demo-v1 .es-demo-hero__content {
        width: 100%;
        max-width: 920px;
    }
}

/*
 * Служебный класс ставится JavaScript только на пункты
 * компьютерного меню. Мобильное меню не меняется.
 */
@media (min-width: 992px) {
    .eurospace-desktop-menu-hidden {
        display: none !important;
    }
}


/* v19: когда у позиции несколько условий, каждая строка получает
   собственную цену и кнопку заказа. */
.es-demo-price-content .es-price-card__variant,
.es-demo-price-content .es-price-card__variant * {
    font-family: inherit !important;
}


/* ============================================================
   v21: двухрядная шапка на телефонах и планшетах до 991px
   ============================================================ */

.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 {
        border-bottom: 1px solid #e5d9d2;
        background: #ffffff;
    }

    .eurospace-demo-header .main-head .row {
        min-height: 76px;
    }

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

    .eurospace-demo-header
    .main-head_right-column {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .eurospace-demo-header .hamburger {
        display: inline-flex !important;
        margin-left: auto;
    }
}

@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;
    }
}


/* ============================================================
   v22: адаптация мобильной шапки от 320 px
   ============================================================ */

@media (max-width: 991px) {
    .eurospace-demo-header,
    .eurospace-demo-header * {
        box-sizing: border-box;
    }

    .eurospace-demo-header {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .eurospace-demo-header .container {
        width: 100% !important;
        max-width: none !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-right: clamp(10px, 3.2vw, 20px) !important;
        padding-left: clamp(10px, 3.2vw, 20px) !important;
    }

    .eurospace-demo-header
    .eurospace-mobile-quickbar__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(5px, 2vw, 12px);
        width: 100%;
        min-width: 0;
    }

    .eurospace-demo-header
    .eurospace-mobile-order-link {
        min-width: 0;
        max-width: 100%;
        font-size: clamp(11px, 3.5vw, 14px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials {
        display: grid;
        grid-template-columns: repeat(4, auto);
        gap: clamp(3px, 1.4vw, 7px);
        min-width: 0;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials a {
        width: clamp(26px, 8vw, 32px);
        height: clamp(26px, 8vw, 32px);
        flex: 0 0 auto;
    }

    .eurospace-demo-header
    .eurospace-mobile-socials img {
        width: clamp(14px, 4.2vw, 17px);
        height: clamp(14px, 4.2vw, 17px);
    }

    .eurospace-demo-header
    .eurospace-mobile-socials__max {
        font-size: clamp(7px, 2.2vw, 8px);
    }

    .eurospace-demo-header .main-head .container,
    .eurospace-demo-header .main-head .row {
        width: 100%;
        max-width: 100%;
    }

    .eurospace-demo-header .main-head .row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .eurospace-demo-header .main-head .row > div {
        width: auto !important;
        max-width: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        flex: none !important;
    }

    .eurospace-demo-header .head-logo {
        min-width: 0;
        max-width: 100%;
    }

    .eurospace-demo-header .head-logo .logo {
        display: block;
        width: min(100%, 230px);
        max-width: 100%;
    }

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

    .eurospace-demo-header .main-head_right-column {
        min-width: 42px;
        width: auto !important;
    }

    .eurospace-demo-header .hamburger {
        flex: 0 0 auto;
        margin: 0 !important;
    }
}

/* Обычные телефоны: Realme, Redmi, Samsung и аналоги */
@media (max-width: 389px) {
    .eurospace-demo-header
    .eurospace-mobile-quickbar__inner {
        min-height: 42px;
    }

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

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

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

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

    .eurospace-demo-header .main-head .row {
        min-height: 68px;
    }

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

/* Узкие телефоны 320–359 px */
@media (max-width: 359px) {
    .eurospace-demo-header .container {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

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

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

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

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

    .eurospace-demo-header
    .eurospace-mobile-socials__max {
        font-size: 6.5px;
    }

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

    .eurospace-demo-header .main-head_right-column {
        min-width: 38px;
    }

    .eurospace-demo-header .hamburger-box {
        transform: scale(.88);
        transform-origin: center right;
    }
}

/* Минимально поддерживаемая ширина 320 px */
@media (max-width: 329px) {
    .eurospace-demo-header
    .eurospace-mobile-order-link {
        white-space: normal;
        line-height: 1.05;
    }

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

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

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


/* ============================================================
   v23: шапка присутствует непосредственно в DOM
   ============================================================ */

@media (max-width: 991px) {
    .ui-header.eurospace-demo-header
    > .eurospace-mobile-quickbar[hidden] {
        display: none !important;
    }

    .ui-header.eurospace-demo-header
    > .eurospace-mobile-quickbar:not([hidden]) {
        display: block !important;
    }

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


/* ============================================================
   v24: поля без внутреннего текста и без автозаливки браузера
   ============================================================ */

.es-demo-order-form input::placeholder,
.es-demo-order-form textarea::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.es-demo-order-form input:-webkit-autofill,
.es-demo-order-form input:-webkit-autofill:hover,
.es-demo-order-form input:-webkit-autofill:focus,
.es-demo-order-form textarea:-webkit-autofill,
.es-demo-order-form textarea:-webkit-autofill:hover,
.es-demo-order-form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #52291c !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 9999s ease-out 0s !important;
}


/* ============================================================
   v25: заливка только внутри полей формы
   ============================================================ */

/* Убираем общий бежевый контейнер формы. */
.es-demo #demo-order-v1 .es-demo-order-panel {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Сама форма также остаётся прозрачной. */
.es-demo #demo-order-v1 .es-demo-order-form {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Заливка применяется только непосредственно к полям. */
.es-demo #demo-order-v1 .es-demo-order-form input[type="text"],
.es-demo #demo-order-v1 .es-demo-order-form input[type="email"],
.es-demo #demo-order-v1 .es-demo-order-form input[type="tel"],
.es-demo #demo-order-v1 .es-demo-order-form textarea,
.es-demo #demo-order-v1 .es-demo-order-form select {
    border: 1px solid #a98a7d !important;
    border-radius: 8px !important;
    color: var(--brown) !important;
    background: var(--cream) !important;
    box-shadow: none !important;
}

/* Поле загрузки файла визуально относится к остальным полям. */
.es-demo #demo-order-v1 .es-demo-file-label {
    border: 1px dashed #a98a7d !important;
    border-radius: 8px !important;
    color: var(--brown) !important;
    background: var(--cream) !important;
}

/* Список загруженных файлов не получает общую заливку формы. */
.es-demo #demo-order-v1 .upload-message_box {
    background: transparent !important;
}

/* Чекбоксы и кнопка располагаются без фоновой подложки. */
.es-demo #demo-order-v1 .es-demo-order-bottom,
.es-demo #demo-order-v1 .es-demo-consents {
    background: transparent !important;
}

/* Браузерное автозаполнение сохраняет заливку только поля. */
.es-demo #demo-order-v1
.es-demo-order-form input:-webkit-autofill,
.es-demo #demo-order-v1
.es-demo-order-form input:-webkit-autofill:hover,
.es-demo #demo-order-v1
.es-demo-order-form input:-webkit-autofill:focus,
.es-demo #demo-order-v1
.es-demo-order-form textarea:-webkit-autofill,
.es-demo #demo-order-v1
.es-demo-order-form textarea:-webkit-autofill:hover,
.es-demo #demo-order-v1
.es-demo-order-form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--brown) !important;
    box-shadow: 0 0 0 1000px var(--cream) inset !important;
}

/* Те же правила на телефонах и планшетах. */
@media (max-width: 991px) {
    .es-demo #demo-order-v1 .es-demo-order-panel {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .es-demo #demo-order-v1 .es-demo-order-form {
        background: transparent !important;
    }
}


/* v26: описание полностью заменяет кнопку */
.es-demo-price-description[open] > summary {
    display: none !important;
}

.es-demo-price-description[open]
.es-demo-price-description__body {
    display: block;
    width: 100%;
    margin-top: 0;
}

.es-demo-price-description__body
[data-price-description-content] {
    color: var(--brown);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.es-demo-price-description__body
[data-price-description-content] p {
    margin: 0 0 12px;
}

.es-demo-price-description__body
[data-price-description-content] p:last-child {
    margin-bottom: 0;
}

.es-demo-price-description__close {
    display: inline-flex;
    margin-top: 16px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    color: var(--brown);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.es-demo-price-description__close:hover {
    border-bottom-color: transparent;
}

.es-demo-price-description
[data-price-description-map] {
    display: none !important;
}

@media (max-width: 767px) {
    .es-demo-price-description__body
    [data-price-description-content] {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .es-demo-price-submenu-row--legalization
    .es-demo-price-submenu-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ============================================================
   v27: убираем нижний блок вопросов и добавляем callback в мобиле
   ============================================================ */

/* Блок «Остались вопросы?» не показывается на демо-странице. */
body:has(.es-demo-v1) .connection-section {
    display: none !important;
}

/* Кнопка обратного звонка скрыта на компьютере. */
.es-demo-price-aside__callback {
    display: none !important;
}

@media (max-width: 767px) {
    .es-demo-price-aside__contact {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .es-demo-price-aside__contact > span {
        margin: 0;
    }

    .es-demo-price-aside__contact > a[href^="tel:"] {
        margin: 0;
    }

    .es-demo-price-aside__callback {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        margin-top: 3px;
        padding: 10px 14px;
        text-align: center;
    }
}


/* ============================================================
   v28: мобильное боковое меню как меню в подвале
   ============================================================ */

.eurospace-side-accordion {
    display: none;
}

@media (max-width: 991px) {
    body:has(.es-demo-v1) .head-nav {
        padding: 0 !important;
        color: #ffffff;
        background: #5b2c1e !important;
    }

    body:has(.es-demo-v1)
    .head-nav > *:not(.menu_close-btn):not(.eurospace-side-accordion) {
        display: none !important;
    }

    body:has(.es-demo-v1) .head-nav .menu_close-btn {
        z-index: 3;
    }

    body:has(.es-demo-v1) .eurospace-side-accordion {
        display: block;
        width: 100%;
        padding: 70px 0 24px;
    }

    body:has(.es-demo-v1) .eurospace-side-accordion__section {
        width: 100%;
        margin: 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
        color: #ffffff;
        background: transparent;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__section:first-child {
        border-top: 1px solid rgba(255, 255, 255, .18);
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__title {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 24px;
        align-items: center;
        gap: 14px;
        min-height: 76px;
        padding: 16px 28px;
        color: #ffffff;
        font-family: inherit;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
        list-style: none;
        cursor: pointer;
        user-select: none;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__title::-webkit-details-marker {
        display: none;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__title::marker {
        content: "";
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__arrow {
        position: relative;
        display: block;
        width: 18px;
        height: 18px;
        justify-self: end;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__arrow::before,
    body:has(.es-demo-v1)
    .eurospace-side-accordion__arrow::after {
        content: "";
        position: absolute;
        top: 8px;
        width: 11px;
        height: 3px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__arrow::before {
        left: 0;
        transform: rotate(45deg);
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__arrow::after {
        right: 0;
        transform: rotate(-45deg);
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__section[open]
    .eurospace-side-accordion__arrow::before {
        transform: rotate(-45deg);
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__section[open]
    .eurospace-side-accordion__arrow::after {
        transform: rotate(45deg);
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__body {
        padding: 0 28px 20px;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__menu,
    body:has(.es-demo-v1)
    .eurospace-side-accordion__menu ul {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__menu li {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__menu li:first-child {
        border-top: 0;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__menu a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 10px 0;
        color: rgba(255, 255, 255, .92) !important;
        font-family: inherit;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.35;
        text-decoration: none !important;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__menu a:hover,
    body:has(.es-demo-v1)
    .eurospace-side-accordion__menu a:focus {
        color: #ffffff !important;
    }
}

@media (max-width: 389px) {
    body:has(.es-demo-v1)
    .eurospace-side-accordion__title {
        min-height: 66px;
        padding: 14px 20px;
        font-size: 21px;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__body {
        padding: 0 20px 16px;
    }

    body:has(.es-demo-v1)
    .eurospace-side-accordion__menu a {
        min-height: 44px;
        font-size: 16px;
    }
}

/* На компьютере боковое меню демо не используется. */
@media (min-width: 992px) {
    body:has(.es-demo-v1) .head-nav,
    body:has(.es-demo-v1) .hamburger {
        display: none !important;
    }
}


/* ============================================================
   v29: независимая геометрия бокового меню
   ============================================================ */

@media (max-width: 991px) {
    body:has(.es-demo-v1) .head-nav {
        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;
        min-height: 0 !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;
        background: #5b2c1e !important;
        z-index: 10050 !important;
    }

    body:has(.es-demo-v1)
    .head-nav .eurospace-side-accordion {
        min-height: 100%;
        padding-top: 0 !important;
        padding-bottom: max(
            24px,
            env(safe-area-inset-bottom)
        ) !important;
    }

    body:has(.es-demo-v1) .head-nav .menu_close-btn {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: 100% !important;
        min-height: 56px;
        margin: 0 !important;
        padding: 10px 20px !important;
        background: #5b2c1e !important;
    }

    html.bx-panel-fixed
    body:has(.es-demo-v1) .head-nav,
    body.bx-panel-fixed:has(.es-demo-v1) .head-nav {
        top: var(--eurospace-side-menu-top, 0px) !important;
        max-height: calc(
            100dvh - var(--eurospace-side-menu-top, 0px)
        ) !important;
    }
}

@supports not (height: 100dvh) {
    @media (max-width: 991px) {
        body:has(.es-demo-v1) .head-nav {
            max-height: calc(
                100vh - var(--eurospace-side-menu-top, 0px)
            ) !important;
        }
    }
}


/* ============================================================
   v30: боковая панель открывается только классом is-open
   ============================================================ */

@media (max-width: 991px) {
    /*
     * Закрытое состояние. В предыдущей версии right:0 делал
     * панель постоянно видимой, хотя main.js переключал is-open.
     */
    body:has(.es-demo-v1) .head-nav {
        right: 0 !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;
        will-change: transform;
    }

    body:has(.es-demo-v1) .head-nav.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:has(.es-demo-v1)
    .head-nav .menu_close-btn {
        display: none !important;
    }

    body:has(.es-demo-v1)
    .head-nav .eurospace-side-accordion {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /*
     * Затемнение не должно блокировать кнопку гамбургера в шапке.
     */
    body:has(.es-demo-v1) .ui-header {
        position: relative;
        z-index: 10060;
    }

    body:has(.es-demo-v1) .bg-overlay {
        z-index: 10040 !important;
    }

    body:has(.es-demo-v1) .hamburger {
        position: relative;
        z-index: 10070;
        pointer-events: auto !important;
    }
}


/* ============================================================
   v31: рейтинги 2ГИС и Яндекс между логотипом и бургером
   ============================================================ */

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

@media (max-width: 991px) {
    .eurospace-demo-header
    .main-head .row {
        grid-template-columns:
            minmax(0, 1fr)
            clamp(78px, 21vw, 102px)
            auto !important;
        column-gap: clamp(5px, 1.8vw, 10px) !important;
    }

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

    .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
    .head-logo .logo,
    .eurospace-demo-header
    .head-logo .logo img {
        width: min(100%, 205px) !important;
        max-width: 100% !important;
    }

    .eurospace-demo-header
    .main-head_right-column {
        min-width: 38px !important;
    }
}

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

    .eurospace-demo-header
    .eurospace-mobile-ratings:not([hidden]) {
        width: 78px;
        gap: 3px;
    }

    .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;
    }
}

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

    .eurospace-demo-header
    .eurospace-mobile-ratings:not([hidden]) {
        width: 72px;
    }

    .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;
    }

    .eurospace-demo-header
    .hamburger-box {
        transform: scale(.8);
        transform-origin: center right;
    }
}

@media (min-width: 992px) {
    .eurospace-mobile-ratings {
        display: none !important;
    }
}


/* ============================================================
   v33: полноширинный аккордеон офисов
   ============================================================ */

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

.es-demo-offices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 26px;
}

.es-demo-offices__group {
    width: 100%;
    border: 1px solid rgba(90, 43, 29, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    overflow: hidden;
}

.es-demo-offices__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 14px 18px;
    color: var(--brown);
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.es-demo-offices__summary::-webkit-details-marker {
    display: none;
}

.es-demo-offices__summary::marker {
    content: "";
}

.es-demo-offices__summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    justify-self: end;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}

.es-demo-offices__group[open]
.es-demo-offices__summary-icon {
    transform: rotate(45deg);
}

.es-demo-offices__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 14px 14px;
}

.es-demo-office-card {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        minmax(340px, auto);
    gap: 14px 22px;
    align-items: center;
    padding: 16px;
    border-top: 1px solid rgba(90, 43, 29, .13);
    color: var(--brown);
    background: rgba(255, 255, 255, .7);
}

.es-demo-office-card:first-child {
    border-top: 0;
}

.es-demo-office-card__head {
    min-width: 0;
}

.es-demo-office-card__head h3 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    color: var(--brown);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.es-demo-office-card__star {
    flex: 0 0 auto;
    color: #d29b26;
    font-size: 18px;
}

.es-demo-office-card__details,
.es-demo-office-card__hours {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.es-demo-office-card__actions {
    display: grid;
    grid-template-columns:
        minmax(118px, 1.35fr)
        minmax(96px, 1fr)
        repeat(3, 52px);
    gap: 7px;
    align-items: stretch;
}

.es-demo-office-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #a98a7d;
    border-radius: 7px;
    color: var(--brown) !important;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
}

.es-demo-office-action.is-route,
.es-demo-office-action.is-call {
    white-space: nowrap;
}

.es-demo-office-action.is-call {
    color: #ffffff !important;
    background: var(--brown);
}

.es-demo-office-action.is-messenger {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 11px;
}

.es-demo-office-action:hover {
    color: #ffffff !important;
    background: var(--brown);
}

.es-demo-office-card__phone {
    grid-column: 1 / -1;
    justify-self: start;
    color: var(--brown) !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .es-demo-office-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-demo-office-card__actions {
        grid-template-columns:
            minmax(118px, 1.35fr)
            minmax(96px, 1fr)
            repeat(3, 52px);
    }
}

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

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

    .es-demo-offices__summary {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 17px;
    }

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

    .es-demo-office-card {
        gap: 12px;
        padding: 14px 6px;
    }

    .es-demo-office-card__head h3 {
        font-size: 17px;
    }

    .es-demo-office-card__details,
    .es-demo-office-card__hours {
        font-size: 13px;
    }

    .es-demo-office-card__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .es-demo-office-action.is-messenger {
        min-height: 38px;
    }

    .es-demo-office-action.is-messenger:last-child {
        grid-column: auto;
    }

    .es-demo-office-card__phone {
        font-size: 15px;
    }
}

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

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

    .es-demo-office-action.is-messenger {
        font-size: 10px;
    }

    .es-demo-office-action.is-messenger:last-child {
        grid-column: 1 / -1;
    }
}


/* ============================================================
   v34: офисы сразу под «Пн–Сб», компактные кнопки
   ============================================================ */

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

.es-demo-v1 .es-demo-hero__content {
    width: 100%;
    max-width: none !important;
}

.es-demo-v1 .es-demo-office-card {
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(300px, auto);
    gap: 10px 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.es-demo-v1 .es-demo-office-card__actions {
    grid-template-columns:
        minmax(104px, 1.3fr)
        minmax(78px, .9fr)
        repeat(3, 42px);
    gap: 5px;
}

.es-demo-v1 .es-demo-office-action {
    min-height: 32px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.1;
}

.es-demo-v1
.es-demo-office-action.is-messenger {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 9px;
}

.es-demo-v1 .es-demo-office-card__phone {
    display: none !important;
}

@media (max-width: 1100px) {
    .es-demo-v1 .es-demo-office-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-demo-v1 .es-demo-office-card__actions {
        grid-template-columns:
            minmax(104px, 1.25fr)
            minmax(78px, .9fr)
            repeat(3, 42px);
    }
}

@media (max-width: 767px) {
    .es-demo-v1
    .es-demo-hero__content
    > .es-demo-offices {
        margin-top: 8px !important;
    }

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

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

    .es-demo-v1 .es-demo-office-card {
        gap: 8px;
        padding: 11px 4px;
    }

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

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

    .es-demo-v1 .es-demo-office-card__actions {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
        gap: 4px;
    }

    .es-demo-v1 .es-demo-office-action {
        min-width: 0;
        min-height: 31px;
        padding: 4px;
        font-size: 10px;
        white-space: normal !important;
    }

    .es-demo-v1
    .es-demo-office-action.is-route {
        grid-column: span 2;
    }

    .es-demo-v1
    .es-demo-office-action.is-call {
        grid-column: span 2;
    }

    .es-demo-v1
    .es-demo-office-action.is-messenger {
        font-size: 9px;
    }
}

@media (max-width: 389px) {
    .es-demo-v1 .es-demo-office-card__actions {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .es-demo-v1
    .es-demo-office-action.is-route,
    .es-demo-v1
    .es-demo-office-action.is-call {
        grid-column: auto;
    }

    .es-demo-v1 .es-demo-office-action {
        min-height: 30px;
        font-size: 9.5px;
    }

    .es-demo-v1
    .es-demo-office-action.is-messenger {
        font-size: 8.5px;
    }
}


/* ============================================================
   v35: мессенджеры иконками в один ряд
   ============================================================ */

.es-demo-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

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

.es-demo-v1 .es-demo-office-card__buttons {
    display: grid;
    grid-template-columns: minmax(120px, 1.25fr) minmax(112px, 1fr);
    gap: 6px;
}

.es-demo-v1 .es-demo-office-card__messengers {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 6px;
    justify-content: start;
}

.es-demo-v1 .es-demo-office-action {
    min-height: 32px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.1;
}

.es-demo-v1 .es-demo-office-action.is-messenger {
    position: relative;
    min-width: 44px;
    width: 44px;
    min-height: 34px;
    padding: 4px;
    justify-self: start;
    font-size: 0 !important;
    line-height: 0 !important;
}

.es-demo-v1 .es-demo-office-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: currentColor;
}

.es-demo-v1 .es-demo-office-action__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.es-demo-v1 .es-demo-office-action.is-wa {
    color: #178b4d !important;
}

.es-demo-v1 .es-demo-office-action.is-tg {
    color: #2a82c7 !important;
}

.es-demo-v1 .es-demo-office-action.is-max {
    color: #52291c !important;
}

.es-demo-v1 .es-demo-office-action.is-wa:hover,
.es-demo-v1 .es-demo-office-action.is-tg:hover,
.es-demo-v1 .es-demo-office-action.is-max:hover {
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .es-demo-v1 .es-demo-office-card__buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .es-demo-v1 .es-demo-office-card__messengers {
        grid-template-columns: repeat(3, 42px);
        gap: 5px;
    }

    .es-demo-v1 .es-demo-office-action.is-messenger {
        min-width: 42px;
        width: 42px;
        min-height: 32px;
    }

    .es-demo-v1 .es-demo-office-action__icon {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 389px) {
    .es-demo-v1 .es-demo-office-card__messengers {
        grid-template-columns: repeat(3, 40px);
        gap: 4px;
    }

    .es-demo-v1 .es-demo-office-action.is-messenger {
        min-width: 40px;
        width: 40px;
        min-height: 30px;
        padding: 3px;
    }

    .es-demo-v1 .es-demo-office-action__icon {
        width: 16px;
        height: 16px;
    }
}


/* ============================================================
   v36: две основные кнопки в один ряд,
   WA/TG/MAX — в одну строку на всю ширину
   ============================================================ */

.es-demo-v1 .es-demo-office-card__buttons {
    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__buttons .es-demo-office-action {
    width: 100% !important;
    justify-self: stretch !important;
}

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

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

.es-demo-v1 .es-demo-office-card__messengers .es-demo-office-action__icon {
    width: 20px !important;
    height: 20px !important;
}

@media (max-width: 767px) {
    .es-demo-v1 .es-demo-office-card__buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .es-demo-v1 .es-demo-office-card__buttons .es-demo-office-action {
        min-height: 40px !important;
    }

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

    .es-demo-v1 .es-demo-office-card__messengers .es-demo-office-action.is-messenger {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
    }
}

@media (max-width: 389px) {
    .es-demo-v1 .es-demo-office-card__buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .es-demo-v1 .es-demo-office-card__messengers {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .es-demo-v1 .es-demo-office-card__messengers .es-demo-office-action.is-messenger {
        min-height: 38px !important;
    }
}


/* ============================================================
   v37: реальные иконки WA / TG / MAX
   ============================================================ */

.es-demo-v1 .es-demo-office-action__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.es-demo-v1 .es-demo-office-action.is-wa,
.es-demo-v1 .es-demo-office-action.is-tg,
.es-demo-v1 .es-demo-office-action.is-max {
    color: inherit !important;
}

.es-demo-v1 .es-demo-office-action.is-wa:hover,
.es-demo-v1 .es-demo-office-action.is-tg:hover,
.es-demo-v1 .es-demo-office-action.is-max:hover {
    color: inherit !important;
}


/* ============================================================
   v39: верхний блок равен ширине «Наши услуги» и прайса
   ============================================================ */

@media (min-width: 993px) {
    .es-demo-v1 .es-demo-hero > .container {
        width: 100% !important;
    }

    .es-demo-v1 .es-demo-hero__grid {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    .es-demo-v1 .es-demo-hero__content {
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
    }

    .es-demo-v1 .es-demo-hero h1,
    .es-demo-v1 .es-demo-lead,
    .es-demo-v1 .es-demo-facts,
    .es-demo-v1 .es-demo-offices {
        width: 100% !important;
        max-width: none !important;
    }

    .es-demo-v1 .es-demo-section--services {
        position: relative;
        clear: both;
        width: 100%;
    }

    .es-demo-v1
    .es-demo-section--services
    > .container {
        width: 100% !important;
    }
}

/* ============================================================
   v39: липкая карточка «Не нашли документ?»
   ============================================================ */

@media (min-width: 993px) {
    .es-demo-v1 #demo-prices-v1,
    .es-demo-v1 #demo-prices-v1 > .container,
    .es-demo-v1 #demo-prices-v1 .es-demo-price-layout {
        overflow: visible !important;
    }

    .es-demo-v1 #demo-prices-v1 .es-demo-price-layout {
        align-items: start !important;
    }

    .es-demo-v1 #demo-prices-v1 .es-demo-price-layout > div {
        min-width: 0;
    }

    .es-demo-v1 #demo-prices-v1 .es-demo-price-aside {
        position: sticky !important;
        top: var(--eurospace-price-aside-top, 20px) !important;
        align-self: start !important;
        height: max-content;
        max-height: calc(
            100vh - var(--eurospace-price-aside-top, 20px) - 16px
        );
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 5;
    }
}

@supports (height: 100dvh) {
    @media (min-width: 993px) {
        .es-demo-v1 #demo-prices-v1 .es-demo-price-aside {
            max-height: calc(
                100dvh
                - var(--eurospace-price-aside-top, 20px)
                - 16px
            );
        }
    }
}

@media (max-width: 992px) {
    .es-demo-v1 #demo-prices-v1 .es-demo-price-aside {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}


/* ============================================================
   v40: выравнивание кнопки и sticky-блок без внутреннего скролла
   ============================================================ */

.es-demo-v1 #demo-prices-v1 .es-demo-price-aside > .main-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 52px;
    margin: 18px 0 0 !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
    text-align: center;
}

.es-demo-v1 #demo-prices-v1 .es-demo-price-aside__contact {
    margin-top: 18px !important;
}

@media (min-width: 993px) {
    .es-demo-v1 #demo-prices-v1 .es-demo-price-aside {
        position: sticky !important;
        top: var(--eurospace-price-aside-top, 20px) !important;
        align-self: start !important;
        height: max-content !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 992px) {
    .es-demo-v1 #demo-prices-v1 .es-demo-price-aside > .main-btn {
        min-height: 48px;
        padding: 11px 16px !important;
    }
}


/* ============================================================
   v41: правая карточка едет вместе со списком через transform
   ============================================================ */

.es-demo-v1 #demo-prices-v1 .es-demo-price-layout {
    position: relative;
}

.es-demo-v1 #demo-prices-v1 .es-demo-price-layout > aside.es-demo-price-aside {
    max-width: 100%;
}

.es-demo-v1 #demo-prices-v1 .es-demo-price-aside > .main-btn {
    display: block !important;
    inline-size: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0 0 !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
}

@media (min-width: 993px) {
    .es-demo-v1 #demo-prices-v1 .es-demo-price-aside {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        align-self: start !important;
        height: max-content !important;
        max-height: none !important;
        overflow: visible !important;
        transform: translateY(
            var(--eurospace-price-aside-shift, 0px)
        );
        will-change: transform;
        transition: transform 0.08s linear;
    }
}

@media (max-width: 992px) {
    .es-demo-v1 #demo-prices-v1 .es-demo-price-aside {
        transform: none !important;
    }
}


/* ============================================================
   v42: финальный фикс кнопки внутри правой карточки
   ============================================================ */

.es-demo-v1 #demo-prices-v1 .es-demo-price-aside {
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.es-demo-v1 #demo-prices-v1 .es-demo-price-aside > .main-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    inline-size: calc(100% - 2px) !important;
    width: calc(100% - 2px) !important;
    max-inline-size: calc(100% - 2px) !important;
    max-width: calc(100% - 2px) !important;
    min-width: 0 !important;
    margin: 18px auto 0 !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

@media (max-width: 992px) {
    .es-demo-v1 #demo-prices-v1 .es-demo-price-aside > .main-btn {
        inline-size: 100% !important;
        width: 100% !important;
        max-inline-size: 100% !important;
        max-width: 100% !important;
    }
}


/* ============================================================
   v43: desktop-шапка демо №1
   ============================================================ */

@media (min-width: 992px) {
    .es-demo-desktop-hidden-node {
        display: none !important;
    }

    .eurospace-demo-header .main-head .row {
        display: grid !important;
        grid-template-columns: minmax(240px, auto) auto minmax(0, 1fr) !important;
        align-items: center;
        gap: 22px !important;
    }

    .eurospace-demo-header .head-logo {
        justify-self: start;
        min-width: 0;
    }

    .eurospace-demo-header
    .eurospace-mobile-ratings:not([hidden]) {
        display: inline-flex;
        align-items: stretch;
        gap: 10px;
        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: 2px 8px;
        min-width: 118px;
        min-height: 46px;
        padding: 7px 10px;
        border: 1px solid #dfd1c9;
        border-radius: 10px;
        color: #52291c !important;
        background: #ffffff;
        text-decoration: none !important;
        box-shadow: none;
    }

    .eurospace-demo-header .eurospace-rating-widget__platform {
        font-size: 11px;
        font-weight: 700;
        line-height: 1.05;
        white-space: nowrap;
    }

    .eurospace-demo-header .eurospace-rating-widget__score {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

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

    .eurospace-demo-header .eurospace-rating-widget__count {
        grid-column: 1 / -1;
        color: #856d63;
        font-size: 10px;
        line-height: 1.1;
        white-space: nowrap;
    }

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

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

    .es-demo-desktop-nav {
        display: flex;
        align-items: center;
        gap: 28px;
        min-width: 0;
        flex-wrap: wrap;
        justify-self: start;
    }

    .es-demo-desktop-nav__link,
    .es-demo-desktop-nav__toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        border: 0;
        color: #52291c;
        background: transparent;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none !important;
        cursor: pointer;
        white-space: nowrap;
    }

    .es-demo-desktop-nav__arrow {
        font-size: 15px;
        line-height: 1;
    }

    .es-demo-desktop-about {
        position: relative;
    }

    .es-demo-desktop-nav__dropdown {
        position: absolute;
        top: calc(100% + 14px);
        left: 0;
        z-index: 30;
        display: none;
        min-width: 250px;
        padding: 14px 0;
        border: 1px solid #dfd1c9;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 14px 40px rgba(82, 41, 28, 0.12);
    }

    .es-demo-desktop-about.is-open
    .es-demo-desktop-nav__dropdown {
        display: block;
    }

    .es-demo-desktop-nav__menu,
    .es-demo-desktop-nav__menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .es-demo-desktop-nav__menu > li + li {
        margin-top: 4px;
    }

    .es-demo-desktop-nav__menu a {
        display: block;
        padding: 10px 18px;
        color: #52291c !important;
        font-size: 16px;
        line-height: 1.35;
        text-decoration: none !important;
    }

    .es-demo-desktop-nav__menu a:hover {
        background: #f7f0ec;
    }

    .es-demo-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .es-demo-callback-slot {
        display: inline-flex;
        align-items: center;
        min-height: 0;
    }

    .es-demo-actions .callback-btn.es-demo-header-callback-inline {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        padding: 0 30px !important;
        border: 1px solid #8d6658 !important;
        border-radius: 14px !important;
        color: #52291c !important;
        background: #ffffff !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    .es-demo-actions .callback-btn.es-demo-header-callback-inline:hover {
        background: #f7f0ec !important;
    }
}


/* ============================================================
   v44: исправленная desktop-шапка
   логотип | рейтинги | меню
   ============================================================ */

@media (min-width: 992px) {
    .eurospace-demo-header .main-head .row {
        display: grid !important;
        grid-template-columns:
            minmax(255px, auto)
            minmax(250px, auto)
            minmax(360px, 1fr) !important;
        align-items: center !important;
        gap: clamp(18px, 2.5vw, 42px) !important;
        min-height: 94px;
    }

    .eurospace-demo-header
    .main-head .row
    > .es-demo-desktop-logo-slot {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-self: start;
        min-width: 0;
    }

    .eurospace-demo-header
    .es-demo-desktop-logo-slot
    .head-logo,
    .eurospace-demo-header
    .es-demo-desktop-logo-slot
    .logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .eurospace-demo-header
    .main-head .row
    > .eurospace-mobile-ratings.es-demo-desktop-ratings {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: stretch;
        gap: 10px;
        width: auto !important;
        min-width: 250px;
        justify-self: start;
    }

    .eurospace-demo-header
    .main-head .row
    > .es-demo-desktop-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-self: start;
        align-items: center;
        gap: clamp(22px, 2.2vw, 38px);
        min-width: 0;
    }

    .eurospace-demo-header
    .main-head .row
    > .es-demo-desktop-hidden-node {
        display: none !important;
    }

    .eurospace-demo-header
    .es-demo-desktop-ratings
    .eurospace-rating-widget {
        display: grid !important;
        min-width: 118px;
    }

    .eurospace-demo-header
    .es-demo-desktop-nav__link,
    .eurospace-demo-header
    .es-demo-desktop-nav__toggle {
        display: inline-flex !important;
    }
}

@media (min-width: 992px) and (max-width: 1300px) {
    .eurospace-demo-header .main-head .row {
        grid-template-columns:
            minmax(220px, auto)
            minmax(220px, auto)
            minmax(330px, 1fr) !important;
        gap: 16px !important;
    }

    .eurospace-demo-header
    .main-head .row
    > .eurospace-mobile-ratings.es-demo-desktop-ratings {
        min-width: 220px;
        gap: 6px;
    }

    .eurospace-demo-header
    .es-demo-desktop-ratings
    .eurospace-rating-widget {
        min-width: 105px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .eurospace-demo-header
    .es-demo-desktop-nav {
        gap: 20px;
    }

    .eurospace-demo-header
    .es-demo-desktop-nav__link,
    .eurospace-demo-header
    .es-demo-desktop-nav__toggle {
        font-size: 17px;
    }
}


/* ============================================================
   v45: нормальный размер логотипа в desktop-шапке
   ============================================================ */

@media (min-width: 992px) {
    .eurospace-demo-header .main-head .row {
        grid-template-columns:
            clamp(260px, 17vw, 340px)
            minmax(250px, auto)
            minmax(360px, 1fr) !important;
        min-height: 122px !important;
    }

    .eurospace-demo-header
    .main-head .row
    > .es-demo-desktop-logo-slot {
        width: clamp(260px, 17vw, 340px) !important;
        min-width: clamp(260px, 17vw, 340px) !important;
        max-width: 340px !important;
        align-self: center;
    }

    .eurospace-demo-header
    .es-demo-desktop-logo-slot
    .head-logo {
        width: 100% !important;
        max-width: none !important;
    }

    .eurospace-demo-header
    .es-demo-desktop-logo-slot
    .head-logo .logo,
    .eurospace-demo-header
    .es-demo-desktop-logo-slot
    .head-logo .logo img {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        height: auto !important;
        transform: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1300px) {
    .eurospace-demo-header .main-head .row {
        grid-template-columns:
            250px
            minmax(215px, auto)
            minmax(320px, 1fr) !important;
        min-height: 112px !important;
    }

    .eurospace-demo-header
    .main-head .row
    > .es-demo-desktop-logo-slot {
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }
}

/* ============================================================
   v49: максимально компактный прайс без длинного вертикального скролла
   ============================================================ */

.es-demo-price-content .es-price-list {
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 370px), 1fr)
    ) !important;
    align-items: start;
    gap: 8px !important;
}

.es-demo-price-content .es-price-card {
    align-self: start;
    padding: 12px 14px !important;
    border-radius: 8px !important;
}

.es-demo-price-content .es-price-card__title {
    font-size: 17px !important;
    line-height: 1.28 !important;
}

.es-demo-price-content .es-price-card__footer {
    gap: 8px !important;
    margin-top: 9px !important;
    padding-top: 9px !important;
}

.es-demo-price-content .es-price-card__price,
.es-demo-price-content .es-price-card__variant-price {
    min-width: 92px !important;
    min-height: 36px !important;
    padding: 5px 9px !important;
}

.es-demo-price-content .es-price-card__price-value,
.es-demo-price-content .es-price-card__variant-price-value {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

.es-demo-price-content .es-price-card__order {
    min-width: 112px !important;
    min-height: 38px !important;
    padding: 7px 11px !important;
    font-size: 14px !important;
}

.es-demo-price-content .es-price-card__details > summary,
.es-demo-price-content .es-price-card__details > summary * {
    font-family: inherit !important;
    font-weight: 400 !important;
}

.es-demo-price-content .es-price-card__description,
.es-demo-price-content .es-price-card__variant-text {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

@media (max-width: 767px) {
    .es-demo-price-content .es-price-list {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    .es-demo-price-content .es-price-card {
        padding: 10px 11px !important;
        border-radius: 7px !important;
    }

    .es-demo-price-content .es-price-card__title {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    .es-demo-price-content .es-price-card__footer {
        gap: 6px !important;
        margin-top: 7px !important;
        padding-top: 7px !important;
    }

    .es-demo-price-content .es-price-card__price,
    .es-demo-price-content .es-price-card__variant-price {
        min-width: 78px !important;
        min-height: 34px !important;
        padding: 4px 7px !important;
    }

    .es-demo-price-content .es-price-card__price-value,
    .es-demo-price-content .es-price-card__variant-price-value {
        font-size: 15px !important;
    }

    .es-demo-price-content .es-price-card__order {
        min-width: 102px !important;
        min-height: 36px !important;
        padding: 6px 9px !important;
        font-size: 13px !important;
    }

    .es-demo-price-content .es-price-card__description,
    .es-demo-price-content .es-price-card__variant-text {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
}

/* ============================================================
   v50: максимально компактный раскрытый прайс
   ============================================================ */
.es-demo-price-content .translation-section_body,
.es-demo-price-content .translation-section_mod-body,
.es-demo-price-content .unified-inner_section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.es-demo-price-content .translation-section_body > .container,
.es-demo-price-content .translation-section_mod-body > .container,
.es-demo-price-content .unified-inner_section > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.es-demo-price-content .unified_text-box,
.es-demo-price-content .unified_text-box_other,
.es-demo-price-content .unified_text-box_lower {
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.es-demo-price-content .unified_text-box:last-child,
.es-demo-price-content .unified_text-box_other:last-child,
.es-demo-price-content .unified_text-box_lower:last-child {
    margin-bottom: 0 !important;
}

.es-demo-price-content .section-title,
.es-demo-price-content .section-title.h3-mod,
.es-demo-price-content .section-title.tops {
    margin: 0 0 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.es-demo-price-content .es-price-list {
    gap: 6px !important;
}

.es-demo-price-content .es-price-card {
    margin: 0 !important;
}

@media (max-width: 767px) {
    .es-demo-price-content .unified_text-box,
    .es-demo-price-content .unified_text-box_other,
    .es-demo-price-content .unified_text-box_lower {
        margin-bottom: 12px !important;
    }

    .es-demo-price-content .section-title,
    .es-demo-price-content .section-title.h3-mod,
    .es-demo-price-content .section-title.tops {
        margin-bottom: 8px !important;
    }
}


/* ============================================================
   v51: прайс строго в один столбец на всех экранах
   ============================================================ */
.es-demo-price-content .es-price-list {
    grid-template-columns: minmax(0, 1fr) !important;
}
