/* What the art — сайт, версия 2: «развеска». Светлая стена, музейные этикетки, всё в настоящем масштабе. */

@font-face { font-family: "Onest"; font-weight: 800; font-display: swap;
  src: url(../fonts/onest-extrabold-normal.woff2) format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-text-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --wall: #e6e5e1;
  --wall-deep: #dcdbd6;
  --ink: #1d1d1b;
  --muted: #6b6a65;
  --rule: #c9c8c2;
  --label: #ffffff;
  --pink: #ff2b9c;
  --pink-ink: #c4006f;
  --night: #232327;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --title-size: clamp(34px, 3.4vw, 50px);
  --display: "Onest", "Helvetica Neue", Arial, sans-serif;
  --text: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --wall: #18181a;
  --wall-deep: #242428;
  --ink: #f3f2ed;
  --muted: #b5b4af;
  --rule: #46464b;
  --label: #28282d;
  --night: #101012;
  color-scheme: dark;
}
html[data-theme="black"] {
  --wall: #000;
  --wall-deep: #0c0c0c;
  --ink: #fff;
  --muted: #b7b7b7;
  --rule: #303030;
  --label: #080808;
  --night: #000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Фон за пределами страницы (под подвалом, в нижней панели Safari) — в цвет подвала; сама страница — в цвет стены. */
html { background: var(--wall); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Safari на iOS красит панели по фону body, поэтому светлая «стена» — у основного контента, а body — в цвет подвала. */
#main { background: var(--wall); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--label); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, .display { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 0; text-wrap: balance; }
h1, h2 { font-size: var(--title-size); }
h3 { font-family: var(--text); font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 .35em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 48ch; }
.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--label); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border-radius: 2px; white-space: nowrap; transition: background .15s, color .15s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--label); }
.btn[disabled] { opacity: .5; cursor: progress; }
.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { color: var(--pink-ink); }

/* ---------- Header ---------- */
/* Шапка непрозрачная и точно в цвет --wall: так верхняя полоса Safari (theme-color = --wall) совпадает с меню при любом контенте под ним. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--wall); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.045em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--pink); }
.nav .nav-app { border: 1.5px solid var(--ink); padding: 8px 16px; border-radius: 2px; }
.nav .nav-app:hover { background: var(--ink); color: var(--label); }
.theme-toggle, .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.theme-swatch { display: block; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%; background: #e6e5e1; transition: transform .15s; }
.theme-toggle[data-theme="light"] .theme-swatch { background: #e6e5e1; }
.theme-toggle[data-theme="black"] .theme-swatch { background: #000; border-color: #303030; }
.theme-toggle[data-theme="dark"] .theme-swatch { background: #18181a; border-color: #303034; }
.theme-toggle:hover .theme-swatch { transform: scale(.9); }
.menu-btn { display: none; }
.menu-icon { display: block; width: 28px; height: 28px; background: currentColor; -webkit-mask: center / 210% no-repeat; mask: center / 210% no-repeat; -webkit-mask-image: url("../img/menu-icon.svg"); mask-image: url("../img/menu-icon.svg"); }
html[data-theme="black"] .site-header { background: #000; }
@media (max-width: 820px) {
  .header-actions { gap: 8px; }
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--wall); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--rule); display: none; }
  .nav.open { display: flex; }
  .nav a { font-family: var(--display); font-size: 24px; font-weight: 800; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .nav-app { margin-top: 16px; text-align: center; font-family: var(--text); font-size: 17px; }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }
.rule-top { border-top: 1px solid var(--rule); }
.rule-bottom { border-bottom: 1px solid var(--rule); }

/* ---------- Hero: примерка в интерьере ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(64px, 8vw, 120px); }
.hero-tryon { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin: 12px 0 24px; }
.hero-copy .lead { margin: 0 0 28px; color: var(--ink); max-width: 34rem; }
.eyebrow { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.tryon { min-width: 0; }
.tryon-stage { position: relative; overflow: hidden; aspect-ratio: 11 / 7.6; background: var(--tryon-wall, var(--wall-deep)); border: 1px solid var(--rule); }
.tryon-stage svg { display: block; width: 100%; height: 100%; }
.tryon-art { cursor: grab; touch-action: none; transition: opacity .2s ease; }
.tryon-art.fading { opacity: 0; }
.tryon-stage.is-dragging .tryon-art { cursor: grabbing; }
.tryon-walls { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; padding: 6px; background: rgba(255,255,255,.76); border: 1px solid rgba(29,29,27,.16); border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tryon-walls button { width: 28px; height: 28px; padding: 0; border: 2px solid rgba(29,29,27,.28); border-radius: 50%; cursor: pointer; }
.tryon-walls button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--pink); }
.tryon-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 16px; }
.tryon-nav { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; font-size: 28px; line-height: 1; }
.tryon-nav-arrow { display: block; transform: translateY(-2px); }
.tryon-nav:hover { background: var(--ink); color: var(--label); }
.tryon-info { min-width: 0; }
.tryon-info a, .tryon-info .tryon-title, .tryon-info span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tryon-info a, .tryon-info .tryon-title { font-size: 18px; font-weight: 700; text-decoration: none; }
.tryon-info a:hover { color: var(--pink-ink); text-decoration: underline; text-underline-offset: 3px; }
.tryon-info span { color: var(--muted); font-size: 15px; }
.tryon-thumbs { display: flex; gap: 8px; margin-top: 14px; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: thin; }
.tryon-thumbs button { flex: 0 0 auto; height: 80px; padding: 0; border: 2px solid transparent; background: var(--wall-deep); cursor: pointer; opacity: .62; }
.tryon-thumbs button:hover, .tryon-thumbs button[aria-pressed="true"] { opacity: 1; }
.tryon-thumbs button[aria-pressed="true"] { border-color: var(--pink); }
.tryon-thumbs img { width: auto; height: 100%; }
@media (max-width: 900px) { .hero-tryon { grid-template-columns: 1fr; } .hero-copy .lead { max-width: 42rem; } }
@media (max-width: 560px) { .hero { padding-top: 28px; } .tryon-stage { aspect-ratio: 11 / 9; } .tryon-nav { width: 44px; height: 44px; } .tryon-thumbs { height: 150px; align-items: stretch; } .tryon-thumbs button { height: 100%; } .tryon-thumbs img { height: 100%; width: auto; object-fit: contain; } }

.intro-hero { padding-top: clamp(64px, 9vw, 128px); padding-bottom: calc(clamp(28px, 4vw, 56px) - 14px); }
.intro-hero .hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; }
.intro-hero .lead { margin: 0; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: nowrap; gap: clamp(8px, 2vw, 12px); margin-top: 24px; }
.hero-actions .btn { min-width: 0; font-size: clamp(13px, 3.6vw, 16px); padding: 0 clamp(12px, 3.4vw, 24px); min-height: clamp(44px, 12vw, 50px); }
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 0; } }
.intro-hero + .section { padding-top: 0; }
.intro-hero + .how-to-choose-section { padding-top: clamp(40px, 5vw, 72px); }
@media (max-width: 860px) { .intro-hero .hero-text { grid-template-columns: 1fr; } }

/* ---------- Salon wall ---------- */
.wall-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding: clamp(36px, 5vw, 72px) 0 0; }
.salon { position: relative; margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter); }
.salon-inner { position: relative; width: 100%; }
.floor { height: clamp(28px, 4vw, 56px); background: linear-gradient(var(--wall-deep), var(--wall)); border-top: 1px solid var(--rule); }
.piece { position: absolute; display: block; text-decoration: none; }
.piece img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 10px 22px -8px rgba(0,0,0,.35); background: var(--wall-deep); transition: transform .25s; }
.piece:hover img, .piece:focus-visible img { transform: translateY(-3px); }
.piece .tip { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: 240px; background: var(--label); padding: 10px 12px; font-size: 13px; line-height: 1.35; box-shadow: 0 6px 20px rgba(0,0,0,.12); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.piece .tip b { display: block; font-size: 14px; }
.piece:hover .tip, .piece:focus-visible .tip { opacity: 1; }
.person { position: absolute; color: #c3c2bc; }
.person svg { width: 100%; height: 100%; display: block; }
.scale-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-top: 14px; padding-bottom: 14px; }
.ruler { display: inline-flex; align-items: center; gap: 10px; }
.ruler i { display: block; height: 8px; border: 1.5px solid var(--ink); border-top: 0; }
.salon-compact { display: none; }
@media (max-width: 760px) { .wall-scroll { overflow: visible; } .salon-wide { display: none; } .salon-compact { display: block; } .salon-compact .piece img { box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 6px 12px -6px rgba(0,0,0,.35); } .salon-compact .tip { display: none; } }
.swipe-hint { display: none; }

/* ---------- Steps (real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--label); font-family: var(--display); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps li::after { content: ""; position: absolute; top: 18px; left: 48px; right: -16px; border-top: 1px dashed var(--rule); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* ---------- App block ---------- */
#app, #black-app { scroll-margin-top: 68px; }
.night { background: var(--night); color: #efeee9; }
.night .muted, .night p { color: #b4b3ad; }
.night h2, .night h3 { color: #fff; }
.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.phone { width: min(100%, 320px); margin: 0 auto; border-radius: 44px; padding: 10px; background: #0e0e10; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1.5px #3a3a40; }
.phone img { border-radius: 34px; width: 100%; }
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.features li { border-top: 1px solid #44444a; padding-top: 16px; }
.features h3 { font-size: 18px; }
.features p { font-size: 16px; margin: 0; }
.soon { display: inline-block; font-size: 12px; font-weight: 600; vertical-align: 3px; margin-left: 6px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 20px; color: var(--pink); }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } .features { grid-template-columns: 1fr; } }

/* ---------- Stores ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { --store-icon: clamp(18px, 5.4vw, 26px); display: grid; grid-template-columns: var(--store-icon) minmax(0, max-content); align-items: center; justify-content: center; column-gap: clamp(6px, 2vw, 10px); min-width: 0; min-height: clamp(46px, 13vw, 58px); padding: 8px clamp(8px, 3vw, 18px); border: 1.5px solid currentColor; border-radius: 2px; text-decoration: none; line-height: 1.15; }
.store-icon { width: var(--store-icon); height: var(--store-icon); align-self: center; justify-self: center; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.store-icon--app-store { -webkit-mask-image: url("../img/store-app-store.svg?v=20261024-centered"); mask-image: url("../img/store-app-store.svg?v=20261024-centered"); }
.store-icon--google-play { -webkit-mask-image: url("../img/store-google-play.svg?v=20261024-centered"); mask-image: url("../img/store-google-play.svg?v=20261024-centered"); }
.store-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; width: 6em; font-size: clamp(12.5px, 3.9vw, 17px); }
.store small { font-size: clamp(10px, 2.8vw, 12px); opacity: .7; white-space: nowrap; }
.store strong { font-size: 1em; font-weight: 700; white-space: nowrap; }
a.store:hover { background: var(--ink); color: var(--label); }
.store.soon-store { opacity: .85; cursor: default; }
@media (max-width: 560px) { .stores { display: grid; grid-template-columns: 1fr; width: 100%; } .stores .store { width: 100%; justify-content: center; } .hero-copy .stores, #stores .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .hero-copy .stores .store, #stores .stores .store { justify-content: center; } }

/* ---------- Download prompt ---------- */
.store-promo-section { padding: clamp(56px, 8vw, 112px) 0; background: var(--night); color: #efeee9; }
.store-promo { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 40px); align-items: start; }
.store-promo > :first-child { width: 100%; max-width: 720px; }
.store-promo > [data-store-promo], .black-download [data-store-promo] { width: 100%; max-width: 720px; justify-self: center; margin-inline: auto; }
.store-promo > :first-child { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.store-promo .eyebrow { color: #aaa9a3; }
.store-promo h2 { margin: 12px 0 18px; }
.store-promo p:not(.eyebrow) { margin: 0; color: #c8c7c1; }
.store-qr-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 7vw, 36px); }
.store-qr { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(22px, 6.5vw, 30px); min-width: 0; padding: clamp(16px, 5vw, 24px); background: #2b2b30; border: 1px solid #3d3d44; border-radius: 4px; }
.store-qr .store-qr-code, .store-qr .store-qr-button { width: min(80%, 320px); }
.store-qr-code { display: block; padding: 0; background: transparent; }
.store-qr-code img { display: block; width: 100%; height: auto; aspect-ratio: 1; mix-blend-mode: screen; }
.store-qr-button { width: 100%; justify-content: center; padding: 6px 10px; border-color: #737278; color: #efeee9; }
.store-promo .store-qr-button:hover { background: #efeee9; color: #151518; border-color: #efeee9; }
@media (max-width: 760px) { .store-promo { grid-template-columns: 1fr; align-items: start; justify-items: center; } .store-promo > :first-child, .store-promo > [data-store-promo] { justify-self: stretch; } .store-qr-list { width: 100%; justify-self: stretch; } }

/* ---------- Featured works: тёмная развеска ---------- */
.featured-dark { background: var(--wall); color: var(--ink); }
.featured-dark .section-head p { color: var(--muted); }
@media (min-width: 761px) { .featured-dark .section-head p { justify-self: end; text-align: right; } }
.featured-dark .btn { background: var(--ink); border-color: var(--ink); color: var(--label); }
.featured-dark .btn:hover { background: transparent; color: var(--ink); }
.featured-works { columns: 3 260px; column-gap: clamp(14px, 2vw, 28px); }
.featured-work { display: block; break-inside: avoid; margin-bottom: clamp(24px, 3vw, 40px); color: inherit; text-decoration: none; }
.featured-work-img { display: block; overflow: hidden; background: var(--wall-deep); }
.featured-work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.featured-work:hover .featured-work-img img { transform: scale(1.03); }
.featured-work-copy { display: block; padding-top: 12px; }
.featured-work-title { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.featured-work:hover .featured-work-title { color: var(--pink); }
.featured-work-artist { display: block; color: var(--muted); font-size: 15px; }
.featured-work-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 15px; }
.featured-work-price { font-weight: 700; }
.featured-work-ar { color: var(--pink); font-weight: 600; }
.featured-more, .browse-more { margin: 32px 0 0; max-width: none; }
.browse-btn { width: 100%; }
.featured-more .browse-btn { min-height: 100px; }
@media (max-width: 600px) {
  .featured-works { columns: 2; column-gap: 12px; }
  .featured-work { margin-bottom: 22px; }
  .featured-work-title { font-size: 15px; }
  .featured-work-artist, .featured-work-meta { font-size: 13px; }
}

/* ---------- Works grid with museum labels ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(18px, 2.4vw, 36px); align-items: end; }
.work { display: flex; flex-direction: column; text-decoration: none; }
.work-frame { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1 / 1.05; padding: 8%; }
.work-frame img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 12px 24px -10px rgba(0,0,0,.4); background: var(--wall-deep); transition: transform .25s; }
.work:hover .work-frame img { transform: translateY(-4px); }
.lbl { background: var(--label); padding: 12px 14px 13px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.lbl .t { display: block; font-weight: 700; font-size: 15px; }
.work:hover .lbl .t { text-decoration: underline; text-underline-offset: 3px; }
.lbl .a { display: block; }
.lbl .m { display: block; color: var(--muted); }
.lbl .p { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; flex-wrap: wrap; }
.lbl .ar { font-weight: 500; color: var(--pink-ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex: 0 0 auto; }
@media (max-width: 560px) {
  .works { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .lbl { padding: 10px; font-size: 13px; }
  .lbl .t { font-size: 14px; }
}

/* ---------- Галерея: masonry-сетка как в приложении ---------- */
.masonry { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); align-items: start; }
.masonry-col { display: grid; gap: clamp(22px, 2.6vw, 36px); align-content: start; min-width: 0; }
.masonry .featured-work { margin: 0; }
.masonry .featured-work-img { border-radius: 14px; }
.masonry .featured-work-copy { padding-top: 10px; }

/* ---------- Legend ---------- */
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.legend div { background: var(--label); padding: 18px; }
html[data-theme="black"] .legend div { background: #161616; }
.legend b { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 6px; }
.legend p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .legend { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
/* Заголовок левой колонки держится под шапкой, пока виден его блок (только в две колонки). */
.two-col-middle { align-self: center; }
@media (min-width: 861px) { .sticky-head { position: sticky; top: calc(69px + clamp(24px, 3vw, 40px)); } }
.prose-list { margin: 0; padding: 0; list-style: none; }
.prose-list li { padding: 20px 0; border-top: 1px solid var(--rule); }
.prose-list li:last-child { border-bottom: 1px solid var(--rule); }
.prose-list p { color: var(--muted); margin: 0; }

/* ---------- Artists list ---------- */
.roster { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.roster li { border-bottom: 1px solid var(--rule); }
.roster a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: center; padding: 18px 0; text-decoration: none; }
.roster .artist-copy { display: grid; gap: 3px; min-width: 0; }
.roster .nm { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.1; color: var(--muted); }
.roster .artist-city { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.25; opacity: .72; }
.roster a:hover .nm { color: var(--pink-ink); }
.roster .strip { display: flex; gap: 8px; justify-content: flex-end; align-items: flex-end; height: 64px; }
.roster .strip img { height: 100%; width: auto; max-width: 96px; object-fit: cover; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); }
.roster .strip span { font-size: 14px; color: var(--muted); align-self: center; }
@media (max-width: 760px) { .roster a { grid-template-columns: 1fr; gap: 8px; } .roster .strip { justify-content: flex-start; height: 56px; } }

/* ---------- Pitch card for artists ---------- */
.pitch { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); background: var(--label); padding: clamp(28px, 5vw, 64px); align-items: end; }
.pitch ul { margin: 0 0 24px; padding: 0; list-style: none; }
.pitch li { padding: 12px 0; border-top: 1px solid var(--rule); font-weight: 600; }
@media (max-width: 860px) { .pitch { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .input { width: 100%; min-height: 52px; padding: 13px 15px; border: 1.5px solid var(--rule); border-radius: 2px; background: var(--label); font-size: 17px; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--ink); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.form-msg { font-size: 15px; margin: 0; min-height: 1.4em; font-weight: 600; }
.form-msg.ok { color: #1f7a45; }
.form-msg.err { color: var(--pink-ink); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 240px; }
.night .input { background: #303036; border-color: #4a4a52; color: #fff; }
.night .input:focus { border-color: #fff; }
.night .consent { color: #b4b3ad; }
.night .consent a { color: #fff; }
.night .consent input { accent-color: var(--pink); }
.night .btn { background: #fff; color: var(--night); border-color: #fff; }
.night .btn:hover { background: transparent; color: #fff; }
.night .form-msg.ok { color: #7fe0a6; }
.night .form-msg.err { color: #ff8fc6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wall); color: var(--muted); padding-top: clamp(12px, 2.5vw, 40px); padding-bottom: 32px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)); gap: 32px; padding-bottom: 40px; }
.foot .brand { color: #fff; margin-bottom: 16px; }
.foot-brand { display: block; width: 100%; margin-bottom: clamp(28px, 5vw, 64px); }
.foot > :first-child p { margin-top: 0; }
.foot-wordmark { display: block; width: 100%; height: auto; }
/* Футер в цвет страницы: на светлой теме логотип с тёмными буквами «What the». */
.foot-wordmark-ink { display: none; }
html:not([data-theme="dark"]):not([data-theme="black"]) .foot-wordmark:not(.foot-wordmark-ink) { display: none; }
html:not([data-theme="dark"]):not([data-theme="black"]) .foot-wordmark-ink { display: block; }
.foot h4 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 14px; }
.legal a { color: var(--muted); }
@media (max-width: 900px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot, .footer-black-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Чёрная версия нижних блоков ---------- */
.theme-black-block, .footer-black { display: none; }
html[data-theme="black"] .theme-light-block { display: none; }
html[data-theme="black"] .theme-black-block, html[data-theme="black"] .footer-black { display: block; }

.black-artists-section { padding: clamp(64px, 9vw, 128px) 0; }
.black-section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.black-section-head h2, .black-artist-band h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.055em; line-height: .92; }
.black-section-head h2 { font-size: var(--title-size); }
.black-section-head p { margin: 0; color: var(--muted); }
.black-artist-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.black-artist-index li { border-bottom: 1px solid var(--rule); }
.black-artist-index a { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2.4vw, 32px); padding: 14px 0; text-decoration: none; }
.black-artist-index img, .black-artist-noimg { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #1b1b1a; filter: grayscale(1); transition: filter .2s; }
.black-artist-index a:hover img { filter: none; }
.black-artist-name { font-family: var(--display); font-size: clamp(28px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.black-artist-name span { display: block; margin-top: 6px; color: var(--muted); font-family: var(--text); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.black-artist-index a:hover .black-artist-name { color: var(--pink); }
.black-artist-count { color: var(--muted); font-size: 15px; text-align: right; white-space: nowrap; }

/* Список художников: одна типографика на всех темах. */
.black-artists-section .black-artist-name { color: var(--muted); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.black-artists-section .black-artist-name span { margin-top: 3px; font-size: 14px; line-height: 1.25; opacity: .72; }

.black-artist-band { background: var(--pink); color: #000; }
.black-artist-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(64px, 9vw, 130px); align-items: end; }
.black-artist-band h2 { color: #000; font-size: var(--title-size); }
.black-artist-band p { margin: 24px 0 0; font-size: 19px; font-weight: 500; }
.black-artist-band ul { margin: 0 0 28px; padding: 0; list-style: none; font-size: 19px; font-weight: 650; }
.black-artist-band li { padding: 12px 0; border-top: 2px solid #000; }
.black-artist-band .btn { background: #000; border-color: #000; color: #fff; }
.black-artist-band .btn:hover { background: #fff; border-color: #fff; color: #000; }
/* Светлая и графитовая темы: та же вёрстка, но фон и цвета темы вместо розового. */
.theme-light-block.black-artist-band { background: var(--label); color: var(--ink); }
.theme-light-block.black-artist-band h2 { color: var(--ink); }
.theme-light-block.black-artist-band p { color: var(--muted); }
.theme-light-block.black-artist-band li { border-top-color: var(--ink); }
.theme-light-block.black-artist-band .btn { background: var(--ink); border-color: var(--ink); color: var(--label); }
.theme-light-block.black-artist-band .btn:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.black-download-section { padding: clamp(56px, 8vw, 112px) 0; }
.black-download { display: grid; grid-template-columns: minmax(0, 1fr); }
.black-download-copy { width: 100%; }
.black-download-copy > :not([data-store-promo]) { max-width: 720px; }
.black-download .lead { margin: 24px 0 28px; color: var(--ink); }
.black-download .input { border-radius: 999px; padding: 0 22px; background: #000; border-color: var(--rule); color: #fff; }
.black-download .input:focus { border-color: #fff; }
.black-download .btn { border-radius: 999px; background: var(--pink); border-color: var(--pink); color: #000; }
.black-download .btn:hover { background: #fff; border-color: #fff; color: #000; }
.black-download .consent { color: var(--muted); }
.black-download .consent a { color: #fff; }
.black-download .black-app-icon { width: min(100%, 360px); justify-self: center; align-self: center; border-radius: 22%; box-shadow: 0 30px 80px rgba(255, 43, 156, .22); }
.black-download .stores { margin-top: 20px; }
.black-download .store { border-color: var(--rule); border-radius: 14px; }
.black-download .stores-note { color: var(--muted); }

.footer-black { padding: clamp(48px, 7vw, 96px) 0 32px; overflow: hidden; }
.footer-black-giant { margin: 0 0 clamp(36px, 6vw, 80px); color: #fff; font-family: var(--display); font-size: clamp(54px, 12.6vw, 196px); font-weight: 800; letter-spacing: -.075em; line-height: .8; white-space: nowrap; user-select: none; }
.footer-black-giant span { color: var(--pink); }
.footer-black-wordmark { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 0 clamp(36px, 6vw, 80px); }
.black-download-copy .eyebrow { color: var(--muted); }
.black-download-copy h2 { margin: 12px 0 18px; }
.black-download-text { margin: 0 0 clamp(28px, 4vw, 40px); color: var(--muted); }
.black-download .store-qr { background: #161616; border-color: #2a2a2a; }
/* Ширина от 600 px: QR-коды в одну строку, два столбца. */
@media (min-width: 600px) { .store-qr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); } .store-qr .store-qr-code, .store-qr .store-qr-button { width: min(88%, 280px); } }
.footer-black-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-black-grid p { color: var(--muted); max-width: 36ch; }
.footer-black-grid h4 { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-black-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-black-grid li { margin: 6px 0; }
.footer-black-grid a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-black-grid a:hover { color: var(--pink); }
.footer-black-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

@media (max-width: 860px) { .black-artist-band .wrap, .black-download { grid-template-columns: 1fr; } .black-download .black-app-icon { width: 180px; justify-self: center; } }
@media (max-width: 760px) { .black-section-head { grid-template-columns: 1fr; } .black-artist-index a { grid-template-columns: 56px minmax(0, 1fr); } .black-artist-index img, .black-artist-noimg { width: 56px; height: 56px; } .black-artist-count { display: none; } .footer-black-grid { grid-template-columns: 1fr 1fr; } .footer-black-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page intro ---------- */
.page-intro { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-intro .lead { margin-top: 20px; color: var(--muted); }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- Gallery toolbar ---------- */
.toolbar { position: sticky; top: 68px; z-index: 10; background: rgba(230, 229, 225, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-top: 12px; padding-bottom: 12px; margin-bottom: 28px; }
html[data-theme="dark"] .toolbar { background: rgba(24, 24, 26, .95); }

html[data-theme="black"] .toolbar { background: #000; }
.toolbar .wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .search { flex: 1 1 200px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--rule); background: var(--label); border-radius: 2px; font-size: 16px; }
.toolbar .search:focus { outline: none; border-color: var(--ink); }
.toolbar select { min-height: 44px; padding: 0 34px 0 12px; border: 1.5px solid var(--rule); background: var(--label) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231d1d1b' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; border-radius: 2px; font-size: 16px; cursor: pointer; max-width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--rule); background: var(--label); border-radius: 2px; cursor: pointer; font-size: 16px; white-space: nowrap; user-select: none; }
.check input { accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }
.check:has(input:checked) { border-color: var(--ink); }
.view-switch { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 2px; margin-left: auto; }
.view-switch button { min-height: 41px; padding: 0 14px; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 15px; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--label); }
/* Панель галереи: 1-я строка — поиск и «Сетка/Стена», 2-я строка — все фильтры на всю ширину. */
.toolbar .search { order: 1; flex: 1 1 0; min-width: 0; }
.toolbar .view-switch { order: 2; margin-left: 0; flex: 0 0 auto; }
/* Поля панели галереи скруглены. */
.toolbar .search, .toolbar select, .toolbar .check, .filters-toggle { border-radius: 10px; }
.toolbar .view-switch { border-radius: 10px; overflow: hidden; }
/* Фильтры. Широкий экран: всё в одну строку. Узкий: кнопка «Фильтры» + сортировка, остальное в раскрывающейся панели. */
.toolbar-filters { order: 3; flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.filters-panel { display: contents; }
.filters-toggle { display: none; }
#f-artist { order: 1; } #f-status { order: 2; } #f-sort { order: 3; } .filters-panel .check { order: 4; }
.toolbar-filters select { flex: 1 0 auto; padding-left: 11px; padding-right: 28px; background-position: right 10px center; }
.toolbar-filters .check { flex: 1 0 auto; justify-content: center; gap: 7px; padding: 0 10px; }
.filters-toggle { align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--label); color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; }
.filters-toggle::after { content: ""; width: 8px; height: 8px; margin-left: 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.filters-toggle[aria-expanded="true"] { border-color: var(--ink); }
.filters-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.filters-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #000; font-size: 13px; font-weight: 700; }
.filters-count[hidden] { display: none; }
@media (max-width: 839px) {
  .toolbar-filters { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 1.4fr); }
  .filters-toggle { display: inline-flex; order: 1; }
  .toolbar-filters #f-sort { order: 2; width: 100% !important; min-width: 0; }
  .filters-toggle, .toolbar-filters #f-sort { font-size: clamp(14px, 4.1vw, 16px); }
  .toolbar-filters #f-sort { padding-left: 10px; padding-right: 26px; background-position: right 9px center; }
  .filters-panel { order: 3; grid-column: 1 / -1; contain: inline-size; display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding-top: 2px; }
  .filters-panel.open { display: grid; }
  .filters-panel select { width: 100% !important; min-width: 0; }
  .filters-panel .check { justify-content: flex-start; }
}
@media (max-width: 480px) { .filters-panel { grid-template-columns: minmax(0, 1fr); } }
/* Узкий экран: «Сетка · Стена» уезжает в строку «Найдено», поиск занимает всю первую строку. */
.line-right { display: inline-flex; align-items: baseline; gap: 18px; margin-left: auto; }
.line-view { display: none; align-items: baseline; gap: 8px; color: var(--muted); }
.result-line .line-view button { color: var(--muted); text-decoration: none; font-weight: 500; }
.result-line .line-view button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.result-line .line-view button:hover { color: var(--ink); }
@media (max-width: 839px) {
  .toolbar .view-switch { display: none; }
  .line-view { display: inline-flex; }
}
.result-line { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.result-line button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.empty { padding: 56px 0; }
.empty h3 { font-family: var(--display); font-weight: 600; font-size: 28px; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.wall-rows { display: grid; gap: clamp(28px, 4vw, 56px); }
.wall-row { position: relative; }
@media (max-width: 760px) {
}

/* ---------- Work page ---------- */
.work-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "photo side" "room side" ". side"; gap: 24px clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(48px, 6vw, 88px); }
.work-wall { grid-area: photo; display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: clamp(24px, 5vw, 72px); background: linear-gradient(var(--wall) 82%, var(--wall-deep)); }
.work-wall img { max-height: 70vh; width: auto; box-shadow: 0 2px 2px rgba(0,0,0,.12), 0 30px 50px -20px rgba(0,0,0,.45); }
.big-label { grid-area: side; align-self: start; background: var(--label); padding: clamp(22px, 3vw, 36px); position: sticky; top: 92px; }
.big-label h1 { margin-bottom: 14px; }
.big-label .by { font-size: 18px; font-weight: 600; text-decoration: none; }
.big-label .by:hover { color: var(--pink-ink); }
.big-label .by { display: block; }
.big-label .city { display: block; margin-top: 2px; color: var(--muted); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 16px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.price-line { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; margin-bottom: 8px; }
.note { font-size: 14px; color: var(--muted); }
.buy { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }
.buy p { font-size: 15px; color: var(--muted); }
.scale-cmp { grid-area: room; background: var(--label); padding: clamp(18px, 3vw, 32px); }
.scale-cmp > svg { display: block; width: 100%; height: auto; max-height: 420px; }
@media (max-width: 900px) { .work-page { grid-template-columns: 1fr; grid-template-areas: "photo" "side" "room"; } .big-label { position: static; } .work-wall { min-height: 0; } }

/* ---------- Artist page ---------- */
.artist-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.artist-head .portrait { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.15); }
.artist-head h1 { margin-bottom: 10px; }
.artist-head .city { color: var(--muted); font-size: 18px; margin-bottom: 22px; }
.facts { background: var(--label); padding: 20px; font-size: 15px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.facts div:last-of-type { border-bottom: 0; }
.facts b { font-weight: 700; }
.facts a { display: inline-block; margin-top: 12px; }
@media (max-width: 960px) { .artist-head { grid-template-columns: 160px minmax(0, 1fr); } .facts { grid-column: 1 / -1; } }
@media (max-width: 560px) { .artist-head { grid-template-columns: 1fr; } .artist-head .portrait { width: 140px; } }

/* ---------- For artists ---------- */
.terms { width: 100%; border-collapse: collapse; background: var(--label); }
.terms th, .terms td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.terms tr:last-child th, .terms tr:last-child td { border-bottom: 0; }
.terms th { width: 32%; font-weight: 600; color: var(--muted); }
.terms-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: stretch; }
.calc { display: flex; flex-direction: column; justify-content: center; border: 1.5px solid var(--ink); padding: clamp(20px, 3vw, 36px); background: var(--label); }
.calc label { display: block; font-weight: 600; margin-bottom: 8px; }
.calc .money { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--ink); }
.calc .money input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; padding: 6px 0; }
.calc .money input:focus { outline: none; }
.calc .money span { font-family: var(--display); font-size: 28px; font-weight: 600; }
.calc-out { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
.calc-out small { display: block; font-size: 14px; color: var(--muted); }
.calc-out b { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; }
@media (max-width: 860px) { .terms-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
/* Узкий экран: название условия над текстом, чтобы таблица не вылезала за край. */
@media (max-width: 560px) { .terms, .terms tbody, .terms tr, .terms th, .terms td { display: block; width: auto; } .terms th { padding: 16px 18px 4px; border-bottom: 0; } .terms td { padding: 0 18px 16px; } .terms tr { border-bottom: 1px solid var(--rule); } .terms tr:last-child { border-bottom: 0; } .terms td { border-bottom: 0; } }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 27px; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq details p { color: var(--muted); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; padding-bottom: clamp(64px, 8vw, 120px); }
.prose h2 { font-size: clamp(20px, 2vw, 26px); margin: 40px 0 12px; }
.prose a { color: var(--ink); }
.nf { padding-top: clamp(64px, 10vw, 160px); padding-bottom: clamp(64px, 10vw, 160px); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Форма заявки художника: компактная карточка со скруглениями ---------- */
.apply-form { position: relative; gap: 12px; max-width: 600px; padding: clamp(18px, 3vw, 30px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; background:
  radial-gradient(120% 70% at 100% 0%, rgba(255, 43, 156, .22), transparent 55%),
  radial-gradient(90% 60% at 0% 100%, rgba(255, 43, 156, .08), transparent 60%),
  rgba(255, 255, 255, .035); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
/* Розовый блик бежит по периметру формы. */
@property --apply-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes apply-orbit { to { --apply-angle: 360deg; } }
.apply-form::before { content: ""; position: absolute; inset: 0; z-index: 0; padding: 2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--apply-angle), transparent 0deg, transparent 230deg, rgba(255, 43, 156, .35) 280deg, var(--pink) 330deg, #ffd1ea 348deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: apply-orbit 6s linear infinite; }
.apply-form > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .apply-form::before { animation: none; } }
.apply-form .two { gap: 12px; }
.apply-form .field label { margin: 0 0 5px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9d9ca0; }
.apply-form .input { min-height: 46px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(0, 0, 0, .28); font-size: 16px; color: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.apply-form .input::placeholder { color: #6f6e74; }
.apply-form .input:hover { border-color: rgba(255, 255, 255, .2); }
.apply-form .input:focus { border-color: var(--pink); background: rgba(0, 0, 0, .4); box-shadow: 0 0 0 4px rgba(255, 43, 156, .18); }
.apply-form textarea.input { min-height: 84px; resize: vertical; }
.apply-form .consent { font-size: 13px; }
.apply-submit { margin-top: 4px; }
.apply-form .btn { width: 100%; min-height: 50px; gap: 10px; border-radius: 999px; background: var(--pink); border-color: var(--pink); color: #000; font-weight: 700; }
.apply-form .btn span { transition: transform .2s; }
.apply-form .btn:hover { background: #fff; border-color: #fff; color: #000; }
.apply-form .btn:hover span { transform: translateX(4px); }
.apply-form .form-msg:empty { display: none; }
@media (min-width: 561px) { .apply-form .btn { width: auto; padding: 0 30px; } }
@media (max-width: 860px) { .apply-form { max-width: none; } }


/* ---------- Цветные маркеры статусов ---------- */
.sdot { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--sdot, #a7adb4); vertical-align: 1px; }
.sdot-available { --sdot: #2fbf71; }
.sdot-reserved { --sdot: #f5b800; }
.sdot-auction { --sdot: #8b5cf6; }
.sdot-sold { --sdot: var(--pink); }
.sdot-unavailable { --sdot: #a7adb4; }
.price-line .sdot { width: 12px; height: 12px; margin-right: 0; }
.specs dd.status, .lbl .st, .featured-work-price { display: inline-flex; align-items: center; }
.specs dd.status { display: flex; }

/* ---------- Страница «Художники»: карточки ---------- */
.artist-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.artist-card { display: flex; flex-direction: column; height: 100%; padding: 10px; border: 1px solid var(--rule); border-radius: 22px; background: var(--label); color: var(--ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.artist-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); }
.ac-cover { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--wall-deep); }
.ac-tile { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ac-tile-0 { grid-row: 1 / 3; }
.artist-card:hover .ac-tile { transform: scale(1.05); }
.ac-n1 .ac-tile-0 { grid-column: 1 / 3; }
.ac-n2 .ac-tile-1 { grid-row: 1 / 3; }
.ac-n0 { display: grid; place-items: center; grid-template-columns: 1fr; background: linear-gradient(135deg, rgba(255, 43, 156, .22), transparent 70%), var(--wall-deep); }
.ac-empty { color: var(--muted); font-size: 14px; font-weight: 600; }
.ac-body { position: relative; display: flex; flex-direction: column; padding: 0 10px 12px; }
.ac-avatar { width: 72px; height: 72px; margin-top: -36px; margin-bottom: 12px; border: 4px solid var(--label); border-radius: 50%; object-fit: cover; background: var(--wall-deep); }
.ac-initials { display: grid; place-items: center; background: var(--pink); color: #000; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.ac-name { font-family: var(--display); font-size: clamp(21px, 2vw, 26px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; transition: color .2s; }
.artist-card:hover .ac-name { color: var(--pink); }
.ac-city { margin-top: 4px; color: var(--muted); font-size: 15px; }
.ac-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ac-stats span { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ac-stats .ac-ar { border-color: transparent; background: rgba(255, 43, 156, .14); color: var(--pink-ink); }
html[data-theme="dark"] .ac-stats .ac-ar, html[data-theme="black"] .ac-stats .ac-ar { color: var(--pink); }
@media (max-width: 960px) { .artist-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .artist-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- «Художники»: поиск, фильтры и компактный список ---------- */
.toolbar .artists-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.at-filters { gap: 8px; }
.at-search { order: 1; flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--label); color: var(--ink); font-size: 16px; }
.at-search:focus, .at-select:focus { outline: none; border-color: var(--ink); }
.at-view { order: 2; flex: 0 0 auto; border-radius: 10px; overflow: hidden; }
.at-filters { order: 3; flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.at-select { flex: 1 1 200px; min-height: 44px; padding: 0 34px 0 12px; border: 1.5px solid var(--rule); border-radius: 10px; color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none; background: var(--label) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; }
.at-check { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--label); font-size: 16px; white-space: nowrap; cursor: pointer; user-select: none; }
.at-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--pink); }
.at-check:has(input:checked) { border-color: var(--ink); }
#a-line { margin-bottom: 20px; }
.artist-minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.artist-mini { display: flex; flex-direction: column; height: 100%; padding: 8px 8px 14px; border: 1px solid var(--rule); border-radius: 18px; background: var(--label); color: var(--ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.artist-mini:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.am-cover { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 43, 156, .22), transparent 70%), var(--wall-deep); }
.am-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.artist-mini:hover .am-cover img { transform: scale(1.05); }
.am-avatar { width: 44px; height: 44px; margin: -22px 0 8px 8px; border: 3px solid var(--label); border-radius: 50%; object-fit: cover; background: var(--wall-deep); position: relative; }
.artist-mini .ac-initials { font-size: 15px; }
.am-name { padding: 0 6px; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; transition: color .2s; }
.artist-mini:hover .am-name { color: var(--pink); }
.am-meta { margin-top: 3px; padding: 0 6px; color: var(--muted); font-size: 13px; line-height: 1.3; }
@media (max-width: 1100px) { .artist-minis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .artist-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .artist-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .at-filters .at-select { flex-basis: 100%; }
  .at-check { font-size: 15px; padding: 0 10px; }
}
@media (max-width: 839px) { .at-view { display: none; } }

/* ---------- Сворачивание панели фильтров до поиска ---------- */
.toolbar-collapse { order: 2; position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--label); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.toolbar-collapse:hover { border-color: var(--ink); }
.toolbar:not(.collapsed) .toolbar-collapse { border-color: var(--ink); }
.toolbar-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); opacity: 0; transition: opacity .2s; }
.toolbar.collapsed.has-active .toolbar-dot { opacity: 1; }
.toolbar.collapsed .wrap > :not(.search):not(.at-search):not(.toolbar-collapse):not(.sr) { display: none !important; }
/* Одинаковая ширина переключателя вида в галерее и у художников — поле поиска одной ширины. */
.toolbar .view-switch { width: 190px; }
.toolbar .view-switch button { flex: 1 1 0; padding: 0 10px; }

/* ---------- Страница художника: портрет как картина на стене, рядом этикетка ---------- */
.artist-page { grid-template-areas: "photo side"; padding-top: clamp(16px, 2.5vw, 32px); padding-bottom: clamp(32px, 4vw, 56px); }
.artist-photo { grid-area: photo; }
.artist-page .work-wall { min-height: 0; padding: clamp(20px, 3.5vw, 48px); }
.artist-photo .crumbs { margin: 0; padding-top: 24px; line-height: 1.2; }  /* сверху столько же, сколько отступ до этикетки снизу */
.artist-page .work-wall .portrait { display: block; width: min(100%, 460px); height: auto; aspect-ratio: 1; object-fit: cover; box-shadow: 0 2px 2px rgba(0,0,0,.12), 0 30px 50px -20px rgba(0,0,0,.45); }
.artist-page .portrait-initials { display: grid; place-items: center; background: var(--pink); color: #000; font-family: var(--display); font-size: clamp(64px, 10vw, 140px); font-weight: 800; letter-spacing: -.05em; }
.artist-page .big-label .city { margin-top: 0; font-size: 18px; }
.artist-bio { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.artist-page .facts { margin-top: 22px; padding: 18px 0 0; background: none; border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .artist-page { grid-template-areas: "photo" "side"; } .artist-page .work-wall { min-height: 0; } }
