/* Base styles for custom contact elements — theme independent (always loaded) */
.et-msg { display: flex; align-items: center; gap: 8px; }
.et-msg__link { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: transform .18s ease; }
.et-msg__link svg { width: 20px; height: 20px; display: block; }
.et-msg__link:hover { transform: translateY(-2px); }
.et-msg__link--tg { background: #1e96c8; }
.et-msg__link--wa { background: #1ea952; }
.et-msg__link--ph { background: #ede9fb; color: #4e1986; }
.header__phone-wrapper { display: flex; align-items: center; gap: 14px; }
.et-header-phone { color: #130c5a; font-weight: 700; font-size: 17px; white-space: nowrap; text-decoration: none; }
@media (max-width: 1100px) { .et-header-phone { display: none; } }
.et-mobile-contacts { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.et-mobile-contact { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 14px; background: #f4f5f8; color: #130c5a; font-weight: 600; text-decoration: none; }
.et-mobile-contact svg { width: 22px; height: 22px; }
.et-mobile-contact--tg svg { color: #1e96c8; } .et-mobile-contact--wa svg { color: #1ea952; } .et-mobile-contact--ph svg { color: #4e1986; }
.et-footer-phone { color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; }
.footer__contacts-note { display: block; margin-top: 6px; color: rgba(255,255,255,.65); font-size: 13px; }
.footer__contacts-ul { list-style: none; margin: 0 0 16px; padding: 0; text-align: right; }
.et-footer-contacts { display: flex; gap: 10px; }
.et-footer-contact { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); color: #fff; }
.et-footer-contact svg { width: 20px; height: 20px; }
#floating-menu .btn svg { width: 26px; height: 26px; color: #fff; }
#floating-menu .whatsapp { background: #1ea952; }
#floating-menu .phone-call { background: #4e1986; }
#floating-menu .menu-icon { transition: transform .3s ease; }
#floating-menu .menu-icon.is-open { transform: rotate(90deg); }
.manager-contact__msg { display: flex; justify-content: center; gap: 12px; }
.manager-contact__msg-link { display: inline-flex; padding: 6px; border-radius: 12px; line-height: 0; }
.manager-contact__msg-link[title="Telegram"] { background: #1e96c8; } .manager-contact__msg-link[title="WhatsApp"] { background: #1ea952; }
.reviews-sec__name::before { content: attr(data-initial); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; margin-right: 10px; vertical-align: middle; background: linear-gradient(94deg,#4e1986,#6e137d); color: #fff; font-size: 15px; font-weight: 700; }
.reviews-sec__date { padding-left: 44px; }

/* Floating controls (theme independent) */
.et-theme-toggle, .et-to-top {
  position: fixed; left: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1); background: #fff; color: #130c5a;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); padding: 0; transition: transform .2s ease, opacity .25s ease, visibility .25s ease;
}
.et-theme-toggle { bottom: 20px; }
.et-to-top { bottom: 80px; opacity: 0; visibility: hidden; transform: translateY(10px); }
.et-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.et-theme-toggle:hover { transform: scale(1.08); }
.et-theme-toggle svg, .et-to-top svg { width: 22px; height: 22px; }
.et-to-top svg { width: 20px; height: 20px; }
.et-reveal { opacity: 0; transition: opacity .45s ease; }
.et-reveal.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .et-reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 767px) {
  .et-theme-toggle { left: auto; right: 12px; bottom: 84px; width: 40px; height: 40px; }
  .et-to-top { left: 12px; bottom: 16px; width: 40px; height: 40px; }
}

/* Direction cards structure (theme independent) */
.direction-element { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: flex-start !important; gap: 14px 12px; padding: 22px 20px 20px !important; }
.direction-element__location { flex: 1 1 0 !important; min-width: 0; width: auto !important; padding: 0 !important; position: relative; }
.direction-element__time { flex: 0 0 auto !important; width: auto !important; max-width: 48%; display: block !important; text-align: right !important; margin: 0 !important; }
.direction-element__buttons.et-card-actions { flex: 0 0 100% !important; width: 100% !important; display: flex !important; flex-direction: row !important; gap: 10px !important; margin-top: 2px !important; justify-content: stretch !important; }
.direction-element__buttons.et-card-actions > * { flex: 1 1 0 !important; width: auto !important; padding: 12px 8px !important; font-size: 14px !important; font-weight: 600 !important; text-align: center; }
.direction-element .direction-location-element { align-items: center !important; margin-top: 0 !important; }
.direction-element .direction-location-element + .direction-location-element { margin-top: 16px !important; }
.direction-element__location::before { content: ""; position: absolute; left: 17px; top: 34px; height: 24px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(19,12,90,.25) 0 4px, transparent 4px 8px); }
.direction-element .direction-location-element__icon-wrapper { width: 36px !important; height: 36px !important; flex: 0 0 36px; }
.direction-element .direction-location-element__icon { width: 12px !important; height: 12px !important; }
.direction-element .direction-location-element__info { padding: 0 0 0 10px !important; width: auto !important; }
.direction-element .direction-location-element__city { font-size: 19px !important; line-height: 1.1 !important; }
.direction-element .et-price-block { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.direction-element .et-price-old { font-size: 12px; padding: 3px 8px; border-radius: 8px; white-space: nowrap; text-decoration: line-through; }
.direction-element .direction-element__price { font-size: 21px !important; margin: 0 !important; white-space: nowrap; text-align: right !important; }
.direction-element .et-card-door-note { font-size: 12px !important; margin-top: 8px; line-height: 1.3; }
.direction-sec__direction { container-type: inline-size; }
@container (max-width: 640px) {
  .direction-element__time { flex: 0 0 100% !important; max-width: none; text-align: left !important; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); }
  .direction-element .et-price-block { align-items: flex-start; gap: 4px; }
  .direction-element .direction-element__price { text-align: left !important; font-size: 22px !important; }
  .direction-element__buttons.et-card-actions > * { padding: 11px 6px !important; font-size: 13px !important; }
}

/* ===== Online chat widget ===== */
#et-chat { position: fixed; left: 20px; bottom: 140px; z-index: 95; font-family: inherit; }
.et-chat__fab { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(94deg,#f59e0b,#f97316); color: #1a1206; box-shadow: 0 10px 28px rgba(245,158,11,.4); transition: transform .2s ease; }
.et-chat__fab:hover { transform: scale(1.06); }
.et-chat__fab svg { width: 26px; height: 26px; }
.et-chat__fab.is-pulse { animation: etPulse 1.6s ease-out 3; }
@keyframes etPulse { 0% { box-shadow: 0 0 0 0 rgba(245,158,11,.6); } 100% { box-shadow: 0 0 0 18px rgba(245,158,11,0); } }
.et-chat__badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.et-chat__win { position: absolute; left: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 200px); display: flex; flex-direction: column;
  background: #111827; color: #f3f5fa; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.55); overflow: hidden; }
.et-chat__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg,#0d1630,#131c3a); border-bottom: 1px solid rgba(255,255,255,.08); }
.et-chat__title { font-weight: 800; font-size: 16px; }
.et-chat__sub { font-size: 12px; color: #b4bccf; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.et-chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.et-chat__close { background: transparent; border: none; color: #b4bccf; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.et-chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #0b1020; }
.et-chat__msg { max-width: 82%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; position: relative; word-wrap: break-word; white-space: pre-wrap; }
.et-chat__msg time { display: block; font-size: 10px; opacity: .6; margin-top: 4px; text-align: right; }
.et-chat__msg--in { align-self: flex-start; background: #182236; border-bottom-left-radius: 6px; }
.et-chat__msg--out { align-self: flex-end; background: linear-gradient(94deg,#f59e0b,#f97316); color: #1a1206; border-bottom-right-radius: 6px; }
.et-chat__form { padding: 10px 12px 12px; background: #111827; border-top: 1px solid rgba(255,255,255,.08); }
.et-chat__name { width: 100%; border: 1px solid rgba(255,255,255,.1); background: #182236; color: #f3f5fa; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-bottom: 8px; }
.et-chat__row { display: flex; gap: 8px; align-items: flex-end; }
.et-chat__inp { flex: 1; resize: none; border: 1px solid rgba(255,255,255,.1); background: #182236; color: #f3f5fa; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-family: inherit; max-height: 120px; }
.et-chat__inp:focus, .et-chat__name:focus { outline: none; border-color: #f59e0b; }
.et-chat__send { width: 42px; height: 42px; border-radius: 12px; border: none; cursor: pointer; background: linear-gradient(94deg,#f59e0b,#f97316); color: #1a1206; display: flex; align-items: center; justify-content: center; flex: 0 0 42px; }
.et-chat__send svg { width: 20px; height: 20px; }
.et-chat__hint { font-size: 11px; color: #8490a8; margin-top: 8px; text-align: center; }
.et-chat__hint a { color: #ffb84d; }
#floating-menu .chat-open { background: linear-gradient(94deg,#f59e0b,#f97316); color: #1a1206; }
#floating-menu .chat-open svg { width: 26px; height: 26px; }
@media (max-width: 767px) {
  #et-chat { left: 12px; bottom: 76px; }
  .et-chat__fab { width: 50px; height: 50px; }
  .et-chat__win { bottom: 62px; width: calc(100vw - 24px); height: 70vh; }
  .et-theme-toggle { bottom: 140px !important; }
  .et-to-top { bottom: 16px !important; }
}
.et-chat__win[hidden], .et-chat__badge[hidden] { display: none !important; }

/* ===== v5 layout rules shared by both themes ===== */
html body #main-search-route .front-sec__banner-sec { height: auto !important; min-height: 360px; }
html body #main-search-route .front-sec__banner-sec-wrapepr { position: relative !important; height: auto !important; padding: 56px 72px 120px !important; }
html body #main-search-route .front-sec__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#main-search-route .front-sec__banner-sec-wrapepr .front-sec__subtitle { font-size: 16px !important; line-height: 1.5; max-width: 560px; font-weight: 400; }
.front-sec__title { font-size: clamp(30px, 4vw, 54px) !important; line-height: 1.05 !important; letter-spacing: -.03em; }
.et-hero-stats { display: flex; gap: 14px 28px; flex-wrap: wrap; margin-top: 22px; }
.et-hero-stats b { display: block; font-size: 24px; color: #fff; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.et-hero-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); }
#et-announce { position: fixed !important; top: 0; left: 0; right: 0; z-index: 1001 !important; height: 36px; line-height: 20px; padding: 8px 12px !important; font-size: 13px !important; text-align: center; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: #4d2779; color: #fff; }
#et-announce a { color: inherit; text-decoration: underline; }
body.has-announce .header { top: 36px !important; }
body.has-announce { padding-top: 0 !important; }
.main { padding-top: 96px !important; }
body.has-announce .main { padding-top: 132px !important; }
.advantages-sec__icon-container { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.advantages-sec__info { width: auto !important; max-width: 560px; }
.advantages-sec__title { position: static !important; margin: 0 0 8px !important; width: auto !important; font-size: clamp(26px, 3.2vw, 40px) !important; line-height: 1.15 !important; }
.advantages-sec__wrapper { margin: 0 !important; background: #f5f2f9; border-radius: 14px; padding: 12px 14px !important; gap: 12px; }
.advantages-sec__icon { width: 44px !important; height: 44px !important; flex: 0 0 44px; }
.advantages-sec__icon-text { padding-left: 0 !important; width: auto !important; font-size: 14px !important; font-weight: 600 !important; }
.et-legal__wrap { max-width: 640px; padding: 32px 28px !important; max-height: 80vh; overflow: auto; }
.et-legal__title { font-size: 24px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; }
.et-legal p, .et-legal li { font-size: 15px; line-height: 1.65; margin-bottom: 10px; }
.et-legal ul { padding-left: 18px; margin: 0 0 14px; }
@media (min-width: 1100px) {
  .header .container.header__container { display: flex !important; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 32px !important; width: 100% !important; max-width: 1440px !important; margin: 0 auto !important; box-sizing: border-box; }
  .header__logo { flex: 0 0 auto; width: 110px !important; }
  .header__nav { display: block !important; flex: 1 1 auto; min-width: 0; }
  .header__right { flex: 0 0 auto; }
  .header__nav-list { display: flex; justify-content: center; gap: 18px; align-items: center; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
  .header__nav-list > li { margin: 0 !important; flex: 0 0 auto; position: relative; }
  .header__nav-list > li > a { white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
  .header__nav-list .sub-menu { left: -8px; margin-top: 10px !important; min-width: 260px; border-radius: 12px; padding: 8px !important; }
  .header__nav-list .sub-menu li a { display: block; padding: 10px 12px !important; border-radius: 8px; font-size: 14px !important; text-transform: none; }
  .header__nav-list .sub-menu li:last-child a { font-weight: 700; }
  .burger { display: none !important; }
  .header__phone-subtitle { display: none !important; }
}
@media (min-width: 1100px) and (max-width: 1280px) { .header__nav-list { gap: 12px; } .header__nav-list > li > a { font-size: 12px; } .et-header-phone { display: none !important; } }
@media (max-width: 1099px) {
  .header__mobile { padding-top: 84px !important; }
  body.has-announce .header__mobile { padding-top: 120px !important; }
  body:has(.header__mobile-active) .et-theme-toggle, body:has(.header__mobile-active) .et-to-top, body:has(.header__mobile-active) #et-chat, body:has(.header__mobile-active) #floating-menu { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
}
@media (min-width: 768px) and (max-width: 1100px) { html body #main-search-route .front-sec__banner-sec-wrapepr { padding: 48px 40px 120px !important; } }
@media (max-width: 767px) {
  html body #main-search-route .front-sec__banner-sec-wrapepr { padding: 28px 18px 110px !important; }
  .front-sec__title { font-size: 28px !important; }
  .main { padding-top: 70px !important; }
  body.has-announce .main { padding-top: 100px !important; }
  .et-hero-stats { gap: 14px 22px; } .et-hero-stats b { font-size: 20px; } .et-hero-stats > div:nth-child(3) b { font-size: 16px; }
  .advantages-sec__icon-container { grid-template-columns: 1fr 1fr !important; }
  .et-legal__wrap { padding: 24px 18px !important; }
}
.footer__mob-phone { margin: 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
.footer__social-row.et-footer-contacts .footer__social { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ===== v5.1: light calendar polish ===== */
.search__cal-panel { border-radius: 18px; box-shadow: 0 24px 60px rgba(19,12,90,.22); overflow: hidden; }
.search__cal-panel .vanilla-calendar-day__btn { border-radius: 10px; font-weight: 600; color: #101828; }
.search__cal-panel .vanilla-calendar-day__btn_weekend { color: #d9480f; }
.search__cal-panel .vanilla-calendar-day__btn_today { box-shadow: inset 0 0 0 1.5px #1e3a8a; }
.search__cal-panel .vanilla-calendar-day__btn_selected, .search__cal-panel .vanilla-calendar-day__btn_selected:hover { background: #1e3a8a; color: #fff; }
.search__cal-panel .vanilla-calendar-day__btn_disabled, .search__cal-panel .vanilla-calendar-day__btn_prev, .search__cal-panel .vanilla-calendar-day__btn_next { color: #98a2b3; opacity: .7; }
.search__cal-panel .vanilla-calendar-week__day { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #667085; }

/* ===== v5.1: chat quick replies / typing ===== */
.et-chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #0b1020; }
.et-chat__quick button { border: 1px solid rgba(255,255,255,.14); background: transparent; color: #e5e9f2; font-size: 12px; padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s; }
.et-chat__quick button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.et-chat__quick[hidden] { display: none !important; }
.et-chat__typing div { display: flex; gap: 4px; padding: 4px 2px; }
.et-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa4b8; animation: etTyping 1.2s infinite ease-in-out; }
.et-chat__typing span:nth-child(2) { animation-delay: .15s; } .et-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes etTyping { 0%,80%,100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.et-chat__inp { max-height: 120px; }
/* perf: promote only fixed layers, avoid heavy paints */
.et-reveal { will-change: opacity; }
.direction-element, .reviews-sec__slider-element-wrapper, .faq-sec__elementV2, .popup-air { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
img.direction-element__icon, .direction-element img, .advantages-sec img { filter: none; }
.et-chat__tick { font-style: normal; font-size: 10px; margin-left: 4px; opacity: .7; }
.et-chat__tick--seen { color: #22c55e; opacity: 1; }
.et-chat__msg--auto > div { border-left: 3px solid #22c55e; }
