/* conv-v1 (26.11.2026): one main CTA, compact cookie bar, projects first on market pages */

/* --- cookie bar: one thin line, never covers the main button --- */
html body #m2cc{left:0;right:0;bottom:0;max-width:none;margin:0;border-radius:0;border-width:1px 0 0;
  padding:6px 12px calc(6px + env(safe-area-inset-bottom,0px));font-size:12px;line-height:1.3;
  box-shadow:none;display:flex;align-items:center;gap:10px;transition:transform .25s,opacity .25s}
html body #m2cc p{margin:0;flex:1 1 auto;min-width:0}
html body #m2cc .m2cc-f{display:none}
html body #m2cc .m2cc-s{display:inline}
html body #m2cc .m2cc-b{display:flex;flex:none;flex-wrap:nowrap;gap:6px}
html body #m2cc button{flex:none;min-height:32px;height:32px;padding:0 12px;font-size:12px;line-height:1;border-radius:8px}
html body #m2cc.m2cc-away{transform:translateY(110%);opacity:0;pointer-events:none}
@media(max-width:899px){
  html body:has(.mbar) #m2cc{bottom:calc(56px + env(safe-area-inset-bottom,0px));padding-bottom:6px}
}
@media(min-width:900px){html body #m2cc{left:auto;right:16px;bottom:16px;max-width:560px;border-radius:10px;border-width:1px}}

/* --- fixed bottom bar: one button --- */
@media(max-width:899px){
  .mbar.v3mb,.mbar.v3one1{grid-template-columns:1fr!important}
  body:has(.mbar) .v3fab{display:none!important}
}

/* --- first screen: one main button + small WhatsApp link --- */
.cta.v3one{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.cta.v3one .btn{min-width:min(100%,320px)}
.v3wa{font-size:14px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.v3wa[hidden]{display:none}
@media(max-width:899px){.cta.v3one{align-items:stretch}.cta.v3one .v3wa{align-self:center}}

/* --- market pages: shorter hero on phones, projects right after it --- */
@media(max-width:899px){
  .mhero .mphoto,.mhero .mclock,.mhero .v3pl{display:none}
  .mhero .lead{margin-bottom:8px}
  .v3pfirst{padding-top:8px}
}
@media(max-width:899px){.mbar.v3mb .btn,.mbar.v3one1 .btn{width:100%}}

/* --- Greece Golden Visa landing --- */
.gvh .gvp{margin:6px 0 10px;font-size:clamp(20px,4.5vw,28px);line-height:1.1;color:var(--muted)}
.gvh .gvp b{display:inline-block;font-size:clamp(44px,11vw,76px);font-weight:700;color:var(--accent,#7eb89a);letter-spacing:-.02em}
.gvh{grid-template-columns:1fr!important}
.gvs li{margin:0 0 10px}
#podborka .cta.v3one{margin-top:14px}
@media(max-width:899px){.gvh .v3pl{display:grid!important;gap:6px;margin-top:4px}}
/* conv-v1: необязательные уточнения формы */
.m2x{display:grid;gap:10px;padding:12px 0 4px;border-top:1px solid var(--line,#1e1e1e)}
.m2x-h{margin:0;font-size:13.5px;font-weight:600;color:var(--text,#eceae1)}
.m2x-h span{font-weight:400;color:#aaa}
.m2x-g{display:grid;gap:6px}
.m2x-l{font-size:12.5px;color:#aaa}
.m2x-o{display:flex;flex-wrap:wrap;gap:6px}
.m2x-o button{font:inherit;font-size:13.5px;line-height:1;padding:9px 12px;min-height:36px;border-radius:6px;border:1px solid var(--line-2,#2c2f2a);background:transparent;color:var(--text,#eceae1);cursor:pointer}
.m2x-o button[aria-pressed=true]{border-color:#7eb89a;color:#7eb89a;background:rgba(126,184,154,.08)}
.m2x .v3fl{margin-top:2px}
.m2x>summary{list-style:none;cursor:pointer;min-height:40px;display:flex;align-items:center;gap:6px}
.m2x>summary::-webkit-details-marker{display:none}
.m2x>summary::before{content:'+';color:#7eb89a;font-weight:700;width:14px}
.m2x[open]>summary::before{content:'−'}
.m2x[open]{padding-bottom:6px}
/* главная кнопка + чаты */
.v3chat{display:flex;gap:8px;flex-wrap:wrap}
a.v3cc{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;min-height:40px;border:1px solid var(--line-2,#2c2f2a);border-radius:6px;color:var(--text,#eceae1);font-size:14px;font-weight:600;text-decoration:none}
a.v3cc svg{width:18px;height:18px}
a.v3cc.wa svg{color:#7eb89a}a.v3cc.tg svg{color:#7eb89a}
a.v3cc[hidden]{display:none}
@media(max-width:899px){.cta.v3one .v3chat{justify-content:center}a.v3cc{flex:1;justify-content:center}}
/* нижняя панель скрыта, пока видна главная кнопка первого экрана */
@media(max-width:899px){
  .mbar{transition:transform .25s,opacity .25s}
  html.m2mb-off .mbar{transform:translateY(110%);opacity:0;pointer-events:none}
  html.m2mb-off body #m2cc{bottom:0;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
}
/* чаты под главной кнопкой: перебиваем общие стили ссылок .cta */
.cta.v3one .v3chat{display:flex;gap:8px;width:100%}
html body .cta.v3one .v3chat .v3cc{margin:0;flex:0 0 auto;width:auto;min-width:0;height:40px;padding:0 14px;border:1px solid #2c2f2a;border-radius:6px;background:transparent;color:#eceae1;font-size:14px;font-weight:600;box-shadow:none}
html body .cta.v3one .v3chat .v3cc[hidden]{display:none}
@media(max-width:899px){html body .cta.v3one .v3chat .v3cc{flex:1 1 0}}
.m2x>summary{display:block;line-height:1.35;padding:10px 0}
.m2x>summary::before{display:inline-block}
/* 26.11.2026: вариант A - контурная кнопка (светлый текст, тонкая зелёная рамка) вместо заливки шалфеем */
html body .btn.r,html body .btn.v3ck,html body .cout .btn:not(.o):not(.d),html body .mbar .btn.r{background:transparent!important;color:var(--text,#eceae1)!important;box-shadow:inset 0 0 0 1.5px var(--accent,#7eb89a)!important;border-radius:8px;font-weight:650}
html body .btn.r:hover,html body .btn.v3ck:hover,html body .cout .btn:not(.o):not(.d):hover{background:color-mix(in srgb,var(--accent,#7eb89a) 12%,transparent)!important}
html body .btn.r:focus-visible{outline:2px solid var(--accent,#7eb89a);outline-offset:2px}
html body .mbar .btn.r{background:var(--bg,#0d0f0c)!important}
html[data-theme=light] body .btn.r,html[data-theme=light] body .btn.v3ck{color:#1d1c19!important;box-shadow:inset 0 0 0 1.5px #47725c!important}

/* 26.11: карточки брокеров без своих кнопок - одна строка связи сразу под ними */
#team .v3tg .v3tgc{padding-top:6px}

/* 26.11: встроенные браузеры (Telegram, Instagram, Facebook) - полоса ещё компактнее, с крестиком */
html body #m2cc.m2cc-iab{padding-top:4px;padding-bottom:4px;font-size:11.5px;gap:8px}
html body #m2cc.m2cc-iab button{min-height:28px;height:28px;padding:0 10px;font-size:11.5px}
/* 26.11 владелец: «Принять» - основная (акцент), «Отказаться» - вторичная, видимая */
html body #m2cc .y{background:#7eb89a;color:#0d0f0c;font-weight:700}
html body #m2cc .n{background:none;color:#eceae1;box-shadow:inset 0 0 0 1px #5a5a55;font-weight:500}

/* 26.11: светлая тема - кнопки чатов и «Отказаться» были белым по белому */
html[data-theme=light] body .cta.v3one .v3chat .v3cc,html[data-theme=light] body a.v3cc{color:#1d1c19;border-color:#c9c6bd}
html[data-theme=light] body a.v3cc.wa svg,html[data-theme=light] body a.v3cc.tg svg{color:#47725c}
html[data-theme=light] body #m2cc .n{color:#1d1c19;box-shadow:inset 0 0 0 1px #9a978f}

/* ===== design-v1 (26.11.2026): карточки и страницы проектов выглядят дороже ===== */

/* 1. Заглушка «Фото - по запросу»: вместо плашки с крупным m² - спокойная архитектурная сетка */
html body .phd{position:relative;gap:10px;padding:16px;color:#aaa;
  background:
    repeating-linear-gradient(0deg,rgba(126,184,154,.07) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(126,184,154,.07) 0 1px,transparent 1px 32px),
    radial-gradient(120% 100% at 50% 0%,#17201a 0%,#0f130f 55%,#0d0f0c 100%)}
html body .phd .phm{font-size:26px;line-height:1;padding:0;border-radius:0;background:none;color:#7eb89a;letter-spacing:-.01em}
html body .phd small{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#aaa;font-weight:600;white-space:nowrap}
html body .phd.big .phm{font-size:34px}
html[data-theme=light] body .phd{color:#5c5a54;
  background:
    repeating-linear-gradient(0deg,rgba(71,114,92,.09) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(71,114,92,.09) 0 1px,transparent 1px 32px),
    radial-gradient(120% 100% at 50% 0%,#eef1ec 0%,#e8e7e1 100%)}
html[data-theme=light] body .phd .phm{color:#47725c}
html[data-theme=light] body .phd small{color:#5c5a54}
/* на странице проекта заглушка - узкая полоса, а не пустой экран */
html body .gal.one .main:has(.phd){aspect-ratio:auto;background:none;border-radius:16px;overflow:hidden}
html body .gal.one .phd.big{aspect-ratio:auto;min-height:0;height:clamp(120px,22vw,200px);border-radius:16px}
html body .gal.one:has(.phd){margin-bottom:4px}
/* карточки застройщиков без фото - в том же стиле */
.dvc .im:not(:has(img)){background:
    repeating-linear-gradient(0deg,rgba(126,184,154,.07) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(126,184,154,.07) 0 1px,transparent 1px 32px),#10140f}
html[data-theme=light] .dvc .im:not(:has(img)){background:
    repeating-linear-gradient(0deg,rgba(71,114,92,.09) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(71,114,92,.09) 0 1px,transparent 1px 32px),#ecebe5}

/* 2. Витрины на страницах рынков/Golden Visa: сначала карточки с фото и ценой */
.pj:not(#grid) .pc:has(.im .phd){order:5}
.pj:not(#grid) .pc:not(:has(.pr)){order:6}

/* 3. Низ карточки: две ровные кнопки, «Сравнить» - тихой строкой (рынки, Golden Visa) */
.pj:not(.v3cmp) .pc .ft{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch}
.pj:not(.v3cmp) .pc .ft .btn{width:100%;min-width:0;justify-content:center;text-align:center;white-space:normal;line-height:1.15;min-height:40px;padding:0 10px}
.pj:not(.v3cmp) .pc .ft .v3more{order:1}
.pj:not(.v3cmp) .pc .ft .v3ck{order:2}
.pj:not(.v3cmp) .pc .ft .cmpbox{order:3;grid-column:1/-1;justify-self:start;background:none!important;box-shadow:none!important;padding:2px 0 0;font-size:12.5px;color:var(--mut,#aaa)}
.pj:not(.v3cmp) .pc .ft:not(:has(.btn~.btn)) .btn{grid-column:1/-1}

/* 4. Типографика карточки: цена - главная, вторичное серым и мельче */
.pc .bd h3{letter-spacing:-.01em}
.pc .pr .vatp{font-weight:500;color:var(--mut,#aaa);font-size:.78em}
.pc .bd .where b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pc .bd .where{min-width:0}
/* флаг Кипра (белый) не теряется на светлой карточке */
html[data-theme=light] .flag.cflag{box-shadow:0 0 0 1px rgba(0,0,0,.12);border-radius:2px}

/* 5. Страница проекта на телефоне: фото сразу под названием, характеристики - одной компактной плашкой */
@media(max-width:767px){
  .wrap.pp>div:first-child{display:flex;flex-direction:column}
  .wrap.pp>div:first-child>*{order:4}
  .wrap.pp>div:first-child>h1,.wrap.pp>div:first-child>p.mut{order:0}
  .wrap.pp>div:first-child>.gal{order:1;margin-top:14px}
  .wrap.pp>div:first-child>.sub{order:2;margin-top:14px}
  .wrap.pp>div:first-child>.facts3{order:3}
  html body .facts3{gap:0!important;margin:14px 0 18px;border-radius:14px;overflow:hidden;box-shadow:0 0 0 1px var(--line,#1e1e1e);background:var(--card)}
  html body .facts3>div{border-radius:0!important;box-shadow:none!important;background:none!important;padding:11px 14px!important}
  html body .facts3>div+div{border-top:1px solid var(--line,#1e1e1e)}
  html body .facts3 b{font-size:15.5px!important;font-weight:700}
  html body .facts3 span{font-size:13px}
}

/* 6. Мобильный низ экрана: cookie-полоса и нижняя кнопка - вместе не больше ~80px */
@media(max-width:899px){
  html body #m2cc{padding:3px 10px calc(3px + env(safe-area-inset-bottom,0px));gap:8px;font-size:11.5px;line-height:1.25}
  html body #m2cc p{font-size:11px;line-height:1.25}
  html body #m2cc button{min-height:28px;height:28px;padding:0 10px;font-size:12px;border-radius:7px}
  html body:has(.mbar) #m2cc{bottom:calc(52px + env(safe-area-inset-bottom,0px));padding-bottom:3px}
  html body .mbar{padding:6px 12px calc(6px + env(safe-area-inset-bottom,0px))}
  html body .mbar .btn{min-height:40px;height:40px}
  /* квиз: своя кнопка «Далее» внизу, нижняя панель только мешает */
  html body:has(#qgame) .mbar{display:none!important}
  html body:has(#qgame) #m2cc{bottom:0;padding-bottom:calc(3px + env(safe-area-inset-bottom,0px))}
  html body:has(#qgame){padding-bottom:0}
}

/* 7. Страница проекта на телефоне: цена «от-до» сразу под фото, до описания и характеристик */
@media(max-width:767px){
  .wrap.pp>div:first-child>.gal{order:1}
  .wrap.pp>div:first-child>.box.mprice{order:2;margin-top:14px}
  .wrap.pp>div:first-child>.sub{order:3}
  .wrap.pp>div:first-child>.facts3{order:4}
  .wrap.pp>div:first-child>.payline{order:5}
  .wrap.pp>div:first-child>.ps-sec{order:6}
  html body .box.mprice{padding:16px 16px 14px}
  html body .box.mprice .price{font-size:24px;line-height:1.15}
  html body .box.mprice .fx{font-size:12.5px;margin-top:2px}
  html body .box.mprice .btns{margin-top:12px}
}
@media(max-width:899px){
  html.m2mb-off body:has(.mbar) #m2cc,html body:has(.mbar.hv) #m2cc{bottom:0;padding-bottom:calc(3px + env(safe-area-inset-bottom,0px))}
}

/* 8. #team: вместо 3 карточек специалистов - одна строка над кнопками связи (главная, /about) */
#team .v3hasfd .v3fd{margin-bottom:clamp(32px,4vw,44px)}
#team .v3hasfd .v3tg{grid-template-columns:minmax(0,1fr)}
#team .v3hasfd .v3tgc{display:block;padding-top:clamp(20px,2.4vw,28px);border-top:1px solid var(--line,#1e1e1e)}
#team .v3hasfd .v3tgc>*+*{margin-top:14px}
.v3spl{margin:0 0 4px;max-width:880px;font-size:15px;line-height:1.7;color:var(--text,#eceae1)}
.v3spl .v3spt{color:var(--muted,#aaa)}
.v3spl .v3spc{display:inline}
.v3spl .v3spx{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-weight:600;color:var(--text,#eceae1)}
.v3spl .v3spx img{width:18px;height:13px;border-radius:2px;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.v3spl .v3spx img+img{margin-left:-2px}
.v3spl i{font-style:normal;color:var(--muted,#aaa);margin:0 10px}
html[data-theme=light] .v3spl .v3spx img{box-shadow:0 0 0 1px rgba(0,0,0,.14)}
@media(max-width:560px){.v3spl{font-size:14.5px;line-height:1.75}.v3spl i{margin:0 7px}}

/* --- project-maps-v1 (26.11.2026): «Где находится» on project pages; fixed height = no CLS --- */
#where .pmap{position:relative;height:340px;border-radius:18px;overflow:hidden;box-shadow:0 0 0 1px var(--line);background:#e9e6df;margin:16px 0 14px;contain:layout paint}
@media(min-width:900px){#where .pmap{height:440px}}
.pmap-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#6f6f68;font-size:14px;padding:0 20px;text-align:center;background:#e9e6df repeating-linear-gradient(45deg,transparent 0 22px,rgba(0,0,0,.025) 22px 23px)}
.nb{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:minmax(0,1fr)}
@media(min-width:900px){.nb{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}}
.nb li{min-width:0;display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.nb-i{flex:0 0 34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 16%,transparent)}
.nb-i svg{width:17px;height:17px;fill:var(--accent)}
.nb-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.nb-t b{font-weight:600}.nb-t small{color:var(--mut,#9a9a92);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nb-d{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
#where .pm-note{font-size:13.5px;color:var(--mut);margin:0 0 6px}
.pm-o{width:24px;height:24px;border-radius:50%;background:#2f6b4f;border:3px solid #fff;box-shadow:0 0 0 7px rgba(47,107,79,.25),0 2px 6px rgba(0,0,0,.35)}
.pm-o.pm-d{width:12px;height:12px;border-width:2px;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.pm-p{width:30px;height:30px;border-radius:50%;background:#fff;border:1.5px solid #2f6b4f;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.pm-p svg{width:15px;height:15px;fill:#2f6b4f}
.pm-lb{position:absolute;left:30px;top:50%;transform:translateY(-50%);background:#0d0f0c;color:#eceae1;font:600 12px Inter,sans-serif;padding:4px 9px;border-radius:8px;white-space:nowrap;pointer-events:none}
.pm-d .pm-lb{left:22px}
#where .maplibregl-ctrl-logo{display:none!important}#where .maplibregl-ctrl-bottom-right{bottom:6px;right:6px}
#where .maplibregl-ctrl-attrib{font-size:11px}
#where .maplibregl-ctrl-attrib-button{background-repeat:no-repeat;background-position:center;width:24px;height:24px;min-height:0;min-width:0;padding:0;margin:0;border:0;box-shadow:none}#where .maplibregl-ctrl-group button{min-height:0;min-width:0;padding:0}
#where .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner{display:none}#where .maplibregl-ctrl-attrib.maplibregl-compact{min-height:24px;padding:0 24px 0 0;line-height:24px}#where .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show){padding:0;width:24px}
#where summary.maplibregl-ctrl-attrib-button{list-style:none}#where summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}#where summary.maplibregl-ctrl-attrib-button::before,#where summary.maplibregl-ctrl-attrib-button::after{content:none!important;display:none!important}
