:root {
  --ink: #14110e;
  --ink-soft: #1e1a16;
  --cream: #f3ebe0;
  --cream-soft: rgba(243, 235, 224, 0.72);
  --brass: #c4a26a;
  --brass-hot: #e0bf84;
  --ember: #d8794a;
  --film: #2a231c;
  --line: rgba(243, 235, 224, 0.12);
  --glass: rgba(243, 235, 224, 0.06);
  --radius: 22px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--cream);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 80% 0%, rgba(196, 162, 106, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 10% 15%, rgba(216, 121, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #3a3128 0%, #1d1915 42%, #0d0b09 100%);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--brass), var(--ember));
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  backdrop-filter: blur(16px);
  background: rgba(13, 11, 9, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(13, 11, 9, 0.82);
}

.nav-back, .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-soft);
}

.nav-back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 22%;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.nav-brand { color: var(--cream); font-family: var(--font); letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-soft);
}

.nav-links a:hover { color: var(--brass-hot); }

main { position: relative; z-index: 1; }

.hero {
  position: relative;
  padding: 48px 28px 36px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, var(--cream), #e4d6c4);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--cream);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.hero-stats span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--cream-soft);
}

.hero-stats strong {
  font-family: var(--font);
  font-size: 16px;
  color: var(--cream);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-icon-wrap {
  width: min(260px, 64vw);
  aspect-ratio: 1;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  animation: floatCard 7s ease-in-out infinite;
}

.hero-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  outline: none;
  border-radius: 22%;
  background: transparent;
  box-shadow: 0 22px 50px rgba(0,0,0,.35);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Photo wall — тянется курсором / пальцем */
.wall-section {
  position: relative;
  height: 340px;
  margin: 20px 0 10px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wall-section.is-dragging {
  cursor: grabbing;
}

.wall-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 20px 0;
  will-change: transform;
}

.wall-track img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.wall-card {
  width: 150px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.38);
  transform: rotate(var(--tilt, 0deg));
  border: none;
  background: transparent;
}

.wall-card:nth-child(odd) { --tilt: -3deg; height: 220px; width: 160px; }
.wall-card:nth-child(3n) { --tilt: 2.5deg; }
.wall-card:nth-child(4n) { --tilt: -1.5deg; }

.wall-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--cream-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* Studio */
.studio {
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(196,162,106,0.08), transparent 55%),
    rgba(0,0,0,.34);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.studio-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio-main-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.studio-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.control-block h3,
.studio-filters h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
  font-weight: 700;
}

.side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.source-btn {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(243,235,224,0.08), rgba(243,235,224,0.03));
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s var(--ease);
  padding: 0 14px;
  text-align: left;
}

.source-btn:hover, .source-btn.active {
  border-color: rgba(196,162,106,.55);
  background: rgba(196,162,106,.14);
  transform: translateY(-1px);
}

.source-btn.source-sample {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.source-btn.source-sample img {
  width: 36px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
}

.frame-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frame-chip {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--cream-soft);
  cursor: pointer;
  padding: 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: .2s var(--ease);
}

.frame-chip:hover {
  border-color: rgba(196,162,106,.4);
}

.frame-chip.active {
  border-color: rgba(196,162,106,.7);
  background: rgba(196,162,106,.12);
  color: var(--brass-hot);
}

.frame-swatch {
  width: 44px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: #111;
  flex-shrink: 0;
}

.frame-chip span.label {
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  line-height: 1.25;
}

.frame-swatch.polaroid {
  background: #f3ebe0;
  padding: 4px 4px 12px;
  box-sizing: border-box;
}

.frame-swatch.polaroid::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(160deg, #6a8a6e, #c45c4a 55%, #2a231c);
}

.frame-swatch.film35 {
  background: #151311;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 0;
}

.frame-swatch.film35 .sprocket-mini {
  height: 7px;
  background: repeating-linear-gradient(90deg, #2a241c 0 5px, transparent 5px 9px);
  margin: 0 3px;
}

.frame-swatch.film35 .film-mid {
  flex: 1;
  margin: 2px 0;
  background: linear-gradient(160deg, #7a5a3a, #3a2a22);
}

.frame-swatch.none {
  background: linear-gradient(160deg, #444, #222);
}

.studio-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 420px;
}

.camera-flip-btn {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-width: 52px;
  min-height: 72px;
  padding: 10px 8px;
  border: 1px solid rgba(243,235,224,0.35);
  border-radius: 18px;
  background: rgba(20,17,14,0.82);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  pointer-events: auto;
}

.camera-flip-btn[hidden] {
  display: none !important;
}

.camera-flip-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.camera-flip-btn:active {
  transform: scale(0.97);
}

.stage-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

#previewCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  background: #111;
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(243,235,224,0.06);
}

.studio-filters {
  width: 100%;
  padding-top: 4px;
}

.studio-filters h3 {
  text-align: center;
}

/* Гармошка фильтров: центр выбран и крупнее */
.filter-accordion {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  min-height: 176px;
  padding: 12px 20px 14px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.filter-accordion::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 55%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.filter-chip {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--cream-soft);
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(84px * var(--slot-scale, 1));
  transition: width .32s var(--ease), transform .32s var(--ease), opacity .32s var(--ease);
  z-index: 1;
}

.filter-chip.is-center {
  z-index: 5;
  color: #c4b5fd;
}

.filter-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: #111;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  transition: border-color .32s var(--ease), box-shadow .32s var(--ease);
}

.filter-chip.is-center .filter-swatch {
  border-color: #a78bfa;
  box-shadow:
    0 0 0 2px rgba(167,139,250,.55),
    0 14px 28px rgba(0,0,0,.45);
}

.filter-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filter-swatch.original {
  background: linear-gradient(135deg, #2a2a2a 0%, #555 45%, #222 100%);
}

.filter-chip span.label {
  font-size: calc(11px * var(--slot-scale, 1));
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  min-height: 26px;
  max-width: 100%;
}

.demo-note {
  font-size: 12px;
  color: rgba(243,235,224,.45);
  text-align: center;
  margin-top: -4px;
}

/* Video FX demo — под фильтрами фото */
.studio-videofx {
  width: 100%;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.studio-videofx h3 {
  text-align: center;
  margin-bottom: 6px;
}

.videofx-lead {
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cream-soft);
  max-width: 520px;
  margin: 0 auto 16px;
}

.videofx-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  margin: 0 auto 14px;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0a08;
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(243,235,224,0.06);
}

.videofx-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.videofx-look {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .28s var(--ease);
}

.videofx-look.is-soft {
  mix-blend-mode: soft-light;
}

.videofx-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Как AmberReelOnboardBlizzardFramePane: NoiseVeil.opacity(0.32) */
  opacity: 0.32;
  mix-blend-mode: screen;
}

.videofx-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  z-index: 2;
}

.videofx-hud .osd {
  position: absolute;
  font-size: clamp(11px, 2.8vw, 14px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.videofx-hud .osd-red { color: #ff3b30; }
.videofx-hud .osd-green { color: #6dff8a; }
.videofx-hud .rec-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #ff3b30;
  margin-left: 0.35em;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(255,59,48,.7);
}

.videofx-hud .corners::before,
.videofx-hud .corners::after,
.videofx-hud .corners span::before,
.videofx-hud .corners span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.9);
}
.videofx-hud .corners::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.videofx-hud .corners::after { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.videofx-hud .corners span::before { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.videofx-hud .corners span::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.videofx-hud .focus-box {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 54px;
  height: 40px;
  transform: translate(-50%, -50%);
  border: 1.2px solid rgba(255,255,255,.85);
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 500;
}

.videofx-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
}

.videofx-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(243,235,224,0.08), rgba(243,235,224,0.03));
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}

.videofx-chip:hover,
.videofx-chip.active {
  border-color: rgba(196,162,106,.55);
  background: rgba(196,162,106,.16);
  transform: translateY(-1px);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,162,106,.35);
}

.feature-card h3 {
  font-family: var(--font);
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery figure {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a1714;
  aspect-ratio: 3/4;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.gallery figure:hover img { transform: scale(1.04); }

.cta {
  text-align: center;
  padding: 72px 28px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.cta p {
  color: var(--cream-soft);
  margin-bottom: 24px;
  line-height: 1.55;
}

.privacy-note {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 28px;
  text-align: center;
  color: rgba(243,235,224,.5);
  font-size: 13px;
}

.privacy-note a { color: var(--brass); text-decoration: underline; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 22%;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  background: transparent;
}

.footer-links { display: flex; gap: 18px; font-size: 13px; color: var(--cream-soft); }
.footer-copy { width: 100%; font-size: 12px; color: rgba(243,235,224,.4); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }

/* Privacy */
.privacy-page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

.privacy-title {
  font-family: var(--font);
  font-size: clamp(32px, 5vw, 46px);
  text-align: center;
  margin: 8px 0 10px;
}

.privacy-subtitle {
  text-align: center;
  color: var(--cream-soft);
  margin-bottom: 28px;
}

.policy-card {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.policy-card h2 {
  font-family: var(--font);
  font-size: 20px;
  margin: 22px 0 10px;
  color: var(--brass-hot);
}

.policy-card h2:first-child { margin-top: 0; }

.policy-card p, .policy-card li {
  color: var(--cream-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.policy-card ul { padding-left: 18px; }
.policy-card a { color: var(--brass); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .studio-main-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .studio-side {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
  }
  .studio-side .control-block {
    flex: 1 1 160px;
  }
  .side-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .source-btn {
    flex: 1 1 120px;
    text-align: center;
    justify-content: center;
  }
  .frame-rail {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .frame-chip {
    flex: 1 1 120px;
  }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .wall-section { height: 260px; }
  .studio-stage {
    justify-content: center;
    gap: 12px;
    min-height: 0;
  }
  .camera-flip-btn.is-visible:not([hidden]) {
    display: inline-flex !important;
    order: -1; /* слева от превью / рамки */
  }
  .stage-frame {
    width: min(100%, calc(100vw - 110px));
    max-width: 340px;
  }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 18px; }
  .section { padding: 48px 18px; }
  .studio { padding: 14px; }
  .filter-accordion { padding-left: 8px; padding-right: 8px; gap: 6px; min-height: 156px; }
  .filter-chip { width: calc(68px * var(--slot-scale, 1)); }
  .studio-stage { gap: 8px; }
  .stage-frame { width: min(100%, calc(100vw - 96px)); max-width: 300px; }
  .camera-flip-btn.is-visible:not([hidden]) {
    display: inline-flex !important;
    order: -1;
    min-width: 48px;
    min-height: 64px;
    padding: 8px 6px;
  }
}
