/* ==========================================================================
   Эстика — редизайн kids18.ru (11.11.2026). Шапка, подвал, главная.
   Подключается в common/header.twig после стилей темы Oct Remarket.
   Палитра и шрифты сняты с утверждённого макета главной.
   ========================================================================== */
:root {
    --es-bg: #FBF6EE;
    --es-bg2: #F4ECDF;
    --es-card: #FFFDF9;
    --es-line: #E9DFCF;
    --es-green: #4F6B2E;
    --es-green-2: #5E7C38;
    --es-green-d: #3E5525;
    --es-green-dd: #344720;
    --es-ink: #23301B;
    --es-text: #3B3A32;
    --es-muted: #625F56;
    --es-orange: #F06A1E;
    --es-orange-d: #D9570F;
    --es-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --es-sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --es-r: 16px;
    --es-r-sm: 12px;
    --es-shadow: 0 6px 22px rgba(70, 58, 34, .08);
    --es-shadow-h: 0 12px 30px rgba(70, 58, 34, .14);
}

/* ---------- база ---------- */
body.es {
    background: var(--es-bg);
    color: var(--es-text);
    font-family: var(--es-sans);
    font-size: 15px;
    line-height: 1.5;
    padding: 0;
}
body.es a { color: inherit; }
body.es a:hover { color: var(--es-green); }
.es-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body.es #top.es-anchor { display: block; height: 0; background: none; }
/* у картинок высота из атрибута height — пропорции держим через aspect-ratio */
.es-cat img, .es-card-img img, .es-room img, .es-logo img, .es-f-logo img, .es-promo-fox { height: auto; }
.es-i { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.es-wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 24px; }
.es-h1, .es-h2, .es-h3 { font-family: var(--es-serif); color: var(--es-ink); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.es-h2 { font-size: 36px; line-height: 1.15; }
.es-h3 { font-size: 29px; line-height: 1.12; display: block; }

.es-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--es-green); color: #fff !important; text-decoration: none !important;
    font: 600 16px/1 var(--es-sans);
    padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
    box-shadow: 0 6px 16px rgba(79, 107, 46, .28);
    transition: background .2s, transform .2s;
}
.es-btn:hover { background: var(--es-green-d); transform: translateY(-1px); }
.es-btn .es-i { width: 18px; height: 18px; }
.es-btn-sm { font-size: 14px; padding: 11px 20px; }
.es-more { display: inline-flex; align-items: center; gap: 8px; color: var(--es-green-d) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.es-more .es-i { width: 17px; height: 17px; }
.es-more:hover { color: var(--es-green) !important; }

/* ---------- верхняя полоса ---------- */
.es-topbar { background: var(--es-green-d); color: #F3EEDF; font-size: 14px; }
.es-topbar-in { display: flex; align-items: center; gap: 28px; min-height: 42px; }
.es-tb { display: inline-flex; align-items: center; gap: 8px; color: #F3EEDF !important; text-decoration: none !important; white-space: nowrap; }
.es-tb .es-i { width: 16px; height: 16px; opacity: .9; }
.es-tb-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .35); }
.es-tb-phones { margin-left: auto; display: flex; gap: 26px; }
.es-tb-phone { font-weight: 700; font-size: 16px; }
.es-tb-phone:hover { color: #fff !important; }

/* ---------- шапка ---------- */
body.es header.es-header {
    background: var(--es-bg); border: 0; box-shadow: none; position: relative; z-index: 1030; top: auto; padding: 0; color: var(--es-text);
}
.es-header-in { display: flex; align-items: center; gap: 22px; min-height: 118px; }
.es-brand { display: contents; }
.es-logo, body.es #logo.es-logo { flex: 0 0 auto; position: static; top: auto; left: auto; width: auto; height: auto; z-index: auto; background: none; padding: 0; }
body.es #logo.es-logo { margin: 0; }
body.es #logo.es-logo img { max-height: none; max-width: none; }
.es-logo img { display: block; width: 290px; height: auto; }
.es-tagline { font-size: 13px; line-height: 1.35; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--es-ink); max-width: 200px; }
.es-search { flex: 1 1 260px; min-width: 200px; max-width: 430px; margin-left: auto; }
.es-search .rm-search { margin: 0; position: relative; height: 46px; background: #fff; border: 1px solid var(--es-line); border-radius: 999px; box-shadow: 0 2px 8px rgba(70, 58, 34, .05); }
.es-search #input_search { border: 0; background: transparent; padding: 0 52px 0 22px; font: 400 14.5px var(--es-sans); color: var(--es-ink); border-radius: 999px; outline: 0; }
.es-search #input_search::placeholder { color: #9C978A; }
.es-search #rm-search-button { position: absolute; left: auto; right: 6px; top: 4px; width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 0; }
.es-search #rm-search-button img { filter: brightness(0) saturate(100%) invert(18%) sepia(14%) saturate(1400%) hue-rotate(50deg); }
.es-actions { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.es-act { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--es-ink) !important; font: 500 14px var(--es-sans); text-decoration: none !important; }
.es-act:hover { color: var(--es-green) !important; }
.es-act-ic { position: relative; display: inline-flex; }
.es-act-ic .es-i { width: 25px; height: 25px; }
.es-badge { position: absolute; top: -9px; right: -11px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--es-green); color: #fff; font: 700 11px/19px var(--es-sans); text-align: center; }
.es-badge.is-empty, .es-badge:empty { display: none; }
.es-act-search { display: none; }
.es-burger { display: none; background: none; border: 0; padding: 6px; color: var(--es-ink); }
.es-burger .es-i { width: 30px; height: 30px; }
body.es button#cart.es-act { display: inline-flex !important; position: static; height: auto; width: auto; min-width: 0; line-height: normal; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 4px 0; font-weight: 500; font-size: 14px; color: var(--es-ink); }

/* ---------- зелёное меню ---------- */
.es-nav { background: transparent; position: relative; z-index: 1025; }
.es-nav-in { width: calc(100% - 48px); max-width: 1264px; position: relative; display: flex; align-items: center; gap: 4px; background: var(--es-green); border-radius: 14px; padding: 6px; min-height: 54px; box-shadow: 0 6px 18px rgba(62, 85, 37, .18); }
.es-nav-in > .es-wrap { padding: 0; }
.es-catalog-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--es-green-dd); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; height: 42px; font: 600 15px var(--es-sans); cursor: pointer; white-space: nowrap; }
.es-catalog-btn:hover { background: #2B3B1A; }
.es-catalog-btn .es-i-close, .es-catalog-btn.active .es-i-open { display: none; }
.es-catalog-btn.active .es-i-close { display: inline; }
.es-nav-list { display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0 6px; }
.es-nav-item { position: relative; }
.es-nav-item > a { display: inline-flex; align-items: center; gap: 4px; color: #fff !important; text-decoration: none !important; font: 500 14.5px var(--es-sans); padding: 12px 9px; border-radius: 8px; white-space: nowrap; }
.es-nav-item > a:hover, .es-nav-item:hover > a { background: rgba(255, 255, 255, .12); }
.es-chev { width: 14px; height: 14px; opacity: .8; }
.es-nav-drop { position: absolute; top: 100%; left: 0; min-width: 240px; padding-top: 8px; visibility: hidden; opacity: 0; transform: translateY(6px); transition: .18s; z-index: 1031; }
.es-nav-item:hover .es-nav-drop, .es-nav-item:focus-within .es-nav-drop { visibility: visible; opacity: 1; transform: none; }
.es-nav-drop ul { list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 12px; box-shadow: var(--es-shadow-h); }
.es-nav-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--es-ink) !important; text-decoration: none !important; font-size: 14px; white-space: nowrap; }
.es-nav-drop a:hover { background: var(--es-bg2); color: var(--es-green-d) !important; }
.es-sale { display: inline-flex; align-items: center; gap: 7px; background: var(--es-orange); color: #fff !important; text-decoration: none !important; border-radius: 999px; padding: 0 20px; height: 40px; font: 700 14.5px var(--es-sans); white-space: nowrap; margin-left: 4px; box-shadow: 0 4px 12px rgba(240, 106, 30, .35); }
.es-sale:hover { background: var(--es-orange-d); }
.es-sale .es-i { width: 17px; height: 17px; }
/* ---------- мега-меню «Каталог товаров» (своя разметка в header.twig, открывает скрипт темы через #rm-menu.active) ---------- */
.es-nav-in > #rm-menu { left: 0; right: 0; top: -1999px; border-radius: 18px; }
.es-nav-in > #rm-menu.active { top: calc(100% + 10px); }
.es-mm {
    display: grid; grid-template-columns: 300px minmax(0, 1fr) 250px;
    height: min(620px, calc(100vh - 240px)); min-height: 420px;
    background: var(--es-card); border: 1px solid var(--es-line); box-shadow: 0 24px 60px rgba(52, 71, 32, .22);
}
/* иконки Codex — без кружков, на прозрачном фоне */
.es-mm-ic { flex: 0 0 auto; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.es-mm-ic img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .2s; }
.es-mm-ic.is-lg { width: 64px; height: 64px; }
.es-mm-ic.is-xl { width: 150px; height: 150px; }
/* левая колонка — разделы */
.es-mm-side { list-style: none; margin: 0; padding: 14px 12px; background: var(--es-bg); border-right: 1px solid var(--es-line); overflow-y: auto; }
.es-mm-side-item > a { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 8px; border-radius: 14px; color: var(--es-ink) !important; text-decoration: none !important; font: 600 15px/1.25 var(--es-sans); transition: background .15s, box-shadow .15s; }
.es-mm-side-t { flex: 1 1 auto; }
.es-mm-chev { width: 16px; height: 16px; opacity: .45; transition: .15s; }
.es-mm-side-item + .es-mm-side-item { margin-top: 4px; }
.es-mm-side-item.is-active > a { background: #fff; box-shadow: 0 4px 14px rgba(70, 58, 34, .08); color: var(--es-green-d) !important; }
.es-mm-side-item.is-active .es-mm-ic img, .es-mm-card:hover .es-mm-ic img { transform: scale(1.08); }
.es-mm-side-item.is-active .es-mm-chev { opacity: 1; color: var(--es-green); transform: translateX(2px); }
/* середина — подразделы выбранного раздела */
.es-mm-body { overflow-y: auto; padding: 22px 26px 24px; }
.es-mm-pane { display: none; }
.es-mm-pane.is-active { display: block; animation: es-mm-in .18s ease; }
@keyframes es-mm-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.es-mm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--es-line); }
.es-mm-title { font: 600 26px/1.15 var(--es-serif); color: var(--es-ink); }
/* подразделы колонками (без пустых дыр в рядах); мало подразделов — крупные плитки */
.es-mm-grid { column-count: 3; column-gap: 14px; }
.es-mm-card { break-inside: avoid; }
.es-mm-grid.is-few { column-count: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.es-mm-grid.is-few .es-mm-card { background: var(--es-bg); padding: 18px 14px 16px; text-align: center; }
.es-mm-grid.is-few .es-mm-card:hover { background: var(--es-bg2); }
.es-mm-grid.is-few .es-mm-card-top { flex-direction: column; gap: 10px; }
.es-mm-grid.is-few .es-mm-ic { width: 120px; height: 120px; }
.es-mm-grid.is-few .es-mm-card-t { font-size: 15.5px; }
.es-mm-grid.is-few .es-mm-links { margin: 8px 0 0; }
.es-mm-grid.is-few .es-mm-card.is-all { background: none; border: 1.5px dashed #D8CBB4; }
.es-mm-grid.is-few .es-mm-card.is-all .es-mm-card-t { color: var(--es-green-d); }
.es-mm-card { padding: 6px; border-radius: 14px; transition: background .15s; }
.es-mm-card:hover { background: var(--es-bg); }
.es-mm-card-top { display: flex; align-items: center; gap: 12px; color: var(--es-ink) !important; text-decoration: none !important; }
.es-mm-card-t { font: 600 14.5px/1.25 var(--es-sans); }
.es-mm-card-top:hover .es-mm-card-t { color: var(--es-green-d); }
.es-mm-links { list-style: none; margin: 0 0 4px 76px; padding: 0; }
.es-mm-links li { margin: 3px 0; }
.es-mm-links a { font-size: 13.5px; line-height: 1.3; color: var(--es-muted) !important; text-decoration: none !important; }
.es-mm-links a:hover { color: var(--es-green) !important; text-decoration: underline !important; }
.es-mm-single { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px; border-radius: 18px; background: var(--es-bg); color: var(--es-green-d) !important; text-decoration: none !important; font-weight: 600; font-size: 16px; text-align: center; }
.es-mm-single:hover { background: var(--es-bg2); }
/* правая колонка — акции, как баннер на главной */
.es-mm-promo { position: relative; margin: 14px; border-radius: 16px; overflow: hidden; background: #D7D1AE; padding: 22px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none !important; }
.es-mm-promo img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; object-fit: cover; object-position: 88% 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
.es-mm-promo-t { position: relative; font: 600 26px/1.1 var(--es-serif); color: var(--es-ink); }
.es-mm-promo-s { position: relative; font-size: 14px; line-height: 1.35; color: var(--es-text); }
.es-mm-promo .es-btn { position: relative; margin-top: 6px; }
.es-mm-promo:hover .es-btn { background: var(--es-green-d); }
@media (max-width: 1299px) {
    .es-mm { grid-template-columns: 270px minmax(0, 1fr) 210px; }
    .es-mm-promo-t { font-size: 22px; }
}
@media (max-width: 1199px) {
    .es-mm { grid-template-columns: 250px minmax(0, 1fr); }
    .es-mm-promo { display: none; }
    .es-mm-side-item > a { font-size: 14px; }
}
@media (max-width: 1099px) {
    .es-mm-grid { column-count: 2; }
    .es-mm-grid.is-few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- главная ---------- */
.es-main { padding-bottom: 10px; }
.es-section { margin-top: 36px; }
.es-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.es-sec-title { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* слайдер */
.es-hero { margin-top: 14px; position: relative; }
/* во всю ширину экрана, как в макете; текст и значки — по сетке страницы */
.es-hero-track { position: relative; overflow: hidden; height: 480px; background: #E6D4C1; }
.es-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s; }
.es-hero-slide.is-active { opacity: 1; visibility: visible; }
.es-hero-img, .es-main .es-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.es-hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(251, 246, 238, .92) 0%, rgba(251, 246, 238, .75) 30%, rgba(251, 246, 238, 0) 52%); }
.es-hero-in { position: relative; z-index: 2; height: 100%; }
.es-hero-text { max-width: 600px; padding: 40px 0 0 40px; }
.es-hero .es-h1 { font-size: 54px; line-height: 1.04; font-weight: 600; color: #263A17; }
.es-hero-lead { font-size: 19.5px; line-height: 1.42; color: #2A2922; margin: 12px 0 20px; max-width: 440px; }
.es-hero-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--es-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.es-hero-arrow.is-prev { left: 24px; } .es-hero-arrow.is-next { right: 24px; }
.es-hero-dots { position: absolute; z-index: 3; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.es-hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .8); cursor: pointer; }
.es-hero-dots button.is-active { background: var(--es-green); }
.es-hero-icons-in { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; pointer-events: none; }
.es-hero-icons { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0 0 0 40px; pointer-events: auto; }
.es-hero-icons li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.25; color: #2E2D25; font-weight: 600; }
.es-round { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--es-green-2); color: var(--es-green); background: rgba(255, 255, 255, .55); display: inline-flex; align-items: center; justify-content: center; }
.es-round .es-i { width: 24px; height: 24px; }

/* категории */
.es-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.es-cat { display: flex; flex-direction: column; background: var(--es-card); border-radius: var(--es-r); overflow: hidden; box-shadow: var(--es-shadow); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.es-cat:hover { transform: translateY(-3px); box-shadow: var(--es-shadow-h); }
.es-cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.es-cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 13px 16px; min-height: 62px; }
.es-cat-t { font-weight: 600; font-size: 16.5px; line-height: 1.2; color: var(--es-ink); }
.es-circle { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; border: 1.5px solid var(--es-green-2); color: var(--es-green); display: inline-flex; align-items: center; justify-content: center; transition: .2s; }
.es-circle .es-i { width: 16px; height: 16px; }
.es-cat:hover .es-circle { background: var(--es-green); color: #fff; }

/* два баннера */
.es-promos { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-top: 24px; }
.es-promo { position: relative; display: flex; align-items: center; min-height: 176px; border-radius: var(--es-r); overflow: hidden; text-decoration: none !important; box-shadow: var(--es-shadow); transition: transform .2s, box-shadow .2s; }
.es-promo:hover { transform: translateY(-2px); box-shadow: var(--es-shadow-h); }
.es-promo-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.es-promo-sub { font-size: 15px; color: var(--es-text); line-height: 1.35; margin-bottom: 8px; max-width: 250px; }
.es-promo-rooms { background: linear-gradient(90deg, #F5EADB 0%, #F3E6D4 55%, #EFE1CC 100%); padding: 22px 0 22px 0; }
.es-promo-fox { position: relative; z-index: 2; width: 128px; height: auto; margin: 0 14px 0 18px; align-self: flex-end; filter: drop-shadow(0 6px 10px rgba(120, 60, 10, .18)); }
.es-promo-img { position: absolute; right: 0; top: 0; height: 100%; width: 46%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.es-promo-sale { background: #D7D1AE; padding: 22px 26px; }
.es-promo-bg { position: absolute; right: 0; bottom: 0; height: 112%; width: auto; max-width: none; }
.es-promo-sale .es-promo-sub { max-width: 190px; }
.es-pct { position: absolute; z-index: 2; right: 22%; top: 16px; width: 54px; height: 54px; border-radius: 50%; background: var(--es-orange); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(240, 106, 30, .35); transform: rotate(-12deg); }
.es-pct .es-i { width: 28px; height: 28px; stroke-width: 2.4; }

/* товары дня */
.es-timer { display: inline-flex; align-items: center; gap: 8px; background: #FFF4EA; border: 1px solid #F7CFB2; color: var(--es-text); border-radius: 8px; padding: 5px 12px; font-size: 13.5px; font-weight: 500; }
.es-timer .es-i { width: 18px; height: 18px; color: var(--es-orange); }
.es-timer b { color: var(--es-orange-d); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.es-products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.es-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--es-r); padding: 14px 14px 16px; box-shadow: var(--es-shadow); transition: box-shadow .2s; }
.es-card:hover { box-shadow: var(--es-shadow-h); }
.es-disc { position: absolute; z-index: 2; top: 14px; left: 14px; background: var(--es-orange); color: #fff; font: 700 13px/1 var(--es-sans); padding: 5px 9px; border-radius: 999px; }
.es-wish { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--es-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.es-wish:hover { color: var(--es-orange); }
.es-card-img { display: block; margin: 22px 0 10px; }
.es-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.es-card-name { font-size: 14.5px; line-height: 1.35; color: var(--es-ink) !important; text-decoration: none !important; font-weight: 500; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.es-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.es-price { display: flex; flex-direction: column; line-height: 1.15; }
.es-price s { font-size: 13px; color: #9A958A; }
.es-price b { font-size: 21px; font-weight: 800; color: var(--es-ink); white-space: nowrap; }
.es-tocart { width: 42px; height: 38px; flex: 0 0 42px; border-radius: 10px; border: 0; background: var(--es-green); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.es-tocart:hover { background: var(--es-green-d); }

/* преимущества */
.es-benefits { display: flex; list-style: none; margin: 26px 0 0; padding: 16px 10px; background: var(--es-bg2); border-radius: var(--es-r); }
.es-benefits li { flex: 1 1 0; display: flex; align-items: center; gap: 14px; padding: 4px 20px; font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--es-ink); }
.es-benefits li + li { border-left: 1px solid #DCCFB9; }
.es-benefits .es-i { width: 34px; height: 34px; color: var(--es-green); stroke-width: 1.5; }

/* готовые комнаты */
.es-rooms { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: center; }
.es-rooms-text .es-h2 { max-width: 230px; }
.es-rooms-text p { font-size: 15.5px; line-height: 1.45; margin: 14px 0 20px; }
.es-rooms-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.es-room { margin: 0; border-radius: var(--es-r); overflow: hidden; box-shadow: var(--es-shadow); }
.es-room img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .4s; }
.es-room:hover img { transform: scale(1.04); }

/* ---------- подписка ---------- */
.es-subscribe { margin-top: 40px; background: linear-gradient(180deg, #F3EBDD, #EFE5D4); border-top: 1px solid var(--es-line); }
.es-subscribe-in { display: flex; align-items: center; gap: 22px; min-height: 104px; padding-top: 18px; padding-bottom: 18px; }
.es-subscribe-ic { width: 46px; height: 46px; color: var(--es-green-d); stroke-width: 1.4; }
.es-subscribe-t { font-family: var(--es-serif); font-weight: 600; font-size: 24px; color: var(--es-ink); }
.es-subscribe-s { font-size: 14px; color: var(--es-text); }
.es-subscribe-form { margin-left: auto; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 5px; border: 1px solid var(--es-line); width: 100%; max-width: 470px; }
.es-subscribe-form input[type=email] { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 18px; font: 400 14.5px var(--es-sans); min-width: 0; }

/* ---------- подвал ---------- */
.es-footer { background: var(--es-green-d); color: #F1EDE0; font-size: 15px; }
.es-footer a { color: #F1EDE0 !important; text-decoration: none !important; }
.es-footer a:hover { color: #fff !important; text-decoration: underline !important; }
.es-footer-in { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr 1.45fr auto; gap: 30px; padding-top: 40px; padding-bottom: 30px; }
.es-f-logo img { width: 230px; height: auto; display: block; }
.es-f-brand p { margin: 12px 0 16px; font-size: 14px; line-height: 1.45; color: #E6E1CF; max-width: 260px; }
.es-f-social { display: flex; gap: 10px; }
.es-f-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; }
.es-f-social a:hover { background: rgba(255, 255, 255, .22); text-decoration: none !important; }
.es-f-t { font-family: var(--es-serif); font-weight: 600; font-size: 18px; color: #fff; margin-bottom: 14px; }
.es-f-col ul { list-style: none; margin: 0; padding: 0; }
.es-f-col li { margin-bottom: 8px; }
.es-f-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.es-f-contacts .es-i { width: 18px; height: 18px; margin-top: 1px; color: #CFC8AE; }
.es-f-contacts b { font-size: 15px; color: #fff; }
.es-f-route { display: flex; flex-direction: column; align-items: center; gap: 10px; align-self: start; margin-top: 40px; font-size: 13px; font-weight: 600; }
.es-f-route-ic { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--es-green-d); display: inline-flex; align-items: center; justify-content: center; }
.es-f-route-ic .es-i { width: 26px; height: 26px; }
.es-f-route > span:last-child { border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 6px 14px; }
.es-f-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 16px; padding-bottom: 18px; font-size: 12.5px; color: #C9C3AC; }
.es-i-fill { color: inherit; }

/* нижняя панель на телефоне */
.es-tabbar { display: none; }

/* плавающая кнопка связи темы — в цветах «Эстики» */
#rm_fixed_contact_button .rm-fixed-contact-icon, #rm_fixed_contact_button .rm-fixed-contact-pulsation { background: var(--es-green) !important; }

/* старый «вверх» */
#back-top button { background: var(--es-green); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (min-width: 1400px) {
    /* на широком экране картинка не растягивается во всю ширину (иначе обрезается кровать): справа, слева растворяется в фоне */
    .es-hero-img, .es-main .es-hero-img { left: auto; width: 1360px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
}
@media (min-width: 768px) and (max-width: 1299px) {
    /* планшет и узкий ПК: картинка правее, чтобы кровать не уходила под текст и значки */
    .es-hero-img, .es-main .es-hero-img { left: auto; width: 86%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
}
@media (max-width: 1299px) {
    .es-tagline { display: none; }
    .es-logo img { width: 250px; }
    .es-nav-item > a { padding: 12px 7px; font-size: 13.5px; }
    .es-hero-track { height: 460px; }
    .es-hero .es-h1 { font-size: 46px; }
    .es-hero-text, .es-hero-icons { padding-left: 52px; }
    .es-hero-dots { left: 66%; }
    .es-footer-in { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr; }
    .es-f-route { display: none; }
}
@media (max-width: 1199px) {
    .es-logo img { width: 230px; }
    .es-topbar { font-size: 13px; }
    .es-topbar-in, .es-tb-phones { gap: 18px; }
    .es-tb-phone { font-size: 14.5px; }
    .es-cats { grid-template-columns: repeat(3, 1fr); }
    .es-products { grid-template-columns: repeat(3, 1fr); }
    .es-hero-track { height: 440px; }
    .es-hero .es-h1 { font-size: 44px; }
    .es-hero-lead { font-size: 18px; }
    .es-hero-text { padding-top: 36px; }
    .es-hero-arrow.is-prev { left: 14px; } .es-hero-arrow.is-next { right: 14px; }
    .es-benefits li { padding: 4px 12px; font-size: 12.5px; }
    .es-benefits .es-i { width: 28px; height: 28px; }
}
@media (max-width: 991px) {
    body.es { padding-bottom: 66px; }
    .es-topbar { font-size: 12.5px; }
    .es-topbar-in { gap: 16px; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
    .es-tb-phones { display: none; }
    .es-tb { white-space: normal; }
    .es-header-in { min-height: 76px; gap: 10px; }
    .es-nav-in { width: auto; }
    .es-burger { display: inline-flex; margin-left: -6px; }
    .es-logo img { width: 190px; }
    .es-search { display: none; position: absolute; left: 16px; right: 16px; top: 100%; max-width: none; z-index: 1030; }
    body.es-search-open .es-search { display: block; }
    .es-header-in { position: relative; }
    .es-actions { margin-left: auto; gap: 14px; }
    .es-act-t { display: none; }
    .es-act-search { display: inline-flex; }
    .es-act-user { display: none; }
    .es-nav { display: none; }
    .es-hero { margin-top: 0; }
    .es-hero-track { height: 360px; }
    .es-hero .es-h1 { font-size: 36px; }
    .es-hero-text { padding: 34px 0 0 40px; max-width: 460px; }
    .es-hero-lead { font-size: 16px; max-width: 330px; }
    .es-hero-arrow { width: 40px; height: 40px; }
    .es-hero-arrow.is-prev { left: 10px; } .es-hero-arrow.is-next { right: 10px; }
    .es-hero-dots { left: 50%; }
    .es-hero-icons-in { position: static; margin-top: 16px; }
    .es-hero-icons { justify-content: space-around; gap: 10px; padding-left: 0; }
    .es-promos { grid-template-columns: 1fr 1fr; gap: 12px; }
    .es-promo-img { display: none; }
    .es-rooms { grid-template-columns: 1fr; gap: 16px; }
    .es-benefits { flex-wrap: wrap; row-gap: 12px; }
    .es-benefits li { flex: 1 1 30%; }
    .es-benefits li + li { border-left: 0; }
    .es-subscribe-in { flex-wrap: wrap; }
    .es-subscribe-form { margin-left: 0; max-width: none; }
    .es-footer-in { grid-template-columns: 1fr 1fr; gap: 26px; }
    .es-f-brand, .es-f-contacts { grid-column: 1 / -1; }
    .es-tabbar {
        display: flex; position: fixed; z-index: 1035; left: 0; right: 0; bottom: 0; height: 64px;
        background: var(--es-green-d); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
    }
    .es-tabbar > a, .es-tabbar > button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: #EDE8D7 !important; text-decoration: none !important; font: 500 11.5px var(--es-sans); border-radius: 14px; }
    .es-tabbar > .is-active { background: rgba(255, 255, 255, .14); color: #fff !important; }
    .es-tabbar .es-i { width: 24px; height: 24px; }
    .es-tab-ic { position: relative; display: inline-flex; }
    .es-tabbar .es-badge { background: #fff; color: var(--es-green-d); top: -7px; right: -12px; }
    #rm_fixed_contact_button { bottom: 80px !important; }
    #back-top { display: none !important; }
}
/* телефон — по мобильному макету «Мобильная витрина ЭСТИКА»: плотно, 4 плитки и 3 товара в ряд */
@media (max-width: 767px) {
    .es-wrap { padding: 0 14px; }
    .es-h2 { font-size: 21px; }
    .es-h3 { font-size: 15px; line-height: 1.08; }
    .es-section { margin-top: 22px; }
    .es-sec-head { margin-bottom: 10px; flex-wrap: wrap; gap: 6px 10px; }
    .es-more { font-size: 13px; gap: 6px; }
    .es-more .es-i { width: 15px; height: 15px; }
    .es-topbar-in { justify-content: space-between; }
    .es-topbar-in > * { flex: 1 1 0; }
    .es-tb-sep { display: none; }
    .es-tb-city::after { content: ","; }
    /* адрес и часы — обычным текстом с переносом, значок слева */
    .es-tb-addr, .es-tb-open { display: block; position: relative; padding-left: 22px; line-height: 1.3; }
    .es-tb-addr > .es-i, .es-tb-open > .es-i { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
    .es-tb-city { margin-right: 3px; }
    /* логотип с подписью под словом «ЭСТИКА», как в мобильном макете */
    .es-brand { display: block; position: relative; flex: 0 0 auto; }
    .es-logo img { width: 176px; }
    .es-tagline { display: block; position: absolute; left: 45.5%; top: 70%; width: 58%; max-width: none; font-size: 6.6px; line-height: 1.15; letter-spacing: 0; font-weight: 700; white-space: normal; }
    .es-header-in { min-height: 70px; }
    /* слайдер: во всю ширину, высота — по тексту */
    .es-hero-track { height: auto; }
    .es-hero-slide.is-active { position: relative; }
    .es-hero-img { object-position: 74% 50%; }
    .es-hero-slide::before { background: linear-gradient(90deg, rgba(251, 246, 238, .94) 0%, rgba(251, 246, 238, .8) 48%, rgba(251, 246, 238, 0) 74%); }
    .es-hero-in { height: auto; }
    .es-hero-text { padding: 16px 0 32px 34px; max-width: 68%; }
    .es-hero .es-h1 { font-size: 22px; line-height: 1.1; }
    .es-hero-lead { font-size: 12px; line-height: 1.4; margin: 6px 0 11px; }
    .es-hero .es-btn { font-size: 12.5px; padding: 9px 15px; gap: 7px; }
    .es-hero-arrow { width: 30px; height: 30px; }
    .es-hero-arrow .es-i { width: 16px; height: 16px; }
    .es-hero-arrow.is-prev { left: 6px; } .es-hero-arrow.is-next { right: 6px; }
    .es-hero-dots { bottom: 12px; }
    .es-hero-icons-in { margin-top: 12px; }
    .es-hero-icons li { font-size: 11px; gap: 6px; }
    .es-round { width: 40px; height: 40px; }
    .es-round .es-i { width: 20px; height: 20px; }
    .es-cats, .es-products, .es-rooms-list {
        display: grid; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 -14px; padding: 2px 14px 10px; scroll-padding: 0 14px; gap: 8px; scrollbar-width: none;
    }
    .es-cats::-webkit-scrollbar, .es-products::-webkit-scrollbar, .es-rooms-list::-webkit-scrollbar { display: none; }
    .es-cats { grid-auto-columns: calc((100% - 24px) / 4); }
    .es-products { grid-auto-columns: calc((100% - 16px) / 3); }
    .es-rooms-list { grid-auto-columns: 36%; }
    .es-cat, .es-card, .es-room { scroll-snap-align: start; }
    .es-cat { border-radius: 12px; }
    .es-cat-foot { padding: 7px 5px 8px 7px; min-height: 42px; gap: 3px; }
    .es-cat-t { font-size: 11.5px; line-height: 1.15; }
    .es-circle { width: 20px; height: 20px; flex-basis: 20px; border-width: 1.2px; }
    .es-circle .es-i { width: 12px; height: 12px; }
    .es-promos { margin-top: 14px; gap: 10px; }
    .es-promo { min-height: 0; border-radius: 12px; }
    .es-promo-rooms { padding: 10px 8px 10px 0; }
    .es-promo-fox { width: 54px; margin: 0 5px 0 6px; align-self: center; }
    .es-promo-sale { padding: 10px; }
    .es-promo-text { gap: 4px; }
    .es-promo-sub { font-size: 10.5px; line-height: 1.25; margin-bottom: 3px; }
    .es-promo-sale .es-promo-sub { max-width: 62%; }
    .es-promo-text { min-width: 0; }
    .es-promo .es-btn-sm { font-size: 11px; padding: 7px 10px; gap: 5px; white-space: nowrap; }
    .es-promo .es-btn-sm .es-i { width: 13px; height: 13px; }
    .es-pct { width: 32px; height: 32px; right: 8px; top: 8px; }
    .es-pct .es-i { width: 18px; height: 18px; }
    .es-promo-bg { height: 66%; opacity: .95; }
    .es-sec-title { gap: 8px; }
    .es-timer { font-size: 11px; padding: 3px 7px; gap: 5px; border-radius: 6px; }
    .es-timer .es-i { width: 14px; height: 14px; }
    .es-card { padding: 8px 8px 9px; border-radius: 12px; }
    .es-disc { top: 8px; left: 8px; font-size: 10.5px; padding: 4px 6px; }
    .es-wish { top: 4px; right: 4px; width: 26px; height: 26px; }
    .es-wish .es-i { width: 16px; height: 16px; }
    .es-card-img { margin: 18px 0 6px; }
    .es-card-name { font-size: 11.5px; min-height: 31px; }
    .es-card-foot { padding-top: 6px; gap: 4px; flex-wrap: wrap; }
    .es-price s { font-size: 10.5px; }
    .es-price b { font-size: 14px; }
    .es-tocart { width: 30px; height: 28px; flex-basis: 30px; border-radius: 8px; }
    .es-tocart .es-i { width: 16px; height: 16px; }
    .es-benefits { display: none; }   /* в мобильном макете полосы преимуществ нет */
    .es-rooms { gap: 10px; }
    .es-rooms-text p { display: none; }
    .es-rooms-text { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .es-rooms-text .es-h2 { max-width: none; }
    .es-rooms-text .es-btn { background: none; box-shadow: none; color: var(--es-green-d) !important; padding: 0 0 2px; border-radius: 0; border-bottom: 1px solid currentColor; font-size: 13px; gap: 6px; white-space: nowrap; }
    .es-room { border-radius: 12px; }
    .es-room img { aspect-ratio: 4 / 3; }
    .es-subscribe { margin-top: 30px; }
    .es-subscribe-t { font-size: 18px; }
    .es-subscribe-ic { display: none; }
    .es-footer { font-size: 14px; }
    .es-f-logo img { width: 190px; }
    .es-footer-in { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 30px; }
    .es-f-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 420px) {
    .es-promo .es-btn-sm .es-i { display: none; }
}
@media (max-width: 374px) {
    .es-logo img { width: 150px; }
    .es-actions { gap: 10px; }
    .es-hero-text { max-width: 76%; }
    .es-hero .es-h1 { font-size: 21px; }
    .es-hero-lead { font-size: 12px; }
    .es-topbar { font-size: 11.5px; }
    .es-rooms-text .es-h2 { font-size: 19px; }
    .es-cats { grid-auto-columns: 29%; }
    .es-products { grid-auto-columns: 42%; }
}
@media (max-width: 359px) {
    .es-logo img { width: 132px; }
    .es-burger .es-i { width: 26px; height: 26px; }
    .es-actions { gap: 8px; }
    .es-act-ic .es-i { width: 23px; height: 23px; }
    .es-promos { grid-template-columns: 1fr; }
}
.es-nw { white-space: nowrap; }

/* ==========================================================================
   Подсказки поиска (octemplates/module/oct_live_search.twig)
   ========================================================================== */
body.es .es-search #rm_livesearch { position: absolute; top: calc(100% + 10px); left: 0; right: 0; min-width: 440px; width: auto; z-index: 1040; background: var(--es-card); border-radius: 18px; border: 1px solid transparent; box-shadow: none; }
body.es .es-search #rm_livesearch.expanded { border-color: var(--es-line); box-shadow: 0 24px 60px rgba(52, 71, 32, .22); max-height: min(560px, calc(100vh - 170px)); }
body.es .es-ls { padding: 10px 10px 0; max-height: min(558px, calc(100vh - 172px)); min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #D8CBB4 transparent; }
.es-ls-head { font: 600 12px/1 var(--es-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--es-muted); padding: 8px 10px 10px; }
body.es .es-ls-item { display: flex; align-items: center; gap: 14px; padding: 8px 10px; margin: 0; border: 0; border-radius: 14px; text-decoration: none !important; color: var(--es-ink) !important; transition: background .15s; }
body.es .es-ls-item:hover, body.es .es-ls-item:focus { background: var(--es-bg); }
.es-ls-img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--es-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.es-ls-img img { max-width: 56px; max-height: 56px; width: auto; height: auto; }
.es-ls-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.es-ls-name { font-size: 14px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.es .es-ls-item:hover .es-ls-name { color: var(--es-green-d); }
.es-ls-code { font-size: 12px; color: var(--es-muted); }
.es-ls-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.es-ls-price { display: inline-flex; align-items: baseline; gap: 8px; }
.es-ls-price b { font-size: 16px; font-weight: 800; color: var(--es-ink); white-space: nowrap; }
.es-ls-price b.is-sale { color: var(--es-orange-d); }
.es-ls-price s { font-size: 12.5px; color: #9A958A; }
.es-ls-stock { font-size: 11.5px; font-weight: 600; color: var(--es-green); background: #EEF2E3; border-radius: 999px; padding: 2px 9px; }
.es-ls-stock.is-out { color: var(--es-muted); background: var(--es-bg2); }
body.es .es-ls-all { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% + 20px); margin: 8px -10px 0; padding: 14px; border: 0; border-top: 1px solid var(--es-line); background: var(--es-card); color: var(--es-green-d); font: 700 14px var(--es-sans); cursor: pointer; border-radius: 0 0 18px 18px; }
body.es .es-ls-all:hover { background: var(--es-bg); }
.es-ls-all .es-i { width: 17px; height: 17px; }
body.es .es-ls-empty { padding: 22px 20px; font: 500 14.5px var(--es-sans); color: var(--es-text); }
/* кнопка «закрыть» — круглая внутри поля, вместо зелёного квадрата темы */
body.es .es-search #rm_livesearch_close { top: 6px; right: 46px; width: 34px; height: 34px !important; line-height: normal; border-radius: 50%; background: var(--es-bg2); display: none !important; }
body.es .es-search #rm_livesearch_close.visible { display: flex !important; }
body.es .es-search #rm_livesearch_close img { width: 18px; height: 18px; filter: brightness(0) saturate(100%) invert(18%) sepia(14%) saturate(1400%) hue-rotate(50deg); }
body.es .es-search #rm_livesearch_close:hover { background: var(--es-line); }
body.es #input_search.active { padding-right: 88px; }
@media (max-width: 991px) {
    body.es .es-search #rm_livesearch { min-width: 0; }
    body.es-search-open .es-search .rm-search { box-shadow: 0 10px 30px rgba(52, 71, 32, .18); }
}

/* ==========================================================================
   Плавающая кнопка связи: лиса из знака выглядывает из-за кнопки и здоровается
   ========================================================================== */
body.es #rm_fixed_contact_button.es-fab { width: 62px; height: 62px; right: 26px; bottom: 26px; background: transparent; border-radius: 50%; }
body.es .es-fab .rm-fixed-contact-pulsation { display: none; }
body.es .es-fab .rm-fixed-contact-icon { position: relative; z-index: 3; width: 62px; height: 62px; border-radius: 50%; background: var(--es-green) !important; color: #fff; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(30, 40, 20, .35); transition: background .2s, transform .2s; }
body.es .es-fab:hover .rm-fixed-contact-icon { background: var(--es-green-d) !important; transform: translateY(-1px); }
body.es .es-fab .rm-fixed-contact-icon .fa-envelope, body.es .es-fab .rm-fixed-contact-text { display: none !important; }
.es-fab .rm-fixed-contact-icon .es-i { width: 28px; height: 28px; }
.es-fab .es-fab-close, .es-fab.clicked .es-fab-open { display: none; }
.es-fab.clicked .es-fab-close { display: block; }
.es-fab-fox { position: absolute; z-index: 2; left: 50%; bottom: 42px; width: 58px; height: auto; margin-left: -31px; transform-origin: 50% 100%; animation: es-fox-sway 7s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(120, 60, 10, .2)); transition: bottom .3s, opacity .3s; }
.es-fab:hover .es-fab-fox, .es-fab.is-hi .es-fab-fox { bottom: 48px; }
.es-fab.clicked .es-fab-fox, .es-fab.clicked .es-fab-wave, .es-fab.clicked .es-fab-bubble { opacity: 0 !important; visibility: hidden !important; animation: none !important; }
/* «машет» — ладошка рядом с лисой (саму лису не перерисовываем) */
.es-fab-wave { position: absolute; z-index: 4; left: -18px; bottom: 50px; font-size: 20px; line-height: 1; transform-origin: 70% 80%; opacity: 0; transition: opacity .3s; pointer-events: none; }
.es-fab:hover .es-fab-wave, .es-fab.is-hi .es-fab-wave { opacity: 1; animation: es-wave 1.6s ease-in-out infinite; }
.es-fab-bubble { position: absolute; z-index: 4; right: calc(100% + 16px); bottom: 34px; width: max-content; max-width: 220px; padding: 12px 16px; background: #fff; color: var(--es-ink); border-radius: 16px 16px 4px 16px; box-shadow: 0 12px 30px rgba(52, 71, 32, .2); font: 500 14px/1.35 var(--es-sans); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .3s; pointer-events: none; }
.es-fab-bubble b { color: var(--es-green-d); }
.es-fab:hover .es-fab-bubble, .es-fab.is-hi .es-fab-bubble { opacity: 1; visibility: visible; transform: none; }
@keyframes es-fox-sway { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-7deg); } 86% { transform: rotate(6deg); } 90% { transform: rotate(-4deg); } 94% { transform: rotate(2deg); } }
@keyframes es-wave { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(18deg); } 20% { transform: rotate(-10deg); } 30% { transform: rotate(16deg); } 40% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .es-fab-fox, .es-fab-wave { animation: none !important; } }
/* выпадающий список способов связи */
body.es .es-fab .rm-fixed-contact-dropdown { right: 0; bottom: 76px; margin-bottom: 12px; padding: 10px; min-width: 260px; border-radius: 18px; background: var(--es-card); border: 1px solid var(--es-line); box-shadow: 0 24px 60px rgba(52, 71, 32, .25); }
body.es .es-fab .rm-fixed-contact-dropdown.expanded { margin-bottom: 0; opacity: 1; }
body.es .es-fab .rm-fixed-contact-item { width: 100%; margin: 0; padding: 8px 10px; border-radius: 12px; color: var(--es-ink) !important; font: 600 14.5px var(--es-sans); text-decoration: none !important; }
body.es .es-fab .rm-fixed-contact-item:hover { background: var(--es-bg); color: var(--es-green-d) !important; }
body.es .es-fab .rm-fixed-contact-item-icon { flex: 0 0 38px; width: 38px; height: 38px; margin-right: 12px; }
/* «наверх» — круглая, над лисой */
body.es #back-top { right: 34px; bottom: 150px !important; width: 46px; height: 46px; line-height: normal; border: 1px solid var(--es-line); border-radius: 50%; background: rgba(255, 253, 249, .95); box-shadow: 0 6px 18px rgba(70, 58, 34, .14); overflow: hidden; }
body.es #back-top button { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--es-green-d); padding: 0; }
body.es #back-top:hover { background: #fff; }
body.es #back-top .es-i { width: 22px; height: 22px; }
@media (max-width: 991px) {
    body.es #rm_fixed_contact_button.es-fab { right: 14px; bottom: 80px !important; width: 54px; height: 54px; }
    body.es .es-fab .rm-fixed-contact-icon { width: 54px; height: 54px; }
    .es-fab .rm-fixed-contact-icon .es-i { width: 24px; height: 24px; }
    .es-fab-fox { width: 48px; bottom: 38px; margin-left: -25px; }
    .es-fab:hover .es-fab-fox, .es-fab.is-hi .es-fab-fox { bottom: 42px; }
    .es-fab-wave { bottom: 44px; left: -16px; font-size: 18px; }
    .es-fab-bubble { bottom: 28px; font-size: 13px; padding: 10px 13px; max-width: 190px; }
    body.es .es-fab .rm-fixed-contact-dropdown { bottom: 66px; }
}

/* ==========================================================================
   Боковая панель темы (мобильное меню, вход, корзина) — в цветах «Эстики»
   ========================================================================== */
body.es .rm-sidebar { background: var(--es-bg); font-family: var(--es-sans); }
body.es .rm-sidebar-title { background: var(--es-bg); border-bottom: 1px solid var(--es-line); }
body.es .rm-sidebar-title-text { font: 600 22px/1.2 var(--es-serif); color: var(--es-ink); padding-left: 20px; }
body.es .rm-sidebar-title-close.modal-close .modal-close-icon { border-color: var(--es-ink); }
body.es .rm-sidebar #rm_mobile_menu_toggle_button::before, body.es .rm-sidebar #rm_mobile_account_toggle_button::before,
body.es .rm-sidebar #rm_mobile_viewed_toggle_button::before, body.es .rm-sidebar #rm_mobile_wishlist::before,
body.es .rm-sidebar #rm_mobile_compare::before { display: none; }
body.es .rm-sidebar .rm_mobile_menu_first { padding: 16px 16px 30px; }
body.es .rm-sidebar .rm_mobile_menu_first-item { padding: 0; background: none; box-shadow: none; border-radius: 0; margin: 0; }
.es-mob .rm_mobile_menu-list-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: var(--es-ink) !important; text-decoration: none !important; font: 600 15.5px var(--es-sans); }
.es-mob .rm_mobile_menu-list-item span { font-size: inherit; line-height: 1.25; }
.es-mob-t { flex: 1 1 auto; }
.es-mob-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--es-bg2); color: var(--es-green-d); }
.es-mob-ic .es-i { width: 21px; height: 21px; }
/* «Каталог товаров» — зелёная кнопка, как на ПК */
body.es .es-mob .es-mob-catalog { background: var(--es-green); color: #fff !important; border-radius: 16px; box-shadow: 0 8px 20px rgba(62, 85, 37, .25); padding: 13px 16px; }
.es-mob-catalog .es-mob-ic { background: rgba(255, 255, 255, .16); color: #fff; }
body.es .es-mob-catalog .rm_mobile_menu_first-toggle { filter: brightness(0) invert(1); }
/* шесть разделов плитками с иконками */
.es-mob-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.es-mob-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 12px; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(70, 58, 34, .06); color: var(--es-ink) !important; text-decoration: none !important; font: 600 12px/1.2 var(--es-sans); text-align: center; }
.es-mob-cat img { width: 56px; height: 56px; object-fit: contain; }
.es-mob-cat:active { background: var(--es-bg2); }
.es-mob-sale { display: flex; align-items: center; gap: 10px; padding: 13px 16px; margin-bottom: 12px; border-radius: 16px; background: var(--es-orange); color: #fff !important; text-decoration: none !important; font: 700 15px var(--es-sans); box-shadow: 0 6px 16px rgba(240, 106, 30, .3); }
.es-mob-sale .es-i { width: 20px; height: 20px; }
.es-mob-sale span { flex: 1 1 auto; }
.es-mob-group { background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(70, 58, 34, .06); padding: 4px 0; margin-bottom: 12px; }
.es-mob-group .rm_mobile_menu-list-item + .rm_mobile_menu-list-item { border-top: 1px solid var(--es-bg2); }
body.es .es-mob .rm_mobile_menu-list-item-status { width: 8px; height: 8px; border-radius: 50%; background: var(--es-line); }
body.es .es-mob .rm_mobile_menu-list-item-status.has-child { background: var(--es-orange); }
body.es .rm-sidebar .rm_mobile_menu_info { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 4px 14px rgba(70, 58, 34, .06); padding: 4px 0; margin-bottom: 12px; }
body.es .rm-sidebar .rm_mobile_menu_info li + li { border-top: 1px solid var(--es-bg2); }
body.es .rm-sidebar .rm_mobile_menu_info a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--es-text) !important; text-decoration: none !important; font-size: 15px; }
body.es .rm-sidebar .rm_mobile_menu_info a .es-i { width: 16px; height: 16px; color: var(--es-muted); }
.es-mob-contacts { padding: 14px 16px; border-radius: 16px; background: var(--es-green-d); color: #F1EDE0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.es-mob-contacts .es-i { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.es-mob-phone { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 16px; }
.es-mob-line { display: flex; gap: 10px; line-height: 1.4; color: #E6E1CF; }
/* второй и третий уровни: список разделов с иконками */
body.es .rm-sidebar .rm_mobile_account, body.es .rm-sidebar .rm_mobile_menu_second, body.es .rm-sidebar .rm_mobile_viewed,
body.es .rm-sidebar .rm_mobile_menu_third, body.es .rm-sidebar .rm_mobile_menu_fourth, body.es .rm-sidebar .rm_mobile_menu_fifth { background: var(--es-bg); }
body.es .rm-sidebar .rm_mobile_menu_back-text { font: 600 19px/1.2 var(--es-serif); color: var(--es-ink); }
body.es .rm-sidebar .rm_mobile_menu-list { padding: 10px 12px 20px; }
body.es .rm-sidebar .rm_mobile_menu_second .rm_mobile_menu-list-item,
body.es .rm-sidebar .rm_mobile_menu_third .rm_mobile_menu-list-item,
body.es .rm-sidebar .rm_mobile_menu_fourth .rm_mobile_menu-list-item,
body.es .rm-sidebar .rm_mobile_menu_fifth .rm_mobile_menu-list-item { height: auto; min-height: 58px; padding: 6px 4px 6px 10px; margin-bottom: 6px; background: #fff; border: 0 !important; border-radius: 14px; box-shadow: 0 3px 12px rgba(70, 58, 34, .05); }
body.es .rm-sidebar .rm_mobile_menu-list-item a { gap: 12px; color: var(--es-ink) !important; }
body.es .rm-sidebar .rm_mobile_menu-list-item span { font: 600 15px/1.25 var(--es-sans); }
.es-mob-cat-ic { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
body.es .rm-sidebar .rm_mobile_menu-list-item button { width: 40px; height: 40px; border-radius: 50%; background: var(--es-bg); }
body.es .rm-sidebar .rm_mobile_menu_info li { padding: 0; margin: 0; }
body.es .rm-sidebar .rm_mobile_menu_info ul { margin: 0; }

.es-nav-more .es-nav-drop { left: auto; right: 0; }
.es-nav-more[hidden] { display: none !important; }
.es-nav-item { flex: 0 0 auto; }
