/*
Theme Name: Таукель.Инвест
Author: Бурхан Борлаков
Version: 1.3
Description: Адаптивная тема с iOS-стилистикой, градиентами и анимациями.
Text Domain: taukel
*/

/* ====== ШРИФТЫ ====== */
@font-face {
  font-family: 'Kreadon';
  src: url('assets/fonts/Kreadon.woff2') format('woff2'),
       url('assets/fonts/Kreadon.woff') format('woff');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ====== БАЗА/РЕСЕТ ====== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #0d1d25;
  background: #ffffff;
  font-family: 'Tenor Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: #1c4257; text-decoration: none; }
a:hover { text-decoration: underline; }

:root { --radius-xl: 28px; --ticker-speed: 18s; }

/* ====== ТИПОГРАФИКА ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Kreadon', 'Tenor Sans', serif;
  letter-spacing: 0.2px;
  color: #0d1d25;
  margin: 0 0 12px;
}

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 18px; font-weight: 600; }
h6 { font-size: 16px; font-weight: 600; }

p { margin: 0 0 16px; font-size: 18px; }
.small { font-size: 16px; opacity: 0.9; }
.lead { font-size: 20px; }

ul, ol { padding-left: 20px; margin: 0 0 16px; }
hr { border: none; border-top: 1px solid rgba(13,29,37,.1); margin: 24px 0; }
blockquote {
  margin: 16px 0; padding: 16px 20px; border-left: 4px solid #1c4257; background:#f6f9fb; border-radius: 0 12px 12px 0;
}

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: none; cursor: pointer; font-family: 'Tenor Sans', sans-serif; font-size: 16px; text-decoration: none; color:#fff; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; text-transform: uppercase; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background:#fe7062; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(28,66,87,.35); text-decoration: none; }
.btn-secondary { background:#fff; color: #6a2096; }
.btn-secondary:hover { box-shadow: 0 6px 18px rgba(37,71,69,.35); text-decoration: none; }
.btn-outline { background:transparent; color:#1c4257; border:1px solid #1c4257; }

/* ====== HERO / ЛЕНД НА ВЕСЬ ЭКРАН ====== */
.hero {
  position: relative; min-height: 100svh; display:flex; align-items: stretch; justify-content:center; 
  padding: 100px 16px;
  background:
    radial-gradient(1200px 800px at 80% 20%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(135deg, #1c4257, #254745 60%, #1c4257);
}

/* iOS-окно + неоновая рамка */
.hero-window-wrap { position: relative; width: 100%; max-width: 1440px; border-radius: var(--radius-xl); padding:5px; }
.hero-window-wrap::before {
  content:""; position:absolute; inset:0; border-radius: calc(var(--radius-xl) + 8px);
  outline: 1px solid rgba(255,255,255,.95); outline-offset: 0; filter: drop-shadow(0 0 10px rgba(255,255,255,.75));
  pointer-events:none; z-index:1;
}
.hero-window {
  position: relative; z-index:2; border-radius: var(--radius-xl); height: calc(100svh - 200px);
  min-height: 560px;
  display: grid; grid-template-rows: 120px auto auto; overflow:hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35) 25%, rgba(0,0,0,.45)),
    linear-gradient(140deg, #0b1720, #0f1f27 50%, #152a34);
    background-image: url('images/apart.jpg'); background-size:cover; background-position:center;
}
@media (max-width: 560px) {
  .hero { padding: 30px 20px !important; }
  .hero-window { height: auto !important; min-height: 520px; grid-template-rows: 120px auto auto; }
  .topbar { display: block !important; min-height: 230px !important; margin: 0 auto !important; padding: 30px 0 !important; width: auto !important; }
  .topbar::after { content: none !important; }
  .topbar-inner { height: auto !important; flex-direction: column; width: auto !important; }
  .contact { flex-wrap: wrap; }
  .contact .phone { margin: 0; height: 40px; }
	/* .icon.vk  { background-color: rgba(28, 66, 87, 0.65); }
	.icon.tg  { background-color: rgba(28, 66, 87, 0.65); }
	.icon.wa  { background-color: rgba(28, 66, 87, 0.65); } */
	.logo { display: block; width: auto; justify-content: center !important; align-items: center !important; margin: 0 0 50px 0; }
	.ticker { margin-top: -10px; }
	.icon.loc { background-position: left center !important; }
	.location { margin-top: 180px; gap: 0 !important; }
	.hero-content { padding: 0 20px !important; background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 75%, rgba(0,0,0,0) 100%); }
	.stats { gap: 15px !important; }
	.stat { background-color: rgba(0, 0, 0, 0.65); padding: 15px; border-radius: 20px; max-width: 180px !important; }
	.actions { margin: 20px 0 30px 0; }
	.btn { width: 100%; }
	.pagetitle { font-size: 16pt !important; margin: 0 0 20px 0 !important; }
	.sheader { flex-direction: row; flex-wrap: wrap; justify-content: center !important; }
	.sheader .logo { margin: 0 0 10px 0; }
	.kpis .kpi, .cards .card, .plans .plan {  opacity: 1 !important; }
	.section.reveal .section-inner { opacity: 1 !important; transform: none !important; }
	.lead { text-align: justify; font-size: 12pt; margin-bottom: 20px; }
	.dialog h3 { padding-right: 40px; }
}


/* Верхняя панель */
.sheader { display:flex; max-width:1440px; margin:0 auto; align-items:center; justify-content:space-between; gap:16px; }
.topbar { position: relative; display:flex; align-items:center; justify-content:space-between; padding: 20px 28px; height:120px; }
.topbar::after { content:""; position:absolute; inset:0; background: linear-gradient( to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) ); z-index:0; border-radius: 28px; }
.topbar-inner { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; width:100%; gap:16px; }
.logo { display:inline-block; height:80px; width:280px; background-repeat:no-repeat; background-size:contain; background-position:left center; background: url('images/mtaukel.svg') no-repeat; }

.nav { display:flex; align-items:center; gap:24px; }
.nav a { color:#fff; font-size:16px; padding:8px 10px; border-radius:12px; }
.nav a:hover { background: rgba(255,255,255,.1); text-decoration:none; }
.nav li { list-style: none; margin: 0; padding: 0; }
.nav li::marker { content: none; }
.mmenu a { display: block; text-align: center; background: #0b63cf; padding: 10px 15px; color: #fff; margin: 0 0 10px 0; border-radius: 20px; }

.contact { display:flex; align-items:center; gap:5px; color:#fff; font-family: Arial; }
.phone { display:flex; align-items:center; gap:2px; font-size:18px; color:#fff; margin-right: 20px; background: -webkit-linear-gradient(90deg, #059193,#216572,#283d47);background: linear-gradient(90deg, #059193,#216572,#283d47); padding: 0 15px 0 5px; border-radius:12px; }
.phone:hover { text-decoration: none; }
.icon { width:40px; height:40px; display:inline-block; border-radius:12px; backdrop-filter: blur(4px); }
.icon.vk { background-image:url('images/vk.svg'); background-size:24px 24px; background-repeat:no-repeat; background-position:center; }
.icon.tg { background-image:url('images/tg.svg'); background-size:24px 24px; background-repeat:no-repeat; background-position:center; }
.icon.wa { background-image:url('images/wa.svg'); background-size:24px 24px; background-repeat:no-repeat; background-position:center; }
.icon.phone { background-image:url('images/phone.svg'); background-size:24px 24px; background-repeat:no-repeat; background-position:center; margin-right: 0; }
.icon.loc { background-image:url('images/location.svg'); background-size:35px 35px; background-repeat:no-repeat; background-position:center; }
.icon.ccost { background-image:url('images/ccost.svg'); background-size:35px 35px; background-repeat:no-repeat; background-position:center; }
.icon.pplay { background-image:url('images/pplay.svg'); background-size:35px 35px; background-repeat:no-repeat; background-position:center; }
.mail { background-image:url('images/mail.svg'); background-size:24px 24px; background-repeat:no-repeat; background-position:center; margin-right: 0; }

.burger { display:none; width:50px; height:50px; border-radius:14px; background: url('images/burger.svg') rgba(28, 66, 87, 0.65); border:1px solid rgba(255,255,255,.25); }

/* Бегущая строка — бесшовная */
.ticker { position:relative; overflow:hidden; white-space:nowrap; color:#fff; max-height: 30px; text-transform: uppercase; }
.ticker__track { display:flex; width:max-content; padding:0; will-change: transform; animation: ticker var(--ticker-speed, 18s) linear infinite; backdrop-filter: blur(5px); }
.ticker__track > * { margin-right: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Центральный контент (левое выравнивание) */
.hero-content { display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; padding: 24px 28px 32px; color:#fff; }
.hero-mid { text-align:left; margin-top: 6vh; margin-bottom: 6vh; }
.hero-mid .location { display:inline-flex; align-items:center; gap:10px; opacity:.95; }
.hero-mid h1 { color:#fff; margin-top:10px; margin-bottom:16px; text-shadow: 3px 5px 2px #1c4257; line-height: 1.3; }
.hero-mid .benefits { display:grid; gap:6px; }
.hero-mid .benefits div { font-size:20px; opacity:.95; }


/* Нижняя панель hero — в одну линию */
.hero-bottom { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:nowrap; width:100%; }
.stats { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:40px; flex: 0 1 auto; }
.stat { color:#fff; opacity:0; transform: translateX(30px); max-width: 160px; }
#stats .stat { transition: transform .6s ease, opacity .6s ease; }
#stats.ready .stat { opacity:1; transform:none; }
#stats .stat:nth-child(1) { transition-delay: .44s; }
#stats .stat:nth-child(2) { transition-delay: .22s; }
#stats .stat:nth-child(3) { transition-delay: 0s; }

.stat-head { display:flex; align-items:baseline; gap:8px; }
.stat .big { font-size: clamp(42px, 6vw, 68px); font-weight:800; line-height:1; }
.stat .unit { font-size:16px; opacity:.85; }
.stat .unit sup { font-size:.75em; vertical-align: super; }
.stat .meta { font-size: 16px; opacity:.9; }
.stat hr { border-color: rgba(255,255,255,.25); margin: 6px 0 8px; }

.actions { display:flex; gap:12px; flex:0 0 auto; font-family: Arial; font-weight: 600; }
@media (max-width: 560px) {
	.actions { display:flex; flex:0 1 auto !important; flex-direction: row; flex-wrap: wrap; justify-content: center; }
	.section.reveal .section-inner { transform-origin: none !important; filter: none !important; }
}

/* ====== СЕКЦИИ (новая анимация: Curtain 3D Reveal) ====== */
.section { overflow:hidden; }
.section.reveal { position: relative; overflow: hidden; perspective: 1200px; }
.section.reveal .section-inner { 
  transform-origin: top center; transform: rotateX(8deg) translateY(24px) scale(.985);
  filter: blur(8px); opacity: 0;
}
.section.reveal.in-view .section-inner {
  animation: pop3D .85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* Занавесы */
.section.reveal::before, .section.reveal::after {
  content: ""; position:absolute; top:-10%; height:120%; width:52%; z-index:2; pointer-events:none;
  backdrop-filter: blur(2px);
}
.section.white::before, .section.white::after { 
  background: linear-gradient( to right, rgba(28,66,87,.08), rgba(37,71,69,.08) );
}
.section.green::before, .section.green::after,
.section.blue::before,  .section.blue::after  { 
  background: linear-gradient( to right, rgba(255,255,255,.14), rgba(255,255,255,.06) );
}
.section.reveal::before { left:0;  transform: translateX(0); }
.section.reveal::after  { right:0; transform: translateX(0); }
.section.reveal.in-view::before { animation: curtainLeft .75s cubic-bezier(.2,.8,.2,1) forwards; }
.section.reveal.in-view::after  { animation: curtainRight .75s cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes curtainLeft  { to { transform: translateX(-120%); } }
@keyframes curtainRight { to { transform: translateX(120%);  } }

@keyframes pop3D {
  0%   { transform: rotateX(8deg) translateY(24px) scale(.985); filter: blur(8px);  opacity:0; }
  70%  { transform: rotateX(-2deg) translateY(-2px) scale(1.008); filter: blur(0); opacity:1; }
  100% { transform: none; filter: none; opacity:1; }
}

.section.white { background:#fff; color:#0d1d25; }
.section.green { background:#254745; color:#fff; }
.section.blue  { background:#1c4257; color:#fff; }

.section .heading-line { display:flex; align-items:baseline; justify-content:start; gap:16px; padding: 60px 16px 20px; max-width: 1280px; margin: 0 auto; }
.section .heading-line .ltitle { color: #fff; }
.section .heading-line .thin { font-weight:400; opacity:.8; text-transform: uppercase; }
.section .content { max-width: 1280px; margin: 0 auto; padding: 0 16px 60px; }

.pagetitle { font-size: 26pt; line-height: 1.3; margin: 0 0 40px 0; }

/* Стагер для KPI/карточек/планов */
.kpis .kpi, .cards .card, .plans .plan { 
  opacity: 0; transform: translateY(14px) scale(.98) rotateZ(-0.4deg);
}
.section.reveal.in-view .kpis .kpi,
.section.reveal.in-view .cards .card,
.section.reveal.in-view .plans .plan {
  opacity: 1; transform: none;
  transition: transform .6s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 90ms),
             opacity  .6s ease                       calc(var(--i, 0) * 90ms);
}
.cards h4 { color: #fff; text-transform: uppercase; border-bottom: 1px solid #cecece; padding-bottom: 5px; margin-bottom: 5px; line-height: 1.3; }
.cards p { font-size: 12pt; }
/* .content h3 { margin: 40px 0 20px 0; font-size: 14pt; border: 1px solid #254745; border-radius: 28px; padding: 10px 15px; text-align: center; color: #254745; cursor: default; } */
.plan .title { border-top: 1px solid rgba(13,29,37,.12); }
.plan em { display: inline-block; background: #f4f4f4; margin-top: 10px; font-family: Arial; font-size: 11pt; padding: 5px 7px; border-radius: 10px; }
.plan button { display: inline-block; background: #0b63cf; color: #fff; margin-top: 10px; font-family: Arial; font-size: 11pt; padding: 10px 15px; border-radius: 10px; border: none; outline: none; }

/* Блоки */
.kpis { display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
.kpi { background:#f6f9fb; border-radius:20px; padding:18px; color:#0d1d25; }
.green .kpi { background: rgba(255,255,255,.06); color:#fff; }
.kpi .num { font-size: clamp(28px, 3.2vw, 44px); font-weight:800; }
.kpi hr { border-color: rgba(13,29,37,.15); }
.green .kpi hr, .blue .kpi hr { border-color: rgba(255,255,255,.18); }
.kpi .text { font-size:14px; opacity:.85; }

.media-split { display:grid; grid-template-columns: 364px 1fr; gap:0; overflow:hidden; }
.media-split > div { max-height: 520px; width: calc(100%); }
.media-split .left { border-right:1px solid rgba(13,29,37,.1); max-width: 364px; max-height: 600px; margin-right: 40px; }
.green .media-split, .blue .media-split { border-color: rgba(255,255,255,.2); }
.green .media-split .left, .blue .media-split .left { border-right-color: rgba(255,255,255,.2); }

@media (max-width: 768px) {
  .media-split { grid-template-columns: 1fr; }
  .media-split > div { max-height: none; width: 100%; min-height: 520px; }
  .media-split .left { max-width: none; margin: 10px 0 10px 0; border-right: none; }
  .green .media-split .left, .blue .media-split .left { border-bottom-color: rgba(255,255,255,.2); }
  .vvb-wrapper { margin: 0 auto !important; }
}

.cards { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.card { border-radius: 20px; overflow:hidden; background:#fff; color:#0d1d25; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.green .card { background: rgba(255,255,255,.08); color:#fff; box-shadow: none; border:1px solid rgba(255,255,255,.15); }
.card .img { height: 180px; background:#dfe7eb center/cover no-repeat; }
.card .body { padding:16px; }
.card h4 { margin:0 0 6px; }

.plans { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
.plan { border-radius: 18px; border:1px solid rgba(13,29,37,.12); overflow:hidden; background:#fff; cursor:pointer; }
.plan .img { height: 180px; background: #eef3f6 center/cover no-repeat; }
.plan .title { padding:12px 14px; font-weight:400; font-size: 13pt; text-align: center; }

/* Лайтбокс */
.lightbox { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); z-index: 1000; }
.lightbox.open { display:flex; }
.lightbox .inner { position:relative; max-width: 90vw; max-height: 90vh; }
.lightbox img { display:block; width: auto; height: auto; max-width: 90vw; max-height: 90vh; border-radius: 18px; }
.lightbox .close { position:absolute; top:-14px; right:-14px; width:42px; height:42px; border-radius:999px; background:#fff; border:none; cursor:pointer; }
.lightbox .close::before { content:'×'; display:block; font-size:24px; line-height:42px; text-align:center; color:#0d1d25; }

/* ЛОКАЦИЯ */
.location-split { display:grid; grid-template-columns: 1.4fr .8fr; gap:0; border-radius: 20px; overflow:hidden; border:1px solid rgba(255,255,255,.2); }
.location-split .map { min-height: 360px; }
.location-split .desc { padding: 20px; }
.map-box { position: relative; border-radius: 12px; overflow: hidden; margin: 20px 0 20px 20px; }
  .map-img, .map-iframe { display: block; width: 100%; height: 360px; border: 0; }
  .map-btn { display: none; position: absolute; right: 12px; bottom: 12px; z-index: 3; padding: 10px 14px; background: #fff; border: 1px solid #ddd; border-radius: 10px; font: 14px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; text-decoration: none; color: #111; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .08s ease; user-select: none; }
  .map-btn:active { transform: translateY(1px); }
@media (max-width: 560px) {
    .map-box { margin: 20px 20px 0 20px; }
}
@media (max-width: 768px) {
    .map-iframe { display: none; }
    .map-img    { display: block; object-fit: cover; }
    .map-btn    { display: inline-block; }
}
@media (min-width: 769px) {
    .map-iframe { display: block; }
    .map-img    { display: none; }
}

/* ====== ФУТЕР ====== */
.footer { background:#0d1d25; color:#fff; }
.footer .inner { max-width:1280px; margin:0 auto; padding: 40px 16px; display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:20px; align-items:stretch; }
.footer .col { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px; opacity:0; transform: translateX(-20px); }
.footer .col.in { opacity:1; transform:none; transition: transform .7s ease, opacity .7s ease; }

.tabs { display:flex; gap:6px; margin-bottom:12px; }
.tab-btn { flex:1; padding: 10px 14px; border-radius: 999px; border:1px solid rgba(255,255,255,.25); background: transparent; color:#fff; cursor:pointer; }
.tab-btn.active { background:#1c4257; border-color: transparent; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

.ripple-btn { position:relative; width:120px; height:120px; border-radius:50%; border:2px solid #fff; background:transparent; color:#fff; font-weight:400; cursor:pointer; overflow:hidden; text-transform: uppercase; line-height: 1.3; }
.ripple-btn:after { content:""; position:absolute; inset:0; border-radius:50%; transform: scale(0); opacity:.4; background:#fff; }
.ripple-btn:active:after { transform: scale(1); transition: transform .35s ease; }

.footer .lines { margin-top:12px; }
.footer .line { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.15); }
.footer .line:last-child { border-bottom:none; }
.footer .copyright { border-top:1px solid rgba(255,255,255,.15); padding:12px 16px; text-align:center; margin-top: 20px; }
.line .icon { backdrop-filter: none; }
.line a { color: #fff; }

/* ====== МОДАЛКИ ====== */
.modal { font-family: Arial; position:fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); z-index: 1000; }
.modal.open { display:flex; }
.modal .dialog { position:relative; background:#fff; color:#0d1d25; border-radius: 24px; width:min(680px, 92vw); padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s ease; }
@keyframes pop { from { transform: scale(.98); opacity:0; } to { transform:none; opacity:1; } }
.modal .close { position:absolute; top:10px; right:10px; width:38px; height:38px; border-radius:12px; border:none; background:#f1f5f7; cursor:pointer; }
.modal .close::before { content: '×'; display:block; font-size:22px; line-height:38px; text-align:center; color:#0d1d25; }
.modal h3 { line-height: 1.3; }
.modal p { margin: 0 0 3px 0; }

/* ====== АДАПТИВ ====== */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .location-split { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav { display:none; }
  .burger { display:inline-block; }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .stats { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer .inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}

/* ====== SHUTTER STRIPES REVEAL (новая более интересная анимация) ====== */
.section.reveal.shutters { position: relative; overflow: hidden; perspective: none; }
.section.reveal.shutters .section-inner {
  transform: translateY(24px) scale(.985);
  opacity: 0; filter: blur(6px);
}
.section.reveal.shutters.in-view .section-inner {
  animation: contentPop .9s cubic-bezier(.22,1,.36,1) .25s forwards;
}

/* Два «штора»-оверлея с полосатой маской, уходят в разные стороны */
.section.reveal.shutters::before,
.section.reveal.shutters::after {
  content:""; position:absolute; inset:-12% -6%; z-index:2; pointer-events:none;
  transform: translateX(0);
  /* Fallback: сплошной фон (если mask не поддерживается) */
  background: rgba(255,255,255,.95);
}
/* Подстраиваем фон «штор» под цвет секции */
.section.white.shutters::before, .section.white.shutters::after { background: #ffffff; }
.section.green.shutters::before, .section.green.shutters::after { background: rgba(37,71,69,.92); }
.section.blue.shutters::before,  .section.blue.shutters::after  { background: rgba(28,66,87,.92); }

/* Полосатые маски — создают эффект «жалюзи» */
.section.reveal.shutters::before {
  -webkit-mask: repeating-linear-gradient( to bottom, #000 0 14px, transparent 14px 22px);
          mask: repeating-linear-gradient( to bottom, #000 0 14px, transparent 14px 22px);
}
.section.reveal.shutters::after {
  -webkit-mask: repeating-linear-gradient( to bottom, transparent 0 14px, #000 14px 22px);
          mask: repeating-linear-gradient( to bottom, transparent 0 14px, #000 14px 22px);
}

/* Движение штор в разные стороны (слегка рассинхронизировано) */
.section.reveal.shutters.in-view::before { animation: shutterLeft .8s ease-in forwards; }
.section.reveal.shutters.in-view::after  { animation: shutterRight .8s ease-in .06s forwards; }

@keyframes shutterLeft  { to { transform: translateX(-120%); } }
@keyframes shutterRight { to { transform: translateX(120%); } }
@keyframes contentPop   { to { transform: none; opacity: 1; filter: blur(0); } }


/* ====== SIMPLE MOTION REVEAL (минималистичное движение секций) ====== */
.section.reveal { will-change: transform, opacity; }
.section.reveal .section-inner { 
  opacity: 0; transform: translateY(28px) scale(.985);
}
/* Лёгкое разнонаправленное движение для соседних секций */
.section.reveal:nth-of-type(odd)  .section-inner { transform: translateY(28px) translateX(-10px) scale(.985) rotateZ(0.3deg); }
.section.reveal:nth-of-type(even) .section-inner { transform: translateY(28px) translateX( 10px) scale(.985) rotateZ(-0.3deg); }

/* При входе — плавный слайд к норме с небольшим «перелётом» */
.section.reveal.in-view .section-inner { 
  animation: simpleSlide .7s cubic-bezier(.22,1,.36,1) forwards !important;
}
@keyframes simpleSlide { 
  60% { opacity:1; transform: translateY(-3px) scale(1.005) rotateZ(0deg); }
  100%{ opacity:1; transform: none; }
}

/* На всякий случай отключим любые ранее добавленные «занавесы»/оверлеи */
.section.reveal::before, .section.reveal::after { display:none !important; content:none !important; }

/* --- FIX: force-remove blur on sections --- */
.section.reveal .section-inner { filter: none !important; }
.section.reveal.in-view .section-inner { filter: none !important; }


/* ===== Height-based responsiveness: keep HERO fully visible on short screens ===== */
@media screen and (max-height: 1000px) {
  .hero { padding: 50px 16px; }
  .hero-window { height: calc(100svh - 100px); min-height: 520px; }
  .topbar { height: 96px; margin: 20px; }
  .logo { height: 64px; }
  .ticker__track { padding:0; }
  .hero-mid { margin-top: 3vh; margin-bottom: 3vh; }
  .hero-mid h1 { font-size: clamp(30px, 4.4vw, 48px); }
  .hero-mid .benefits div { font-size: 18px; }
  .stat .big { font-size: clamp(34px, 5vw, 54px); }
  .stat .unit, .stat .meta { font-size: 15px; }
  .btn { padding: 12px 18px; }
  .actions { gap: 10px; }
}

@media screen and (max-height: 800px) {
  .topbar { height: 84px; }
  .logo { height: 56px; }
  .nav a { font-size: 14px; padding: 6px 8px; }
  .phone { font-size: 15px; }
  .hero-window { min-height: 480px; }
  .hero-mid { margin-top: 2vh; margin-bottom: 2vh; }
  .hero-mid h1 { font-size: clamp(26px, 4vw, 40px); }
  .hero-mid .benefits div { font-size: 16px; }
  .stat .big { font-size: clamp(28px, 4.6vw, 46px); }
  .stat .unit, .stat .meta { font-size: 14px; }
  .btn { padding: 10px 16px; font-size: 15px; }
}

/* Optional extra guard for very short laptop screens */
@media screen and (max-height: 720px) {
  .hero-mid { margin-top: 1.6vh; margin-bottom: 1.6vh; }
  .hero-bottom { gap: 14px; }
}

/* Планировки */
/* ===== Настройки изображений (замените пути) ===== */
.card--image-left  .card__media { 
  background-image:url('images/5f.jpg');
}
.card--image-right .card__media { 
  background-image:url('images/7f.jpg');
}

/* ===== Блок с карточками ===== */
:root {
  --radius: 28px;
  --border: #1f2937;            /* тёмный контур вокруг "выреза" */
  --blue: #0b63cf;               /* круглая синяя кнопка */
  --text: #111827;
  --card-min-h: 420px;
}

* { box-sizing: border-box; }

.building-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  max-width: 1280px;
  margin: 0 auto 60px auto;
  padding: clamp(12px, 2vw, 20px);
}

.card {
  position: relative;
  min-height: var(--card-min-h);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  overflow: hidden;
  isolation: isolate;
}

/* Фото-блок */
.card__media {
  position: absolute;
  top: 0; bottom: 0;
  width: 58%;
  background-size: cover;
  background-position: center;
}

/* левая/правая фотография + градиент к белому */
.card--image-left  .card__media { left: 0; }
.card--image-right .card__media { left: 0; }
.card--image-left  .card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 85%);
}
.card--image-right .card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 85%);
}

/* Контент по центру */
.card__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: right;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(20px, 4vw, 40px);
  color: var(--text);
  text-align: right;
}

.card__title {
  margin: 0;
  font: 800 clamp(18px, 2.6vw, 28px)/1.15;
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Стрелка вниз-вправо */
.card__arrow {
  width: clamp(72px, 7vw, 100px);
  height: auto;
  color: #111827;
  transform: translateY(4px);
	right: 160px;
	position: absolute;
}

/* Кнопка + "вырезанный" круг */
.card__cta-wrap {
  position: absolute;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(12px, 2.2vw, 24px);
  width: clamp(120px, 14vw, 190px);
  aspect-ratio: 1/1;
}

.card__cta-cutout {
  position: absolute;
  inset: 0;
  transform: translate(22%, 18%);           /* выносит круг за край карточки */
  width: 125%;
  height: 125%;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  z-index: 0;
}

/* синяя кнопка */
.card__cta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: auto;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 800 clamp(12px, 1.4vw, 16px)/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11,99,207,.35);
  z-index: 1;
}

/* Ховеры/фокус */
.card__cta:focus-visible { outline: 3px solid #cde1ff; outline-offset: 3px; }
.card__cta:hover { filter: brightness(1.05); transform: translateY(-1px); text-decoration: none; }

/* Адаптивность */
@media (max-width: 980px) {
  .building-cards { grid-template-columns: 1fr; }
  .card { min-height: 380px; }
}
@media (max-width: 560px) {
	.card__arrow { right: 100px; bottom: 120px; }
}

/* Видео */
/* Базовые переменные */
:root {
  --vvb-z: 9999;
  --vvb-icon-w: 46px;
  --vvb-safe: max(16px, env(safe-area-inset-left));
  --vvb-shadow: 0 6px 18px rgba(0,0,0,.35);
  --vvb-radius: 18px;
  --vvb-vh: 1vh; /* моб. фикс, устанавливается JS */
}

/* Блок плагина */
.vvb-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

/* Область просмотра с соотношением 9:16 */
.vvb-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: #000;
  border-radius: var(--vvb-radius);
}

/* Трек видео */
.vvb-track {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  will-change: transform;
}

/* Элементы */
.vvb-item {
  width: 100%;
  height: 100%;
  position: relative;
}
.vvb-item .vvb-video-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* Видео на весь кадр */
.vvb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* для 9:16 */
  background: #000;
}

/* Центровые иконки Play/Pause */
.vvb-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: calc(var(--vvb-z) + 10);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.5));
}
.vvb-center img {
  display: block;
  width: var(--vvb-icon-w);
  height: auto;
}
.vvb-hidden { display: none !important; }

/* Спиннер */
.vvb-spinner {
  position: absolute;
  inset: 0;                      /* растянуть на весь кадр */
  display: flex;
  align-items: center;
  justify-content: center;       /* центровка без transform */
  z-index: 99999;                /* чтобы было поверх видео */
  pointer-events: none;          /* не ловим клики */
  animation: none !important;    /* на контейнере — НИКАКИХ анимаций */
}

/* 2) Крутится только картинка; используем rotate, а не transform */
.vvb-spinner > img {
  display: block;
  width: 48px;
  height: 48px;
  transform-origin: 50% 50%;
  animation: vvb-spin-rotate 1s linear infinite !important;
  will-change: transform;        /* сгладить перерисовки */
}

/* 3) Ключевые кадры — только вращение (без translate) */
@keyframes vvb-spin-rotate {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

/* 4) На всякий случай «глушим» любые старые анимации/кадры,
      если они где-то выше остались и использовали transform */
.vvb-spinner img { transform: none; }  /* базово без преобразований, а крутит rotate */

/* Заголовок — низ слева */
.vvb-title {
  position: absolute;
  left: 16px; bottom: 16px;
  color: #fff;
  font: 600 16px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  z-index: calc(var(--vvb-z) + 3);
  max-width: 70%;
}

/* Кнопки справа внизу (колонка) */
.vvb-actions {
  position: absolute;
  right: 16px; bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  z-index: calc(var(--vvb-z) + 4);
}
.vvb-actions button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.5));
}
.vvb-actions img {
  width: var(--vvb-icon-w);
  height: auto;
}
.vvb-like { position: relative; }
.vvb-like-count {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -16px;
  color: #fff;
  font: 700 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

/* Стрелки справа по центру */
.vvb-arrow {
  position: absolute;
  right: 5px;
  width: var(--vvb-icon-w);
  height: var(--vvb-icon-w);
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; padding: 0; cursor: pointer;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.6));
  z-index: calc(var(--vvb-z) + 6);
  transform: translateY(-50%);
}
.vvb-arrow img { width: var(--vvb-icon-w); height: auto; }
.vvb-arrow-up   { top: 40%; }
.vvb-arrow-down { top: 60%; }

/* Подсказка на мобилках */
.vvb-mobile-hint {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 999px;
  font: 600 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  z-index: calc(var(--vvb-z) + 7);
}

/* Модалка */
.vvb-modal {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 999999;
}
.vvb-modal .vvb-fullscreen { display: none; }
.vvb-modal.vvb-hidden { display: none; }

.vvb-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  backdrop-filter: blur(8px) saturate(110%);
}

.vvb-modal-dialog {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center; justify-content: center;
}

.vvb-modal-content {
  position: relative;
  width: auto;
  height: min(720px, calc(100vh - 160px));
  aspect-ratio: 9 / 16;
  border-radius: var(--vvb-radius);
  overflow: hidden;
  box-shadow: var(--vvb-shadow);
}

.vvb-modal-close {
  position: absolute;
  right: 10px; top: 10px;
  width: 42px; height: 42px;
  border: none; background: transparent; cursor: pointer;
  z-index: calc(var(--vvb-z) + 120);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.6));
}
.vvb-modal-close img { width: 42px; height: 42px; }

/* На мобильных — модалка и контент на весь экран с реальным vh */
@media (max-width: 768px) {
  .vvb-modal-dialog {
    left: 0; top: 0; transform: none;
    width: 100vw; height: calc(var(--vvb-vh, 1vh) * 100);
  }
  .vvb-modal-content {
    width: 100vw; height: calc(var(--vvb-vh, 1vh) * 100);
    aspect-ratio: auto;
    border-radius: 0;
  }
  .vvb-modal .vvb-viewport {
    width: 100%; height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
  }
  /* Стрелки — на одной линии с кнопками и выше лайка */
  .vvb-arrow {
    right: auto; left: calc(100% - var(--vvb-icon-w) - 12px);
  }
  .vvb-arrow-up { top: 40%; }
  .vvb-arrow-down { top: 60%; }
	.vvb-modal .vvb-arrow-up { top: 40%; }
	.vvb-modal .vvb-arrow-down { top: 55%; }
	.vvb-modal .vvb-actions { bottom: 150px; }
}

/* Блокировка скролла страницы при модалке */
body.vvb-lock { overflow: hidden; }

/* Пусто */
.vvb-empty { padding: 12px; color: #777; }

/* Галерея */
/* GLR styles */
.glr-gallery, .glr-gallery *{box-sizing:border-box}
.glr-gallery{position:relative;width:100%;height:100%}
.glr-viewport{position:relative;width:100%;height:calc(100% - 28px);overflow:hidden}
.glr-track{position:absolute;inset:0;display:flex;flex-direction:row;align-items:center;gap:20px;padding:20px 40px;overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:visible;scroll-behavior:smooth;scroll-snap-type:x proximity;scroll-padding:20px 40px;z-index:1; touch-action:auto}
.glr-track::-webkit-scrollbar{display:none}.glr-track{-ms-overflow-style:none;scrollbar-width:none}
.glr-item{position:relative;flex:0 0 auto;transition:transform .35s ease,opacity .35s ease;will-change:transform;scroll-snap-align:center}
.glr-thumb{display:block;width:auto;height:auto;max-width:300px;max-height:300px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.15);user-select:none;pointer-events:auto}
.glr-fade{position:absolute;top:0;bottom:28px;width:64px;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity .25s ease;z-index:2}
.glr-fade-left{left:0;background:linear-gradient(90deg,rgba(255,255,255,.85),rgba(255,255,255,0))}
.glr-fade-right{right:0;background:linear-gradient(270deg,rgba(255,255,255,.85),rgba(255,255,255,0))}
.glr-fade.is-visible{opacity:1;pointer-events:auto}
.glr-arrow{pointer-events:auto;width:40px;height:40px;border-radius:999px;border:none;background:rgba(255,255,255,.95);box-shadow:0 2px 10px rgba(0,0,0,.2);cursor:pointer;transition:transform .2s ease,background .2s ease;position:relative}
.glr-arrow:after{content:'';position:absolute;top:50%;left:50%;width:12px;height:12px;border-top:2px solid #111;border-right:2px solid #111;transform:translate(-50%,-50%) rotate(45deg)}
.glr-arrow-left:after{transform:translate(-50%,-50%) rotate(225deg)}
.glr-arrow:hover{transform:scale(1.06)}
.glr-slider{position:absolute;left:0;right:0;bottom:0;padding:4px 40px}
.glr-slider input[type=range]{width:100%;-webkit-appearance:none;appearance:none;height:4px;background:#ddd;border-radius:999px;outline:0}
.glr-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:#111;cursor:pointer}
.glr-slider input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#111;border:none;cursor:pointer}
body.glr-lightbox-open{overflow:hidden}
.glr-lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.6);backdrop-filter:blur(8px);opacity:0;transition:opacity .25s ease;z-index:999999; touch-action:none}
.glr-lightbox.is-open{display:flex;opacity:1}
.glr-lightbox-inner{position:relative;width:100%;height:100%;padding:60px 0;display:flex;align-items:center;justify-content:center}
.glr-lightbox-stage{position:relative;width:100%;height:100%;pointer-events:none}
.glr-lightbox-img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) translateX(14px) scale(.99);max-height:calc(100vh - 120px);max-width:92vw;height:auto;width:auto;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.35);user-select:none;opacity:0;transition:opacity .22s ease, transform .22s ease}
.glr-lightbox-img.is-visible{opacity:1;transform:translate(-50%,-50%)}
.glr-lightbox-close{position:absolute;top:20px;right:20px;width:36px;height:36px;border-radius:999px;border:none;background:rgba(255,255,255,.95);cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.glr-lightbox-close:before,.glr-lightbox-close:after{content:'';position:absolute;top:50%;left:50%;width:18px;height:2px;background:#111;transform-origin:center}
.glr-lightbox-close:before{transform:translate(-50%,-50%) rotate(45deg)}
.glr-lightbox-close:after{transform:translate(-50%,-50%) rotate(-45deg)}
.glr-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:56px;height:56px;border:none;border-radius:999px;background:rgba(255,255,255,.9);cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.25);z-index:3}
.glr-lightbox-prev{left:18px}.glr-lightbox-next{right:18px}
.glr-lightbox-nav:after{content:'';position:absolute;top:50%;left:50%;width:16px;height:16px;border-top:2px solid #111;border-right:2px solid #111;transform:translate(-50%,-50%) rotate(45deg)}
.glr-lightbox-prev:after{transform:translate(-50%,-50%) rotate(225deg)}
/* Admin */
.glr-admin .glr-admin-hint{opacity:.75}.glr-images-list{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:10px}
.glr-images-item{position:relative;width:90px;height:90px;border:1px solid #e2e2e2;border-radius:6px;overflow:hidden;background:#fafafa;cursor:move}
.glr-images-item img{width:100%;height:100%;object-fit:cover;display:block}
.glr-remove{position:absolute;top:2px;right:2px;border:none;width:22px;height:22px;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;cursor:pointer}
.glr-code{user-select:all}

.fwb { background: #fff; padding: 20px; border-radius: 28px; }

/* Оверлей поверх страницы: блюрит и слегка затемняет фон */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;                 /* включаем через .open */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45); /* лёгкое затемнение */
  backdrop-filter: blur(8px);     /* блюр заднего плана */
  z-index: 1000;
}

.video-modal.open { display: flex; }

/* «Окно» без фона — только видео */
.video-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 960px;                   /* можно менять на вкус */
  aspect-ratio: 16 / 9;           /* сохраняем пропорции */
  background: transparent;        /* важный момент — нет фона */
}

/* Само видео — заполняет wrap */
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Кнопка закрытия */
.video-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0d1d25;
  font-size: 26px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.video-close:focus { outline: 2px solid rgba(255,255,255,.6); }

/* Небольшая адаптация на узких экранах */
@media (max-width: 560px) {
  .video-wrap { width: 100%; }
}