/* mosaico — bold / bento: тёплый светлый фон, чёрный гротеск Bricolage, винный акцент, оливковые и
   песочные плитки, живые формы-блобы и акварельные пятна. Motion: подъём слов при загрузке, бегущая
   строка, .rv-появление плиток (base.css), медленный морфинг блобов; всё гасится при reduced-motion. */
:root {
  --bg: #f4efe6; --ink: #15120f; --ink-soft: #6b625a; --paper: #fffdf9; --sand: #e9dcc4; --olive: #38452f; --wine: #4d1a26;
  --line: #e3d9c8; --accent: #b23a2c;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif; --sans: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1240px; --pad: max(16px, calc((100vw - var(--wrap)) / 2)); --r: 26px;
}
.bs-mosaico { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); position: relative; }
.bs-mosaico h1, .bs-mosaico h2, .bs-mosaico h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -.035em; }
.bs-mosaico ::selection { background: var(--accent); color: #fff; }
.bs-mosaico .bs-strip { position: relative; z-index: 60; }
.mo-label { font: 600 11.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.mo-text { font: 600 clamp(19px, 1.6vw, 24px)/1.4 var(--display); letter-spacing: -.015em; margin: 0; text-wrap: pretty; }
.mo-text-sm { margin: 0 0 14px; color: var(--ink-soft); }

/* кнопки */
.mo-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font: 600 15px/1 var(--sans); transition: transform .2s, background .2s; max-width: 100%; }
.mo-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-btn:hover { transform: translateY(-2px); background: var(--accent); }
.mo-btn-sm { padding: 11px 18px; font-size: 14px; }
.mo-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.mo-btn-ghost:hover { background: var(--ink); color: #fff; }
.mo-btn-xl { padding: 22px 36px; font-size: 19px; }

/* живые формы на фоне (чистый CSS, без картинок) */
.mo-blobs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.mo-blob { position: absolute; display: block; filter: blur(60px); opacity: .55; border-radius: 42% 58% 61% 39% / 45% 38% 62% 55%; animation: mo-morph 26s ease-in-out infinite alternate; }
.mo-blob-1 { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -12vw; top: 40px; background: radial-gradient(circle at 40% 40%, #f2c7a1, #e59a74 60%, transparent 72%); }
.mo-blob-2 { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; left: -14vw; top: 55vh; background: radial-gradient(circle at 60% 50%, #d8dcc0, #b9c39a 60%, transparent 72%); animation-delay: -9s; }
.mo-blob-3 { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; right: 8vw; top: 130vh; background: radial-gradient(circle at 50% 50%, #f1b8bf, #d98a97 60%, transparent 72%); animation-delay: -17s; opacity: .4; }
@keyframes mo-morph { 0% { border-radius: 42% 58% 61% 39% / 45% 38% 62% 55%; transform: translate(0,0) rotate(0); } 50% { border-radius: 58% 42% 37% 63% / 52% 61% 39% 48%; transform: translate(-4%, 6%) rotate(12deg); } 100% { border-radius: 36% 64% 55% 45% / 60% 40% 60% 40%; transform: translate(5%, -4%) rotate(-10deg); } }

/* плавающая шапка-пилюля */
.mo-top { position: sticky; top: 10px; z-index: 40; display: flex; align-items: center; gap: 20px; margin: 14px auto 0; width: min(calc(100% - 24px), 1100px); padding: 10px 10px 10px 22px; border-radius: 99px; background: rgba(255,253,249,.78); backdrop-filter: blur(14px); border: 1px solid rgba(21,18,15,.08); box-shadow: 0 14px 40px -24px rgba(40,20,10,.35); }
.mo-top-name { font: 800 18px/1 var(--display); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-nav { margin-left: auto; display: flex; gap: 4px; }
.mo-nav a { text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 14px; border-radius: 99px; }
.mo-nav a:hover { background: var(--sand); }
.mo-top .mo-btn { flex: none; }

/* герой */
.mo-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 72px var(--pad) 56px; }
.mo-stain { position: absolute; z-index: -1; left: calc(var(--pad) - 220px); top: -40px; width: min(520px, 70vw); opacity: .32; pointer-events: none; animation: mo-spin 70s linear infinite; }
@keyframes mo-spin { to { transform: rotate(360deg); } }
.mo-hello { font: 600 clamp(18px, 1.8vw, 24px)/1.2 var(--display); margin: 0 0 10px; color: var(--ink-soft); letter-spacing: -.01em; }
.mo-hero h1 { font-size: clamp(50px, 7.4vw, 112px); line-height: .94; overflow-wrap: anywhere; }
.mo-wc { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .08em 0; margin-bottom: -.08em; }
.mo-w { display: inline-block; }
.mo-lead { font: 500 clamp(19px, 1.9vw, 26px)/1.35 var(--display); margin: 24px 0 32px; max-width: 32ch; letter-spacing: -.015em; }
.mo-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mo-hero-art { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -36px rgba(40,20,10,.5); transform: rotate(1.5deg); }
.mo-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.mo-hero-logo { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 14px; padding: 8px 12px; box-shadow: 0 8px 24px -14px rgba(0,0,0,.5); }
.mo-hero-logo img { max-height: 44px; max-width: 140px; width: auto; }
html.js .mo-w { animation: mo-rise .9s cubic-bezier(.2,.75,.15,1) both; animation-delay: calc(.1s + var(--i) * 70ms); }
html.js .mo-in { animation: mo-fade .9s ease both; animation-delay: calc(.15s + var(--i) * 80ms); }
@keyframes mo-rise { from { transform: translateY(108%) rotate(3deg); } to { transform: none; } }
@keyframes mo-fade { from { opacity: 0; transform: translateY(16px); } to { transform: none; } }

/* бегущая строка фактов (копия дублируется для бесшовной петли) */
.mo-marquee { position: relative; z-index: 1; overflow: hidden; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); padding: 14px 0; }
.mo-marquee-track { display: flex; width: max-content; animation: mo-marq 48s linear infinite; }
.mo-marquee:hover .mo-marquee-track { animation-play-state: paused; }
.mo-marquee-copy { display: flex; align-items: center; white-space: nowrap; font: 600 16px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.mo-marquee-copy span { padding: 0 22px; }
.mo-marquee-copy i { font-style: normal; color: var(--accent); font-size: 12px; }
@keyframes mo-marq { to { transform: translateX(-50%); } }

/* бенто-сетка */
.mo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; grid-auto-flow: dense; gap: 14px; max-width: var(--wrap); margin: 0 auto; padding: 56px var(--pad) 40px; }
.mo-tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r); padding: 26px; background: var(--paper); border: 1px solid var(--line); min-width: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.mo-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(40,20,10,.4); }
.mo-t-about { grid-column: span 2; grid-row: span 2; justify-content: center; }
.mo-t-about .mo-text { font-size: clamp(20px, 1.9vw, 28px); }
.mo-t-place { grid-column: span 2; grid-row: span 2; margin: 0; padding: 0; justify-content: flex-end; color: #fff; }
.mo-t-place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.mo-t-place:hover img { transform: scale(1.05); }
.mo-t-place figcaption { position: relative; padding: 26px; background: linear-gradient(180deg, transparent, rgba(15,10,8,.72)); }
.mo-t-place .mo-label { color: #fff; opacity: .85; }
.mo-t-place .bs-photo-tag { position: static; display: inline-block; margin-top: 12px; }
.mo-t-num { background: var(--wine); color: #fbe9d8; border-color: var(--wine); justify-content: space-between; }
.mo-t-num .mo-label { color: #e9b79a; }
.mo-num { font: 800 clamp(44px, 4.6vw, 68px)/1 var(--display); letter-spacing: -.045em; margin: 0; }
.mo-num small { display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; opacity: .8; }
.mo-num-unit { margin: 6px 0 0; font-weight: 600; opacity: .85; }
.mo-t-kind { background: var(--sand); border-color: var(--sand); }
.mo-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mo-chips li { padding: 8px 14px; border-radius: 99px; background: rgba(255,253,249,.8); font-weight: 600; font-size: 14px; }
.mo-chips-light li { background: rgba(255,255,255,.14); color: #fff; }
.mo-t-people { grid-column: span 2; justify-content: center; }
.mo-person { font: 800 clamp(30px, 3.4vw, 50px)/1.05 var(--display); letter-spacing: -.035em; margin: 0; }
.mo-t-world { grid-column: span 2; background: var(--olive); color: #f1eee0; border-color: var(--olive); }
.mo-t-world .mo-label { color: #d6dcb8; } .mo-t-world .mo-text-sm { color: #e4e6d6; }
.mo-t-world .mo-num { margin-bottom: 14px; }
.mo-tile-link { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.mo-t-visit { grid-column: span 2; background: var(--paper); gap: 18px; }
.mo-svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mo-svc li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.mo-svc .ic { width: 24px; height: 24px; color: var(--accent); }
.mo-t-visit .mo-btn { margin-top: auto; align-self: flex-start; }
.mo-t-insta { background: var(--ink); color: #fff; border-color: var(--ink); justify-content: space-between; }
.mo-t-insta > .ic { width: 34px; height: 34px; }
.mo-insta-handle { font: 800 clamp(22px, 2vw, 28px)/1.1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.mo-t-insta .mo-label { color: #c9bfb3; margin: 0; }
.mo-t-map { grid-column: span 2; min-height: 400px; padding: 0; }
.mo-map { position: absolute; inset: 0; min-height: 0; height: 100%; }
.mo-map-card { position: relative; z-index: 2; margin: auto 14px 14px; padding: 18px 20px; border-radius: 18px; background: rgba(255,253,249,.92); backdrop-filter: blur(8px); }
.mo-map-card .mo-text-sm { margin-bottom: 6px; color: var(--ink); font-weight: 500; }
.mo-map-card .mo-tile-link { padding-top: 0; }
.mo-t-contact { grid-column: span 2; }
.mo-contacts { gap: 16px; }
.mo-w2 { grid-column: span 2; } .mo-w4 { grid-column: span 4; }
.mo-w4 .mo-contacts { grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.mo-t-num, .mo-t-kind, .mo-t-insta { min-height: 230px; }

/* галерея и большой CTA */
.mo-gallery-wrap { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 24px var(--pad) 40px; }
.mo-gallery { --gal-row: 230px; --gal-radius: 20px; --gal-gap: 14px; }
.mo-big-cta { position: relative; z-index: 1; overflow: hidden; text-align: center; padding: 120px var(--pad) 130px; background: linear-gradient(rgba(244,239,230,.35), rgba(244,239,230,.35)), url('/static/sites/art/mesh-dawn.webp') center / cover; }
.mo-stain-2 { left: auto; right: -140px; top: -40px; width: min(480px, 70vw); animation-direction: reverse; animation-duration: 90s; }
.mo-big-cta h2 { font-size: clamp(38px, 6.4vw, 92px); line-height: .96; max-width: 14ch; margin: 0 auto 36px; text-wrap: balance; }

/* подвал */
.bs-mosaico .bs-foot { position: relative; z-index: 1; background: var(--ink); color: #e9e2d6; }
.mo-foot { max-width: var(--wrap); margin: 0 auto; padding: 54px var(--pad) 26px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.mo-foot-name { font: 800 30px/1.05 var(--display); letter-spacing: -.03em; }
.mo-foot p { margin: 8px 0 0; opacity: .7; font-size: 14px; }
.bs-mosaico .bs-foot-fine { border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 1000px) {
  .mo-nav { display: none; }
  .mo-hero { grid-template-columns: 1fr; gap: 32px; padding: 48px var(--pad) 40px; }
  .mo-hero-art { aspect-ratio: 16 / 10; transform: none; }
  .mo-grid { grid-template-columns: 1fr 1fr; }
  .mo-w4 { grid-column: span 2; } .mo-w4 .mo-contacts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mo-top { width: calc(100% - 20px); padding: 8px 8px 8px 16px; gap: 10px; }
  .mo-top .mo-btn span { display: none; } .mo-top .mo-btn { padding: 10px; margin-left: auto; }
  .mo-hero { padding: 40px 16px 32px; }
  .mo-hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .mo-stain { left: -200px; top: -90px; opacity: .28; }
  .mo-marquee-copy { font-size: 14px; }
  .mo-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 32px 16px 24px; grid-auto-rows: auto; }
  .mo-tile { padding: 20px; }
  .mo-t-about, .mo-t-place, .mo-t-people, .mo-t-world, .mo-t-visit, .mo-t-map, .mo-t-contact, .mo-w2, .mo-w4 { grid-column: span 2; grid-row: auto; }
  .mo-t-num, .mo-t-kind, .mo-t-insta { min-height: 180px; }
  .mo-t-place { min-height: 320px; }
  .mo-t-map { min-height: 340px; }
  .mo-num { font-size: 38px; }
  .mo-insta-handle { font-size: 18px; }
  .mo-big-cta { padding: 80px 16px 90px; }
  .mo-foot { padding: 40px 16px 20px; }
  .mo-btn-xl { padding: 18px 26px; font-size: 17px; }
}
@media (max-width: 400px) {
  body.bs-mosaico { font-size: 16px; }
  .mo-t-num, .mo-t-kind, .mo-t-insta { grid-column: span 2; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mo-blob, .mo-stain, html.js .mo-w, html.js .mo-in, .mo-marquee-track { animation: none !important; }
  .mo-marquee-track { width: auto; flex-wrap: wrap; }
  .mo-marquee-copy { white-space: normal; flex-wrap: wrap; row-gap: 8px; }
  .mo-dup { display: none; }
  .mo-tile, .mo-t-place img, .mo-btn { transition: none; }
}
