:root {
  --bg: #11110f;
  --bg-2: #191915;
  --bg-3: #22221d;
  --text: #f3eee2;
  --muted: #a7a191;
  --line: rgba(243, 238, 226, 0.12);
  --accent: #ff6b2c;
  --accent-ink: #1a0c04;
  --paper: #f1ece0;
  --paper-2: #e7e0d0;
  --ink: #1b1a16;
  --ink-muted: #5f5a4e;
  --bf: #a77bff;
  --radius: 22px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  margin: 0 0 18px;
  font: 700 12px/1.2 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  margin: 0;
  font: 700 clamp(30px, 4.6vw, 58px)/1.05 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head__sub { color: var(--muted); margin: 18px 0 0; max-width: 560px; }

/* Placeholder за попълване */
.fill {
  display: inline-block;
  padding: 0 6px;
  border: 1.5px dashed currentColor;
  border-radius: 6px;
  opacity: 0.6;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82em;
  letter-spacing: 0;
}

/* Бутони */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ff8550; }
.btn--ghost { border-color: var(--line); background: rgba(243,238,226,.04); }
.btn--ghost:hover { border-color: var(--text); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--bf { background: var(--bf); color: #160b2b; }
.arr { display: inline-block; transition: transform .3s; }
.btn:hover .arr { transform: translateY(3px); }

/* Навигация */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background-color .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(17,17,15,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.nav__mono {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font: 800 14px/1 var(--display);
}
.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__name { display: none; }
}

/* HERO */
.hero { position: relative; min-height: 100svh; padding: 110px 0 40px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -280px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,107,44,.20), transparent 70%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 4px rgba(94,224,138,.18); flex: none; }
.hero__title {
  margin: 0; font: 800 clamp(36px, 5.3vw, 78px)/.98 var(--display); letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sig { display: flex; align-items: flex-end; gap: 14px; margin: 20px 0 4px; flex-wrap: wrap; }
.hero__hi { color: var(--muted); font-weight: 600; padding-bottom: 10px; }
.sig { height: clamp(44px, 5vw, 64px); width: auto; overflow: visible; color: var(--text); }
.sig .ink { fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.sig .fl { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.hero__lead { max-width: 520px; color: var(--muted); margin: 10px 0 30px; font-size: clamp(16px, 1.4vw, 19px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__phone { font-weight: 600; color: var(--muted); }

.hero__photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.hero__mask {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--bg-3);
}
.hero__mask img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.sticker {
  position: absolute; left: -22px; bottom: 34px; display: flex; gap: 8px; align-items: center;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px; transform: rotate(-4deg); box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.sticker__pin { color: var(--accent); }

@media (max-width: 860px) {
  .hero { padding-top: 96px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; justify-self: start; max-width: 200px; }
  .hero__mask { aspect-ratio: 1; border-radius: 50%; }
  .sticker { left: auto; right: -110px; bottom: 20px; font-size: 12px; padding: 8px 12px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* Брояч */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 7vw, 88px) 0 0;
  border-top: 1px solid var(--line);
}
.stat { padding: 22px 0 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.stat + .stat { padding-left: clamp(14px, 3vw, 36px); border-left: 1px solid var(--line); }
.stat dt { color: var(--muted); font-weight: 600; font-size: clamp(13px, 1.3vw, 16px); }
.stat dd { margin: 0; font: 800 clamp(36px, 6vw, 72px)/1 var(--display); letter-spacing: -0.03em; }
.stats--two { grid-template-columns: repeat(2, 1fr); }

/* За мен */
.about { padding: clamp(72px, 10vw, 140px) var(--gutter); display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.about__text { margin: 0; font: 500 clamp(21px, 2.6vw, 34px)/1.35 var(--body); letter-spacing: -0.01em; max-width: 920px; text-wrap: pretty; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Проекти */
.projects { padding: 0 0 clamp(80px, 10vw, 140px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.chip sup { font-size: 11px; opacity: .7; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 32px); perspective: 1200px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  overflow: hidden; cursor: pointer; transition: border-color .3s;
  will-change: transform;
}
.card:hover { border-color: rgba(243,238,226,.28); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.card__media img { width: 100%; }
.card__thumb { height: 100%; object-fit: cover; object-position: top; }
.card__full { position: absolute; inset: 0 0 auto; opacity: 0; transition: opacity .4s; }
.card.is-scrolling .card__full { opacity: 1; }
.card__badge {
  position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
}
.card__badge--concept { background: #ffd84d; color: #2b2200; }
.card__badge--own { background: var(--accent); color: var(--accent-ink); }
.card__num { position: absolute; z-index: 1; top: 14px; right: 14px; padding: 7px 10px; border-radius: 999px; font: 700 11px/1 var(--display); color: var(--text); background: rgba(17,17,15,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card__body { padding: 20px 22px 22px; display: grid; gap: 8px; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__name { margin: 0; font: 700 clamp(20px, 2vw, 26px)/1.15 var(--display); letter-spacing: -0.01em; }
.card__year { color: var(--muted); font-size: 14px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.card__meta span::before { content: "· "; color: var(--accent); }
.card__meta span:first-child::before { content: ""; }
.card__desc { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card__links { display: flex; gap: 10px; margin-top: 6px; position: relative; z-index: 3; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700;
  text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
}
.card__link:hover { border-color: var(--text); }
.card__link--view { background: var(--text); color: var(--bg); border-color: var(--text); }
.noscript { color: var(--muted); }

/* Курсор */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); display: none; place-items: center;
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), margin .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.cursor__label { font: 800 12px/1 var(--body); color: var(--accent-ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.has-cursor .cursor { display: grid; }
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* Карта */
.map-sec { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.map-sec__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.map-sec__copy .muted { margin: 20px 0 24px; }
.map-sec__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.map-sec__list li { display: flex; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.map-sec__list strong { font-family: var(--display); font-size: 15px; }
.map-sec__list span { color: var(--muted); font-size: 14px; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5 / 4; background: #1f1f1b; }
.map { position: absolute; inset: 0; }
#map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.85) contrast(.9) sepia(.15); }
#map .leaflet-container, .map.leaflet-container { background: #1f1f1b; font-family: var(--body); }
#map .leaflet-control-attribution { background: rgba(17,17,15,.75); color: var(--muted); font-size: 10px; }
#map .leaflet-control-attribution a { color: var(--text); }
#map .leaflet-control-zoom a { background: var(--bg-2); color: var(--text); border-color: var(--line); }
.pin { position: relative; }
.pin__dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.pin__dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2.2s infinite; }
.pin--home .pin__dot { background: var(--text); box-shadow: 0 0 0 2px var(--text); }
.pin--home .pin__dot::after { border-color: var(--text); }
.pin__label { position: absolute; left: 14px; top: -11px; white-space: nowrap; font: 700 12px/1 var(--body); background: var(--bg); color: var(--text); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content { font: 500 14px/1.4 var(--body); margin: 12px 14px; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); padding: 20px; text-align: center; }
@media (max-width: 860px) { .map-sec__grid { grid-template-columns: 1fr; } .map-wrap { aspect-ratio: 1; } }

/* BeautyFlow */
.bf { position: relative; padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; background: radial-gradient(1000px 600px at 85% 30%, rgba(167,123,255,.22), transparent 60%), #120f1a; }
.bf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.bf__kicker { color: var(--bf); }
.bf .h2 { font-size: clamp(44px, 7vw, 96px); }
.bf__flow { color: var(--bf); }
.bf__lead { color: #cfc6e4; font-size: clamp(17px, 1.5vw, 20px); max-width: 520px; margin: 20px 0; }
.bf__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.bf__list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.bf__list li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(167,123,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a77bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.bf__count { font-weight: 700; color: var(--bf); margin: 0 0 20px; }
.bf__visual { position: relative; aspect-ratio: 1.1; }
.bf__desk { position: absolute; left: 0; top: 8%; width: 88%; border-radius: 16px; overflow: hidden; border: 1px solid rgba(167,123,255,.3); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.bf__phone { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 9 / 19; padding: 8px; border-radius: 30px; background: #0b0910; border: 1px solid rgba(167,123,255,.4); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.bf__phone-screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; }
.bf__phone-screen img { width: 100%; }
@media (max-width: 860px) { .bf__grid { grid-template-columns: 1fr; } }

/* Светли секции */
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper .eyebrow { color: #c4470f; }
.paper .section-head__sub { color: var(--ink-muted); }
.process { padding: clamp(80px, 10vw, 140px) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.step { padding: 26px clamp(14px, 2vw, 26px) 10px 0; }
.step + .step { padding-left: clamp(14px, 2vw, 26px); border-left: 1px solid rgba(27,26,22,.15); }
.step__n { font: 800 14px/1 var(--display); color: #c4470f; }
.step h3 { margin: 18px 0 10px; font: 700 clamp(19px, 1.8vw, 23px)/1.15 var(--display); letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }
.step .step__time { margin-top: 14px; color: var(--ink); font-weight: 700; font-size: 14px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; border-bottom: 1px solid rgba(27,26,22,.15); padding-bottom: 22px; }
}

.deadline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: clamp(36px, 5vw, 56px); padding: 24px 28px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.deadline p { margin: 0; }
.deadline__big { font: 700 clamp(20px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -0.01em; color: var(--accent); }
.deadline__note { opacity: .8; font-weight: 600; }

/* Отзиви */
.reviews { padding: clamp(80px, 10vw, 140px) 0; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.quote { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 18px; font-size: 19px; line-height: 1.5; }
.quote blockquote::before { content: "„"; color: var(--accent); font: 800 40px/0 var(--display); vertical-align: -14px; margin-right: 4px; }
.quote figcaption { color: var(--muted); font-weight: 600; font-size: 14px; }
.quote figcaption strong { color: var(--text); }

/* Контакти */
.contact { padding: clamp(80px, 10vw, 140px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__title { font-size: clamp(30px, 4vw, 52px); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; font-size: 18px; font-weight: 600; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact__list a:hover { border-color: var(--accent); }
.contact__big { font: 800 clamp(30px, 4vw, 46px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--accent); border: 0 !important; }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.form__intro { margin: 0; color: var(--muted); font-size: 15px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 500 16px/1.4 var(--body); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form__send { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.send { min-height: 52px; border-radius: 14px; border: 0; font-weight: 800; font-size: 15px; transition: transform .2s, filter .2s; }
.send:hover { transform: translateY(-2px); filter: brightness(1.08); }
.send--viber { background: #7360f2; color: #fff; }
.send--wa { background: #25d366; color: #062611; }
.form__err { margin: 0; color: #ff9c7a; font-weight: 600; font-size: 14px; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .form__send { grid-template-columns: 1fr; } }

/* Футър */
.footer { border-top: 1px solid var(--line); padding: 26px 0 8px; font-size: 14px; }
.footer__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Viewer */
.viewer {
  width: min(1280px, 100vw - 24px); height: min(900px, 100dvh - 24px); max-width: none; max-height: none;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--text); overflow: hidden;
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(8,8,7,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer__bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viewer__info { display: grid; min-width: 0; flex: 1 1 200px; }
.viewer__info strong { font: 700 17px/1.2 var(--display); }
.viewer__meta { color: var(--muted); font-size: 13px; }
.viewer__tabs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.viewer__tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.viewer__tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.viewer__actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 16px; }
.icon-btn:hover { border-color: var(--text); }
.viewer__stage { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 18px; background: var(--bg-2); }
.device { display: flex; flex-direction: column; min-height: 0; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.device--desktop, .device--live { width: 100%; max-width: 1100px; }
.device__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #262621; }
.device__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #4a4a42; }
.device__url { margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: #1a1a17; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device__screen { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.device__screen img { width: 100%; }
.device--mobile { width: 360px; max-width: 100%; padding: 10px; border-radius: 38px; background: #0a0a09; border: 1px solid #333; }
.device--mobile .device__screen { border-radius: 28px; }
.device--live iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.viewer__hint { margin: 0; padding: 8px; text-align: center; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .viewer { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .viewer__bar { padding: 10px 12px; gap: 10px; }
  .viewer__tabs { order: 3; width: 100%; justify-content: center; }
  .viewer__tabs button { flex: 1; }
  .viewer__stage { padding: 10px; }
  .viewer__actions .btn span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
