/* ============================================================================
   drawer.css — СОГЛАСОВАННОЕ выпадающее меню (burger → off-canvas drawer)
   ----------------------------------------------------------------------------
   Портировано 1:1 из unification.css (clean rewrite CR.3, 2026-05-28): бургер
   «Меню», левая выезжающая панель с вертикальной навигацией, оба городских
   телефона (СПб+Москва) с разделителем, мессенджеры, «Вход для клиентов» (CTA),
   часы; справа — АНИМАЦИЯ: каркасный дом строится поэтапно (фундамент → стойки →
   балки → стены → крыша), восходит солнце, по словам проявляется «Добро
   пожаловать домой». Разметку (burger + .scandi-drawer + house SVG) строит
   scandi-redesign.js; здесь — только стили + keyframes. !important снят (это
   самостоятельный компонент, не override-война). Загружается в clean-mode.
   ============================================================================ */

/* ============================================================================
   HAMBURGER BUTTON + OFF-CANVAS DRAWER v0.13
   ============================================================================ */

/* Burger button — в потоке header .left, рядом с логотипом */
 #header .scandi-burger {
  position: relative;
  z-index: 100;
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  align-items: center;
  gap: 14px;
  height: 40px;
  min-width: 96px;
  padding: 0 18px 0 14px;
  background: transparent;
  border: 1px solid rgba(193, 154, 91, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  font-family: var(--font-ui, 'Manrope'), sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #f3ecdc;
  text-transform: uppercase;
  flex-shrink: 0;
}
 #header .scandi-burger::after {
  content: 'Меню';
  display: inline;
  line-height: 1;
}
 #header .scandi-burger:hover {
  border-color: #c19a5b;
  background: rgba(20, 16, 13, 0.9);
  color: #c19a5b;
}
 #header .scandi-burger > span:nth-child(1),
 #header .scandi-burger > span:nth-child(2),
 #header .scandi-burger > span:nth-child(3) {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
 #header .scandi-burger > span:nth-child(1) { top: 14px; }
 #header .scandi-burger > span:nth-child(2) { top: 19px; }
 #header .scandi-burger > span:nth-child(3) { top: 24px; }
/* Burger lines area — занимает 16px ширины, текст после */
 #header .scandi-burger {
  padding-left: 38px;
}
/* Burger → X when drawer open */
body.scandi-drawer-open #header .scandi-burger > span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
body.scandi-drawer-open #header .scandi-burger > span:nth-child(2) {
  opacity: 0;
}
body.scandi-drawer-open #header .scandi-burger > span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
/* Скроллед-state: burger остаётся на месте (он fixed) */

/* Off-canvas drawer */
 .scandi-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}
body.scandi-drawer-open .scandi-drawer {
  pointer-events: auto;
  visibility: visible;
}
 .scandi-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.scandi-drawer-open .scandi-drawer__backdrop {
  opacity: 1;
}
 .scandi-drawer__panel {
  position: relative;
  width: min(460px, 100vw);
  height: 100dvh;
  background:
    radial-gradient(circle at 12% 8%, rgba(193, 154, 91, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #181410 0%, #100c08 100%);
  border-right: 1px solid rgba(193, 154, 91, 0.22);
  box-shadow: 12px 0 50px rgba(0, 0, 0, 0.55);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
/* Tonkaya gold strip slева панели */
 .scandi-drawer__panel::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, #c19a5b 25%, #c19a5b 75%, transparent 100%);
  opacity: 0.6;
}
body.scandi-drawer-open .scandi-drawer__panel {
  transform: translateX(0);
}
 .scandi-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(193, 154, 91, 0.12);
  border: 1.5px solid rgba(193, 154, 91, 0.4);
  border-radius: 999px;
  color: #c19a5b;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
 .scandi-drawer__close:hover {
  border-color: #c19a5b;
  background: rgba(193, 154, 91, 0.22);
  color: #f3ecdc;
  transform: rotate(90deg);
}
 .scandi-drawer__inner {
  padding: 84px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
  position: relative;
  z-index: 2;
}
/* House SVG ART — в пустом пространстве СПРАВА от drawer panel (over backdrop) */
 .scandi-drawer__art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: min(460px, 100vw);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 60px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}
body.scandi-drawer-open .scandi-drawer__art {
  opacity: 1;
}
 .scandi-drawer__house {
  display: block;
  width: min(560px, 50vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(193, 154, 91, 0.25));
}
 .scandi-drawer__art-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  max-width: 520px;
}
 .scandi-drawer__art-eyebrow {
  font-family: var(--font-display, 'Manrope'), sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: none;
  color: #f3ecdc;
  line-height: 1;
}
 .scandi-drawer__art-tagline {
  font-family: var(--font-display, 'Manrope'), sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: #a89c8a;
  text-transform: uppercase;
}
/* Word-by-word animated reveal — blur-in stagger */
 .scandi-drawer__art-caption .sd-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.32, 1.4, 0.46, 1), filter 0.6s ease;
}
 .scandi-drawer__art-caption .sd-w-gold {
  color: #c19a5b;
}
@keyframes scandi-word-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
body.scandi-drawer-open .scandi-drawer__art-caption .sd-w {
  animation: scandi-word-in 0.7s cubic-bezier(0.32, 1.2, 0.46, 1) forwards;
  animation-delay: calc(3.0s + var(--sd-w-i) * 0.18s);
}
/* Header DIM при открытом drawer чтобы лого не "перекрывал" фон */
body.scandi-drawer-open #header {
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
/* Burger pill остаётся видимым (для закрытия меню) — НАД header */
body.scandi-drawer-open #header .scandi-burger {
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  top: 22px;
  left: 32px;
  z-index: 10001;
}
@media (max-width: 991px) {
   .scandi-drawer__art { display: none; }
}
/* === MODERN BLUEPRINT ANIMATION ===
   Layered: grid fade → fill reveal → lines stroke-draw stagger → dots pulse → label */

/* === CONSTRUCTION TIMELINE — каркасный дом строится поэтапно ===
   Phase 1 (0.1-0.6s):  Foundation slab slides up
   Phase 2 (0.6-1.4s):  Vertical timber studs rise
   Phase 3 (1.4-1.8s):  Horizontal beams connect studs
   Phase 4 (1.8-2.6s):  Wall panels fill in
   Phase 5 (2.4-3.4s):  Roof rafters draw, then roof fill
   Phase 6 (3.0-3.8s):  Roof tiles cascade
   Phase 7 (3.5-4.0s):  Door installs
   Phase 8 (3.8-4.3s):  Windows install
   Phase 9 (4.0-4.5s):  Window light turns on
   Phase 10(4.0-4.5s):  Chimney + smoke
   Phase 11(4.5-7.5s):  Sun rises behind house up over roof
   Phase 12(5.0-...):   Anchor dots + caption reveal */

/* Initial states (всё скрыто, готово к стейдж-анимации) */
 .scandi-drawer__house .scandi-h-grid { opacity: 0; }
 .scandi-drawer__house .sd-foundation { opacity: 0; transform: translateY(20px) scaleX(0.4); transform-origin: center; }
 .scandi-drawer__house .sd-stud { stroke-dasharray: 120; stroke-dashoffset: 120; }
 .scandi-drawer__house .sd-beam { stroke-dasharray: 200; stroke-dashoffset: 200; }
 .scandi-drawer__house .sd-fill-wall { opacity: 0; transform: scaleY(0); transform-origin: bottom center; }
 .scandi-drawer__house .sd-fill-roof { opacity: 0; transform: scaleY(0); transform-origin: top center; }
 .scandi-drawer__house .sd-tile { opacity: 0; stroke-dasharray: 30; stroke-dashoffset: 30; }
 .scandi-drawer__house .scandi-h-frame .sd-l { stroke-dasharray: 600; stroke-dashoffset: 600; }
 .scandi-drawer__house .scandi-h-frame .sd-l-circle { stroke-dasharray: 12; stroke-dashoffset: 12; }
 .scandi-drawer__house .sd-dot { opacity: 0; }
 .scandi-drawer__house .sd-glow { opacity: 0; }
 .scandi-drawer__house .sd-smoke { opacity: 0; }
 .scandi-drawer__house .scandi-h-label { opacity: 0; }
@keyframes scandi-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scandi-stroke-draw {
  from { stroke-dashoffset: 800; }
  to { stroke-dashoffset: 0; }
}
@keyframes scandi-fill-reveal {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes scandi-dot-pulse {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 0.7; transform: scale(1); }
}
@keyframes scandi-house-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.005); }
}
@keyframes scandi-foundation-rise {
  from { opacity: 0; transform: translateY(20px) scaleX(0.4); }
  to   { opacity: 1; transform: translateY(0) scaleX(1); }
}
@keyframes scandi-stud-up {
  from { stroke-dashoffset: 120; }
  to   { stroke-dashoffset: 0; }
}
@keyframes scandi-beam-draw {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}
@keyframes scandi-window-glow-on {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0.85; }
}
@keyframes scandi-smoke-rise {
  0%   { opacity: 0; transform: translateY(20px) scale(0.4); }
  20%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.4); }
}
@keyframes scandi-sun-rise {
  0%   { opacity: 0; transform: translate(20px, 30px) scale(0.7); }
  30%  { opacity: 0.5; }
  100% { opacity: 1; transform: translate(-40px, -180px) scale(1); }
}
@keyframes scandi-sun-pulse {
  0%, 100% { transform: translate(-40px, -180px) scale(1); opacity: 0.9; }
  50%      { transform: translate(-40px, -180px) scale(1.04); opacity: 1; }
}
@keyframes scandi-sun-halo-pulse {
  0%, 100% { transform: translate(-40px, -180px) scale(1); opacity: 0.5; }
  50%      { transform: translate(-40px, -180px) scale(1.1); opacity: 0.75; }
}
/* SUN initial state */
 .scandi-drawer__house .scandi-h-sun { opacity: 0; }
 .scandi-drawer__house .sd-sun-disk,
 .scandi-drawer__house .sd-sun-halo,
 .scandi-drawer__house .sd-sun-rays { transform-origin: 290px 240px; }
/* Sun animation: rises from behind ground/ridge, up over the house */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-sun {
  animation: scandi-fade-in 0.4s ease-out 4.5s forwards;
}
body.scandi-drawer-open .scandi-drawer__house .sd-sun-disk {
  animation: scandi-sun-rise 3.5s cubic-bezier(0.32, 0, 0.34, 1) 4.5s forwards,
             scandi-sun-pulse 5s ease-in-out 8s infinite;
}
body.scandi-drawer-open .scandi-drawer__house .sd-sun-rays {
  animation: scandi-sun-rise 3.5s cubic-bezier(0.32, 0, 0.34, 1) 4.5s forwards,
             scandi-sun-pulse 4s ease-in-out 8s infinite;
}
body.scandi-drawer-open .scandi-drawer__house .sd-sun-halo {
  animation: scandi-sun-rise 3.5s cubic-bezier(0.32, 0, 0.34, 1) 4.5s forwards,
             scandi-sun-halo-pulse 6s ease-in-out 8s infinite;
}
/* === ORCHESTRATION === */
body.scandi-drawer-open .scandi-drawer__house {
  animation: scandi-house-breathe 6s ease-in-out 8s infinite;
}
body.scandi-drawer-open .scandi-drawer__house .scandi-h-grid {
  display: none;
}
/* PHASE 1: Foundation rises (0.3-0.9s) */
body.scandi-drawer-open .scandi-drawer__house .sd-foundation {
  animation: scandi-foundation-rise 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}
/* PHASE 2: Timber studs rise sequentially (0.9-1.7s) — stagger left to right */
body.scandi-drawer-open .scandi-drawer__house .sd-stud {
  animation: scandi-stud-up 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
body.scandi-drawer-open .scandi-drawer__house .sd-stud-corner:nth-of-type(1) { animation-delay: 0.90s; }
body.scandi-drawer-open .scandi-drawer__house .sd-stud:nth-of-type(2) { animation-delay: 0.90s; }
body.scandi-drawer-open .scandi-drawer__house .sd-stud:nth-of-type(3) { animation-delay: 1.05s; }
body.scandi-drawer-open .scandi-drawer__house .sd-stud:nth-of-type(4) { animation-delay: 1.20s; }
body.scandi-drawer-open .scandi-drawer__house .sd-stud:nth-of-type(5) { animation-delay: 1.35s; }
body.scandi-drawer-open .scandi-drawer__house .sd-stud:nth-of-type(6) { animation-delay: 1.50s; }
body.scandi-drawer-open .scandi-drawer__house .sd-stud:nth-of-type(7) { animation-delay: 1.65s; }
/* PHASE 3: Horizontal beams connect studs (1.7-2.0s) */
body.scandi-drawer-open .scandi-drawer__house .sd-beam {
  animation: scandi-beam-draw 0.5s cubic-bezier(0.65, 0, 0.35, 1) 1.70s forwards;
}
body.scandi-drawer-open .scandi-drawer__house .sd-beam-mid {
  animation-delay: 1.85s;
}
/* PHASE 4: Wall panels fill in (2.0-2.8s) */
body.scandi-drawer-open .scandi-drawer__house .sd-fill-wall {
  animation: scandi-fill-reveal 0.8s cubic-bezier(0.65, 0, 0.35, 1) 2.0s forwards;
}
/* PHASE 5: Roof rafters draw (2.6-3.4s) — these are .sd-l in frame, lines 5 & 6 */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l {
  animation: scandi-stroke-draw 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
/* Adjusted timing per element (frame children index — see SVG order) */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(1) { animation-delay: 0.40s; }
/* ground line — early */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(2) { animation-delay: 1.95s; }
/* left wall outline */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(3) { animation-delay: 1.95s; }
/* right wall outline */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(4) { animation-delay: 2.05s; }
/* ceiling */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(5) { animation-delay: 2.60s; }
/* roof left */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(6) { animation-delay: 2.60s; }
/* roof right */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(7) { animation-delay: 3.30s; }
/* door */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(8) { animation-delay: 3.45s; }
/* door handle */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(9) { animation-delay: 3.55s; }
/* L window */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(10) { animation-delay: 3.65s; }
/* L window cross H */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(11) { animation-delay: 3.65s; }
/* L window cross V */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(12) { animation-delay: 3.55s; }
/* R window */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(13) { animation-delay: 3.65s; }
/* R window cross H */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(14) { animation-delay: 3.65s; }
/* R window cross V */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(15) { animation-delay: 3.85s; }
/* chimney */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(16) { animation-delay: 4.20s; }
/* dim line */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(17) { animation-delay: 4.20s; }
/* dim left */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(18) { animation-delay: 4.20s; }
/* dim right */

/* PHASE 5b: Roof fill drops in (2.7-3.5s) */
body.scandi-drawer-open .scandi-drawer__house .sd-fill-roof {
  animation: scandi-fill-reveal 0.8s cubic-bezier(0.65, 0, 0.35, 1) 2.7s forwards;
}
/* PHASE 6: Roof tiles cascade (3.0-3.6s) */
body.scandi-drawer-open .scandi-drawer__house .sd-tile {
  animation: scandi-stroke-draw 0.4s ease-out forwards;
}
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(1) { animation-delay: 3.00s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(2) { animation-delay: 3.05s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(3) { animation-delay: 3.10s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(4) { animation-delay: 3.15s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(5) { animation-delay: 3.20s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(6) { animation-delay: 3.25s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(7) { animation-delay: 3.30s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(8) { animation-delay: 3.35s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(9) { animation-delay: 3.40s; }
body.scandi-drawer-open .scandi-drawer__house .sd-tile:nth-child(10) { animation-delay: 3.45s; }
/* PHASE 9: Windows light up (4.0-4.6s) */
body.scandi-drawer-open .scandi-drawer__house .sd-glow:nth-child(1) {
  animation: scandi-window-glow-on 0.9s ease-out 4.0s forwards;
}
body.scandi-drawer-open .scandi-drawer__house .sd-glow:nth-child(2) {
  animation: scandi-window-glow-on 0.9s ease-out 4.2s forwards;
}
/* PHASE 10: Chimney smoke wisps rise infinitely after construction (5.0s+) */
body.scandi-drawer-open .scandi-drawer__house .sd-smoke:nth-child(1) {
  animation: scandi-smoke-rise 3s ease-out 5.0s infinite;
}
body.scandi-drawer-open .scandi-drawer__house .sd-smoke:nth-child(2) {
  animation: scandi-smoke-rise 3.5s ease-out 5.5s infinite;
}
body.scandi-drawer-open .scandi-drawer__house .sd-smoke:nth-child(3) {
  animation: scandi-smoke-rise 4s ease-out 6.0s infinite;
}
body.scandi-drawer-open .scandi-drawer__house .sd-smoke:nth-child(4) {
  animation: scandi-smoke-rise 4.5s ease-out 6.5s infinite;
}
/* Anchor dots (corners) */
body.scandi-drawer-open .scandi-drawer__house .sd-dot {
  animation: scandi-dot-pulse 0.7s ease-out 4.5s forwards;
}
body.scandi-drawer-open .scandi-drawer__house .scandi-h-label {
  animation: scandi-fade-in 0.6s ease-out 2.6s forwards;
}
/* Sequential stroke-draw delays per line (data-d driven, but CSS doesn't read data-* — use nth-child) */
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(1) { animation-delay: 0.10s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(2) { animation-delay: 0.20s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(3) { animation-delay: 0.30s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(4) { animation-delay: 0.40s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(5) { animation-delay: 0.55s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(6) { animation-delay: 0.55s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(7) { animation-delay: 0.65s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(8) { animation-delay: 0.65s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(9) { animation-delay: 0.80s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(10) { animation-delay: 0.85s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(11) { animation-delay: 0.90s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(12) { animation-delay: 0.95s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(13) { animation-delay: 1.10s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(14) { animation-delay: 1.10s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(15) { animation-delay: 1.20s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(16) { animation-delay: 1.30s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(17) { animation-delay: 1.30s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(18) { animation-delay: 1.45s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(19) { animation-delay: 1.55s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(20) { animation-delay: 1.55s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(21) { animation-delay: 1.70s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(22) { animation-delay: 1.70s; }
body.scandi-drawer-open .scandi-drawer__house .scandi-h-frame .sd-l:nth-child(23) { animation-delay: 1.70s; }
/* Dot stagger */
body.scandi-drawer-open .scandi-drawer__house .sd-dot:nth-child(1) { animation-delay: 2.40s; }
body.scandi-drawer-open .scandi-drawer__house .sd-dot:nth-child(2) { animation-delay: 2.50s; }
body.scandi-drawer-open .scandi-drawer__house .sd-dot:nth-child(3) { animation-delay: 2.60s; }
body.scandi-drawer-open .scandi-drawer__house .sd-dot:nth-child(4) { animation-delay: 2.70s; }
/* Reset when closed */
:not(.scandi-drawer-open) .scandi-drawer__house *,
:not(.scandi-drawer-open) .scandi-drawer__house {
  animation: none;
}
/* Eyebrow "Навигация" сверху drawer */
 .scandi-drawer__inner::before {
  content: 'Навигация';
  display: block;
  font-family: var(--font-ui, 'Manrope'), sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c19a5b;
  margin: 0 0 -12px;
  line-height: 1;
}
/* Menu inside drawer — large premium typography */
 .scandi-drawer__menu-clone {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  height: auto;
}
/* Hide search-but and parent dropdown indicators inside drawer */
 .scandi-drawer__menu-clone .search-but,
 .scandi-drawer__menu-clone .wrap-search-form,
 .scandi-drawer__menu-clone .wrap-search-form-mb,
 .scandi-drawer__menu-clone .menu-item-has-children > a::after,
 .scandi-drawer__menu-clone .menu-item-has-children > .arrow,
 .scandi-drawer__menu-clone .menu-arrow,
 .scandi-drawer__menu-clone .arrow,
 .scandi-drawer__menu-clone .toggle-sub,
 .scandi-drawer__menu-clone i.fa,
 .scandi-drawer__menu-clone i.fas,
 .scandi-drawer__menu-clone svg.menu-icon {
  display: none;
}
 .scandi-drawer__menu-clone > nav,
 .scandi-drawer__menu-clone .menu,
 .scandi-drawer__menu-clone > ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
}
 .scandi-drawer__menu-clone .menu > li,
 .scandi-drawer__menu-clone > nav > ul > li,
 .scandi-drawer__menu-clone > ul > li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border-bottom: 1px solid rgba(193, 154, 91, 0.08);
  width: 100%;
  white-space: normal;
}
 .scandi-drawer__menu-clone a {
  display: block;
  font-family: var(--font-display, 'Manrope'), sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: #f3ecdc;
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 18px 0;
  background: none;
  border: none;
  text-transform: none;
  transition: color 0.2s ease, padding 0.2s ease;
}
 .scandi-drawer__menu-clone a:hover {
  color: #c19a5b;
  padding-left: 8px;
}
/* Sub-menus inside drawer — indented secondary */
 .scandi-drawer__menu-clone .sub-menu,
 .scandi-drawer__menu-clone li > ul {
  display: block;
  position: static;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 12px 16px;
  margin: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
}
 .scandi-drawer__menu-clone .sub-menu a {
  font-size: 15px;
  font-weight: 400;
  color: #a89c8a;
  padding: 8px 0;
  border: none;
}
 .scandi-drawer__menu-clone .sub-menu a:hover {
  color: #c19a5b;
  padding-left: 4px;
}
/* Contact block inside drawer (bottom) — premium expressive */
 .scandi-drawer__contact {
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid rgba(193, 154, 91, 0.18);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Two cities side-by-side with vertical gold rule */
 .scandi-drawer__cities {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 20px;
  align-items: start;
}
 .scandi-drawer__cities::before {
  content: '';
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 1px;
  height: 100%;
  min-height: 60px;
  background: rgba(193, 154, 91, 0.18);
  align-self: stretch;
}
 .scandi-drawer__city {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
 .scandi-drawer__city:first-child { grid-column: 1; }
 .scandi-drawer__city:last-child { grid-column: 3; }
 .scandi-drawer__city-label {
  font-family: var(--font-ui, 'Manrope'), sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #c19a5b;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
 .scandi-drawer__phone {
  font-family: var(--font-display, 'Manrope'), sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #f3ecdc;
  text-decoration: none;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color 0.2s ease;
  display: inline-block;
}
 .scandi-drawer__phone:hover {
  color: #c19a5b;
}
/* Messengers row — gold-outlined pills */
 .scandi-drawer__messengers {
  display: flex;
  gap: 10px;
}
 .scandi-drawer__messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid rgba(193, 154, 91, 0.28);
  border-radius: 999px;
  color: #d8cfba;
  text-decoration: none;
  font-family: var(--font-ui, 'Manrope'), sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  justify-content: center;
}
 .scandi-drawer__messenger:hover {
  border-color: #c19a5b;
  background: rgba(193, 154, 91, 0.08);
  color: #c19a5b;
}
 .scandi-drawer__messenger svg {
  flex-shrink: 0;
  color: currentColor;
}
/* CTA "Вход для клиентов" — premium gold pill */
 .scandi-drawer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: linear-gradient(135deg, #c19a5b 0%, #a67c3a 100%);
  color: #1a1410;
  font-family: var(--font-ui, 'Manrope'), sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  box-shadow: 0 8px 20px rgba(193, 154, 91, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
 .scandi-drawer__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(193, 154, 91, 0.4);
  color: #1a1410;
}
 .scandi-drawer__hours {
  font-family: var(--font-ui, 'Manrope'), sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #786e60;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.7;
  margin-top: 4px;
  text-align: center;
}
/* Lock body scroll when drawer open */
body.scandi-drawer-open {
  overflow: hidden;
}
@media (max-width: 768px) {
   .scandi-drawer__panel {
    width: 100vw;
  }
   .scandi-drawer__inner {
    padding: 70px 24px 32px;
  }
   .scandi-drawer__menu-clone a {
    font-size: 19px;
    padding: 14px 0;
  }
}
/* NB: errant generic link-reset (a[href]:not(...){color:inherit}) удалён —
   он попал сюда при извлечении (упоминал scandi-burger/__cta в :not()), но это
   НЕ drawer-правило и оно перебивало цвет пунктов меню (делало их тёмными). */
/* Burger — белые палочки на стекле */
 .scandi-burger span {
  background: #f3ecdc;
}
body.scandi-theme-day .scandi-burger span {
  background: #1a1410;
}
/* "Меню" label is .scandi-burger::after — needs dark color in day theme */
body.scandi-theme-day .scandi-burger::after {
  color: #1a1410;
  -webkit-text-fill-color: #1a1410;
}
/* МЕНЮ link text in day theme — dark */
body.scandi-theme-day .scandi-burger + .b-title,
body.scandi-theme-day #header .menu-toggle,
body.scandi-theme-day #header [class*="menu"] {
  color: #1a1410;
  -webkit-text-fill-color: #1a1410;
}
/* NB: блоки BUTTONS/LINKS/ICONS UNIVERSAL (section button, .cbform button,
   section a, svg path[#3F7BD4]) удалены — это глобальные оверрайды старого синего
   бренда, попавшие сюда при извлечении (упоминали :not(.scandi-burger)). К drawer'у
   не относятся; кнопки/формы/иконки оформим в своих модулях (R4+). */

/* Остатки клона .right .bottom: клонируется и мобильная cb-линия + поиск со
   спрайт-иконками (огромные чёрные phone/mail). У drawer'а свои контакты внизу —
   прячем эти дубли и подрезаем любые залётные спрайт-svg в меню. */
.scandi-drawer__menu-clone .mobile-cb-line,
.scandi-drawer__menu-clone .search-but,
.scandi-drawer__menu-clone .wrap-search-form,
.scandi-drawer__menu-clone .wrap-search-form-mb,
.scandi-drawer__menu-clone form[role="search"] { display: none; }
.scandi-drawer__menu-clone svg { max-width: 20px; max-height: 20px; }

/* ── Accordion ТОЛЬКО на верхнем уровне ──────────────────────────────────────
   Сворачиваем/раскрываем только подменю первого уровня (Каталог/Визуализация,
   Фахверки/Барнхаусы, Этапы работы). Когда верхний пункт раскрыт — вложенное
   дерево (Барнхаусы → Фахверки → Бани → Весь каталог) видно целиком, чтобы
   «Фахверки» не терялся в глубине. Вложенные пункты — обычные ссылки (переход).
   Перебивает портированные правила (идёт ниже по файлу). */
.scandi-drawer__menu-clone ul.menu > li.menu-item-has-children > .sub-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.45s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.3s ease,
              padding 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.scandi-drawer__menu-clone ul.menu > li.menu-item-has-children.sd-open > .sub-menu {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 12px;
}
/* вложенные подменю (2-й+ уровень) — всегда видны внутри раскрытого верхнего */
.scandi-drawer__menu-clone .sub-menu .sub-menu {
  max-height: none;
  opacity: 1;
  overflow: visible;
}
/* chevron-индикатор ТОЛЬКО на верхнем уровне (re-enable — портир. блок прятал) */
.scandi-drawer__menu-clone ul.menu > li.menu-item-has-children > a {
  position: relative;
  padding-right: 30px;
}
.scandi-drawer__menu-clone ul.menu > li.menu-item-has-children > a::after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  right: 6px;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 1.6px solid #c19a5b;
  border-bottom: 1.6px solid #c19a5b;
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), margin-top 0.3s ease;
}
.scandi-drawer__menu-clone ul.menu > li.menu-item-has-children.sd-open > a::after {
  transform: rotate(225deg);
  margin-top: -2px;
}
/* на вложенных родителях стрелок нет — это обычные ссылки */
.scandi-drawer__menu-clone .sub-menu .menu-item-has-children > a::after { content: none; display: none; }

/* ── Messengers: 4 (Telegram / WhatsApp / MAX / ВКонтакте) в сетке 2×2 ── */
.scandi-drawer__messengers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scandi-drawer__messengers .scandi-drawer__messenger {
  width: 100%;
}