/* altura — immersive scroll-story: тёмный уголь, слоновая кость, медный акцент, зерно плёнки,
   крупная антиква Instrument Serif. Motion: CSS scroll-driven (прогресс, параллакс героя, закреплённая
   сцена), .rv из base.css; всё отключается при prefers-reduced-motion. */
:root {
  --bg: #0f0d0c; --bg-2: #171412; --bg-3: #1f1b18; --fg: #efe8dc; --fg-soft: #a89f92; --line: rgba(239,232,220,.14);
  --accent: #d28b5a;
  --serif: "Instrument Serif", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
  --wrap: 1280px; --pad: max(20px, calc((100vw - var(--wrap)) / 2));
}
.bs-altura { background: var(--bg); color: var(--fg); font: 300 17px/1.65 var(--sans); font-variant-numeric: lining-nums; }
.bs-altura h1, .bs-altura h2, .bs-altura h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.bs-altura ::selection { background: var(--accent); color: var(--bg); }
.bs-altura .bs-strip { position: relative; z-index: 60; }

/* зерно плёнки поверх всего (одна растровая плитка SVG-шума, без JS) */
.al-grain {
  position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: .11; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* полоса прогресса чтения — только где есть scroll-driven animations */
.al-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .al-progress { display: block; position: fixed; z-index: 70; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); animation: al-prog linear both; animation-timeline: scroll(root); }
  @keyframes al-prog { to { transform: scaleX(1); } }
}

/* шапка поверх героя */
.al-top { position: absolute; z-index: 40; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 26px var(--pad); }
.al-top-name { font: 500 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; text-decoration: none; }
.al-nav { margin-left: auto; display: flex; gap: 28px; font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.al-nav a { text-decoration: none; opacity: .75; } .al-nav a:hover { opacity: 1; }
.al-top-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); background: rgba(15,13,12,.25); }
.al-top-cta:hover { border-color: var(--fg); }

/* герой: иллюстрация региона + кинетическое название */
.al-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.al-hero-art { position: absolute; inset: -12% 0 0; z-index: -2; }
.al-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transform: scale(1.06); }
.al-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,13,12,.55) 0%, rgba(15,13,12,.05) 35%, rgba(15,13,12,.35) 62%, rgba(15,13,12,.96) 100%); }
.al-hero-text { position: relative; padding: 18vh var(--pad) 14vh; max-width: 1100px; }
.al-kicker { font: 500 12px/1.5 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--fg); opacity: .8; margin: 0 0 22px; white-space: pre-wrap; }
.al-hero h1 { font-size: clamp(54px, 10.5vw, 164px); line-height: .9; letter-spacing: -.02em; overflow-wrap: anywhere; }
.al-wc { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.al-w { display: inline-block; }
.al-lead { font: italic 400 clamp(22px, 2.6vw, 36px)/1.25 var(--serif); margin: 28px 0 0; max-width: 30ch; color: var(--fg); }
.al-hero-tag { left: auto; right: 16px; bottom: 16px; }
.al-scroll { position: absolute; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 14px; text-decoration: none; font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; opacity: .75; }
.al-scroll i { display: block; width: 64px; height: 1px; background: var(--fg); transform-origin: 0 50%; animation: al-cue 2.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes al-cue { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: 0 50%; } 51% { transform-origin: 100% 50%; } 100% { transform: scaleX(0); transform-origin: 100% 50%; } }
/* появление при загрузке: слова поднимаются из-под маски, остальное проявляется каскадом */
html.js .al-w { animation: al-rise 1.1s cubic-bezier(.2,.75,.15,1) both; animation-delay: calc(.15s + var(--i) * 70ms); }
html.js .al-in { animation: al-fade 1s ease both; animation-delay: calc(.2s + var(--i) * 70ms); }
@keyframes al-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes al-fade { from { opacity: 0; transform: translateY(14px); } to { transform: none; } }
/* параллакс героя и уход текста — по прокрутке страницы */
@supports (animation-timeline: scroll()) {
  .al-hero-art img { animation: al-par linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  html.js .al-hero-text { animation: al-fade-out linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  @keyframes al-par { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.12) translateY(16%); } }
  @keyframes al-fade-out { to { opacity: 0; transform: translateY(-40px); letter-spacing: .02em; } }
}

/* главы: sticky-номер слева, тело справа */
.al-ch { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 120px var(--pad); border-top: 1px solid var(--line); }
.al-ch-side { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.al-ch-n { font: italic 400 clamp(64px, 7vw, 112px)/.85 var(--serif); color: var(--accent); }
.al-ch-n-sm { font: italic 400 1.6em/.8 var(--serif); color: var(--accent); margin-right: 14px; vertical-align: -.12em; }
.al-ch-label { font: 500 11.5px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--fg-soft); margin: 0; }
.al-ch-body { max-width: 860px; min-width: 0; }
.al-logo { display: inline-block; background: #f3eee6; border-radius: 12px; padding: 14px 18px; margin: 0 0 40px; }
.al-logo img { max-height: 72px; max-width: 220px; width: auto; }
.al-big { font: 400 clamp(26px, 3vw, 42px)/1.32 var(--serif); margin: 0 0 48px; text-wrap: pretty; }
.al-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 36px; }
.al-facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.al-facts dt { font: 500 10.5px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 8px; }
.al-facts dd { margin: 0; font: 400 24px/1.2 var(--serif); }

/* закреплённая сцена «место»: контейнер 170vh, внутри sticky-экран; текст въезжает по прокрутке */
.al-scene { position: relative; height: 170vh; }
.al-scene-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.al-scene-media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.al-scene-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.al-scene-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,12,.1) 0%, rgba(15,13,12,.25) 50%, rgba(15,13,12,.9) 100%); }
.al-scene-media .bs-photo-tag { bottom: auto; top: 16px; left: auto; right: 16px; }
.al-scene-text { position: relative; padding: 0 var(--pad) 12vh; max-width: 1000px; }
.al-scene-big { font: 400 clamp(28px, 4vw, 58px)/1.15 var(--serif); margin: 18px 0 28px; text-wrap: balance; }
.al-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.al-chips li { padding: 8px 14px; border: 1px solid rgba(239,232,220,.35); border-radius: 99px; font: 500 13px/1 var(--sans); letter-spacing: .04em; backdrop-filter: blur(6px); }
@supports (animation-timeline: view()) {
  .al-scene { view-timeline: --al-scene block; }
  .al-scene-media img { animation: al-zoom linear both; animation-timeline: --al-scene; animation-range: cover 0% cover 100%; }
  html.js .al-scene-text { animation: al-slide linear both; animation-timeline: --al-scene; animation-range: contain 0% contain 45%; }
  @keyframes al-zoom { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1) translateY(4%); } }
  @keyframes al-slide { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
}

/* виноделы */
.al-person { font: italic 400 clamp(40px, 6vw, 92px)/1.05 var(--serif); margin: 0 0 12px; }

/* мир: gradient-mesh «сумерки» под тёмной вуалью */
.al-ch-world { background: linear-gradient(rgba(15,13,12,.72), rgba(15,13,12,.9)), url('/static/sites/art/mesh-dusk.webp') center / cover var(--bg-2); }
.al-count { margin: 0 0 32px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.al-count span { font: 400 clamp(96px, 13vw, 190px)/.85 var(--serif); color: var(--accent); }
.al-count small { font: 500 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--fg-soft); max-width: 12ch; }
.al-markets { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 32px; }
.al-markets li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; letter-spacing: .03em; }
.al-trade { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.al-trade .al-ch-label { width: 100%; margin-bottom: 6px; }
.al-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 99px; background: var(--fg); color: var(--bg); text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .08em; max-width: 100%; }
.al-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-btn:hover { background: var(--accent); }
.al-btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.al-btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* гостям: горизонтальная лента карточек */
.al-ch-visit { background: var(--bg-3); }
.al-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 18px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.al-card { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(239,232,220,.03); min-height: 250px; transition: border-color .3s, background .3s; }
.al-card:hover { border-color: var(--accent); background: rgba(210,139,90,.08); }
.al-card-n { font: italic 400 20px/1 var(--serif); color: var(--accent); }
.al-card > .ic { width: 34px; height: 34px; color: var(--fg); }
.al-card h3 { font-size: 30px; line-height: 1.1; }
.al-card a { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .06em; color: var(--accent); }

/* лента фото (только живые фото бодеги) */
.al-strip-wrap { padding: 100px 0 100px; border-top: 1px solid var(--line); }
.al-strip-label { padding: 0 var(--pad); margin-bottom: 28px; }
.al-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--pad) 16px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.al-strip-item { flex: 0 0 auto; margin: 0; height: min(62vh, 560px); scroll-snap-align: start; border-radius: 8px; overflow: hidden; }
.al-strip-item img { height: 100%; width: auto; max-width: 86vw; object-fit: cover; }

/* контакт: контур лозы в углу */
.al-ch-contact { background: var(--bg-2); position: relative; overflow: hidden; }
.al-ch-contact::before { content: ""; position: absolute; right: -60px; top: -40px; width: min(620px, 60vw); aspect-ratio: 3 / 2; background: url('/static/sites/art/vine-line.webp') center / contain no-repeat; opacity: .14; pointer-events: none; }
.al-ch-contact > * { position: relative; }
.al-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: none; }
.al-contact:not(:has(.al-contact-map)) { grid-template-columns: 1fr; max-width: 620px; }
.al-contact h2 { font-size: clamp(40px, 5vw, 72px); line-height: .95; margin-bottom: 40px; }
.al-contacts { gap: 22px; }
.al-contacts small { color: var(--fg-soft); opacity: 1; }
.al-contact-map .bs-map { min-height: 420px; border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.al-contact-map .leaflet-tile-pane { filter: invert(1) hue-rotate(190deg) grayscale(.75) brightness(.85) contrast(.95); }
.al-contact-map .leaflet-control-attribution { background: rgba(15,13,12,.75); color: var(--fg-soft); font-size: 10px; }
.al-contact-map .leaflet-control-attribution a { color: var(--fg); }
.al-contact-map .leaflet-bar a { background: var(--bg-3); color: var(--fg); border-color: var(--line); }
.al-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .06em; color: var(--accent); }

/* подвал */
.bs-altura .bs-foot { background: var(--bg); border-top: 1px solid var(--line); }
.al-foot { padding: 56px var(--pad) 24px; display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; }
.al-foot-name { font: 400 28px/1 var(--serif); }
.al-foot-loc { font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); white-space: pre-wrap; }
.al-foot .bs-socials { margin-left: auto; }
.bs-altura .bs-foot-fine { color: var(--fg-soft); opacity: 1; }

@media (max-width: 1000px) {
  .al-ch { grid-template-columns: 1fr; gap: 28px; padding: 80px var(--pad); }
  .al-ch-side { position: static; flex-direction: row; align-items: baseline; gap: 16px; }
  .al-ch-n { font-size: 56px; }
  .al-contact { grid-template-columns: 1fr; gap: 36px; }
  .al-contact-map .bs-map { min-height: 300px; }
}
@media (max-width: 720px) {
  .al-nav { display: none; }
  .al-top { padding: 18px 20px; }
  .al-top-cta span { display: none; } .al-top-cta { padding: 10px; }
  .al-hero { min-height: 92svh; }
  .al-hero-text { padding: 20vh 20px 15vh; }
  .al-hero h1 { font-size: clamp(46px, 15vw, 72px); }
  .al-kicker { letter-spacing: .2em; font-size: 11px; }
  .al-scroll { bottom: 20px; left: 20px; }
  .al-hero-tag { right: auto; left: 20px; bottom: 56px; }
  .al-scene { height: 150vh; }
  .al-scene-text { padding-bottom: 10vh; }
  .al-facts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .al-facts dd { font-size: 20px; }
  .al-markets { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .al-strip-wrap { padding: 70px 0; }
  .al-strip-item { height: 300px; }
  .al-foot { padding: 40px 20px 16px; }
  .al-foot .bs-socials { margin-left: 0; }
}
@media (max-width: 420px) {
  body.bs-altura { font-size: 16px; }
  .al-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .al-scroll i, html.js .al-w, html.js .al-in, .al-hero-art img, html.js .al-hero-text, .al-scroll, .al-scene-media img, html.js .al-scene-text, .al-progress { animation: none !important; }
  .al-progress { display: none; }
}
