/* ============================================================
   ЛАЙТ СТРОЙ — main.css (PSD-strict)
   Шрифт: Montserrat (400-900 + cyrillic)
   ============================================================ */

:root {
  --green: #4BAE49;
  --green-dark: #3D9A3B;
  --green-soft: #E8F5E9;
  --yellow: #FFC83A;
  --ink: #1A1D24;
  --ink-2: #4B5563;
  --muted: #6B7280;
  --line: #E5E7EB;
  --soft: #F7F8FA;
  --bg: #FFFFFF;
  --radius-s: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --shadow-sm: 0 4px 12px rgba(15,20,30,.06);
  --shadow: 0 12px 32px rgba(15,20,30,.10);
  --header-h: 76px;
  --topbar-h: 36px;
}

/* ====== RESET / BASE ====== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
h1, h2, h3, h4, h5 { overflow-wrap: normal; word-wrap: normal; }
h2 { font-size: clamp(24px, 2.6vw, 36px); }
h3 { font-size: clamp(16px, 1.6vw, 22px); }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--green); border-radius: 2px; display: inline-block; }

/* ====== LAYOUT ====== */
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 70px 0; }
.section-soft { background: var(--soft); }
@media (max-width: 720px) { .section { padding: 48px 0; } }

.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; max-width: 720px; min-width: 0; }
.section-head h2 { min-width: 0; width: 100%; overflow-wrap: normal; word-wrap: normal; }
.section-head p { min-width: 0; }
.section-head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-head--row { display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head--row p { max-width: 640px; }
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.section-cta { display: flex; justify-content: center; margin-top: 40px; }
.link-arrow { color: var(--green); font-weight: 600; font-size: 14px; white-space: nowrap; }
.link-arrow:hover { color: var(--green-dark); }

/* ====== BUTTONS ====== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-s); font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, transform .12s, box-shadow .2s; border: 1.5px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--soft); color: var(--green-dark); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ====== TOP BAR (1) ====== */
.topbar { background: var(--soft); border-bottom: 1px solid var(--line); height: var(--topbar-h); display: flex; align-items: center; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__phones { display: flex; gap: 22px; align-items: center; }
.topbar__address { color: var(--muted); font-size: 13px; padding-right: 22px; border-right: 1px solid var(--line); }
@media (max-width: 980px) { .topbar__address { display: none; } }
.topbar__phone { color: var(--ink); font-weight: 500; font-size: 13px; }
.topbar__phone:hover { color: var(--green); }
.topbar__social { display: flex; gap: 6px; }
.topbar__soc { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .2s; }
.topbar__soc:hover { color: var(--green); }
.topbar__soc svg { width: 14px; height: 14px; }
@media (max-width: 720px) { .topbar { display: none; } }

/* ====== HEADER (2) ====== */
.header { background: #fff; height: var(--header-h); display: flex; align-items: center; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; }
.header__inner { display: flex; align-items: center; gap: 36px; height: 100%; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo__img { display: block; height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); padding: 8px 0; transition: color .2s; }
.nav__link:hover { color: var(--green); }
.nav__menu { position: absolute; top: 100%; left: -16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; box-shadow: var(--shadow); }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: block; padding: 10px 14px; border-radius: var(--radius-s); font-size: 14px; color: var(--ink-2); }
.nav__menu a:hover { background: var(--soft); color: var(--green); }

.header__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; text-decoration: none; letter-spacing: .2px; }
.header__phone:hover { color: #00AD3E; }
.header__cta { padding: 12px 22px; }
.burger { display: none; width: 38px; height: 38px; border-radius: var(--radius-s); border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .header__phone { display: none; }
}

/* drawer (mobile menu) */
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 100; }
.drawer.open { opacity: 1; visibility: visible; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(86%, 360px); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s; }
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__head { padding: 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer__close { width: 36px; height: 36px; border-radius: 50%; font-size: 24px; color: var(--ink); display: grid; place-items: center; }
.drawer__body { flex: 1; padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.drawer__body a { padding: 12px 14px; border-radius: var(--radius-s); font-size: 15px; color: var(--ink); }
.drawer__body a:hover { background: var(--soft); color: var(--green); }
.drawer__foot { padding: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }

/* ====== HERO (3) ====== */
/* PSD ratio: hero компактный — ~36-38% от ширины */
.hero { position: relative; height: clamp(540px, 38vw, 800px); display: flex; align-items: flex-start; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
/* Тёмное затемнение слева — приглушает левую половину для контраста текста */
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,20,30,.55) 0%, rgba(15,20,30,.30) 35%, rgba(15,20,30,.05) 60%, rgba(15,20,30,0) 100%),
    radial-gradient(ellipse 50% 60% at 28% 30%, rgba(15,20,30,.55) 0%, rgba(15,20,30,.20) 60%, rgba(15,20,30,0) 100%);
  z-index: 1;
}
.hero__bg { z-index: -1; }
.hero__inner { padding: 130px 0 0; color: #fff; }
.hero__content { max-width: 900px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero__title { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.25; letter-spacing: -0.005em; text-transform: uppercase; color: #fff; margin: 0 0 26px; text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.hero__title em { font-style: normal; color: var(--green); }
.hero__cta { padding: 18px 40px; font-size: 15px; border-radius: var(--radius-s); font-weight: 700; }
.hero__usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 60px; width: 100%; max-width: 920px; list-style: none; padding: 0; }
.hero__usp li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(20, 40, 28, .55);
  border: 1px solid rgba(75,174,73,.30);
  border-radius: 14px;
  color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.35;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  text-align: left;
  white-space: normal;
}
.hero__usp-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(75,174,73,.30); color: #6BE264; display: grid; place-items: center; flex-shrink: 0; }
.hero__usp-icon svg { width: 18px; height: 18px; }
.hero__scroll {
  position: absolute;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
}
.hero__scroll svg { width: 22px; height: 22px; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(4px); opacity: 1; } }
@media (max-width: 880px) {
  .hero { min-height: 460px; height: auto; align-items: center; }
   .hero__bg img { object-position: center 50%; }
  .hero__bg::after { background: linear-gradient(105deg, rgba(15,20,30,.78) 0%, rgba(15,20,30,.55) 55%, rgba(15,20,30,.30) 100%); }
  .hero__inner { padding: 20px 0; }
  .hero__usp { grid-template-columns: 1fr; gap: 8px; max-width: 100%; margin-top: 120px; }
  .hero__usp li { width: 100%; min-width: 0; }
  .hero__scroll { display: none; }
}

/* ====== TECH (4) — 2 cards (overlay h3+p+btn-with-arrow) + wide ====== */
.tech-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tech-card { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; isolation: isolate; }
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tech-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .4s; }
.tech-card:hover .tech-card__bg { transform: scale(1.05); }
.tech-card__overlay { position: absolute; left: 28px; right: 28px; top: 24px; z-index: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tech-card__overlay h3 { color: #fff; font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: clamp(20px, 2vw, 26px); margin: 0; letter-spacing: -.005em; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.6); }
.tech-card__overlay p { color: #fff; font-size: 13.5px; line-height: 1.5; margin: 0; max-width: 95%; text-shadow: 0 1px 8px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.6); }
.tech-card__btn { padding: 11px 20px; font-weight: 600; font-size: 13.5px; margin-top: 6px; }
.tech-card__btn svg { margin-left: 4px; }

.tech-wide { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; margin-top: 24px; transition: border-color .2s, box-shadow .2s; }
.tech-wide:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.tech-wide__body { flex: 1; }
.tech-wide__body h3 { font-size: 20px; margin-bottom: 6px; }
.tech-wide__body p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.tech-wide__btn { flex-shrink: 0; }
@media (max-width: 880px) {
  .tech-cards { grid-template-columns: 1fr; }
  .tech-wide { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tech-wide__btn { align-self: stretch; }
}

/* ====== WHY (5) — 8 plates 4x2 ====== */
.why { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.why__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.why__card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.why__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 6px; }
.why__icon svg { width: 24px; height: 24px; }
.why__card h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.why__card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 1100px) { .why { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 880px) { .why { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .why { grid-template-columns: 1fr; } }

/* ====== BUILT (6) — 3x2 gallery ====== */
.built { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.built__card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.built__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.built__media { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.built__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.built__card:hover .built__media img { transform: scale(1.04); }
.built__body { padding: 18px 22px 22px; }
.built__body h3 { font-family: 'Montserrat',sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.built__meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.built__meta span { display: inline-flex; align-items: center; gap: 5px; }
.built__meta svg { color: var(--green); }
@media (max-width: 880px) { .built { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .built { grid-template-columns: 1fr; } }

/* ====== VIDEO (7, 11) ====== */
.vfeat { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 4px solid var(--green); box-shadow: var(--shadow); transition: transform .25s; }
.vfeat:hover { transform: scale(1.003); }
.vfeat img { width: 100%; height: 100%; object-fit: cover; }
.vfeat__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.05); display: flex; flex-direction: column; padding: 28px 36px; color: #fff; transition: background .25s; }
.vfeat:hover .vfeat__overlay { background: rgba(0,0,0,.15); }
.vfeat__brand { display: inline-flex; }
.vfeat__brand img { width: auto; height: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.vfeat__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--green); display: grid; place-items: center; box-shadow: 0 12px 36px rgba(0,0,0,.4); transition: transform .25s; }
.vfeat:hover .vfeat__play { transform: translate(-50%,-50%) scale(1.08); }
.vfeat__play svg { width: 42px; height: 42px; margin-left: 4px; }
.vfeat__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.vfeat__bottom h3 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(20px, 2.8vw, 36px); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); margin: 0; }
.vfeat__rutube { font-size: 13px; color: rgba(255,255,255,.85); letter-spacing: .04em; }
.vfeat__rutube strong { color: var(--yellow); }

/* Видео отзывы: 2 больших видео сверху в ряд */
.vtop { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vtop .vfeat__bottom h3 { font-size: clamp(16px, 1.9vw, 24px); }
.vtop .vfeat__play { width: 74px; height: 74px; }
.vtop .vfeat__play svg { width: 32px; height: 32px; }
.vtop .vfeat__overlay { padding: 22px 26px; }

.vsub { font-family: 'Montserrat',sans-serif; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 28px 0 14px; text-align: center; }
.vthumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.vthumbs--6 { grid-template-columns: repeat(3,1fr); gap: 14px; }
.vthumbs--3 { grid-template-columns: repeat(3,1fr); gap: 14px; }
.vthumb { display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--green); position: relative; aspect-ratio: 16/10; transition: transform .2s; }
.vthumb:hover { transform: translateY(-2px); }
.vthumb__media { width: 100%; height: 100%; position: relative; }
.vthumb__media img { width: 100%; height: 100%; object-fit: cover; }
.vthumb__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--green); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.vthumb__play svg { width: 18px; height: 18px; margin-left: 2px; }
@media (max-width: 880px) {
  .vthumbs, .vthumbs--6 { grid-template-columns: repeat(2,1fr); }
  .vthumbs--3 { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .vtop .vfeat__bottom h3 { font-size: 16px; }
  .vfeat__overlay { padding: 20px 22px; }
  .vfeat__play { width: 68px; height: 68px; } .vfeat__play svg { width: 30px; height: 30px; }
}

/* ====== SHORTS SLIDER (horizontal scroll) ====== */
.shorts-slider { position: relative; }
.shorts { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.short { position: relative; flex: 0 0 auto; width: calc((100% - 3 * 18px) / 4); aspect-ratio: 9/16; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: block; transition: transform .25s, box-shadow .25s; isolation: isolate; scroll-snap-align: start; }
.shorts-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); border: 1px solid var(--line); z-index: 2; cursor: pointer; transition: background .2s, color .2s; }
.shorts-slider__btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.shorts-slider__btn--prev { left: -16px; }
.shorts-slider__btn--next { right: -16px; }
@media (max-width: 1280px) { .shorts-slider__btn--prev { left: -8px; } .shorts-slider__btn--next { right: -8px; } }
.short:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.short img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.short:hover img { transform: scale(1.04); }
.short::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,0) 60%); pointer-events: none; }
.short__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--green); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); z-index: 1; transition: transform .25s; }
.short:hover .short__play { transform: translate(-50%,-50%) scale(1.08); }
.short__play svg { width: 26px; height: 26px; margin-left: 3px; }
.short__title { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 13px; line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
@media (max-width: 1100px) { .short { width: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 880px) { .short { width: calc((100% - 18px) / 2.2); } .shorts-slider__btn { display: none; } }
@media (max-width: 480px) { .short { width: 70%; } .short__title { font-size: 12px; } .shorts { gap: 12px; } }
/* Offset in-page anchor jumps so the sticky header doesn't cover section headings */
section[id] { scroll-margin-top: 70px; }
/* Clips grid — 6 vertical clips visible at once (no slider) */
.clips-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.clips-grid .short { width: auto; flex: initial; }
@media (max-width: 1100px) { .clips-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .clips-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
/* Horizontal (16:9) variant of the shorts slider — for landscape VK videos */
.shorts--wide .short { aspect-ratio: 16/9; width: calc((100% - 2 * 18px) / 2.4); }
@media (max-width: 1100px) { .shorts--wide .short { width: calc((100% - 18px) / 1.8); } }
@media (max-width: 880px)  { .shorts--wide .short { width: 82%; } }
@media (max-width: 480px)  { .shorts--wide .short { width: 88%; } }

/* Featured: 2 больших горизонтальных видео сверху блока «Видео» */
.clips-featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 22px; }
.clipfeat { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 4px solid var(--green); box-shadow: var(--shadow); transition: transform .25s; isolation: isolate; }
.clipfeat:hover { transform: translateY(-3px); }
.clipfeat img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.clipfeat:hover img { transform: scale(1.04); }
.clipfeat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,0) 60%); pointer-events: none; }
.clipfeat__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--green); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); z-index: 1; transition: transform .25s; }
.clipfeat:hover .clipfeat__play { transform: translate(-50%,-50%) scale(1.08); }
.clipfeat__play svg { width: 30px; height: 30px; margin-left: 3px; }
.clipfeat__title { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
@media (max-width: 700px) { .clips-featured { grid-template-columns: 1fr; gap: 14px; } .clipfeat__title { font-size: 15px; } }

/* ====== PRECALC (9) ====== */
.precalc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.precalc__white { padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; }
.precalc__manager { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.precalc__manager img { width: 52px; height: 52px; border-radius: 50%; }
.precalc__name { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 16px; }
.precalc__role { color: var(--muted); font-size: 13px; }
.precalc__white h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 6px 0 4px; line-height: 1.25; }
.precalc__white p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.precalc__bullets { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 12px; }
.precalc__bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); }
.precalc__bullets svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.precalc__green { background: var(--green); padding: 40px 44px; color: #fff; }
.precalc__green h3 { font-family: 'Montserrat',sans-serif; font-size: 22px; font-weight: 700; margin: 0 0 18px; color: #fff; }
.precalc__form { display: flex; flex-direction: column; gap: 14px; }
.precalc__label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(255,255,255,.92); font-weight: 500; }
.precalc__label input, .precalc__label textarea { padding: 12px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-s); background: rgba(255,255,255,.15); color: #fff; font-family: inherit; font-size: 14px; transition: .2s; }
.precalc__label input::placeholder, .precalc__label textarea::placeholder { color: rgba(255,255,255,.65); }
.precalc__label input:focus, .precalc__label textarea:focus { outline: none; background: rgba(255,255,255,.25); border-color: #fff; }
.precalc__label textarea { resize: vertical; min-height: 90px; }
.precalc__green .btn-light { color: var(--green); font-weight: 700; padding: 14px; margin-top: 6px; }
.precalc__note { color: rgba(255,255,255,.78); font-size: 11.5px; line-height: 1.4; text-align: center; margin: 6px 0 0; }
@media (max-width: 880px) {
  .precalc { grid-template-columns: 1fr; }
  .precalc__white, .precalc__green { padding: 28px 24px; }
}

/* ====== ABOUT (10) ====== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__left { display: flex; flex-direction: column; gap: 14px; }
.about__left h2 { font-size: clamp(24px, 2.6vw, 36px); }
.about__left p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.about__bullets { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 12px; }
.about__bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.about__bullets svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.about__left .btn { align-self: flex-start; margin-top: 8px; }

.about__right { display: flex; flex-direction: column; gap: 24px; }
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__photos img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.about__stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; padding: 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.about__stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.about__stat-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 4px; }
.about__stat-icon svg { width: 22px; height: 22px; }
.about__stat b { display: block; font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 24px; color: var(--ink); line-height: 1; }
.about__stat span { color: var(--muted); font-size: 12px; line-height: 1.3; }
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about__stats { grid-template-columns: repeat(2,1fr); }
}

/* ====== FAQ (12) ====== */
.faq { max-width: 880px; margin: 0 auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: border-color .2s; }
.faq__item[open] { border-color: var(--green); }
.faq__item summary { padding: 18px 22px; font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; align-items: center; gap: 14px; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { margin-left: auto; font-size: 22px; color: var(--green); font-weight: 400; flex-shrink: 0; transition: transform .25s; }
.faq__item[open] .faq__toggle { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 18px; color: var(--ink-2); line-height: 1.6; font-size: 14px; }

/* ====== REVIEWS WIDGET (Yandex iframe) ====== */
.reviews-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-sm); }
.reviews-widget iframe { width: 100%; height: 800px; border: 0; border-radius: 14px; display: block; background: var(--soft); }
.reviews-widget__cta { display: inline-block; margin: 16px 0 6px 8px; color: var(--green); font-weight: 600; font-size: 14px; }
.reviews-widget__cta:hover { color: var(--green-dark); }
@media (max-width: 720px) { .reviews-widget iframe { height: 600px; } }

/* ====== REVIEWS (13) — legacy ====== */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.review:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.review__name { font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); }
.review__date { color: var(--muted); font-size: 12px; }
.review__stars { display: flex; gap: 2px; }
.review__text { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 880px) { .reviews { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .reviews { grid-template-columns: 1fr; } }

/* ====== CONTACT (14) ====== */
.contact { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; align-items: start; }
.contact__form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contact__form-card h3 { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.contact__form { display: flex; flex-direction: column; gap: 14px; }
.contact__label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.contact__label input, .contact__label textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); font-family: inherit; font-size: 14px; background: var(--soft); transition: .2s; }
.contact__label input:focus, .contact__label textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(75,174,73,.12); }
.contact__label textarea { resize: vertical; min-height: 100px; }
.contact__row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__note { color: var(--muted); font-size: 11.5px; line-height: 1.5; margin: 6px 0 0; }
.contact__note a { color: var(--green); }

.contact__info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.contact__map { position: relative; aspect-ratio: 16/9; background: var(--soft); overflow: hidden; }
.contact__map > a { display: block; width: 100%; height: 100%; }
.contact__map img { width: 100%; height: 100%; object-fit: cover; }
.contact__map-pin { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.97); padding: 12px 16px; border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 2px; }
.contact__map-pin strong { font-family: 'Montserrat',sans-serif; font-size: 13px; }
.contact__map-pin span { font-size: 11px; color: var(--muted); }
.contact__map-pin a { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 4px; }

.contact__details { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.contact__details h4 { font-family: 'Montserrat',sans-serif; font-size: 16px; font-weight: 700; margin: 0; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; }
.contact__row-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.contact__row-icon svg { width: 16px; height: 16px; }
.contact__row > div:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact__row-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.contact__row-val { font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }
.contact__row-val:hover { color: var(--green); }
.contact__row-text { font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.contact__row-small { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; }
  .contact__form-card { padding: 24px; }
  .contact__row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ====== FOOTER (15) — light bg 4 cols ====== */
.footer { background: var(--soft); border-top: 1px solid var(--line); padding-top: 60px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__tagline { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 14px 0 16px; max-width: 280px; }
.footer__contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-bottom: 8px; }
.footer__contact-row svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.footer__contact-row a { color: var(--ink); font-weight: 600; }
.footer__contact-row a:hover { color: var(--green); }
.footer__title { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 13.5px; color: var(--ink-2); transition: color .2s; }
.footer__links a:hover { color: var(--green); }

.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--green); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: .2s; }
.footer__social a:hover { border-color: var(--green); color: var(--green); }
.footer__social svg { width: 13px; height: 13px; }
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }

/* ====== MODAL (lead) ====== */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 110; opacity: 0; visibility: hidden; transition: .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__panel { background: #fff; padding: 32px; border-radius: var(--radius-lg); width: min(420px, 100%); position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; color: var(--muted); display: grid; place-items: center; }
.modal__title { font-family: 'Montserrat',sans-serif; font-size: 22px; margin-bottom: 6px; }
.modal__sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal .lead-form { display: flex; flex-direction: column; gap: 10px; }
.modal .lead-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); font-family: inherit; font-size: 14px; background: var(--soft); }
.modal .lead-form input:focus { outline: none; border-color: var(--green); background: #fff; }

/* ====== FLOATING CTA (Telegram + Phone) ====== */
.float-cta { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 80; }
.float-cta__btn { width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; border: none; transition: transform .2s, background .2s; }
.float-cta__btn svg { width: 22px; height: 22px; }
.float-cta__btn:hover { transform: scale(1.06); background: var(--green-dark); }
.float-cta__btn--tg { background: #229ED9; }
.float-cta__btn--tg:hover { background: #1A8AB9; }

/* ====== TOAST ====== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); padding: 12px 22px; border-radius: var(--radius-s); background: var(--ink); color: #fff; font-size: 14px; z-index: 120; opacity: 0; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--err { background: #C0392B; }

/* ====== A11Y ====== */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
*:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ====== MOBILE FIXES (<600px) ====== */
@media (max-width: 600px) {
  /* Жёсткий fix overflow всех элементов */
  img, svg { max-width: 100%; }
  .vtop { grid-template-columns: 1fr; gap: 14px; }
  * { min-width: 0; }
  /* Soft word-wrapping for any long Russian text (без mid-word break) */
  h1, h2, h3, h4 { overflow-wrap: normal; word-break: normal; hyphens: none; }

  /* Buttons */
  .btn { padding: 14px 20px; min-height: 44px; font-size: 14px; }

  /* Hero */
  .hero__title { font-size: 20px; line-height: 1.3; max-width: 100%; letter-spacing: 0; }
  .hero__title br { display: none; }
  .hero__usp { gap: 8px; grid-template-columns: 1fr; margin-top: 120px; }
  .hero__usp li { font-size: 12.5px; padding: 10px 14px 10px 10px; width: 100%; min-width: 0; }
  .hero__usp-icon { width: 28px; height: 28px; }
  .hero__usp-icon svg { width: 15px; height: 15px; }

  /* Tech section */
  .tech-card { aspect-ratio: 4/3.4; }
  .tech-card__overlay { left: 18px; right: 18px; top: 18px; gap: 6px; }
  .tech-card__overlay h3 { font-size: 18px; }
  .tech-card__overlay p { font-size: 12.5px; line-height: 1.4; }
  .tech-card__btn { padding: 10px 16px; font-size: 12.5px; }
  .tech-wide { padding: 22px 20px; }

  /* Why */
  .why__card { padding: 20px 18px; }
  .why__card h3 { font-size: 15px; }
  .why__card p { font-size: 13px; }
  .why__icon { width: 42px; height: 42px; }
  .why__icon svg { width: 22px; height: 22px; }

  /* Built gallery */
  .built__body { padding: 14px 16px 16px; }
  .built__body h3 { font-size: 15px; }
  .built__meta { font-size: 12px; gap: 12px; }

  /* Video */
  .vfeat__overlay { padding: 16px 16px; }
  .vfeat__bottom h3 { font-size: 17px; line-height: 1.25; }
  .vfeat__rutube { font-size: 11px; }
  .vfeat__brand img { height: 22px; }
  .vfeat__play { width: 56px; height: 56px; }
  .vfeat__play svg { width: 24px; height: 24px; }

  /* Pre-calc */
  .precalc__white, .precalc__green { padding: 24px 18px; }
  .precalc__white h2 { font-size: 19px; }
  .precalc__white p { font-size: 13px; }
  .precalc__green h3 { font-size: 19px; }
  .precalc__label input, .precalc__label textarea { padding: 14px; min-height: 44px; }

  /* About */
  .about__left h2 { font-size: 24px; line-height: 1.25; word-break: normal; overflow-wrap: normal; hyphens: none; }
  .about__left p { font-size: 14px; }
  .about__photos { grid-template-columns: 1fr; gap: 12px; }
  .about__stats { grid-template-columns: 1fr 1fr; padding: 18px 12px; gap: 16px 8px; }
  .about__stat b { font-size: 22px; }
  .about__stat-icon { width: 38px; height: 38px; }
  .about__stat-icon svg { width: 18px; height: 18px; }

  /* FAQ */
  .faq__item summary { padding: 16px 18px; font-size: 14px; gap: 10px; }
  .faq__answer { padding: 0 18px 16px; font-size: 13px; }

  /* Reviews */
  .review { padding: 18px 16px; }
  .review__name { font-size: 14px; }
  .review__text { font-size: 13px; }

  /* Contact */
  .contact__form-card { padding: 22px 18px; }
  .contact__form-card h3 { font-size: 18px; }
  .contact__label input, .contact__label textarea { padding: 14px; min-height: 44px; }
  .contact__details { padding: 22px 18px 24px; }
  .contact__details h4 { font-size: 15px; }
  .contact__row-val, .contact__row-text { font-size: 13px; }
  .contact__map { aspect-ratio: 4/3; }

  /* Section */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 24px; gap: 8px; width: 100%; max-width: 100%; }
  .section-head h2, .section-head--center h2 { line-height: 1.25; width: 100%; overflow-wrap: normal; word-wrap: normal; }
  .section-head p { font-size: 13px; line-height: 1.5; width: 100%; }

  /* Footer */
  .footer { padding-top: 36px; }
  .footer__title { font-size: 14px; margin-bottom: 12px; }
  .footer__links a { font-size: 13px; }
  .footer__contact-row { font-size: 12px; }
  .footer__social a { width: 36px; height: 36px; }
  .footer__social svg { width: 14px; height: 14px; }
  .footer__tagline { font-size: 12px; }
  .topbar__soc { width: 30px; height: 30px; }
}

/* ====== PAGE HERO (subpages) ====== */
.page-hero { padding: 50px 0 36px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero__title { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.page-hero__lead { color: var(--muted); font-size: 16px; max-width: 720px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 8px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--green); }
.crumbs .sep { color: var(--line); }

/* ====== PROJECT page split hero ====== */
.proj-hero2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; margin-top: 16px; }
.proj-hero2__media { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.proj-hero2__media img { width: 100%; height: 100%; object-fit: cover; }
.proj-hero2__badge { position: absolute; top: 16px; left: 16px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 100px; font-weight: 800; font-size: 14px; }
.proj-hero2__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.proj-hero2__title { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); margin: 4px 0 0; line-height: 1.15; }
.proj-hero2__lead { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.proj-hero2__specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 14px 0; margin: 4px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proj-hero2__specs > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.proj-hero2__specs b { font-family: 'Montserrat',sans-serif; font-size: 20px; font-weight: 800; line-height: 1; }
.proj-hero2__specs span { color: var(--muted); font-size: 11px; }
.proj-hero2__price { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.proj-hero2__price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.proj-hero2__price-new { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 30px; color: var(--ink); line-height: 1; }
.proj-hero2__price-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0; }
.proj-hero2__cta { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
@media (max-width: 880px) {
  .proj-hero2 { grid-template-columns: 1fr; gap: 18px; }
  .proj-hero2__card { padding: 22px; }
}

/* ====== Lead form (modal-specific) generic helpers ====== */
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
.lead-form input, .lead-form textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); font-family: inherit; font-size: 14px; background: var(--soft); }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.lead-form__note { color: var(--muted); font-size: 11.5px; line-height: 1.4; margin: 4px 0 0; }

/* ====== Inner-pages PROJECTS / DOCS / etc — same patterns ====== */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; gap: 14px; } }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); }
.pcard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 100px; background: rgba(255,255,255,.95); font-size: 11px; font-weight: 700; color: var(--ink); }
.pcard__badge--green { background: var(--green); color: #fff; }
.pcard__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__title { font-family: 'Montserrat',sans-serif; font-size: 20px; font-weight: 700; }
.pcard__specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pcard__spec { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.pcard__spec b { font-family: 'Montserrat',sans-serif; font-size: 15px; }
.pcard__spec span { color: var(--muted); font-size: 11px; }
.pcard__price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.pcard__price { font-family: 'Montserrat',sans-serif; font-size: 19px; font-weight: 800; }
.pcard__old { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.pcard__footer { display: flex; gap: 8px; padding: 0 18px 18px; }
.pcard__footer .btn { flex: 1; padding: 10px 16px; font-size: 13px; }

/* Catalog filter chip */
.catalog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Catalog sort */
.catalog-sort { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin: -6px 0 18px; }
.catalog-sort__label { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.catalog-sort__select { appearance: none; -webkit-appearance: none; padding: 9px 38px 9px 16px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; transition: .2s; }
.catalog-sort__select:hover { border-color: var(--ink); }
@media (max-width: 600px) { .catalog-sort { justify-content: space-between; } }

/* Docs grid (documents page) */
.docs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.doc-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.doc-card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.doc-card__icon svg { width: 26px; height: 26px; }
.doc-card h3 { font-size: 16px; font-weight: 700; }
.doc-card p { color: var(--muted); font-size: 13px; }
.doc-card a { color: var(--green); font-weight: 600; font-size: 14px; margin-top: auto; }
@media (max-width: 880px) { .docs-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .docs-grid { grid-template-columns: 1fr; } }

/* Requisites */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.req__col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.req__col h3 { font-size: 17px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.req__list > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.req__list > div:last-child { border-bottom: none; }
.req__list dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.req__list dd { margin: 0; font-weight: 600; font-family: 'Montserrat',sans-serif; }
@media (max-width: 720px) { .req { grid-template-columns: 1fr; } .req__col { padding: 22px; } .req__list > div { grid-template-columns: 1fr; gap: 4px; } }

/* spec tiles (project page) */
.spec-tiles { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.spec-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: border-color .2s; }
.spec-tile:hover { border-color: var(--green); }
.spec-tile svg { width: 28px; height: 28px; color: var(--green); margin-bottom: 4px; }
.spec-tile b { font-family: 'Montserrat',sans-serif; font-size: 22px; font-weight: 800; line-height: 1; }
.spec-tile span { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .spec-tiles { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px) { .spec-tiles { grid-template-columns: repeat(2,1fr); gap: 10px; } }

/* Plans (project) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.plan-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, #F7F8FA 0%, #ECEEF2 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; }
.plan-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.plan-placeholder svg { width: 100%; max-width: 280px; height: auto; }
.plan-placeholder span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.plan-card__body { padding: 20px 24px; }
.plan-card__body h3 { margin-bottom: 6px; }
.plan-card__body p { color: var(--muted); font-size: 14px; }
.plans__hint { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; font-style: italic; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* render+price */
.render-price { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.render-price__media { aspect-ratio: 5/4; border-radius: var(--radius-lg); overflow: hidden; }
.render-price__media img { width: 100%; height: 100%; object-fit: cover; }
.render-price__body { display: flex; flex-direction: column; gap: 14px; }
.render-price__price { display: flex; align-items: baseline; gap: 10px; }
.render-price__new { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 38px; }
.render-price__old { color: var(--muted); text-decoration: line-through; font-size: 18px; }
@media (max-width: 880px) { .render-price { grid-template-columns: 1fr; } }

/* Gallery (project) */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }

/* legacy/old/about-grid kept for sub-pages */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.about-grid__media { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; }
.about-grid__media img { width: 100%; height: 100%; object-fit: cover; }
.about-grid__body { display: flex; flex-direction: column; gap: 14px; }
.about-grid__body h2 { margin: 4px 0 6px; }
.about-grid__body p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.about-bullets { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 0; }
.about-bullets li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.about-bullets svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.about-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-stat b { display: block; font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 28px; color: var(--green); line-height: 1; }
.about-stat span { color: var(--muted); font-size: 13px; margin-top: 6px; display: block; line-height: 1.3; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 540px) { .about-stats { grid-template-columns: repeat(2,1fr); gap: 22px 14px; } }

/* legacy contact-row + contacts-layout (used on /contacts/) */
.contacts-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
@media (max-width: 880px) { .contacts-layout { grid-template-columns: 1fr; gap: 24px; } }
.office-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.office-card__city { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.office-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.office-card__addr { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.office-card__time { color: var(--muted); font-size: 13px; margin-top: 4px; }
.contacts-info__title { font-family: 'Montserrat',sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.contact-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.contact-row svg { width: 18px; height: 18px; color: var(--green); margin-top: 3px; flex-shrink: 0; }
.contact-row__link { color: var(--ink); font-weight: 600; font-family: 'Montserrat',sans-serif; }
.contact-row__link:hover { color: var(--green); }
.contact-row small { color: var(--muted); font-size: 12px; font-weight: 400; }
.socials { display: flex; gap: 8px; }
.socials__item { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.socials__item:hover { border-color: var(--green); color: var(--green); }
.socials__item svg { width: 16px; height: 16px; }
.contacts-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contacts-form h2 { margin: 8px 0 6px; }
.contacts-form p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.map-block { margin-top: 32px; aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--soft); position: relative; }
.map-block a { display: block; width: 100%; height: 100%; position: relative; }
.map-block img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.map-block a:hover img { transform: scale(1.03); }
.map-block__cta { position: absolute; right: 14px; bottom: 14px; background: #fff; padding: 9px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
@media (max-width: 720px) { .map-block { aspect-ratio: 4/3; margin-top: 24px; } }

/* legacy thanks/legal page */
.thanks { text-align: center; padding: 80px 0; }
.thanks h1 { font-size: 38px; color: var(--green); margin-bottom: 14px; }
.thanks p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 30px; }

/* ===============================================================
   PROJECT PAGE — PSD-strict (Данилов layout)
   =============================================================== */

/* ---- 1. HERO full-bleed ---- */
.proj-hero { position: relative; min-height: 660px; color: #fff; overflow: hidden; }
.proj-hero__media { position: absolute; inset: 0; z-index: 0; }
.proj-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.proj-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 80%), linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.25) 100%); }
.proj-hero__inner { position: relative; z-index: 2; padding: 90px 0 80px; }
.proj-hero__body { max-width: 1100px; width: 100%; }
.proj-hero__title { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(36px, 5vw, 64px); letter-spacing: 0.02em; line-height: 1.05; color: #B6D85B; text-shadow: 0 2px 8px rgba(0,0,0,.35); margin: 0 0 22px; }
.proj-hero__lead { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.95); margin: 0 0 12px; max-width: 520px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.proj-hero__lead:last-of-type { margin-bottom: 24px; }
.proj-hero__cta { box-shadow: 0 10px 24px rgba(0,0,0,.25); }

.proj-hero__pills { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 940px; }
.proj-pill { display: flex; align-items: center; gap: 12px; background: rgba(15,20,30,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; min-height: 64px; color: #fff; }
.proj-pill__icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(75,174,73,.30); color: #6BE264; display: grid; place-items: center; }
.proj-pill__icon svg { width: 18px; height: 18px; }
.proj-pill__text { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: rgba(255,255,255,.95); }

.proj-hero__scroll { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.85); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; pointer-events: auto; }
.proj-hero__scroll svg { width: 18px; height: 26px; animation: scroll-tap 1.8s infinite; }
@keyframes scroll-tap { 0%,100% { transform: translateY(0); opacity:.7;} 50% { transform: translateY(4px); opacity:1;} }

@media (max-width: 1100px) {
  .proj-hero { min-height: 620px; }
  .proj-hero__inner { padding: 60px 0 70px; }
}
@media (max-width: 720px) {
  .proj-hero { min-height: auto; padding-bottom: 24px; }
  .proj-hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.7) 100%); }
  .proj-hero__inner { padding: 50px 0 32px; }
  .proj-hero__title { font-size: 36px; }
  .proj-hero__lead { font-size: 15px; }
  .proj-hero__pills { grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
  .proj-pill { min-height: auto; padding: 10px 14px; }
  .proj-pill__icon { width: 28px; height: 28px; }
  .proj-pill__icon svg { width: 15px; height: 15px; }
  .proj-pill__text { font-size: 12px; }
  .proj-hero__scroll { display: none; }
}

/* ---- Block heads (центрированные с подчёркиванием) ---- */
.proj-block-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto 36px; max-width: 820px; text-align: center; }
.proj-h2 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -.01em; color: #1F2A44; }
.proj-h2__underline { display: inline-block; width: 64px; height: 3px; background: var(--green); border-radius: 2px; }
.proj-h2__lead { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 4px 0 0; }
.proj-h2__lead--center { text-align: center; }

/* ---- 2. Crumbs (PSD style: «/» separators) ---- */
.crumbs .sep { color: var(--muted); margin: 0 6px; }

/* ---- Gallery 3x2 (adaptive 2..6 photos) ---- */
.proj-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj-gallery--n2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.proj-gallery--n3 { grid-template-columns: repeat(3, 1fr); }
.proj-gallery--n4 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.proj-gallery--n5 .proj-gallery__item:nth-child(4) { grid-column: 1 / 3; aspect-ratio: 1170/396; }
.proj-gallery--n5 .proj-gallery__item:nth-child(5) { aspect-ratio: 381/258; }
.proj-gallery__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 381/258; background: var(--soft); transition: transform .25s; }
.proj-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.proj-gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .proj-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---- 3. Specs 2-column ---- */
.proj-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; max-width: 1100px; margin: 0 auto; }
.proj-spec { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.proj-spec__icon { width: 56px; height: 56px; color: var(--green); display: grid; place-items: center; }
.proj-spec__icon svg { width: 100%; height: 100%; }
.proj-spec__body { color: var(--ink); font-size: 14px; line-height: 1.55; }
.proj-spec__body b { color: var(--ink); font-weight: 700; }
.proj-spec__body p { margin: 0 0 4px; color: var(--muted); }
.proj-spec__body p:first-child { color: var(--ink); }
@media (max-width: 720px) {
  .proj-specs { grid-template-columns: 1fr; gap: 18px; }
  .proj-spec { grid-template-columns: 48px 1fr; gap: 14px; }
  .proj-spec__icon { width: 44px; height: 44px; }
}

/* ---- 4. Plans rows ---- */
.proj-plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; max-width: 1100px; margin: 36px auto 0; }
.proj-plan-row--rev .proj-plan-row__plan { order: -1; }
.proj-plan-row__text { color: var(--muted); font-size: 14px; line-height: 1.65; }
.proj-plan-row__text p { margin: 0 0 12px; }
.proj-plan-row__h { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 14px; }
.proj-plan-row__sub { color: var(--ink); margin-top: 14px !important; }
.proj-plan-row__list { list-style: none; padding: 0; margin: 0 0 12px; }
.proj-plan-row__list li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.proj-plan-row__list li::before { content: '*'; color: var(--green); position: absolute; left: 0; top: 0; font-weight: 700; }
.proj-plan-row__plan img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.proj-plan-final { max-width: 760px; margin: 40px auto 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (max-width: 820px) {
  .proj-plan-row { grid-template-columns: 1fr; gap: 24px; }
  .proj-plan-row--rev .proj-plan-row__plan { order: 0; }
}

/* ---- 5. 3D-tour ---- */
.proj-3d { max-width: 1100px; margin: 0 auto; }
.proj-3d img { width: 100%; height: auto; display: block; }

/* ---- 6. Related cards (PSD style) ---- */
.proj-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-rcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; color: var(--ink); }
.proj-rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(75,174,73,.4); }
.proj-rcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.proj-rcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.proj-rcard:hover .proj-rcard__media img { transform: scale(1.05); }
.proj-rcard__badge { position: absolute; top: 12px; right: 12px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 100px; box-shadow: 0 4px 10px rgba(75,174,73,.4); }
.proj-rcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.proj-rcard__title { font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 16px; margin: 0; color: var(--ink); }
.proj-rcard__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.proj-rcard__price-new { color: var(--green); font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 17px; }
.proj-rcard__price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.proj-rcard__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.proj-rcard__specs span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.proj-rcard__specs svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
@media (max-width: 980px) { .proj-related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-related { grid-template-columns: 1fr; } }

/* ---- 7. Order block (manager card + green form) ---- */
.proj-order { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(15,20,30,.08); max-width: 1100px; margin: 0 auto; }
.proj-order__left { padding: 36px 38px; }
.proj-order__manager { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.proj-order__manager img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.proj-order__name { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.proj-order__role { color: var(--muted); font-size: 13px; }
.proj-order__h { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: var(--ink); margin: 0 0 14px; line-height: 1.3; }
.proj-order__h--white { color: #fff; }
.proj-order__p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 22px; }
.proj-order__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.proj-order__bullets li { position: relative; padding-left: 30px; color: var(--ink); font-size: 14px; font-weight: 500; }
.proj-order__bullets li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); }
.proj-order__bullets li::after { content: ''; position: absolute; left: 5px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.proj-order__right { background: var(--green); padding: 36px 38px; color: #fff; }
.proj-order__form { display: flex; flex-direction: column; gap: 14px; }
.proj-order__label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(255,255,255,.92); font-weight: 500; }
.proj-order__label input,
.proj-order__label textarea { padding: 14px 16px; border: none; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; font-family: inherit; font-size: 14px; transition: background .2s, box-shadow .2s; }
.proj-order__label input::placeholder,
.proj-order__label textarea::placeholder { color: rgba(255,255,255,.7); }
.proj-order__label input:focus,
.proj-order__label textarea:focus { outline: none; background: rgba(255,255,255,.26); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.proj-order__label textarea { resize: vertical; min-height: 100px; }
.proj-order__submit { margin-top: 6px; }
.proj-order__note { color: rgba(255,255,255,.85); font-size: 11.5px; line-height: 1.5; margin: 8px 0 0; }
.proj-order__note a { color: #fff; text-decoration: underline; }
@media (max-width: 820px) {
  .proj-order { grid-template-columns: 1fr; }
  .proj-order__left, .proj-order__right { padding: 26px 22px; }
}

/* ====== About page features (4-up grid with constrained icons) ====== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s; }
.feature:hover { box-shadow: var(--shadow-sm); border-color: rgba(75,174,73,.4); }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 17px; margin: 4px 0 0; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; gap: 14px; } }

/* About grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-grid__media { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; }
.about-grid__media img { width: 100%; height: 100%; object-fit: cover; }
.about-grid__body { display: flex; flex-direction: column; gap: 14px; }
.about-grid__body h2 { margin-top: 4px; }
.about-grid__body p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.about-stat { display: flex; flex-direction: column; gap: 2px; }
.about-stat b { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); color: var(--green); }
.about-stat span { color: var(--muted); font-size: 12px; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ====== Polished modal popup (lead-modal) ====== */
.modal__panel { padding: 36px 32px 28px; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); width: min(440px, 100%); }
.modal__close { background: var(--soft); cursor: pointer; transition: background .15s, color .15s; }
.modal__close:hover { background: var(--green-soft); color: var(--green); }
.modal__title { font-weight: 800; color: var(--ink); margin-bottom: 8px; padding-right: 40px; }
.modal__form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.modal__form input[type="text"],
.modal__form input[type="tel"],
.modal__form input[type="email"] { padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14.5px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.modal__form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(75,174,73,.14); }
.modal__form button[type="submit"] { padding: 14px 18px; border-radius: 10px; font-size: 15px; font-weight: 700; margin-top: 4px; }
.modal__note { color: var(--muted); font-size: 11.5px; line-height: 1.5; margin: 6px 0 0; text-align: center; }
.modal__note a { color: var(--green); text-decoration: underline; }
@media (max-width: 560px) {
  .modal__panel { padding: 28px 22px 22px; border-radius: 14px; }
  .modal__title { font-size: 18px; }
}

/* ====== Contact manager card + form wrap (about/documents pages) ====== */
.contact__manager { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.contact__manager img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.contact__manager-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact__manager-name { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.contact__manager-role { color: var(--muted); font-size: 13px; }
.contact__manager-phone { color: var(--green); font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 14px; margin-top: 4px; }
.contact__manager-phone:hover { color: var(--green-dark); }

.contact__form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.contact__form-wrap h2 { font-size: clamp(20px, 2vw, 26px); margin: 4px 0 0; }
.contact__form-wrap p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; }
.contact__form-wrap .lead-form { gap: 12px; }

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; gap: 18px; }
  .contact__form-wrap { padding: 22px 20px; }
  .contact__manager { padding: 18px 18px; }
}

/* ====== Mortgage calculator ====== */
.mortgage { max-width: 1100px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(15,20,30,.08); padding: 32px 36px; display: flex; flex-direction: column; gap: 22px; }
.mortgage__inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mortgage__field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mortgage__field > span { letter-spacing: .02em; }
.mortgage__field-row { display: flex; align-items: center; gap: 10px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.mortgage__field-row:focus-within { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(75,174,73,.14); }
.mortgage__field-row input { border: none; background: transparent; flex: 1; min-width: 0; font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); outline: none; padding: 0; }
.mortgage__hint { color: var(--muted); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.mortgage__summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 18px; background: var(--green-soft); border-radius: 12px; }
.mortgage__summary-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.mortgage__summary-row span { color: var(--ink-2); }
.mortgage__summary-row b { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 17px; color: var(--green); }

.mortgage__table { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.mortgage__row { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.5fr; gap: 12px; padding: 14px 18px; background: #fff; align-items: center; }
.mortgage__row--head { background: var(--ink); color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 12px 18px; }
.mortgage__prog { display: flex; flex-direction: column; gap: 2px; }
.mortgage__prog b { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.mortgage__prog small { color: var(--muted); font-size: 12px; }
.mortgage__rate { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 16px; color: var(--green); }
.mortgage__row[data-rate="18"] .mortgage__rate,
.mortgage__row[data-rate="21"] .mortgage__rate { color: #C44; }
.mortgage__pay { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); }
.mortgage__total { font-size: 14px; color: var(--muted); font-weight: 500; }

.mortgage__cta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.mortgage__note { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; max-width: 540px; margin: 0; }

@media (max-width: 820px) {
  .mortgage { padding: 22px 18px; gap: 16px; }
  .mortgage__inputs { grid-template-columns: 1fr; }
  .mortgage__summary { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; }
  .mortgage__row { grid-template-columns: 1fr 1fr; row-gap: 6px; padding: 12px 14px; }
  .mortgage__row--head { display: none; }
  .mortgage__prog { grid-column: 1 / -1; }
  .mortgage__rate::before { content: 'Ставка: '; color: var(--muted); font-weight: 500; font-size: 12px; }
  .mortgage__pay::before { content: 'Платёж: '; color: var(--muted); font-weight: 500; font-size: 12px; }
  .mortgage__total::before { content: 'Итого: '; }
}

/* ============ Video lightbox (RuTube embed) ============ */
.vlb { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 200; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.vlb.open { opacity: 1; visibility: visible; }
.vlb__panel { position: relative; width: min(960px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.vlb__panel--vert { width: auto; height: min(calc(100vh - 96px), 880px); aspect-ratio: 9/16; max-width: 100%; }
.vlb__frame { position: absolute; inset: 0; }
.vlb__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vlb__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.95); color: #1d2229; border: 0; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 1; transition: background .15s; }
.vlb__close:hover { background: #fff; }
@media (max-width: 640px) {
  .vlb { padding: 12px; }
  .vlb__panel--vert { height: calc(100vh - 72px); }
}

/* ============ Blog ============ */
.container--narrow { max-width: 820px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .blog-grid, .blog-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 620px) { .blog-grid, .blog-grid--3 { grid-template-columns: 1fr; gap: 18px; } }

.bcard { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.08); }
.bcard__media { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bcard:hover .bcard__media img { transform: scale(1.04); }
.bcard__cat { position: absolute; left: 12px; top: 12px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; border-radius: 6px; }
.bcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bcard__title { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ink); margin: 0; }
.bcard__body a:hover .bcard__title { color: var(--green); }
.bcard__excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.bcard__sep { opacity: .5; }

/* ============ Article (single post) ============ */
.article { padding: 32px 0 80px; }
.article__head { text-align: left; margin-bottom: 26px; }
.article__meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.article__cat { background: rgba(0,173,62,.1); color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; padding: 5px 10px; border-radius: 6px; }
.article__sep { opacity: .5; }
.article__title { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.18; color: var(--ink); margin: 0 0 16px; letter-spacing: -.01em; }
.article__lead { font-size: 18.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.article__cover { margin: 28px 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.article__cover img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }

.article__body { font-size: 17px; line-height: 1.72; color: #2a2f37; }
.article__body > * + * { margin-top: 18px; }
.article__body h2 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--ink); margin: 38px 0 14px; letter-spacing: -.01em; }
.article__body h3 { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: clamp(19px, 2vw, 23px); line-height: 1.3; color: var(--ink); margin: 28px 0 10px; }
.article__body p { margin: 0; }
.article__body ul, .article__body ol { padding-left: 22px; margin: 16px 0; }
.article__body ul li, .article__body ol li { margin: 8px 0; line-height: 1.65; }
.article__body ul li::marker { color: var(--green); }
.article__body strong { color: var(--ink); font-weight: 700; }
.article__body em { font-style: italic; color: #4a5159; }
.article__body a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article__body a:hover { text-decoration-thickness: 2px; }
.article__body blockquote { border-left: 4px solid var(--green); background: var(--soft); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 24px 0; font-style: italic; color: #3a4049; }
.article__body blockquote p { margin: 0; }
.article__body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15.5px; }
.article__body th, .article__body td { border: 1px solid #e5e8ec; padding: 10px 14px; text-align: left; vertical-align: top; }
.article__body th { background: var(--soft); font-weight: 700; color: var(--ink); }
.article__body figure { margin: 24px 0; }
.article__body figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }

.article__faq { margin-top: 56px; padding-top: 32px; border-top: 1px solid #e5e8ec; }
.article__faq h2 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); margin: 0 0 20px; }

.article__cta { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--green) 0%, #009134 100%); color: #fff; padding: 28px 32px; border-radius: var(--radius-lg); margin: 56px 0 0; }
.article__cta-text h3 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 22px; line-height: 1.25; margin: 0 0 8px; color: #fff; }
.article__cta-text p { margin: 0; opacity: .92; font-size: 15.5px; line-height: 1.5; color: #fff; }
.article__cta .btn { background: #fff; color: var(--green); border-color: #fff; justify-self: end; }
.article__cta .btn:hover { background: rgba(255,255,255,.92); }
@media (max-width: 640px) {
  .article__cta { grid-template-columns: 1fr; padding: 24px; }
  .article__cta .btn { justify-self: stretch; }
}

.article__related { margin-top: 64px; padding-top: 32px; border-top: 1px solid #e5e8ec; }
.article__related h2 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); margin: 0 0 20px; }

/* ============ LSC — Чат с Павлом ============ */
.lsc { position: fixed; right: 22px; bottom: 22px; z-index: 150; font-family: inherit; }
.lsc__launcher { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--green); border: 3px solid #fff; cursor: pointer; padding: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease; }
.lsc__launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.30); }
.lsc__launcher-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.lsc__pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--green); opacity: .55; animation: lsc-pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes lsc-pulse { 0% { transform: scale(.95); opacity: .55; } 80% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1.35); opacity: 0; } }
.lsc__launcher-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #E03939; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.lsc__launcher-bubble { position: absolute; right: 80px; top: 50%; transform: translateY(-50%) translateX(8px); background: #fff; color: var(--ink); font-size: 13px; padding: 9px 14px; border-radius: 14px 14px 4px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12); white-space: nowrap; opacity: 0; visibility: hidden; transition: .25s ease; font-weight: 500; }
.lsc__launcher-bubble--show { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

.lsc__window { position: absolute; right: 0; bottom: 80px; width: 360px; height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: bottom right; transition: opacity .2s, transform .25s, visibility .25s; }
.lsc__window--open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.lsc__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--green) 0%, #009134 100%); color: #fff; }
.lsc__head-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.4); flex-shrink: 0; }
.lsc__head-info { flex: 1; min-width: 0; }
.lsc__head-name { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2; color: #fff; display: flex; align-items: center; gap: 8px; }
.lsc__head-dot { width: 8px; height: 8px; border-radius: 50%; background: #6BE264; box-shadow: 0 0 0 0 rgba(107,226,100,.6); animation: lsc-dot 2s infinite; }
@keyframes lsc-dot { 0% { box-shadow: 0 0 0 0 rgba(107,226,100,.6); } 70% { box-shadow: 0 0 0 8px rgba(107,226,100,0); } 100% { box-shadow: 0 0 0 0 rgba(107,226,100,0); } }
.lsc__head-role { font-size: 12px; opacity: .9; line-height: 1.3; margin-top: 1px; }
.lsc__head-close { background: rgba(255,255,255,.18); border: 0; width: 30px; height: 30px; border-radius: 50%; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lsc__head-close:hover { background: rgba(255,255,255,.32); }

.lsc__body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f8f9; scroll-behavior: smooth; }
.lsc__msg { display: flex; gap: 8px; max-width: 100%; }
.lsc__msg--bot { align-self: flex-start; align-items: flex-end; }
.lsc__msg--user { align-self: flex-end; justify-content: flex-end; }
.lsc__msg-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lsc__msg-bubble { padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; max-width: 250px; word-wrap: normal; }
.lsc__msg--bot .lsc__msg-bubble { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.lsc__msg--user .lsc__msg-bubble { background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.lsc__msg-bubble a { color: inherit; text-decoration: underline; }

.lsc__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px 38px; align-self: stretch; }
.lsc__chip { background: #fff; border: 1px solid #d8dee4; color: var(--ink); font-size: 12.5px; padding: 7px 12px; border-radius: 100px; cursor: pointer; font-family: inherit; line-height: 1.3; transition: background .15s, border-color .15s, color .15s; }
.lsc__chip:hover { background: var(--green); border-color: var(--green); color: #fff; }

.lsc__typing .lsc__msg-bubble { padding: 12px 14px; display: flex; gap: 4px; }
.lsc__typing .lsc__msg-bubble span { width: 6px; height: 6px; border-radius: 50%; background: #b3bbc4; animation: lsc-typing 1.2s infinite ease-in-out; }
.lsc__typing .lsc__msg-bubble span:nth-child(2) { animation-delay: .15s; }
.lsc__typing .lsc__msg-bubble span:nth-child(3) { animation-delay: .30s; }
@keyframes lsc-typing { 0%,80%,100% { transform: scale(.7); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.lsc__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e5e8ec; background: #fff; }
.lsc__input { flex: 1; resize: none; border: 0; outline: 0; font-size: 14px; padding: 9px 12px; background: #f3f5f7; border-radius: 18px; font-family: inherit; min-height: 38px; max-height: 110px; line-height: 1.4; color: var(--ink); }
.lsc__input:focus { background: #eef1f3; }
.lsc__send { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background .15s; }
.lsc__send:hover { background: #009134; }
.lsc__foot { padding: 6px 14px 10px; font-size: 10.5px; color: var(--muted); text-align: center; background: #fff; }

@media (max-width: 640px) {
  .lsc { right: 14px; bottom: 14px; }
  .lsc__launcher { width: 56px; height: 56px; }
  .lsc__launcher-bubble { display: none; }
  .lsc__window { width: calc(100vw - 28px); height: calc(100vh - 100px); right: 0; bottom: 70px; }
}

/* Float-CTA: убираем телефон и TG, чтобы не конфликтовать с чатом — оставим только под нужным экраном */
.float-cta { display: none !important; }

/* ============ Анимации ============ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

  [data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .65s ease-out, transform .65s cubic-bezier(.2,.7,.2,1); }
  [data-reveal-stagger] > *.is-visible { opacity: 1; transform: translateY(0); }
  /* Если родитель уже видим — дети анимируются по очереди от своих transition-delay */
  [data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }

  /* варианты входа */
  [data-reveal="fade-up"] { transform: translateY(40px); }
  [data-reveal="fade-left"] { transform: translateX(-32px); }
  [data-reveal="fade-right"] { transform: translateX(32px); }
  [data-reveal="zoom"] { transform: scale(.94); opacity: 0; }
  [data-reveal="fade-left"].is-visible,
  [data-reveal="fade-right"].is-visible { transform: translateX(0); }
  [data-reveal="zoom"].is-visible { transform: scale(1); opacity: 1; }
}

/* Counters — небольшое выделение, чтобы цифра «жила» */
.about__stat b[data-count] { display: inline-block; min-width: 2ch; font-variant-numeric: tabular-nums; }

/* Ripple */
.btn, .lsc__send, .tech-card__btn { position: relative; overflow: hidden; }
.btn-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: btn-ripple .6s ease-out forwards; pointer-events: none; mix-blend-mode: screen; }
.btn-outline .btn-ripple { background: rgba(0,173,62,.22); mix-blend-mode: normal; }
.btn-secondary .btn-ripple,
.btn-light .btn-ripple { background: rgba(0,0,0,.10); mix-blend-mode: normal; }
@keyframes btn-ripple { to { transform: scale(2.4); opacity: 0; } }

/* Кнопки — лёгкое поднятие на hover (если ещё нет) */
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,173,62,.18); }
  .btn-outline:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
}
.btn:active { transform: translateY(0); transition-duration: .08s; }

/* Карточки проектов — усиленный tilt + scale обложки */
.pcard { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; will-change: transform; }
.pcard__media img { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15,40,25,.14); }
  .pcard:hover .pcard__media img { transform: scale(1.06); }
  .bcard:hover .bcard__title { color: var(--green); transition: color .25s ease; }
}
/* Tech cards — лифт + лёгкий tilt-имитация (scale slight) */
.tech-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
@media (hover: hover) {
  .tech-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 22px 50px rgba(15,40,25,.18); }
}
/* Why cards — пульс иконки */
.why__card { transition: transform .3s ease, box-shadow .3s ease; }
@media (hover: hover) {
  .why__card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.08); }
  .why__card:hover .why__icon { transform: scale(1.08) rotate(-3deg); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
}
.why__icon { transition: transform .35s ease; }

/* Tech-wide (большая горизонтальная карточка) */
.tech-wide { transition: transform .3s ease, box-shadow .3s ease, border-color .25s; }
@media (hover: hover) {
  .tech-wide:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.08); border-color: var(--green); }
}

/* Reduced-motion: оставляем только мгновенный показ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ====== Планировки (единые квадратные плитки, без кропа) ====== */
.proj-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.proj-plans--n1{grid-template-columns:1fr;max-width:640px;margin:0 auto}
.proj-plans--n2{grid-template-columns:repeat(2,1fr);max-width:900px;margin:0 auto}
.proj-plans--n4{grid-template-columns:repeat(2,1fr);max-width:900px;margin:0 auto}
.proj-plan-item{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;background:#fff;cursor:zoom-in;transition:box-shadow .2s}
.proj-plan-item:hover{box-shadow:var(--shadow-sm)}
.proj-plan-item img{width:100%;height:100%;object-fit:contain;display:block;padding:12px;box-sizing:border-box}
.proj-plans--n1 .proj-plan-item{aspect-ratio:auto}
.proj-plans--n1 .proj-plan-item img{height:auto;padding:0}
@media(max-width:600px){.proj-plans,.proj-plans--n1,.proj-plans--n2,.proj-plans--n4{grid-template-columns:1fr;gap:14px;max-width:520px}}

/* ====== Цена в hero проекта ====== */
.proj-hero__price{font-family:'Montserrat',sans-serif;font-weight:800;font-size:clamp(22px,2.6vw,34px);color:#fff;margin:6px 0 16px;text-shadow:0 2px 14px rgba(0,0,0,.55);letter-spacing:.01em}

/* ====== Таблица комплектаций «Тёплый контур» (фахверк) ====== */
.tk-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius-lg);border:1px solid var(--line)}
.tk{width:100%;border-collapse:collapse;background:#fff;min-width:560px}
.tk th,.tk td{padding:14px 18px;text-align:left;vertical-align:top;font-size:15px;line-height:1.45;border-bottom:1px solid var(--line)}
.tk thead th{background:#243029;color:#fff;font-family:'Montserrat',sans-serif;font-weight:700;font-size:16px;text-align:center}
.tk thead th.tk__prem{background:var(--green)}
.tk th.tk__p{font-weight:700;color:var(--ink);background:var(--soft);width:180px}
.tk tbody td{color:var(--muted)}
.tk tr:last-child td,.tk tr:last-child th{border-bottom:0}
.tk__priced th.tk__p,.tk__priced td{background:#f1f8ef;font-family:'Montserrat',sans-serif;font-weight:800;color:var(--ink);font-size:18px}
.tk-note{margin-top:14px;font-size:13.5px;color:var(--muted);text-align:center}
@media(max-width:600px){.tk th,.tk td{padding:11px 12px;font-size:13px}.tk th.tk__p{width:118px}.tk__priced th.tk__p,.tk__priced td{font-size:15px}}

/* ====== Страница АКЦИЙ (в стиле сайта) ====== */
.promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.promo-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:34px 32px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column}
.promo-card__icon{display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:16px;background:var(--green-soft);color:var(--green);margin-bottom:18px}
.promo-card__icon svg{width:30px;height:30px}
.promo-card__badge{display:inline-block;align-self:flex-start;background:var(--green-soft);color:var(--green-dark);font-weight:700;font-size:13px;padding:6px 13px;border-radius:999px;margin-bottom:14px}
.promo-card h3{font-family:'Montserrat',sans-serif;font-weight:800;font-size:clamp(20px,2.2vw,26px);color:var(--ink);line-height:1.22;margin:0 0 14px}
.promo-card p{color:var(--ink-2);line-height:1.65;font-size:15px;margin:0 0 14px}
.promo-card__accent{background:var(--green-soft);border-radius:12px;padding:14px 16px;color:var(--ink)!important;font-weight:500}
.promo-card__cta-row{margin-top:auto;padding-top:8px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.promo-card__phone{font-family:'Montserrat',sans-serif;font-weight:800;color:var(--ink);text-decoration:none;white-space:nowrap}

/* таймер обратного отсчёта (светлый, в стиле сайта) */
.promo-countdown{display:flex;justify-content:center;gap:14px;margin:0 0 32px;flex-wrap:wrap}
.promo-cd__item{background:#fff;border:1px solid var(--line);border-radius:16px;min-width:96px;padding:16px 12px;box-shadow:var(--shadow-sm)}
.promo-cd__num{display:block;font-family:'Montserrat',sans-serif;font-weight:800;font-size:clamp(30px,3.6vw,44px);color:var(--green);line-height:1}
.promo-cd__lbl{display:block;margin-top:7px;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.promo-cd__ended{font-size:clamp(20px,2.4vw,26px);font-weight:800;color:var(--green)}
@media(max-width:760px){.promo-grid{grid-template-columns:1fr}}
@media(max-width:560px){.promo-cd__item{min-width:72px;padding:13px 8px}}

/* акцентный пункт меню "Акции" */
.nav__link--accent{color:var(--green);font-weight:700}
.nav__link--accent:hover{color:var(--green-dark)}

/* акции: мобильные фиксы — счётчик всегда 4-в-ряд (сетка), заголовок hero мельче */
.promo-countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-width:480px;margin-left:auto;margin-right:auto}
.promo-cd__item{min-width:0}
@media(max-width:560px){
  .promo-countdown{gap:8px;max-width:none}
  .promo-cd__item{padding:13px 4px;border-radius:13px}
  .promo-cd__num{font-size:26px}
  .promo-cd__lbl{font-size:10px;letter-spacing:.02em}
  .proj-hero__title--promo{font-size:28px}
}
@media(max-width:360px){
  .promo-cd__num{font-size:23px}
  .promo-cd__lbl{font-size:9px}
}

/* акции: центрирование содержимого боксов счётчика */
.promo-cd__item{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.promo-cd__num,.promo-cd__lbl{text-align:center;width:100%}

/* tech-card: текст в левом верхнем углу + верхняя подложка для читабельности на фото */
.tech-card::before{content:'';position:absolute;left:0;right:0;top:0;height:62%;background:linear-gradient(180deg,rgba(15,20,30,.58) 0%,rgba(15,20,30,.28) 45%,rgba(15,20,30,0) 100%);z-index:0;pointer-events:none}

/* живой Яндекс-модуль на /contacts/ */
.map-block--embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}

/* Форма «Получите расчёт стоимости»: общий .lead-form input (светлый фон) перебивал прозрачный фон, текст был белым на белом */
.precalc__green .precalc__label input,
.precalc__green .precalc__label textarea { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.precalc__green .precalc__label input:focus,
.precalc__green .precalc__label textarea:focus { background: rgba(255,255,255,.25); border-color: #fff; }
.precalc__green .precalc__label input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s ease-in-out 0s; }

/* Подпись «Как с вами связаться?» (добавляется из main.js серым #7a857a) на зелёных блоках формы была почти невидима */
.precalc__green .ls-way__t,
.proj-order .ls-way__t { color: #fff; font-weight: 500; }
.precalc__green .precalc__note,
.proj-order .proj-order__note { color: rgba(255,255,255,.92); }
