/* ===== Палитра ===== */
:root {
  --alice: #E2ECF5;
  --wisteria: #A4A7E3;
  --majorelle: #6A4DD4;
  --orchid: #6E3377;
  --prussian: #000229;

  --ink: var(--prussian);
  --ink-soft: #3b3a66;
  --on-dark: #F3F6FB;
  --glass: rgba(226, 236, 245, 0.78);
  --glass-strong: rgba(226, 236, 245, 0.92);
  --glass-dark: rgba(0, 2, 41, 0.35);
  --line: rgba(0, 2, 41, 0.1);
  --danger: #B3365B;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;

  --shadow: 0 24px 60px -28px rgba(0, 2, 41, 0.55);
  --shadow-sm: 0 10px 30px -18px rgba(0, 2, 41, 0.5);

  --font-display: 'Prata', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #3a2a8a;
  -webkit-font-smoothing: antialiased;
}

/* Мягкий «лучистый» фон как на палитре */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background: conic-gradient(from 210deg at 62% 18%,
    #2c2f6e 0deg, #8c7fd6 30deg, #cfd3f2 60deg, #6A4DD4 110deg,
    #3d1f5c 160deg, #A4A7E3 210deg, #c3c7ee 240deg, #6E3377 290deg, #2c2f6e 360deg);
  filter: blur(60px);
}
body::after {
  z-index: -1;
  background:
    radial-gradient(40% 35% at 68% 12%, rgba(0, 2, 41, 0.55), transparent 70%),
    radial-gradient(50% 40% at 20% 85%, rgba(164, 167, 227, 0.45), transparent 70%),
    radial-gradient(45% 45% at 95% 70%, rgba(110, 51, 119, 0.45), transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }

.sparkle { width: 1em; height: 1em; flex: none; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ===== Кнопки ===== */
.btn {
  --bg: var(--alice);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.4em;
  border: 0;
  border-radius: var(--pill);
  background: var(--bg);
  color: var(--fg);
  font: 700 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, opacity 0.2s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { --bg: var(--majorelle); --fg: #fff; }
.btn-primary:hover { --bg: #5b3fc4; }
.btn-dark { --bg: var(--prussian); --fg: var(--alice); }
.btn-orchid { --bg: var(--orchid); --fg: #fff; }
.btn-ghost { --bg: rgba(226, 236, 245, 0.25); --fg: var(--on-dark); box-shadow: none; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { --bg: rgba(226, 236, 245, 0.4); }
.btn-soft { --bg: rgba(106, 77, 212, 0.12); --fg: var(--majorelle); box-shadow: none; }
.btn-soft:hover { --bg: rgba(106, 77, 212, 0.2); }
.btn-danger { --bg: rgba(179, 54, 91, 0.12); --fg: var(--danger); box-shadow: none; }
.btn-danger:hover { --bg: rgba(179, 54, 91, 0.2); }
.btn-sm { padding: 0.55em 1em; font-size: 0.85rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--glass-strong);
  color: var(--ink);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.icon-btn:hover { transform: scale(1.08); background: #fff; }

:focus-visible { outline: 3px solid var(--wisteria); outline-offset: 3px; border-radius: var(--r-sm); }

/* ===== Навигация ===== */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100% - 32px);
  margin: 16px auto 0;
  padding: 10px 10px 10px 20px;
  border-radius: var(--pill);
  background: rgba(0, 2, 41, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--on-dark);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.3rem;
  text-decoration: none; color: var(--on-dark);
  min-width: 0;
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .sparkle { color: var(--wisteria); font-size: 1.2em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 0.55em 1em;
  border-radius: var(--pill);
  text-decoration: none;
  font-weight: 700; font-size: 0.92rem;
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(226, 236, 245, 0.18); }
.nav-links a.nav-cta { background: var(--alice); color: var(--majorelle); }
.nav-links a.nav-cta:hover { background: #fff; }

/* ===== Секции ===== */
.section { margin-top: 72px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; color: var(--on-dark);
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
/* Белый текст прямо на фоне: тень у заголовка и мягкая подложка у мелкого текста —
   чтобы читалось и над светлыми участками градиента */
.section-head h2 { text-shadow: 0 1px 2px rgba(0, 2, 41, 0.35), 0 2px 18px rgba(0, 2, 41, 0.45); }
.section-head p {
  display: inline-block;
  max-width: 560px;
  margin-top: 8px;
  padding: 0.45em 0.95em;
  border-radius: var(--r-md);
  background: rgba(0, 2, 41, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-head p:empty { display: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--majorelle);
}

/* ===== Герой ===== */
.hero { margin-top: 40px; }
.hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
}
.avatar {
  width: 200px; aspect-ratio: 1;
  border-radius: 48px;
  background: linear-gradient(145deg, var(--wisteria), var(--majorelle));
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--alice);
  font-size: 80px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--majorelle); margin: 6px 0 10px; }
.hero .tagline { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .btn-ghost { --fg: var(--majorelle); border-color: rgba(106, 77, 212, 0.35); }

/* ===== Фильтр тегов ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 0.45em 1em;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(226, 236, 245, 0.18);
  color: var(--on-dark);
  font: 700 0.85rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip:hover { background: rgba(226, 236, 245, 0.32); }
.chip.active { background: var(--alice); color: var(--majorelle); border-color: var(--alice); }
.chip.static { cursor: default; background: rgba(106, 77, 212, 0.1); color: var(--majorelle); border-color: transparent; }

/* ===== Галерея (masonry) ===== */
.masonry { columns: 3 300px; column-gap: 20px; }
.art-card {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  display: block; width: 100%; padding: 0; border: 0; text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: rise 0.6s var(--ease) both;
}
.art-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -28px rgba(0, 2, 41, 0.7); }
.art-card img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.art-card:hover img { transform: scale(1.03); }
.art-card .art-caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: rgba(0, 2, 41, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--alice);
  font-family: var(--font-display);
  font-size: 1.1rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.art-card:hover .art-caption, .art-card:focus-visible .art-caption { opacity: 1; transform: none; }
@media (hover: none) { .art-card .art-caption { opacity: 1; transform: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ===== Переключатель языка ===== */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  margin: 0 4px;
  border-radius: var(--pill);
  background: rgba(226, 236, 245, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.lang-switch button {
  padding: 0.4em 0.75em;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--on-dark);
  font: 800 0.8rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button[aria-pressed='true'] { background: var(--alice); color: var(--majorelle); }

.demo-note {
  margin-top: 8px;
  display: inline-block;
  padding: 0.3em 0.9em;
  border-radius: var(--pill);
  background: var(--orchid);
  font-size: 0.8rem;
}

/* ===== Лайтбокс ===== */
.lb-media { position: relative; }
.lb-loading {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  padding: 0.45em 1em;
  border-radius: var(--pill);
  background: rgba(0, 2, 41, 0.65);
  color: var(--alice);
  font-weight: 700; font-size: 0.85rem;
  white-space: nowrap;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.55; } }
.lb-meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; }
.lb-media:fullscreen { background: #000; }
.lb-media:fullscreen img { max-height: 100vh; max-width: 100vw; }

/* Защита артов: картинку нельзя выделить, перетащить или сохранить долгим нажатием.
   Прозрачный «щит» поверх просмотра перехватывает правый клик. */
.protected, .art-card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected img, .art-card img { -webkit-user-drag: none; pointer-events: none; }
.shield { position: absolute; inset: 0; z-index: 1; }

/* Пока превью грузится — мягкий переливающийся фон нужного размера */
.art-card img { opacity: 0; transition: opacity 0.5s, transform 0.6s var(--ease); background: transparent; }
.art-card.loaded img { opacity: 1; }
.art-card:not(.loaded) {
  background: linear-gradient(110deg, rgba(164, 167, 227, 0.35) 30%, rgba(226, 236, 245, 0.6) 50%, rgba(164, 167, 227, 0.35) 70%);
  background-size: 250% 100%;
  animation: rise 0.6s var(--ease) both, shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }
.pin-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 0.3em 0.85em;
  border-radius: var(--pill);
  background: var(--alice);
  color: var(--majorelle);
  font-size: 0.78rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* Альбомы (серии) */
.album-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 24px; }
.album-pill {
  padding: 0.7em 1.4em;
  border: 0;
  border-radius: var(--r-md);
  background: var(--glass);
  color: var(--ink);
  font: 400 1.05rem/1.2 var(--font-display);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.album-pill:hover { transform: translateY(-2px); }
.album-pill.active { background: var(--majorelle); color: #fff; }

/* Переключатель темы */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  margin-right: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(226, 236, 245, 0.16);
  color: var(--on-dark);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.3s var(--ease);
}
.theme-toggle:hover { background: rgba(226, 236, 245, 0.28); box-shadow: 0 0 0 4px rgba(226, 236, 245, 0.1), 0 0 20px rgba(164, 167, 227, 0.55); }

/* Иконка темы: в светлой теме — луна, в тёмной — солнце; переход плавный, без вращения */
.tt-icon { width: 20px; height: 20px; overflow: visible; transition: transform 0.3s var(--ease); }
.theme-toggle:hover .tt-icon { transform: scale(1.12); }
.tt-core, .tt-cut, .tt-rays line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s var(--ease), opacity 0.35s;
}
.tt-core { transform: scale(1.7); }
.tt-rays line { transform: scale(0); opacity: 0; transition-delay: 0s; }
[data-theme='dark'] .tt-core { transform: scale(1); }
[data-theme='dark'] .tt-cut { transform: translate(9px, -9px); }
[data-theme='dark'] .tt-rays line { transform: scale(1); opacity: 1; transition-delay: calc(0.15s + var(--i) * 40ms); }
.menu-toggle { display: none; }
.menu-toggle:hover { transform: none; }

/* Меню разделов на телефоне */
.mobile-menu {
  position: fixed; top: 84px; left: 16px; right: 16px; z-index: 49;
  display: grid; gap: 4px;
  padding: 10px;
  border-radius: var(--r-lg);
  animation: pop 0.25s var(--ease) both;
}
.mobile-menu a {
  padding: 0.85em 1.1em;
  border-radius: var(--r-md);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: rgba(106, 77, 212, 0.12); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.switch input:disabled + .track { opacity: 0.4; }
.switch:has(input:disabled) { cursor: not-allowed; }
.rights { margin-top: 6px; font-weight: 600; font-size: 0.8rem; opacity: 0.75; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0, 2, 41, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade 0.25s both; }
.lb-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  width: min(1200px, 100%);
  max-height: calc(100vh - 32px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  animation: pop 0.35s var(--ease) both;
}
.lb-media { background: var(--prussian); display: grid; place-items: center; min-height: 300px; }
.lb-media img { max-height: calc(100vh - 32px); width: auto; object-fit: contain; }
.lb-info { padding: 32px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.lb-info h3 { font-size: 1.9rem; color: var(--majorelle); padding-right: 40px; }
.lb-info time { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }
.lb-info p { white-space: pre-line; color: var(--ink-soft); }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 14px; }
.lb-next { right: calc(340px + 14px); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(10px); } }

/* ===== Обо мне ===== */
.about { padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.about h2 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--majorelle); margin: 6px 0 14px; }
.about .bio { white-space: pre-line; color: var(--ink-soft); font-size: 1.05rem; }
.about h3 { font-size: 1.4rem; margin-bottom: 14px; color: var(--orchid); }
.socials { display: flex; flex-direction: column; gap: 10px; }
.social {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.social:hover { transform: translateX(4px); background: #fff; }
.social-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  background: var(--majorelle);
}
.social small { display: block; font-weight: 600; color: var(--ink-soft); opacity: 0.8; font-size: 0.8rem; }
.social .arrow { margin-left: auto; color: var(--majorelle); }

/* ===== Поддержка: ряды как на палитре ===== */
.support-text { color: var(--on-dark); opacity: 0.9; max-width: 640px; }
.pay-list { display: grid; gap: 14px; }
.pay-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}
.pay-row:hover { transform: translateX(6px); }
.pay-row.disabled { pointer-events: none; opacity: 0.6; }
.pay-tile, .pay-card { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.pay-tile { display: grid; place-items: center; font-size: 56px; min-height: 120px; }
.pay-card { padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pay-card .pay-name { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.pay-card .pay-sub { display: block; font-size: 0.95rem; opacity: 0.85; margin-top: 4px; }
.pay-card .pay-go {
  flex: none; padding: 0.6em 1.2em; border-radius: var(--pill);
  font-weight: 800; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.18);
}
.tone-alice { background: var(--alice); color: var(--majorelle); }
.tone-wisteria { background: var(--wisteria); color: var(--orchid); }
.tone-majorelle { background: var(--majorelle); color: var(--prussian); }
.tone-majorelle.pay-card { color: #fff; }
.tone-orchid { background: var(--orchid); color: var(--alice); }
.tone-prussian { background: var(--prussian); color: var(--wisteria); }
.tone-prussian.pay-card { color: var(--alice); }

/* ===== Подвал ===== */
.footer {
  width: min(1180px, 100% - 32px);
  margin: 72px auto 24px;
  padding: 16px 24px;
  border-radius: var(--r-md);
  background: rgba(0, 2, 41, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--alice);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Прайс и заказы ===== */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.55em 1.1em;
  border-radius: var(--pill);
  font-weight: 800; font-size: 0.9rem;
  background: var(--alice); color: var(--majorelle);
  box-shadow: var(--shadow-sm);
}
.status-pill::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--majorelle); box-shadow: 0 0 0 4px rgba(106, 77, 212, 0.2); }
.status-pill.closed { background: var(--prussian); color: var(--wisteria); }
.status-pill.closed::before { background: var(--wisteria); box-shadow: none; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.price-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card h3 { font-size: 1.5rem; }
.price-card .price { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.price-card p { opacity: 0.85; white-space: pre-line; }
.price-card .btn { margin-top: auto; align-self: flex-start; --bg: rgba(255, 255, 255, 0.22); --fg: currentColor; box-shadow: none; }
.price-card .btn:hover { --bg: rgba(255, 255, 255, 0.35); }
.price-card.tone-alice .btn, .price-card.tone-wisteria .btn { --bg: rgba(0, 2, 41, 0.08); }
.price-card.tone-majorelle { color: #fff; }
.price-card.tone-prussian { color: var(--alice); }
.price-card.tone-prussian .price { color: var(--wisteria); }

.order-form, .order-done { margin-top: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.order-head h3 { font-size: 1.8rem; color: var(--majorelle); }
.order-head p, .order-hint { color: var(--ink-soft); }
.order-done { align-items: center; text-align: center; }
.order-done h3 { font-size: 1.8rem; color: var(--majorelle); }
.order-done p { color: var(--ink-soft); }

.type-chips .chip { background: rgba(106, 77, 212, 0.1); color: var(--majorelle); border-color: transparent; }
.type-chips .chip:hover { background: rgba(106, 77, 212, 0.18); }
.type-chips .chip.active { background: var(--majorelle); color: #fff; }

.ref-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-item, .ref-add {
  position: relative;
  width: 104px; height: 104px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.ref-item img { width: 100%; height: 100%; object-fit: cover; }
.ref-item .ref-remove {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; font-size: 1rem;
}
.ref-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed rgba(106, 77, 212, 0.45);
  background: rgba(255, 255, 255, 0.45);
  color: var(--majorelle);
  font: 700 0.85rem/1.2 var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ref-add:hover { border-color: var(--majorelle); background: rgba(255, 255, 255, 0.75); }
.ref-add .sparkle { font-size: 26px; }

/* Ловушка для ботов: спрятана от людей и скринридеров */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.login-star {
  width: 84px; height: 84px; margin: 0 auto 4px;
  border-radius: 26px;
  display: grid; place-items: center;
  background: var(--majorelle); color: var(--alice);
  font-size: 44px;
  box-shadow: var(--shadow);
}

/* ===== Формы ===== */
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-error { color: var(--danger); font-weight: 700; min-height: 1.4em; font-size: 0.9rem; }
.form-error:empty { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 800; font-size: 0.85rem; color: var(--ink-soft); }
.field small { color: var(--ink-soft); opacity: 0.8; }
input[type='text'], input[type='password'], input[type='url'], input[type='email'], input[type='datetime-local'], textarea, select {
  width: 100%;
  padding: 0.8em 1.1em;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font: 600 1rem/1.4 var(--font-body);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 120px; }
select { cursor: pointer; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--majorelle); background: #fff; box-shadow: 0 0 0 4px rgba(106, 77, 212, 0.15); }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 52px; height: 30px; border-radius: var(--pill);
  background: rgba(0, 2, 41, 0.18);
  position: relative; transition: background 0.25s;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease);
}
.switch input:checked + .track { background: var(--majorelle); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid var(--wisteria); outline-offset: 3px; }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .lb-dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-media img { max-height: 60vh; }
  .lb-next { right: 14px; }
  .lb-nav { top: 30vh; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { padding-left: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; text-align: center; }
  .avatar { width: 150px; margin-inline: auto; border-radius: 40px; }
  .hero .tagline { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .about { padding: 28px; }
  .pay-row { grid-template-columns: 76px 1fr; }
  .pay-tile { min-height: 96px; font-size: 36px; }
  .pay-card { padding: 18px 20px; flex-direction: column; align-items: flex-start; }
  .pay-card .pay-name { font-size: 1.6rem; }
  .section { margin-top: 56px; }
  .grid-2 { grid-template-columns: 1fr; }
  .order-form, .order-done { padding: 22px; }
  .ref-item, .ref-add { width: 88px; height: 88px; }
}
@media (max-width: 440px) {
  .nav-links a.nav-cta { display: none; }
  .nav { gap: 8px; padding-right: 8px; }
  .nav-links { gap: 2px; }
  .lang-switch { margin: 0 2px; }
  .lang-switch button { padding: 0.4em 0.55em; }
  .theme-toggle { width: 34px; height: 34px; margin-right: 2px; }
}

/* ===== Тёмная тема на основе Prussian Blue ===== */
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #E2ECF5;
  --ink-soft: #B6BAE6;
  --glass: rgba(6, 9, 52, 0.72);
  --glass-strong: rgba(9, 12, 58, 0.96);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  --danger: #FF8FB0;
  --accent-text: #B9AAF7;
}
[data-theme='dark'] body { background: var(--prussian); }
[data-theme='dark'] body::before {
  background: conic-gradient(from 210deg at 62% 18%,
    #000229 0deg, #1c1856 40deg, #3a2a8a 85deg, #000229 140deg,
    #2a1240 200deg, #161a5c 250deg, #4a2160 300deg, #000229 360deg);
}
[data-theme='dark'] body::after {
  background:
    radial-gradient(40% 35% at 68% 12%, rgba(106, 77, 212, 0.28), transparent 70%),
    radial-gradient(50% 40% at 20% 85%, rgba(110, 51, 119, 0.3), transparent 70%),
    radial-gradient(45% 45% at 95% 70%, rgba(0, 2, 41, 0.6), transparent 70%);
}
[data-theme='dark'] .glass { border-color: rgba(164, 167, 227, 0.16); }
[data-theme='dark'] :is(.eyebrow, .hero h1, .about h2, .lb-info h3, .order-head h3, .order-done h3, .social .arrow, .chip.static, .type-chips .chip, .ref-add) { color: var(--accent-text); }
[data-theme='dark'] .about h3 { color: #D9A3DF; }
[data-theme='dark'] .btn-soft { --bg: rgba(164, 167, 227, 0.14); --fg: var(--accent-text); }
[data-theme='dark'] .btn-soft:hover { --bg: rgba(164, 167, 227, 0.24); }
[data-theme='dark'] .btn-danger { --bg: rgba(255, 143, 176, 0.12); }
[data-theme='dark'] .hero-actions .btn-ghost { --fg: var(--accent-text); border-color: rgba(164, 167, 227, 0.35); }
[data-theme='dark'] .chip.static, [data-theme='dark'] .type-chips .chip { background: rgba(164, 167, 227, 0.12); }
[data-theme='dark'] .type-chips .chip.active { background: var(--majorelle); color: #fff; }
[data-theme='dark'] .social { background: rgba(226, 236, 245, 0.06); }
[data-theme='dark'] .social:hover { background: rgba(226, 236, 245, 0.12); }
[data-theme='dark'] .icon-btn:hover { background: #1b1f6e; }
[data-theme='dark'] :is(input[type='text'], input[type='password'], input[type='url'], input[type='email'], input[type='datetime-local'], textarea, select) { background: rgba(226, 236, 245, 0.07); color: var(--ink); }
[data-theme='dark'] :is(input, textarea, select):focus { background: rgba(226, 236, 245, 0.12); }
[data-theme='dark'] .switch .track { background: rgba(226, 236, 245, 0.18); }
[data-theme='dark'] .ref-add { background: rgba(226, 236, 245, 0.05); }
[data-theme='dark'] .art-card:not(.loaded) { background: linear-gradient(110deg, rgba(28, 24, 86, 0.8) 30%, rgba(58, 42, 138, 0.8) 50%, rgba(28, 24, 86, 0.8) 70%); background-size: 250% 100%; }
[data-theme='dark'] .album-pill { background: rgba(226, 236, 245, 0.1); border: 1px solid rgba(164, 167, 227, 0.28); }
[data-theme='dark'] .album-pill.active { background: var(--wisteria); color: var(--prussian); border-color: var(--wisteria); }
[data-theme='dark'] .mobile-menu a:hover, [data-theme='dark'] .mobile-menu a:focus-visible { background: rgba(164, 167, 227, 0.14); }

/* ===== Модальное окно (подтверждение удаления, возраста) ===== */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; width: min(420px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 14px; animation: pop 0.3s var(--ease) both; }
.modal-card h3 { font-size: 1.5rem; color: var(--majorelle); }
.modal-card p { color: var(--ink-soft); }
.modal-card .form-actions { justify-content: flex-end; }
[data-theme='dark'] .modal-card h3 { color: var(--accent-text); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; accent-color: var(--majorelle); cursor: pointer; }

/* ===== 18+ работы ===== */
.gallery-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.nsfw-toggle { white-space: nowrap; }
.nsfw-toggle[aria-pressed='true'] { background: rgba(110, 51, 119, 0.55); border-color: transparent; }
/* Пока возраст не подтверждён — сильное размытие; после подтверждения работа плавно проявляется */
.art-card.nsfw img, .lb-media.nsfw img { filter: blur(30px) saturate(0.85) !important; transform: scale(1.15) !important; }
.lb-media img { transition: opacity 0.35s var(--ease), filter 0.7s var(--ease), transform 0.7s var(--ease); }
.nsfw-cover {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  border: 0;
  background: rgba(0, 2, 41, 0.3);
  color: #fff;
  font: inherit;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.art-card.nsfw .nsfw-cover, .lb-media.nsfw .nsfw-cover { opacity: 1; }
.lb-media.nsfw .nsfw-cover { pointer-events: auto; cursor: pointer; }
.nsfw-cover b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; text-shadow: 0 2px 12px rgba(0, 2, 41, 0.6); }
.nsfw-cover small { font-weight: 700; font-size: 0.82rem; opacity: 0.92; }
.nsfw-eye {
  width: 22px; height: 22px;
  padding: 10px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(226, 236, 245, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.art-card.nsfw .art-caption { opacity: 0 !important; }
.nsfw-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  padding: 0.25em 0.75em;
  border-radius: var(--pill);
  background: var(--orchid);
  color: #fff;
  font-size: 0.75rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nsfw-mark {
  width: 64px; height: 64px;
  margin: 0 auto 2px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--orchid);
  color: #fff;
  font-size: 1.3rem; font-weight: 800;
  box-shadow: var(--shadow);
  animation: star-pop 0.6s cubic-bezier(.3, 1.6, .5, 1) both;
}
#nsfwModal .modal-card { text-align: center; }
#nsfwModal .check { justify-content: center; }
#nsfwModal .form-actions { justify-content: center; }

/* ===== Анимации ===== */

/* Смена темы: новая тема растекается кругом от кнопки */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal 0.7s var(--ease) both; }
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
  to { clip-path: circle(var(--vt-r, 150%) at var(--vt-x, 50%) var(--vt-y, 0)); }
}

/* Волна от нажатия */
.btn, .chip, .album-pill, .theme-toggle, .pay-card, .lang-switch button, .tab { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
  transform: scale(0);
  pointer-events: none;
  animation: ripple 0.65s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Шапка уплотняется при прокрутке */
.nav { transition: background 0.35s, box-shadow 0.35s, padding 0.35s var(--ease); }
.nav.scrolled { background: rgba(0, 2, 41, 0.62); box-shadow: 0 16px 40px -22px rgba(0, 2, 41, 0.8); }

/* Появление при прокрутке (классы ставит скрипт — без него всё видно сразу) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; }
.reveal-group.in > * { animation: rise-in 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Герой: аватар «парит», искорки мерцают, по имени пробегает блик */
.avatar { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.eyebrow .sparkle, .avatar > .sparkle, .brand .sparkle, .login-star .sparkle { animation: twinkle 3.2s ease-in-out infinite; }
.brand .sparkle { animation-duration: 4.4s; }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.78); opacity: 0.7; } }
.hero h1 {
  background: linear-gradient(100deg, var(--majorelle) 0%, var(--majorelle) 38%, #A98EF5 48%, var(--orchid) 56%, var(--majorelle) 66%, var(--majorelle) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
[data-theme='dark'] .hero h1 {
  background-image: linear-gradient(100deg, var(--accent-text) 0%, var(--accent-text) 38%, #F3F6FB 48%, #D9A3DF 56%, var(--accent-text) 66%, var(--accent-text) 100%);
}
@keyframes sheen { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }

/* Очень медленное переливание фона — только на компьютере, чтобы не тратить батарею телефона */
@media (hover: hover) and (min-width: 900px) {
  body::before { will-change: transform; animation: drift 38s ease-in-out infinite alternate; }
}
@keyframes drift { to { transform: translate(-3%, 2%) scale(1.12); } }

/* Превью проявляется из размытия */
.art-card img { filter: blur(14px); transform: scale(1.06); transition: opacity 0.6s, filter 0.7s var(--ease), transform 0.7s var(--ease); }
.art-card.loaded img { filter: none; transform: none; }
.art-card.loaded:hover img { transform: scale(1.04); }

/* Карточки прайса, строки поддержки и соцсетей — мягкий подъём и свечение при наведении */
.price-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -24px rgba(0, 2, 41, 0.7); }
.pay-tile .sparkle { transition: transform 0.45s var(--ease); }
.pay-row:hover .pay-tile .sparkle { transform: scale(1.18); }
.pay-row:hover .pay-card { box-shadow: 0 20px 44px -22px rgba(0, 2, 41, 0.75); }

/* Переключатель языка: выделение переезжает между EN и RU */
.lang-switch { position: relative; isolation: isolate; }
.lang-switch::before {
  content: '';
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: var(--pill);
  background: var(--alice);
  z-index: -1;
  transition: transform 0.45s var(--ease);
}
.lang-switch[data-active='ru']::before { transform: translateX(100%); }
.lang-switch button { flex: 1; min-width: 2.4em; transition: color 0.3s; }
.lang-switch button[aria-pressed='true'] { background: transparent; color: var(--majorelle); }

/* «Заказы открыты» — точка мягко пульсирует */
.status-pill:not(.closed)::before { animation: pulse-dot 2.2s ease-out infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(106, 77, 212, 0.45); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(106, 77, 212, 0); }
}

/* Заявка отправлена — звёздочка выпрыгивает */
.order-done:not([hidden]) .login-star { animation: star-pop 0.8s cubic-bezier(.3, 1.6, .5, 1) both; }
.order-done:not([hidden]) h3, .order-done:not([hidden]) p, .order-done:not([hidden]) .btn { animation: rise-in 0.6s var(--ease) both; animation-delay: 0.25s; }
@keyframes star-pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }

/* Меню на телефоне: пункты выезжают по очереди */
.mobile-menu a { animation: rise-in 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* Просмотрщик: работы плавно сменяют друг друга, окно мягко закрывается */
.lb-media img.fading { opacity: 0; }
.lightbox.closing .lb-backdrop { animation: fade 0.25s reverse both; }
.lightbox.closing .lb-dialog { animation: pop 0.25s var(--ease) reverse both; }

/* Галочки, чипы и альбомы плавно меняют цвет */
.chip, .album-pill { transition: background 0.3s, color 0.3s, transform 0.25s var(--ease), border-color 0.3s; }

/* На телефонах и планшетах «наведение» залипает после касания (значок темы оставался повёрнутым,
   кнопки и карточки — сдвинутыми). Эффекты наведения — только для мыши, на касание — короткий отклик. */
@media (hover: none) {
  .btn:hover, .icon-btn:hover, .theme-toggle:hover, .art-card:hover, .art-card:hover img,
  .social:hover, .pay-row:hover, .album-pill:hover { transform: none; }
  .lb-nav:hover { transform: translateY(-50%); }
  .art-card.loaded:hover img, .price-card:hover, .pay-row:hover .pay-tile .sparkle, .theme-toggle:hover .tt-icon { transform: none; }
  .price-card:hover { box-shadow: var(--shadow-sm); }
  .pay-row:hover .pay-card { box-shadow: var(--shadow-sm); }
  .theme-toggle:hover { background: rgba(226, 236, 245, 0.16); box-shadow: none; }
  .icon-btn:hover { background: var(--glass-strong); }
  .btn:active, .icon-btn:active, .theme-toggle:active, .album-pill:active { transform: scale(0.94); }
  .lb-nav:active { transform: translateY(-50%) scale(0.94); }
}

/* Посетитель попросил систему уменьшить движение: убираем всё, что едет, парит и пульсирует,
   но оставляем плавные проявления и смену цветов — они не укачивают */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .avatar, .sparkle, .hero h1, .status-pill::before, .art-card:not(.loaded) { animation: none !important; }
  .reveal { transform: none; transition: opacity 0.6s ease; }
  .reveal-group.in > *, .mobile-menu a, .order-done:not([hidden]) *, [data-panel]:not([hidden]),
  .post-item, .order-card, .rank-row, .art-card, .toast { animation-name: fade-in !important; }
  .order-done:not([hidden]) .login-star { animation: fade-in 0.5s both !important; }
  .art-card img { transform: none !important; }
  .btn:hover, .price-card:hover, .pay-row:hover, .album-pill:hover, .art-card:hover, .social:hover { transform: none; }
  .ripple { animation-duration: 0.4s; }
  ::view-transition-new(root) { animation: fade-in 0.45s ease both; }
}
@keyframes fade-in { from { opacity: 0; } }
