/* Новый подвал Charm Travel (ct-ft-*) + окно карты (ct-map-*). Подключается на всех страницах из inc/ct-footer.php
   после style.css. Цвета из брендбука: #7F2EC3 фиолетовый, #5720C4 индиго (заголовки), #FF9800 оранжевый,
   сиреневый фон #F3EBFB, кремовый #FFF6EC. Шрифт Montserrat (грузит тема), Caveat только для стикера. */
.ct-ft{--ct-ft-p:#7F2EC3;--ct-ft-pd:#5E1F95;--ct-ft-ind:#5720C4;--ct-ft-o:#FF9800;--ct-ft-ink:#101820;--ct-ft-link:#4A4560;--ct-ft-mut:#6B7280;--ct-ft-lil:#F3EBFB;--ct-ft-lil2:#E4D3F5;--ct-ft-cream:#FFF6EC;--ct-ft-line:#E9E4EF;--ct-ft-gut:32px;--ct-ft-t:.2s ease;
 position:relative;background:#fff;color:var(--ct-ft-link);font:500 15px/1.5 Montserrat,system-ui,sans-serif;text-align:left;overflow-x:clip;clear:both}
.ct-ft *,.ct-ft *::before,.ct-ft *::after{box-sizing:border-box}
.ct-ft :where(p,ul,li){margin:0;padding:0;list-style:none}
.ct-ft svg{display:block}
.ct-ft a{color:var(--ct-ft-link);text-decoration:none;transition:color var(--ct-ft-t),background-color var(--ct-ft-t),border-color var(--ct-ft-t),transform var(--ct-ft-t)}
.ct-ft a:hover{color:var(--ct-ft-p)}
.ct-ft :focus-visible{outline:3px solid var(--ct-ft-p);outline-offset:3px;border-radius:8px}
.ct-ft button{font-family:inherit}
.ct-ft-wrap{max-width:calc(1320px + 2*var(--ct-ft-gut));margin:0 auto;padding:0 var(--ct-ft-gut);position:relative}
.ct-ft-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ct-ft-ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* ===== 1. Подписка ===== */
.ct-ft--nosub{border-top:1px solid var(--ct-ft-line)} /* подписка скрыта: верхняя линия вместо её рамки */
.ct-ft-sub{border-top:1px solid var(--ct-ft-line);border-bottom:1px solid var(--ct-ft-line)}
.ct-ft-sub__in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px) 230px;gap:40px;align-items:center;padding-top:40px;padding-bottom:40px}
.ct-ft-sub__head{display:flex;gap:20px;align-items:flex-start}
.ct-ft-sub__star{width:44px;height:44px;flex:none;fill:var(--ct-ft-o);margin-top:2px}
.ct-ft-sub__title{color:var(--ct-ft-ind);font-weight:700;font-size:26px;line-height:1.2;max-width:15em;letter-spacing:-.01em}
.ct-ft-sub__text{margin-top:8px!important;color:var(--ct-ft-mut);font-size:15px}
.ct-ft-sub__row{display:flex;align-items:stretch;background:#fff;border:1px solid #DCD3E6;border-radius:14px;padding:4px;transition:border-color var(--ct-ft-t),box-shadow var(--ct-ft-t)}
.ct-ft-sub__row:focus-within{border-color:var(--ct-ft-p);box-shadow:0 0 0 4px rgba(127,46,195,.14)}
.ct-ft-sub__field{flex:1;display:flex;align-items:center;gap:10px;min-width:0;margin:0;padding:0 12px;cursor:text}
.ct-ft-sub__ic{color:#9C93AB}
.ct-ft-sub__field input{flex:1;min-width:0;width:100%;height:48px;margin:0;padding:0;border:0;background:transparent;font:500 16px Montserrat,sans-serif;color:var(--ct-ft-ink);outline:none;box-shadow:none}
.ct-ft-sub__field input::placeholder{color:#8F879C;opacity:1}
.ct-ft .ct-ft-sub__btn{flex:none;min-height:48px;padding:0 28px;border:0;border-radius:11px;background:var(--ct-ft-p);color:#fff;font:700 16px/1 Montserrat,sans-serif;cursor:pointer;transition:background-color var(--ct-ft-t),transform var(--ct-ft-t)}
.ct-ft .ct-ft-sub__btn:hover{background:var(--ct-ft-pd)}
.ct-ft .ct-ft-sub__btn:disabled{opacity:.7;cursor:progress}
.ct-ft-sub__note{margin-top:10px!important;font-size:14px;color:var(--ct-ft-mut);line-height:1.4}
.ct-ft-sub__note a{color:var(--ct-ft-p);text-decoration:underline;text-underline-offset:2px}
.ct-ft-sub__msg{font-size:15px;font-weight:600;color:var(--ct-ft-p)}
.ct-ft-sub__msg:not(:empty){margin-top:8px!important}
.ct-ft-sub__msg.is-err{color:#C4203A}
.ct-ft-sub__form.is-done .ct-ft-sub__row,.ct-ft-sub__form.is-done .ct-ft-sub__note{display:none}
.ct-ft-sub__form.is-done .ct-ft-sub__msg{margin:0!important;display:flex;align-items:center;gap:10px;min-height:58px;padding:0 18px;border-radius:14px;background:var(--ct-ft-lil);font-size:17px}
.ct-ft-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* стикер «Вдохновение начинается здесь» */
.ct-ft-sticker{position:relative;align-self:start;justify-self:end;margin-top:-8px;pointer-events:none}
.ct-ft-sticker__t{position:relative;z-index:1;display:inline-block;padding:10px 18px 12px;border-radius:10px;background:var(--ct-ft-cream);color:var(--ct-ft-o);font:600 25px/1.05 Caveat,'Segoe Print','Comic Sans MS',cursive;transform:rotate(-5deg);box-shadow:0 6px 16px rgba(168,84,0,.10);text-align:center;max-width:200px}
.ct-ft-sticker__rays{position:absolute;right:-30px;top:44px;width:200px;height:128px;fill:none;stroke:var(--ct-ft-o);stroke-width:1.4;stroke-linecap:round;opacity:.55}

/* ===== 2. Колонки ===== */
.ct-ft-main{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1.3fr);gap:40px;padding-top:56px;padding-bottom:48px}
.ct-ft-logo{display:inline-block;margin:-6px 0 0 -8px}
.ct-ft-logo img{display:block;width:214px;height:auto;max-width:100%}
.ct-ft-brand__txt{margin-top:12px!important;color:var(--ct-ft-mut);font-size:15px;max-width:22em}
.ct-ft-cont{display:grid;gap:18px;margin-top:28px!important}
.ct-ft-cont li{display:flex;gap:14px;align-items:flex-start}
.ct-ft-cont__ic{flex:none;width:40px;height:40px;border-radius:50%;background:var(--ct-ft-lil);color:var(--ct-ft-p);display:grid;place-items:center}
.ct-ft-cont__ic .ct-ft-ic{width:19px;height:19px}
.ct-ft-cont li>div{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;padding-top:1px}
.ct-ft-cont a{font-weight:600;overflow-wrap:anywhere}
.ct-ft-cont small{font-size:14px;color:var(--ct-ft-mut);line-height:1.4}
.ct-ft .ct-ft-cont__tel{color:var(--ct-ft-p);font-size:21px;font-weight:700;line-height:1.25;white-space:nowrap}
.ct-ft .ct-ft-cont__tel:hover{color:var(--ct-ft-pd)}
.ct-ft-cont__tel2{font-size:15px}
.ct-ft-cont__adr{line-height:1.45}
.ct-ft-cont__btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.ct-ft .ct-ft-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border:1px solid var(--ct-ft-lil2);border-radius:999px;background:#fff;color:var(--ct-ft-p);font-size:14px;font-weight:600;line-height:1.1;white-space:nowrap}
.ct-ft .ct-ft-chip:hover{background:var(--ct-ft-lil);border-color:var(--ct-ft-p)}
.ct-ft-chip .ct-ft-ic{width:16px;height:16px}
/* «Перезвоните мне»: открывает попап темы (Popup Maker, триггер .callback-pop). В style.css .callback-pop на телефоне скрыт: возвращаем. */
.ct-ft .callback-pop.ct-ft-call{display:inline-flex;align-items:center;min-height:32px;margin-top:4px;padding:0;border:0;background:none;color:var(--ct-ft-p);font:600 14px/1.2 Montserrat,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ct-ft .callback-pop.ct-ft-call:hover{color:var(--ct-ft-pd)}

.ct-ft .ct-ft-col__h{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 18px;padding:0;border:0;background:none;color:var(--ct-ft-ind);font:700 18px/1.25 Montserrat,sans-serif;text-align:left;text-transform:none;letter-spacing:0;cursor:default;pointer-events:none}
.ct-ft-col__chev{display:none!important}
.ct-ft-col__list{display:grid;gap:10px}
.ct-ft-col__list a{display:inline-block;font-size:15px;line-height:1.35;font-weight:500}
.ct-ft .ct-ft-col__more{display:inline-flex;align-items:center;gap:6px;color:var(--ct-ft-p);font-weight:700}
.ct-ft-col__more .ct-ft-ic{width:17px;height:17px;transition:transform var(--ct-ft-t)}
.ct-ft-col__more:hover .ct-ft-ic{transform:translateX(3px)}

.ct-ft .ct-ft-agency{display:flex;align-items:center;gap:12px;margin-top:28px;padding:14px;border:1px solid var(--ct-ft-lil2);border-radius:16px;background:#FAF6FE;color:var(--ct-ft-link)}
.ct-ft .ct-ft-agency:hover{border-color:var(--ct-ft-p);color:var(--ct-ft-link)}
.ct-ft-agency__ic{flex:none;width:40px;height:40px;border-radius:50%;background:var(--ct-ft-lil);color:var(--ct-ft-p);display:grid;place-items:center}
.ct-ft-agency__ic .ct-ft-ic{width:22px;height:22px}
.ct-ft-agency__t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.3}
.ct-ft-agency__t b{color:var(--ct-ft-ind);font-size:15px;font-weight:700}
.ct-ft-agency__t span{color:var(--ct-ft-mut);font-size:14px}
.ct-ft-agency__go{flex:none;width:44px;height:44px;border-radius:50%;background:var(--ct-ft-p);color:#fff;display:grid;place-items:center;transition:transform var(--ct-ft-t),background-color var(--ct-ft-t)}
.ct-ft-agency:hover .ct-ft-agency__go{background:var(--ct-ft-pd);transform:translateX(3px)}
.ct-ft-agency__go .ct-ft-ic{width:20px;height:20px;stroke-width:2.2}

/* ===== 3. Фото + нижняя строка ===== */
.ct-ft-photo{position:relative;min-height:clamp(340px,30vw,520px);display:flex;align-items:flex-end;overflow:hidden;background:#2B1A3D}
.ct-ft-photo picture{position:absolute;inset:0}
.ct-ft-photo__img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 50%}
.ct-ft-photo::before{content:"";position:absolute;z-index:1;left:0;right:0;top:-1px;height:46%;background:linear-gradient(#fff 0%,rgba(255,255,255,.92) 22%,rgba(255,255,255,.55) 52%,rgba(255,255,255,0) 100%);pointer-events:none}
.ct-ft-photo::after{content:"";position:absolute;z-index:1;left:0;right:0;bottom:0;height:55%;background:linear-gradient(rgba(16,24,32,0),rgba(16,24,32,.62));pointer-events:none}
.ct-ft-bar{position:relative;z-index:2;width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:28px;padding-bottom:28px;color:#fff}
.ct-ft-bar__l{display:flex;align-items:center;gap:24px;min-width:0}
.ct-ft-soc{display:flex;gap:12px}
.ct-ft .ct-ft-soc__a{width:44px;height:44px;border:1.5px solid rgba(255,255,255,.85);border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(16,24,32,.12)}
.ct-ft .ct-ft-soc__a:hover{background:#fff;color:var(--ct-ft-p);border-color:#fff}
.ct-ft-soc__a svg{width:20px;height:20px;fill:currentColor}
.ct-ft-bar__sep{flex:none;width:1px;height:36px;background:rgba(255,255,255,.55)}
.ct-ft-copy{font-size:14px;line-height:1.45;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.ct-ft-bar__r{display:flex;gap:0;flex:none}
.ct-ft-bar__r li+li::before{content:"|";margin:0 12px;color:rgba(255,255,255,.6)}
.ct-ft .ct-ft-bar__r a{display:inline-flex;align-items:center;min-height:44px;color:#fff;font-size:14px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.ct-ft .ct-ft-bar__r a:hover{color:#FFD08A}
.ct-ft-bar :focus-visible{outline-color:#FFD08A}

/* ===== адаптив ===== */
@media (max-width:1279px){
 .ct-ft{--ct-ft-gut:28px}
 .ct-ft-sub__in{grid-template-columns:minmax(0,1fr) minmax(0,460px) 200px;gap:28px}
 .ct-ft-main{gap:32px}
 .ct-ft .ct-ft-cont__tel{font-size:19px}
}
@media (max-width:1100px) and (min-width:1024px){
 .ct-ft-main{gap:24px}
 .ct-ft-col__list a{font-size:14px}
 .ct-ft .ct-ft-agency{padding:14px;gap:10px}
}
@media (max-width:1023px){
 .ct-ft-sub__in{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 32px}
 .ct-ft-sticker{display:none}
 .ct-ft-main{grid-template-columns:1fr 1fr;gap:40px 32px}
 .ct-ft-bar{flex-wrap:wrap}
}
@media (max-width:767px){
 .ct-ft{--ct-ft-gut:16px;font-size:15px}
 .ct-ft-sub__in{grid-template-columns:1fr;gap:20px;padding-top:32px;padding-bottom:32px}
 .ct-ft-sub__head{gap:14px}
 .ct-ft-sub__star{width:34px;height:34px}
 .ct-ft-sub__title{font-size:21px}
 .ct-ft-sub__row{flex-direction:column;gap:6px;padding:6px}
 .ct-ft-sub__field{padding:0 10px}
 .ct-ft .ct-ft-sub__btn{width:100%;min-height:50px}
 .ct-ft-main{grid-template-columns:1fr;gap:0;padding-top:32px;padding-bottom:24px}
 .ct-ft-brand{padding-bottom:24px}
 .ct-ft-logo img{width:190px}
 /* аккордеоны */
 .ct-ft-col{border-top:1px solid var(--ct-ft-line)}
 .ct-ft-col:last-child{border-bottom:1px solid var(--ct-ft-line)}
 .ct-ft .ct-ft-col__h{min-height:56px;margin:0;cursor:pointer;pointer-events:auto;font-size:17px}
 .ct-ft-col__chev{display:block!important;width:22px;height:22px;color:var(--ct-ft-p);transition:transform var(--ct-ft-t)}
 .ct-ft-col__h[aria-expanded="true"] .ct-ft-col__chev{transform:rotate(180deg)}
 .ct-ft-col__body{padding-bottom:20px}
 .ct-ft.is-js .ct-ft-col__body{display:none}
 .ct-ft.is-js .ct-ft-col.is-open .ct-ft-col__body{display:block}
 .ct-ft-col__list{gap:0}
 .ct-ft-col__list a{display:flex;align-items:center;min-height:44px;font-size:15px}
 .ct-ft .ct-ft-agency{margin-top:12px}
 .ct-ft-photo{min-height:0;flex-direction:column;align-items:stretch;padding-top:150px}
 .ct-ft-photo__img{object-position:42% 50%}
 .ct-ft-photo::before{height:45%}
 .ct-ft-photo::after{height:100%;background:linear-gradient(rgba(16,24,32,0) 10%,rgba(16,24,32,.72) 70%)}
 .ct-ft-bar{flex-direction:column;align-items:flex-start;gap:12px;padding-top:16px;padding-bottom:20px}
 .ct-ft-bar__l{flex-direction:column;align-items:flex-start;gap:14px}
 .ct-ft-bar__sep{display:none}
 /* нижняя панель «Позвонить / Написать / Подобрать» на главной телефона */
 body.ct-home-has-sticky .ct-ft-bar{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){.ct-ft *{transition:none!important}}

/* ===== окно с картой (подвал, «Как нас найти?» в шапке) ===== */
.ct-map-dlg{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);margin:auto;padding:0;border:0;border-radius:20px;background:#fff;color:#101820;box-shadow:0 24px 64px rgba(16,24,32,.35);font:500 15px/1.45 Montserrat,system-ui,sans-serif;overflow:auto}
.ct-map-dlg::backdrop{background:rgba(16,24,32,.6)}
.ct-map-dlg *{box-sizing:border-box}
.ct-map-dlg__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 14px}
.ct-map-dlg__t{margin:0;font-weight:700;font-size:18px;color:#5720C4;line-height:1.3}
.ct-map-dlg__a{margin:4px 0 0;color:#6B7280;font-size:14px}
.ct-map-dlg__x{flex:none;width:44px;height:44px;margin:-6px -8px 0 0;border:0;border-radius:50%;background:#F3EBFB;color:#7F2EC3;cursor:pointer;display:grid;place-items:center}
.ct-map-dlg__x:hover{background:#E4D3F5}
.ct-map-dlg__x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ct-map-frame{position:relative;width:100%;aspect-ratio:16/9;background:#EDE7DA}
.ct-map-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.ct-map-dlg__foot{display:flex;flex-wrap:wrap;gap:10px;padding:14px 20px 18px}
.ct-map-dlg__foot a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:12px;border:2px solid #7F2EC3;color:#7F2EC3;font-weight:700;font-size:15px;text-decoration:none}
.ct-map-dlg__foot a:first-child{background:#7F2EC3;color:#fff}
.ct-map-dlg__foot a:hover{background:#5E1F95;border-color:#5E1F95;color:#fff}
.ct-map-dlg :focus-visible{outline:3px solid #7F2EC3;outline-offset:3px}
@media (max-width:767px){
 .ct-map-dlg{width:100vw;max-height:100vh;height:100%;border-radius:0}
 .ct-map-frame{aspect-ratio:auto;height:min(62vh,520px)}
 .ct-map-dlg__foot a{flex:1 1 100%}
}
html.ct-map-lock{overflow:hidden}
