/* JMCreatar — основные стили. Все цвета — в переменных; темы переопределяют их через html[data-theme]. */
:root {
  /* Тема по умолчанию «JMCreatar»: обсидиан, изумруд, золото */
  --obsidian: #040807;
  --emerald: #082a20;
  --jade: #17634b;
  --jade-light: #3fd39a;
  --gold: #b48c51;
  --gold-light: #d9b77e;
  --platinum: #bba99b;

  --bg: var(--obsidian);
  --text: #eef2ee;
  --muted: #9aa8a1;
  --lead: #c9d3ce;
  --line: rgba(187, 169, 155, .16);
  --accent: var(--gold);
  /* те же цвета каналами RGB — для полупрозрачных фонов */
  --base-rgb: 4, 8, 7;
  --card-rgb: 10, 18, 15;
  --deep-rgb: 8, 42, 32;
  --tint-rgb: 23, 99, 75;
  --hl-rgb: 63, 211, 154;
  --accent-rgb: 180, 140, 81;
  --accent2-rgb: 217, 183, 126;

  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --wrap: 1200px; /* ширина контента (решение пользователя; ~75% окна 1610 px) */
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Темы (как на jmcreatar360.pl): бирюзовый акцент #31e4d8, свой фон ----------
   Выбор — кнопки в шапке; запоминается в localStorage (jmTheme). */
html[data-theme="black"], html[data-theme="green"], html[data-theme="blue"], html[data-theme="contrast"] {
  --gold: #31e4d8; --gold-light: #7cf0e8; --jade: #1aa89e; --jade-light: #31e4d8;
  --accent-rgb: 49, 228, 216; --accent2-rgb: 124, 240, 232; --hl-rgb: 49, 228, 216; --tint-rgb: 49, 228, 216;
  --text: #ffffff; --lead: #d5dbe5; --platinum: #c9d3e0;
}
html[data-theme="black"]    { --obsidian: #0d131f; --emerald: #1d283b; --muted: #8d99ae; --line: #222b38;
  --base-rgb: 13, 19, 31; --card-rgb: 29, 40, 59; --deep-rgb: 12, 17, 28; }
html[data-theme="green"]    { --obsidian: #08160f; --emerald: #122c1b; --muted: #8fa89a; --line: #1c4a2c;
  --base-rgb: 8, 22, 15; --card-rgb: 18, 44, 27; --deep-rgb: 10, 29, 19; }
html[data-theme="blue"]     { --obsidian: #080f25; --emerald: #101c3d; --muted: #8d99ba; --line: #233a72;
  --base-rgb: 8, 15, 37; --card-rgb: 16, 28, 61; --deep-rgb: 10, 19, 48; }
html[data-theme="contrast"] { --obsidian: #000000; --emerald: #0a0a0a; --muted: #e4e9f0; --line: #ffffff; --lead: #ffffff;
  --base-rgb: 0, 0, 0; --card-rgb: 10, 10, 10; --deep-rgb: 0, 0, 0; --tint-rgb: 0, 0, 0; }
/* дым на главной есть во всех темах — его цвет задаётся в smoke.js (SMOKE_THEMES) */

/* Кнопки выбора темы в шапке */
.themes { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; padding: .3rem .55rem; }
.theme-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #5a6374; padding: 0; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.theme-dot:hover { transform: scale(1.15); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.theme-dot.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }
.theme-dot[data-theme="jm"]       { background: radial-gradient(circle at 35% 35%, #3fd39a, #082a20 60%); border-color: #b48c51; }
.theme-dot[data-theme="black"]    { background: #0b0f17; }
.theme-dot[data-theme="green"]    { background: #174732; }
.theme-dot[data-theme="blue"]     { background: #23367a; }
.theme-dot[data-theme="contrast"] { background: #000; border-color: #fff; }
.theme-dot.active[data-theme="jm"] { border-color: var(--gold-light); }
.nav .themes { display: none; }


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* Защита от копирования: текст нельзя выделить (кроме полей формы), картинки нельзя перетащить */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
p { margin: 0; }
.wrap { width: 90%; max-width: var(--wrap); margin-inline: auto; } /* как .container на jmcreatar360.pl */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: #000; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 2s ease; }
.bg.ready canvas { opacity: 1; }
.bg-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 75% 45%, rgba(var(--tint-rgb), .55), transparent 70%),
    radial-gradient(50% 40% at 20% 60%, rgba(var(--deep-rgb), .9), transparent 70%),
    var(--obsidian);
  transition: opacity 2s ease;
}
.bg.ready .bg-fallback { opacity: 0; }
.bg-static .bg-fallback {
  background:
    radial-gradient(55% 40% at 85% 10%, rgba(var(--tint-rgb), .35), transparent 70%),
    radial-gradient(45% 35% at 0% 80%, rgba(var(--accent-rgb), .08), transparent 70%),
    var(--obsidian);
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .65));
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(var(--base-rgb), .62); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 300; letter-spacing: .22em; font-size: .95rem; }
.brand b { font-weight: 700; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .9rem; color: var(--muted); position: relative; padding: .3rem 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
/* Языки — выпадающий список (8 языков в ряд не помещаются) */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); border-radius: 99px; padding: .45rem .8rem;
  font-size: .74rem; letter-spacing: .08em; font-weight: 600; color: var(--text); transition: border-color .3s;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 6px; height: 6px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.langs[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.langs summary:hover, .langs[open] summary { border-color: var(--gold); }
.langs-list {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 180px;
  display: grid; padding: .35rem; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(var(--base-rgb), .97); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.langs-list a { display: flex; gap: .7rem; align-items: baseline; text-decoration: none; font-size: .9rem; padding: .5rem .7rem; border-radius: 9px; color: var(--muted); transition: background .3s, color .3s; }
.langs-list a b { width: 1.8rem; font-size: .72rem; letter-spacing: .08em; color: var(--gold); }
.langs-list a:hover { color: var(--text); background: rgba(var(--tint-rgb), .35); }
.langs-list a[aria-current] { color: var(--text); background: rgba(var(--tint-rgb), .55); }
.burger { display: none; }

/* ---------- Типографика и кнопки ---------- */
.kicker { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.display { font-size: clamp(1.75rem, 3.4vw, 2.25rem); }
.lead { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--lead); max-width: 40rem; font-weight: 300; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: 99px; font-size: 1rem; font-weight: 600;
  transition: transform .35s var(--ease), background .35s, box-shadow .35s, border-color .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #0d0b06; box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .6); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(var(--accent2-rgb), .75); }
.btn-ghost { border: 1px solid rgba(238, 242, 238, .28); background: rgba(var(--base-rgb), .25); backdrop-filter: blur(6px); color: var(--text); font-family: inherit; cursor: pointer; }
.btn-ghost:hover { border-color: var(--jade-light); }
.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.05rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--platinum); border: 1px dashed var(--line); padding: .7rem 1.1rem; border-radius: 99px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jade-light); box-shadow: 0 0 12px var(--jade-light); }

/* ---------- Главный экран ---------- */
.hero { position: relative; padding: clamp(130px, 22vh, 220px) 0 clamp(2rem, 6vh, 4rem); }
.section.directions { padding-top: 1rem; }
.hero-title { font-size: clamp(2.25rem, 5vw, 3.25rem); overflow-wrap: anywhere; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1.2rem; }
.hero-title .line { display: block; }
.hero-title .line:nth-child(2) { font-weight: 200; font-style: italic; color: var(--platinum); padding-left: .5em; }
.hero-title .line:nth-child(3) {
  background: linear-gradient(100deg, var(--jade-light), #b9f5d8 40%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Секции ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.tight { padding-top: 0; }
.section.flush { padding-bottom: 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); }
.page-hero { padding: 140px 0 3rem; }
.page-hero .display { margin-bottom: 1rem; }
.hero-panel .tags { margin-top: 1.6rem; }
/* Страницы с живым фоном: плотные подложки, чтобы текст не сливался с фоном.
   Плотность — переменные (0 — прозрачно, 1 — сплошной фон темы). */
:root { --panel-alpha: .52; --card-alpha: .52; }
.has-smoke .hero-panel {
  display: inline-block; max-width: 100%; padding: 1.6rem 1.8rem; margin-left: -1.8rem;
  border-radius: var(--radius); background: rgba(var(--base-rgb), var(--panel-alpha));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.has-smoke .p360-hero .hero-panel { display: block; margin-left: -1.8rem; }
.has-smoke .card, .has-smoke .step,
.page-360 .brand-tile, .page-360 .p360-item, .page-360 .project, .page-360 .filter:not(.active) {
  background: rgba(var(--base-rgb), var(--card-alpha));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.has-smoke .step { border-radius: 0 0 var(--radius) var(--radius); }
/* Телефоны, главная: размытие поверх движущегося дыма телефон пересчитывает каждый кадр — это тормозит.
   Размытие убираем, подложку делаем чуть плотнее, чтобы текст читался так же. */
@media (pointer: coarse) {
  .page-home { --panel-alpha: .66; --card-alpha: .66; }
  .page-home .hero-panel, .page-home .card, .page-home .step, .page-home .btn-ghost,
  .page-home .cta, .page-home .project, .page-home .site-header.scrolled,
  .page-home .site-footer, .page-home .motion-toggle {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}
.page-hero--short { padding-bottom: 1.5rem; }
.page-hero--short .display { margin-bottom: 0; }

.cards, .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: .7rem; text-decoration: none;
  padding: 1.5rem; min-height: 100%; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(var(--tint-rgb), .18), rgba(var(--base-rgb), .55) 60%);
  border: 1px solid var(--line); backdrop-filter: blur(12px);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--hl-rgb), .14), transparent 45%);
}
a.card:hover { border-color: rgba(var(--accent2-rgb), .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.card:hover::before { opacity: 1; }
.cards .card { min-height: 260px; }
.card-num { font-size: .72rem; letter-spacing: .2em; color: var(--gold-light); text-transform: uppercase; }
.card-icon { width: 36px; height: 36px; color: var(--jade-light); margin-top: auto; }
.card h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .9rem; }
.card-more { margin-top: auto; font-size: .85rem; color: var(--platinum); }
.cards .card-more { margin-top: .4rem; }

/* «Мобильные приложения» → блок нашего приложения MyFinBalance (скоро в Google Play) */
.app-head {
  display: flex; gap: 1.6rem; align-items: center; padding: 1.6rem 1.8rem; margin-bottom: 1.6rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(var(--base-rgb), var(--panel-alpha)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.app-icon { width: 128px; height: 128px; flex: none; border-radius: 28px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.app-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); margin: .5rem 0 .6rem; }
.app-lead { color: var(--muted); max-width: 62ch; }
.app-badge {
  display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #0d0b06;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); padding: .35rem .8rem; border-radius: 99px;
}
.app-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); justify-content: center; gap: 2.4rem; margin-bottom: 1.6rem; }
.app-shots figure { margin: 0; text-align: center; }
.app-shots img {
  width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
}
.app-shots figcaption { margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.app-foot { margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.app-foot a { color: var(--gold-light); }
@media (max-width: 960px) {
  .app-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), .5) transparent; }
  .app-shots figure { flex: 0 0 44%; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .app-head { flex-direction: column; align-items: flex-start; padding: 1.3rem; }
  .app-icon { width: 96px; height: 96px; border-radius: 22px; }
  .app-shots figure { flex-basis: 62%; }
}

/* Направления на главной: карточки с картинкой */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.project { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(var(--card-rgb), .78); backdrop-filter: blur(10px); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.project-photo { position: relative; aspect-ratio: 1120 / 520; overflow: hidden; background: var(--emerald); }
.project-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-label { position: absolute; left: 12px; top: 12px; font-size: .68rem; letter-spacing: .12em; color: var(--gold-light); background: rgba(var(--base-rgb), .78); padding: .35rem .7rem; border-radius: 99px; }
.project-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.1rem 1.2rem; }
.project-copy h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: .45rem; }
.project-copy p { font-size: .8125rem; color: var(--muted); }
.project-arrow { color: var(--gold-light); font-size: 1.1rem; transition: transform .4s var(--ease); }
a.project:hover, .project:hover { border-color: rgba(var(--accent2-rgb), .55); }
a.project:hover .project-photo img, .project:hover .project-photo img { transform: scale(1.04); }
a.project:hover .project-arrow { transform: translate(3px, -3px); }

/* ---------- Страница Jmcreatar360 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--gold-light); border: 1px solid rgba(var(--accent2-rgb), .4); border-radius: 99px; padding: .35rem .9rem; margin-bottom: 1.2rem; background: rgba(var(--base-rgb), .4); }
.p360-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.h1-line { display: block; }
.p360-hero-images { display: grid; gap: 1rem; }
.pano-thumb { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--emerald); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.pano-thumb img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1s var(--ease); }
.pano-thumb:hover img { transform: scale(1.04); }
.pano-thumb:hover { border-color: rgba(var(--accent2-rgb), .55); }
.badge-360 { position: absolute; left: 10px; top: 10px; font-size: .68rem; letter-spacing: .1em; color: var(--gold-light); background: rgba(var(--base-rgb), .78); padding: .3rem .65rem; border-radius: 99px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(var(--base-rgb), .55); padding: .8rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 1.1rem; padding-right: 1.1rem; font-size: .85rem; color: var(--platinum); white-space: nowrap; }
.marquee-group i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-head .lead { margin-top: .6rem; }
.p360-tour-photo { aspect-ratio: 16 / 10; }

.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.brand-tile { display: grid; justify-items: center; gap: .6rem; padding: 1.1rem .6rem; text-align: center; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; background: rgba(var(--card-rgb), .6); font-size: .82rem; color: var(--platinum); transition: border-color .3s, color .3s, transform .4s var(--ease); }
.brand-tile svg { width: 28px; height: 28px; color: var(--jade-light); }
.brand-tile:hover { border-color: rgba(var(--accent2-rgb), .55); color: var(--text); transform: translateY(-2px); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.filter { font: inherit; font-size: .82rem; color: var(--platinum); background: rgba(var(--deep-rgb), .3); border: 1px solid var(--line); border-radius: 99px; padding: .45rem 1rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.filter:hover { color: var(--text); border-color: rgba(var(--accent2-rgb), .45); }
.filter.active { background: var(--gold); border-color: var(--gold); color: #0b0b08; font-weight: 600; }
.p360-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.p360-item { display: grid; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(var(--card-rgb), .78); cursor: pointer; font: inherit; color: inherit; text-align: left; transition: border-color .3s; }
.p360-item[hidden] { display: none; }
.p360-item:hover { border-color: rgba(var(--accent2-rgb), .55); }
.p360-media { position: relative; display: block; overflow: hidden; }
.p360-media img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1s var(--ease); }
.p360-item:hover .p360-media img { transform: scale(1.05); }
.p360-tag { margin: .7rem .9rem .8rem; justify-self: start; font-size: .72rem; color: var(--jade-light); border: 1px solid rgba(var(--hl-rgb), .35); border-radius: 99px; padding: .2rem .65rem; }
.p360-empty { margin-top: 1rem; }

.gallery-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.gallery-intro .lead { margin-top: .6rem; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { color: var(--gold-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.more-row { display: flex; justify-content: center; margin-top: 1.6rem; }
.p360-item.is-more { display: none; }

/* Политика конфиденциальности */
.legal p, .legal .lead { max-width: 900px; } /* ширина страницы — как везде, строки текста — для удобного чтения */
.legal .lead { margin-top: .8rem; }
.legal h2 { font-size: 1.125rem; margin: 2rem 0 .6rem; letter-spacing: -.01em; }
.legal p { color: var(--lead); font-size: .95rem; line-height: 1.7; }
.legal-updated { margin-top: 2rem; }
.consent a, .footer-legal { color: var(--gold-light); }
.footer-legal-row { text-align: center; margin: 14px 0 0; font-size: .8125rem; }
.footer-legal { text-decoration: none; }
.footer-legal:hover { text-decoration: underline; }

/* Просмотр панорамы */
.pano-box { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; gap: .8rem; padding: 4vh 4vw; background: rgba(var(--base-rgb), .88); backdrop-filter: blur(8px); grid-template-rows: 1fr auto; }
.pano-box[hidden] { display: none; }
.pano-view { width: min(1100px, 92vw); height: min(640px, 72vh); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pano-controls { display: flex; align-items: center; gap: 1rem; color: var(--platinum); font-size: .9rem; }
.pano-arrow, .pano-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(var(--base-rgb), .7); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pano-arrow:hover, .pano-close:hover { border-color: var(--gold); }
.pano-close { position: absolute; top: 18px; right: 18px; }

/* Этапы работы */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: none; }
.step { position: relative; padding: 1.4rem 1.2rem 1.3rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--tint-rgb), .14), transparent 70%); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 2px; background: var(--gold); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(var(--accent2-rgb), .5); color: var(--gold-light); font-size: .85rem; margin-bottom: .9rem; }
.step h3 { font-size: 1rem; margin-bottom: .45rem; letter-spacing: -.01em; }
.step p { font-size: .85rem; color: var(--muted); }

.about { max-width: 56rem; }
.about .display { margin-bottom: 1rem; }
.cta { text-align: center; display: grid; justify-items: center; gap: 1.2rem; padding: clamp(3rem, 7vw, 5rem) 1.5rem; border-radius: calc(var(--radius) * 1.5); border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(var(--tint-rgb), .35), rgba(var(--base-rgb), .6)); backdrop-filter: blur(10px); }
.cta .actions, .cta .btn { margin-top: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--line); border-radius: 99px; padding: .45rem 1rem; font-size: .85rem; color: var(--platinum); background: rgba(var(--deep-rgb), .3); }
.note { margin-top: 2rem; color: var(--muted); }
.note a { color: var(--gold-light); text-decoration: none; }

/* Контакт: слева данные, справа форма */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.2rem; align-items: start; }
.contact-side { display: grid; gap: 1.2rem; }
.contact-form { gap: 1rem; }
.form-title { font-size: 1.375rem; margin-bottom: .2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--platinum); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .875rem; color: var(--text);
  background: rgba(var(--base-rgb), .55); border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .9rem; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #5f6d66; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--jade-light); box-shadow: 0 0 0 3px rgba(var(--hl-rgb), .15); }
.field.invalid input, .field.invalid textarea { border-color: #e07a6a; }
.field-error { display: none; font-size: .75rem; color: #f09a8a; }
.field-error.show { display: block; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8125rem !important; font-weight: 400 !important; color: var(--muted) !important; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--gold); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.btn-block[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-msg { font-size: .875rem; min-height: 1.2em; }
.form-msg.ok { color: var(--jade-light); }
.form-msg.bad { color: #f09a8a; }
.contact-card { min-height: 0; }
.contact-value { font-size: 1.125rem; font-weight: 500; margin-top: auto; word-break: break-word; letter-spacing: -.02em; }
.contact-mail { display: block; text-decoration: none; color: var(--text); }
.contact-mail + .contact-mail { margin-top: .2rem; }
.contact-mail:hover { color: var(--gold-light); }
.contact-value.sm { font-size: 1rem; }

/* ---------- Подвал (раскладка как на jmcreatar360.pl) ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; background: rgba(var(--base-rgb), .6); backdrop-filter: blur(10px); color: var(--muted); }
.footer-row { position: relative; min-height: 44px; }
.footer-row .brand { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; }
.social-icons { position: absolute; left: 25%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 12px; }
.social-icons a, .social-icons span { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s; }
.social-icons a:hover { color: var(--gold-light); border-color: var(--gold); }
.social-icons span { opacity: .45; }
.social-icons svg { width: 17px; height: 17px; }
.footer-text { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; font-size: .875rem; margin: 0; }
@media (max-width: 960px) {
  .footer-row { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 4px 0; }
  .footer-row .brand, .social-icons, .footer-text { position: static; transform: none; }
  .footer-text { white-space: normal; }
}

.motion-toggle { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(var(--base-rgb), .55); backdrop-filter: blur(8px); cursor: pointer; color: var(--platinum); }
.motion-toggle::before, .motion-toggle::after { content: ""; position: absolute; top: 14px; width: 3px; height: 14px; background: currentColor; border-radius: 2px; }
.motion-toggle::before { left: 16px; } .motion-toggle::after { left: 23px; }
.motion-toggle[aria-pressed="true"]::before { left: 17px; width: 0; height: 0; background: none; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; border-radius: 0; }
.motion-toggle[aria-pressed="true"]::after { display: none; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 960px) {
  .cards, .grid-3, .projects { grid-template-columns: 1fr; }
  .p360-hero-grid { grid-template-columns: 1fr; }
  .grid-4, .p360-gallery { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards .card { min-height: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: .2rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
  .burger span:not(.sr) { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .langs { margin-left: auto; }
  .langs-list { position: fixed; top: 64px; right: .75rem; }
  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; padding: 1rem 1.25rem 2rem;
    background: rgba(var(--base-rgb), .94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .4s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .header-row > .themes { display: none; }
  .nav .themes { display: flex; align-self: flex-start; margin-top: 1rem; }
  .nav a { font-size: 1.1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a::after { display: none; }
}
@media (max-width: 640px) {
  .has-smoke .hero-panel { padding: 1.2rem; margin-left: -1.2rem; margin-right: -1.2rem; }
  body { font-size: 16px; }
  .grid-2, .form-row, .steps, .grid-4, .p360-gallery { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .header-row { gap: .8rem; height: 64px; }
  .site-header .brand span { display: none; }
  .nav { inset: 64px 0 auto; }
  .hero-title .line:nth-child(2) { padding-left: .25em; }
  .page-hero { padding-top: 110px; }
  .hero-title { font-size: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
