/* ТЦ «Белка» — общие стили сайта */

:root {
  --brand: #CF3A28;          /* коралловый белки, кнопки и ссылки */
  --brand-dark: #A82B1E;
  --brand-bright: #F7613F;   /* коралловый белки с таблички у входа */
  --amber: #E9A93A;          /* жёлтые полосы фасада */
  --wood: #8A5A35;           /* деревянная обшивка фасада */
  --brand-soft: #FFE3D6;
  --ink: #3B2416;            /* основной текст, «ореховый» */
  --ink-soft: #6E5444;
  --bg: #FFF9F1;
  --surface: #FFFFFF;
  --sand: #F7EBDB;
  --line: #EBD9C3;
  --green: #2E7545;
  --green-soft: #DDF1E2;
  --red: #A93A28;
  --red-soft: #FBE3DD;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(91, 52, 22, .09);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* цвета категорий на схеме и в каталоге */
  --cat-products: #FFD6B3;
  --cat-pickup: #D6E6FF;
  --cat-food: #FFE89E;
  --cat-entertainment: #E6DAFF;
  --cat-services: #D3EEDB;
  --cat-shops: #FFD3E1;
  --cat-beauty: #F3D9F5;
  --cat-banks: #CDEDEE;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.section { padding: 56px 0; }
.section--sand { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-bright); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 800; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- статус «открыто / закрыто» ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800; white-space: nowrap;
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { background: var(--green-soft); color: var(--green); }
.status.is-closed { background: var(--red-soft); color: var(--red); }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 241, .95); backdrop-filter: blur(8px); border-bottom: 3px solid var(--amber); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
/* белка смотрит на название, как на вывеске фасада */
.brand .squirrel { width: 44px; height: 52px; transform: scaleX(-1); }
.brand b { display: block; font-family: 'Oswald', var(--font); font-size: 1.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.brand small { display: block; font-size: .72rem; color: var(--ink-soft); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.main-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-hours { display: flex; align-items: center; gap: 8px; font-weight: 800; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); content: ''; transition: transform .2s; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) { .header-hours { display: none; } }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 16px; font-size: 1.1rem; }
}

/* ---------- первый экран ---------- */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; gap: 24px; grid-template-columns: 1.35fr 1fr; align-items: stretch; }
.hero-visual {
  position: relative; min-height: 420px; border-radius: 28px; overflow: hidden;
  /* фото задаётся в data.js (heroPhoto); пока оно грузится — рыжий градиент с белкой */
  background:
    linear-gradient(180deg, rgba(40, 22, 10, .2) 0%, rgba(40, 22, 10, .55) 40%, rgba(40, 22, 10, .88) 100%),
    var(--hero-img, none) center / cover no-repeat,
    radial-gradient(circle at 80% 15%, #FFC98F 0, transparent 45%),
    linear-gradient(135deg, #FF8A45 0%, #C8253A 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
}
.hero-visual .hero-mascot { position: absolute; right: 24px; top: 24px; width: 34%; max-width: 200px; }
.hero-visual .hero-mascot .squirrel { width: 100%; height: auto; }
.hero-visual.has-photo .hero-mascot { display: none; }
.hero-visual h1 { color: #fff; margin-bottom: 12px; max-width: 13ch; }
.hero-visual p { font-size: 1.15rem; font-weight: 600; max-width: 34ch; margin-bottom: 20px; }
.hero-visual .btn--ghost { background: rgba(255, 255, 255, .95); border-color: transparent; }
.hero-side { display: grid; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.info-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.info-card .ico { font-size: 1.4rem; }
.hours-big { font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.hours-list { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hours-list b { font-weight: 800; }
.metro-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; padding: 24px; }
}

/* ---------- плитки категорий ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius);
  background: var(--c, var(--surface)); color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.tile .ico { font-size: 2rem; }
.tile b { font-size: 1.1rem; font-weight: 800; }
.tile span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- чипсы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--brand-bright); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--big { font-size: 1.05rem; padding: 12px 20px; }

/* ---------- обзор этажей ---------- */
.floors-overview { display: grid; gap: 12px; }
.floor-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.floor-row .floor-num { font-size: 1.3rem; font-weight: 900; }
.floor-row .floor-tenants { color: var(--ink-soft); }
.floor-row .floor-tenants b { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .floor-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- баннер арендаторам ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr; align-items: center;
  padding: 36px; border-radius: 28px; color: #fff;
  background:
    linear-gradient(90deg, rgba(40, 22, 10, .95) 0%, rgba(40, 22, 10, .82) 55%, rgba(40, 22, 10, .35) 100%),
    url('../img/photos/belka-vecher.jpg') 70% 35% / cover no-repeat,
    var(--ink);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #E9D9CB; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 28px 22px; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- каталог ---------- */
.catalog-tools { display: grid; gap: 16px; margin-bottom: 24px; }
.search {
  width: 100%; max-width: 520px; padding: 14px 18px 14px 48px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236E5444' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='M13 13l5 5'/%3E%3C/svg%3E") 18px center no-repeat;
  font: inherit; color: var(--ink);
}
.search:focus { outline: none; border-color: var(--brand-bright); }
.shop-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 400px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.shop-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: var(--c, var(--sand)); }
.shop-card h3 { margin-bottom: 2px; }
.shop-cat { font-size: .88rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.shop-desc { margin-bottom: 12px; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .92rem; margin-bottom: 10px; }
.shop-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .95rem; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-soft); background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* ---------- схема этажей (по образцу карт ТЦ: плитки, карточки, пиктограммы, зум) ---------- */
.plan-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.plan-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--sand); border-radius: 999px; }
.plan-tabs button { border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--ink); padding: 11px 20px; border-radius: 999px; cursor: pointer; }
.plan-tabs button:hover { background: rgba(255, 255, 255, .7); }
.plan-tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(207, 58, 40, .3); }
.plan-search { position: relative; flex: 1 1 260px; }
.plan-search .search { max-width: none; }
.plan-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; }
.plan-results button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; background: transparent; border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.plan-results button:hover { background: var(--brand-soft); }
.plan-results small { color: var(--ink-soft); white-space: nowrap; }
.plan-results p { margin: 8px 12px; }

.plan-layout { display: grid; gap: 20px; grid-template-columns: 1fr 340px; align-items: start; }
@media (max-width: 980px) { .plan-layout { grid-template-columns: 1fr; } }
.plan-canvas { position: relative; background: #F4EEE5; border: 1px solid var(--line); border-radius: 24px; padding: 10px; overflow: hidden; }
.plan-canvas svg { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; user-select: none; }
.plan-canvas svg:active { cursor: grabbing; }
.plan-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; gap: 8px; }
.plan-zoom button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: 0 4px 14px rgba(59, 36, 22, .18); font: 800 1.3rem var(--font); color: var(--ink); cursor: pointer; }
.plan-zoom button:hover { background: var(--brand-soft); }

.pl-building { fill: url(#pl-tiles); }
.pl-walls { fill: none; stroke: #3B2416; stroke-width: 7; stroke-linejoin: round; pointer-events: none; }
.pl-room > rect, .pl-room > polygon { stroke: #fff; stroke-width: 3; stroke-linejoin: round; transition: filter .15s, stroke .15s; }
.pl-room { cursor: pointer; }
.pl-room:hover > rect, .pl-room:hover > polygon, .pl-room:focus > rect, .pl-room:focus > polygon { filter: brightness(.95); }
.pl-room:focus { outline: none; }
.pl-room.is-active > rect, .pl-room.is-active > polygon,
.pl-room.is-hover > rect, .pl-room.is-hover > polygon { stroke: var(--brand); stroke-width: 6; }
.pl-room.is-active .pl-card { stroke: var(--brand); stroke-width: 2.5; }
.pl-room.is-hover > rect, .pl-room.is-hover > polygon { animation: pl-pulse 1s ease-in-out infinite; }
@keyframes pl-pulse { 50% { stroke-width: 10; } }
.pl-room.is-empty > rect, .pl-room.is-empty > polygon { fill: #E9E0D3; }
.pl-room.is-free > rect, .pl-room.is-free > polygon { fill: var(--green-soft); stroke: var(--green); stroke-dasharray: 9 5; stroke-width: 3; }
.pl-label { pointer-events: none; }
.pl-card { fill: #fff; filter: url(#pl-shadow); }
.pl-room text { font-family: var(--font); fill: var(--ink); text-anchor: middle; }
.pl-ico { font-size: 21px; }
.pl-name { font-size: 15px; font-weight: 800; }
.pl-sub { font-size: 13px; font-weight: 700; fill: var(--ink-soft) !important; }
.pl-room.is-free .pl-name { fill: var(--green); }
.pl-num rect { fill: #3B2416; }
.pl-num text { fill: #fff !important; font-size: 11.5px; font-weight: 800; }
.pl-svc rect, .pl-svc polygon { fill: #E7DED1; stroke: #fff; stroke-width: 2; }
.pl-service rect, .pl-service polygon { fill: url(#pl-hatch); stroke: #fff; stroke-width: 2; }
.pl-service text { font-family: var(--font); fill: #9B8470; font-size: 14px; font-weight: 700; text-anchor: middle; }
.pl-void polygon, .pl-void rect { fill: #fff; stroke: #D9C7B2; stroke-width: 2; stroke-dasharray: 6 5; }
.pl-void text { font-family: var(--font); fill: #B9A08A; font-size: 15px; font-weight: 800; letter-spacing: .1em; text-anchor: middle; text-transform: uppercase; }
.pl-pic rect { fill: #3B2416; }
.pl-pic-text { font: 900 11px var(--font); fill: #fff; text-anchor: middle; }
.pl-entrance path { fill: #2FA35A; }
.pl-entrance text { font: 900 13px var(--font); fill: #2E7545; text-anchor: middle; letter-spacing: .08em; }
.cat-products > rect, .cat-products > polygon { fill: var(--cat-products); }
.cat-pickup > rect, .cat-pickup > polygon { fill: var(--cat-pickup); }
.cat-food > rect, .cat-food > polygon { fill: var(--cat-food); }
.cat-entertainment > rect, .cat-entertainment > polygon { fill: var(--cat-entertainment); }
.cat-services > rect, .cat-services > polygon { fill: var(--cat-services); }
.cat-shops > rect, .cat-shops > polygon { fill: var(--cat-shops); }
.cat-beauty > rect, .cat-beauty > polygon { fill: var(--cat-beauty); }
.cat-banks > rect, .cat-banks > polygon { fill: var(--cat-banks); }

.plan-info { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; position: sticky; top: 104px; max-height: calc(100vh - 124px); overflow: auto; }
@media (max-width: 980px) { .plan-info { position: static; max-height: none; } }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pl-head h3 { margin: 0; font-size: 1.5rem; }
.pl-head span { color: var(--ink-soft); font-weight: 700; font-size: .92rem; }
.pl-hint { font-size: .95rem; }
.pl-detail { background: var(--c, var(--sand)); border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; }
.pl-detail--free { background: var(--green-soft); }
.pl-detail .eyebrow { margin-bottom: 4px; color: var(--ink); }
.pl-detail h4 { font-size: 1.3rem; font-weight: 900; margin: 0 0 6px; }
.pl-detail p { margin: 0 0 8px; }
.pl-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0; }
.pl-detail dt { color: var(--ink-soft); font-weight: 700; }
.pl-detail dd { margin: 0; font-weight: 800; }
.pl-chips { margin: 4px 0 10px; }
.pl-chips .chip { padding: 6px 12px; font-size: .85rem; }
.plan-floor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.plan-floor-list button, .plan-floor-list .nopick { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; border: 0; background: transparent; font: inherit; color: var(--ink); }
.plan-floor-list button { cursor: pointer; }
.plan-floor-list button:hover { background: var(--brand-soft); }
.plan-floor-list .nopick { opacity: .7; }
.pl-li-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--c, var(--sand)); }
.pl-li-ico--free { background: var(--green-soft); }
.pl-li-txt { display: grid; line-height: 1.25; }
.pl-li-txt b { font-weight: 800; }
.pl-li-txt small { color: var(--ink-soft); font-size: .85rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .92rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.free-mark { color: var(--green); font-weight: 800; }

/* ---------- «Что на каком этаже»: объёмная стопка этажей ---------- */
.section--dark { background: #2A1A10; color: #F3E6DA; }
.section--dark h2 { color: #fff; }
.section--dark .lead { color: #D9C4B2; }
.f3 { display: grid; gap: 24px; grid-template-columns: 340px 1fr; grid-template-areas: "list stage" "panel stage"; align-items: start; }
.f3-list { grid-area: list; display: grid; gap: 10px; }
.f3-row { display: grid; grid-template-columns: 104px 1fr; grid-template-areas: "num cats" "num hours"; gap: 2px 12px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #F3E6DA; font: inherit; cursor: pointer; transition: background .2s, transform .2s; }
.f3-row:hover { background: rgba(255, 255, 255, .1); }
.f3-row.is-on { background: #fff; color: var(--ink); transform: translateX(6px); }
.f3-num { grid-area: num; font-size: 1.6rem; font-weight: 900; line-height: 1; }
.f3-num--word { font-size: 1.05rem; }
.f3-cats { grid-area: cats; font-weight: 700; font-size: .95rem; }
.f3-hours { grid-area: hours; font-size: .85rem; opacity: .75; }
.f3-stage { grid-area: stage; height: 520px; perspective: 1500px; display: grid; place-items: center; }
.f3-building { position: relative; width: 380px; height: 260px; transform-style: preserve-3d; transform: translateY(70px) rotateX(58deg) rotateZ(calc(-36deg + var(--sway, 0deg))); transition: transform .5s ease; }
.f3-slab { position: absolute; inset: 0; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); transform: translateZ(calc(var(--i) * 78px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .3s, box-shadow .3s; cursor: pointer; }
.f3-slab svg { width: 100%; height: 100%; padding: 14px; opacity: .45; transition: opacity .3s; }
.f3-slab.is-on { background: #FFF9F1; transform: translateZ(calc(var(--i) * 78px + 30px)); box-shadow: 0 0 0 3px var(--brand-bright), 0 30px 60px rgba(247, 97, 63, .45); }
.f3-slab.is-on svg { opacity: 1; }
.f3-slab:not(.is-on):hover { background: rgba(255, 255, 255, .16); }
.f3-tag { position: absolute; right: -8px; bottom: 18px; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; white-space: nowrap; transform: rotateZ(36deg) rotateX(-58deg); transform-origin: right bottom; }
.f3-slab:not(.is-on) .f3-tag { background: rgba(255, 255, 255, .2); }
.f3-slab .m-out { fill: #F1E6D8; stroke: #3B2416; stroke-width: 8; stroke-linejoin: round; }
.f3-slab:not(.is-on) .m-out { fill: rgba(255, 255, 255, .25); stroke: rgba(255, 255, 255, .7); }
.f3-slab rect, .f3-slab polygon:not(.m-out) { stroke: #fff; stroke-width: 4; }
.f3-slab .m-svc > * { fill: #DDD1C1; }
.f3-slab .m-busy > * { fill: #E3D8CA; }
.f3-slab .m-free > * { fill: #BFE5CA; }
.f3-slab .is-hl > * { fill: var(--brand-bright) !important; }
.f3-panel { grid-area: panel; background: #fff; color: var(--ink); border-radius: 24px; padding: 20px; }
.f3-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.f3-panel-head b { font-size: 1.35rem; font-weight: 900; }
.f3-panel-head span { color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.f3-panel .chips { margin-bottom: 14px; }
.f3-panel .chip { padding: 6px 12px; font-size: .85rem; }
.f3-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; }
.f3-tile { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: var(--c, var(--sand)); text-decoration: none; color: var(--ink); text-align: center; transition: transform .15s; }
.f3-tile:hover { transform: translateY(-2px); color: var(--ink); }
.f3-tile span { font-size: 1.5rem; }
.f3-tile b { font-size: .8rem; font-weight: 800; line-height: 1.2; }
.f3-hint { margin: 12px 0 0; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .f3 { grid-template-columns: 1fr; grid-template-areas: "list" "stage" "panel"; }
  .f3-stage { height: 380px; }
  .f3-building { width: 260px; height: 180px; transform: translateY(50px) rotateX(58deg) rotateZ(-36deg); }
  .f3-slab { transform: translateZ(calc(var(--i) * 58px)); }
  .f3-slab.is-on { transform: translateZ(calc(var(--i) * 58px + 22px)); }
  .f3-row.is-on { transform: none; }
}

/* ---------- арендаторам ---------- */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { font-size: 2rem; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--ink-soft); }
.free-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.free-card { background: var(--surface); border: 2px dashed var(--green); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; }
.free-card .tag { justify-self: start; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .82rem; padding: 3px 10px; border-radius: 999px; }
.free-card h3 { margin: 0; }

/* ---------- формы ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 800; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); font: inherit; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-bright); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.form-msg { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 700; }
.form-msg.is-ok { display: block; background: var(--green-soft); color: var(--green); }
.form-msg.is-err { display: block; background: var(--red-soft); color: var(--red); }

/* ---------- как добраться ---------- */
.route-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1.3fr; align-items: stretch; }
@media (max-width: 900px) { .route-grid { grid-template-columns: 1fr; } }
.route-list { display: grid; gap: 14px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--sand); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list a { font-weight: 800; text-decoration: none; }

/* ---------- фото ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-weight: 700; font-size: .95rem; }

/* ---------- подвал ---------- */
.site-footer { margin-top: 40px; background: var(--ink); color: #E9D9CB; padding: 48px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #CDB6A3; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; color: #CDB6A3; }

/* ---------- текстовые страницы ---------- */
.page-head { padding: 40px 0 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---------- фишки по образцу сайта ТЦ «Ареал» ---------- */
/* плавающая шапка-«пилюля» */
.site-header { background: transparent; border-bottom: 0; backdrop-filter: none; padding-top: 12px; pointer-events: none; }
.site-header .header-inner { pointer-events: auto; position: relative; min-height: 68px; padding: 8px 10px 8px 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: 0 8px 30px rgba(59, 36, 22, .12); border: 1px solid rgba(235, 217, 195, .8); }
.site-header .main-nav a[aria-current="page"] { background: var(--brand); }
@media (max-width: 860px) {
  .site-header .main-nav { top: calc(100% + 8px); border-radius: 24px; border: 1px solid var(--line); }
}
.hero { padding-top: 24px; }

/* «Открыто сейчас · до 22:00» */
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: .95rem; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .3); }
.status-pill::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.status-pill.is-closed::before { background: #F87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .25); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.hero-pills .eyebrow { margin: 0; }

/* «Что внутри»: счётчики */
.tile--count { padding: 22px; min-height: 170px; }
.tile-num { font-size: 3rem !important; font-weight: 900; line-height: 1; color: var(--ink) !important; letter-spacing: -.02em; }
.tile--count b { font-size: 1.15rem; }
.tile--free { background: var(--green-soft); }

/* «Что нового» */
.news-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.news-card { position: relative; display: grid; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.news-card b { font-size: 1.3rem; font-weight: 900; }
.news-card small { color: var(--ink-soft); font-weight: 700; }
.news-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.news-tag--sale { background: var(--amber); color: var(--ink); }
.news-ico { position: absolute; right: 18px; top: 18px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--c, var(--sand)); }
.new-badge { display: inline-block; vertical-align: middle; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

/* маршрут по шагам */
.route-steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.route-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.route-steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900; }
/* фирменные значки (банки) в каталоге и списках */
.brand-ico { width: 70%; height: 70%; display: block; }
.pl-room.has-brand > rect { fill: transparent !important; stroke: none !important; }
.pl-room.has-brand.is-active .pl-card, .pl-room.has-brand.is-hover .pl-card { stroke: var(--brand); stroke-width: 3; }
.pl-door { stroke: #FBF6EE; stroke-width: 9; }
/* летняя веранда на схеме */
.pl-terrace .pl-deck { fill: url(#pl-deck); stroke: #9C7A55; stroke-width: 3; stroke-dasharray: 8 5; }
.pl-terrace.is-active .pl-deck, .pl-terrace:hover .pl-deck { stroke: var(--brand); stroke-width: 4; }
.pl-planter { fill: #B98A5C; stroke: #8A5A35; stroke-width: 1.2; }
.pl-plant { fill: #6FAF5B; }
.pl-flower { fill: #F7C948; }
.pl-table { fill: #FFF7EC; stroke: #8A5A35; stroke-width: 1.6; }
.pl-chair { fill: #fff; stroke: #B08A6A; stroke-width: 1.4; }
.pl-terrace-label { font: 800 12px var(--font); fill: #8A5A35; text-anchor: middle; }.pl-amenity circle { fill: #fff; stroke: #8E7BD6; stroke-width: 2.5; filter: url(#pl-shadow); }
.pl-amenity text { font-size: 17px; text-anchor: middle; }
