/* MDC NRG Istanbul — внутренние страницы «Наследие» (2026-11-16). Всё под body.mdc-ls. */
body.mdc-ls{--ls-line:rgba(255,255,255,.85);--ls-red:#C11717;--ls-red-hot:#e02020;--ls-muted:#a3a3ad;--ls-pad:max(20px,3vw)}
/* ---------- первый экран ---------- */
body.mdc-ls .ls-hero{position:relative;display:grid;grid-template-columns:1fr minmax(260px,24vw);border-bottom:1px solid var(--ls-line);background:#111;color:#fff;font-family:Montserrat,sans-serif}
body.mdc-ls .ls-hero--photo{grid-template-columns:1fr minmax(220px,22vw) minmax(240px,22vw)}
/* звезда на пересечении нижней линии и красного блока */
body.mdc-ls .ls-cta{position:relative}
body.mdc-ls .ls-cta::before{content:"";position:absolute;z-index:3;width:22px;height:22px;left:-11px;bottom:-11px;background:url(../../themes/mdcnrg/assets/images/star.svg) center/contain no-repeat}
body.mdc-ls .ls-hero-txt{padding:clamp(48px,7vw,110px) var(--ls-pad) clamp(36px,4vw,56px);display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(300px,34vw,460px)}
body.mdc-ls .ls-eyebrow{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--ls-muted);margin-bottom:16px}
body.mdc-ls .ls-hero h1{font-size:clamp(44px,7.4vw,118px);font-weight:900;text-transform:uppercase;line-height:.92;letter-spacing:-.01em;margin:0;color:#fff;text-align:left;overflow-wrap:anywhere}
body.mdc-ls .ls-hero p{margin:22px 0 0;max-width:640px;font-size:17px;line-height:1.55;color:#e1e1e6;text-transform:none;text-align:left}
body.mdc-ls .ls-cta{display:flex;flex-direction:column;justify-content:flex-end;gap:8px;padding:32px 28px;background:var(--ls-red);color:#fff;text-decoration:none;border-left:1px solid var(--ls-line);transition:background .2s}
body.mdc-ls .ls-cta:hover{background:var(--ls-red-hot);color:#fff}
body.mdc-ls .ls-cta small{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#ffd0d0}
body.mdc-ls .ls-cta b{font-size:clamp(24px,2.3vw,34px);font-weight:900;text-transform:uppercase;line-height:1.05}
body.mdc-ls .ls-cta span{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
body.mdc-ls .ls-photo{position:relative;display:block;overflow:hidden;border-left:1px solid var(--ls-line);color:#fff;text-decoration:none}
body.mdc-ls .ls-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;filter:grayscale(.3);transition:filter .3s,transform .5s}
body.mdc-ls .ls-photo:hover img{filter:none;transform:scale(1.04)}
body.mdc-ls .ls-photo span{position:absolute;left:0;right:0;bottom:0;padding:14px 18px;background:linear-gradient(transparent,rgba(17,17,17,.9));font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
/* ---------- общий текст страниц ---------- */
body.mdc-ls main .content{color:#e1e1e6}
body.mdc-ls main .content.m-4.border{margin:0!important;border:0!important;padding:clamp(32px,4vw,64px) var(--ls-pad)!important;border-bottom:1px solid var(--ls-line)!important;font-size:17px;line-height:1.7}
body.mdc-ls main .content.m-4.border>*{max-width:900px}
body.mdc-ls main .content h2{font-size:clamp(30px,4vw,56px);margin:1.4em 0 .6em}
body.mdc-ls main .content h3{font-size:clamp(22px,2.4vw,34px);margin:1.6em 0 .6em;color:#fff}
body.mdc-ls main .content h4{font-size:clamp(18px,1.8vw,26px);margin:1.4em 0 .6em}
body.mdc-ls main .content p{margin-bottom:1em}
/* заголовки блоков темы («Teachers», «More styles») — как на главной */
body.mdc-ls main h2.text-center.text-uppercase{font-size:clamp(34px,5vw,64px)!important;text-align:left!important;margin:0!important;padding:64px var(--ls-pad) 30px;border-bottom:1px solid var(--ls-line);line-height:1}
/* фильтр Стамбул/Москва */
body.mdc-ls .mdcnrg-filter li a{font-size:clamp(13px,1.3vw,18px);padding:22px;letter-spacing:.06em}
/* ---------- список стилей ---------- */
body.mdc-ls.post-type-archive-style main .mdcnrg-styles-grid{display:none}
body.mdc-ls .ls-styles{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid var(--ls-line);background:#111}
body.mdc-ls .ls-st{position:relative;aspect-ratio:1/1.12;overflow:hidden;border-right:1px solid var(--ls-line);border-bottom:1px solid var(--ls-line);color:#fff;text-decoration:none}
body.mdc-ls .ls-st:nth-child(5n){border-right:0}
body.mdc-ls .ls-st:nth-last-child(-n+5){border-bottom:0}
body.mdc-ls .ls-st img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 22%;filter:grayscale(.35) brightness(.72);transition:transform .5s,filter .3s}
body.mdc-ls .ls-st:hover img{transform:scale(1.05);filter:none}
body.mdc-ls .ls-st::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 45%,rgba(17,17,17,.92))}
body.mdc-ls .ls-st-n{position:absolute;z-index:2;top:18px;left:20px;font-weight:900;font-size:15px;letter-spacing:.08em}
body.mdc-ls .ls-st-start{position:absolute;z-index:2;top:16px;right:16px;background:var(--ls-red);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;padding:5px 10px}
body.mdc-ls .ls-st-t{position:absolute;z-index:2;left:20px;right:20px;bottom:18px}
body.mdc-ls .ls-st-t b{display:block;font-size:clamp(18px,1.7vw,24px);font-weight:900;text-transform:uppercase;line-height:1.05}
body.mdc-ls .ls-st-t i{display:block;font-style:normal;font-size:13px;color:#d6d6da}
body.mdc-ls .ls-st-t em{display:block;font-style:normal;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#ff6b6b;margin-top:4px}
/* «More styles» на странице стиля: подпись поверх фото, как в сетке */
body.mdc-ls.single-style .mdcnrg-styles-grid .mdcnrg-styles-grid-item a{position:relative;display:block}
body.mdc-ls.single-style .mdcnrg-styles-grid .mdcnrg-styles-grid-item a span{position:absolute;left:0;right:0;bottom:0;padding:18px 20px;background:linear-gradient(transparent,rgba(17,17,17,.9));font-size:clamp(16px,1.5vw,22px);line-height:1.1}
/* ---------- педагоги: прямоугольные фото вместо кругов ---------- */
body.mdc-ls .mdcnrg-teachers .teacher .inner a .image-wrapper,body.mdc-ls .mdcnrg-teacher .teacher .inner a .image-wrapper{top:0;left:0;width:100%;height:73.4%;border-radius:0;transform:none;-webkit-mask-image:none;mask-image:none}
body.mdc-ls .mdcnrg-teachers .teacher .inner a .image-wrapper:after{display:none}
body.mdc-ls .mdcnrg-teachers .teacher .inner a .image-wrapper img{object-position:50% 15%;filter:grayscale(1) contrast(1.08);transition:transform .5s,filter .3s}
body.mdc-ls .mdcnrg-teachers .teacher .inner a:hover .image-wrapper img{transform:scale(1.05);filter:none}
body.mdc-ls .mdcnrg-teachers .teacher .inner a:hover:before{background:transparent}
body.mdc-ls .mdcnrg-teachers .teacher .inner a .content{background:#111}
body.mdc-ls .mdcnrg-teachers .teacher .inner a:hover .content{background:var(--ls-red)}
body.mdc-ls .mdcnrg-teachers .teacher .inner .icon-style{display:none}
/* ---------- страница педагога ---------- */
body.mdc-ls .mdcnrg-teacher.full{margin:0 0 80px;border-left:0;border-right:0;padding:clamp(28px,3vw,48px) var(--ls-pad)}
body.mdc-ls.single-teacher main>.mt-4{margin-top:0!important}
body.mdc-ls .mdcnrg-teacher.full .image-wrapper img{width:100%;height:auto;filter:none}
body.mdc-ls .mdcnrg-teacher .teacher-content{text-transform:none!important;font-size:16px;line-height:1.75;color:#e1e1e6}
/* ---------- цены ---------- */
body.mdc-ls.page-template-prices main .content h4,body.mdc-ls main .content h4[style*="center"]{text-align:left!important;padding:0 var(--ls-pad);font-size:clamp(16px,1.6vw,22px);letter-spacing:.08em;color:var(--ls-muted)}
/* ---------- контакты ---------- */
body.mdc-ls main .content .vc_row.border.m-4{margin:0!important;border-left:0!important;border-right:0!important;padding:clamp(28px,3vw,48px) var(--ls-pad)!important}
body.mdc-ls main .content .vc_row.border.m-4 h3{font-size:clamp(22px,2.4vw,34px)}
@media(max-width:991px){
  body.mdc-ls .ls-styles{grid-template-columns:repeat(2,1fr)}
  body.mdc-ls .ls-st,body.mdc-ls .ls-st:nth-child(5n){border-right:1px solid var(--ls-line)}
  body.mdc-ls .ls-st:nth-child(2n){border-right:0}
  body.mdc-ls .ls-st:nth-last-child(-n+5){border-bottom:1px solid var(--ls-line)}
  body.mdc-ls .ls-st:nth-last-child(-n+2){border-bottom:0}
}
@media(max-width:767px){
  body.mdc-ls .ls-hero,body.mdc-ls .ls-hero--photo{grid-template-columns:1fr}
  body.mdc-ls .ls-cta::before{display:none}
  body.mdc-ls .ls-hero-txt{min-height:0;padding:44px 20px 28px}
  body.mdc-ls .ls-hero h1{font-size:clamp(36px,11vw,56px)}
  body.mdc-ls .ls-hero p{font-size:15px}
  body.mdc-ls .ls-photo{height:340px;border-left:0;border-top:1px solid var(--ls-line)}
  body.mdc-ls .ls-cta{border-left:0;border-top:1px solid var(--ls-line);padding:22px 20px}
  body.mdc-ls main h2.text-center.text-uppercase{padding:44px 20px 22px}
  body.mdc-ls .ls-st-t,body.mdc-ls .ls-st-n{left:12px}
  body.mdc-ls .ls-st-t{right:10px;bottom:12px}
  body.mdc-ls .ls-st-t b{font-size:17px}
  body.mdc-ls .ls-st-t i{font-size:11px;line-height:1.3}
  body.mdc-ls .ls-st-t em{font-size:10px}
  body.mdc-ls .ls-st-start{font-size:9px;right:8px;top:10px;padding:4px 7px}
}
/* карта на контактах задана шириной 1240px — подгоняем под экран (на телефоне страница уезжала вбок) */
body.mdc-ls main .content code{white-space:normal;background:none;padding:0;display:block}
body.mdc-ls main .content iframe{max-width:100%;width:100%!important}
