/* Произведение СЭМПОЛ — авторский слой поверх Pro (синий + золото).
   Копирование: body.art-guard блокирует, body.art-author — свободно. */

body.art-guard {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.art-guard input,
body.art-guard textarea,
body.art-guard select,
body.art-guard [contenteditable="true"],
body.art-guard .allow-copy,
body.art-guard [data-allow-copy] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
body.art-author {
  -webkit-user-select: text;
  user-select: text;
}

/* водяной знак на скриншотах (не для автора) — слабый, под UI, без кликов */
body.art-guard::after {
  content: "© СЭМПОЛ";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  color: rgba(196, 165, 116, .03);
  -webkit-text-fill-color: rgba(196, 165, 116, .03);
  text-transform: uppercase;
  transform: rotate(-18deg);
  white-space: nowrap;
  opacity: 1;
}

body.art-author .art-mark,
body.art-guard .art-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-bright, #e2d0b0);
  opacity: .75;
}

/* —— Вход как первый экран произведения —— */
body.login-page {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px 40px;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(226, 208, 176, .14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 80%, rgba(26, 39, 68, .9), transparent 50%),
    linear-gradient(165deg, #07090e 0%, #0b1020 40%, #1a2744 100%);
  color: #f5f2eb;
  font-family: "Manrope", system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}
body.login-page::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%);
}
body.login-page .login {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
}
body.login-page .login .card {
  background: rgba(14, 18, 32, .72);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(196, 165, 116, .28);
  border-radius: 22px;
  padding: 28px 26px 22px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 24px 64px rgba(0, 0, 0, .45),
    0 0 80px rgba(196, 165, 116, .08);
  animation: opus-rise .7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes opus-rise {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
body.login-page .login img {
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 4px 16px rgba(196, 165, 116, .35));
}
body.login-page .brand-line {
  display: block;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #e2d0b0;
  margin: 0 0 4px;
}
body.login-page .login h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  color: #f5f2eb;
  line-height: 1.15;
}
body.login-page .login .muted {
  text-align: center;
  color: #c5cdd8 !important;
  opacity: 1 !important;
  font-size: 13px !important;
  line-height: 1.45;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}
body.login-page .login label {
  color: #e2d0b0;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}
body.login-page .login input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(196, 165, 116, .22);
  color: #f5f2eb;
  border-radius: 12px;
  min-height: 46px;
}
body.login-page .login input:focus {
  border-color: rgba(226, 208, 176, .55);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, .18);
  outline: none;
}
body.login-page .login button.primary {
  background: linear-gradient(180deg, #e2d0b0, #c4a574);
  color: #1a1520;
  font-weight: 700;
  border-radius: 12px;
  min-height: 48px;
  margin-top: 8px;
  box-shadow: 0 8px 28px rgba(196, 165, 116, .28);
  letter-spacing: .02em;
}
body.login-page .login button.primary:hover {
  filter: brightness(1.05);
}
body.login-page .login-tabs button {
  border-color: rgba(196, 165, 116, .25);
  color: #c5cdd8;
}
body.login-page .login-tabs button.on {
  background: rgba(196, 165, 116, .18);
  color: #e2d0b0;
  border-color: rgba(196, 165, 116, .45);
}
body.login-page .opus-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(226, 208, 176, .45);
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Pro-бренд: чуть сильнее «галерея» */
body.ui-pro.art-author .brand,
body.ui-pro.art-guard .brand {
  font-size: 24px;
}
body.ui-pro .page h1 {
  background: linear-gradient(120deg, #f5f2eb 0%, #e2d0b0 55%, #c4a574 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.ui-pro .opus-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 165, 116, .35);
  background: linear-gradient(180deg, rgba(226,208,176,.12), rgba(196,165,116,.06));
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
}

/* —— Пульт: главная как произведение · Производство —— */
.opus-home {
  position: relative;
  margin: 0 0 22px;
  min-height: min(42vh, 360px);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  animation: opus-rise .75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.opus-home-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(226, 208, 176, .16), transparent 55%),
    radial-gradient(ellipse 55% 50% at 88% 72%, rgba(26, 39, 68, .95), transparent 52%),
    linear-gradient(155deg, #07090e 0%, #0b1020 38%, #152a48 72%, #1a2744 100%);
}
.opus-home-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 40%, rgba(196, 165, 116, .07) 50%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  animation: opus-sheen 14s ease-in-out infinite;
}
@keyframes opus-sheen {
  0%, 100% { opacity: .85; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(2%); }
}
.opus-home-plane::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(226, 208, 176, .22), transparent 55%),
    radial-gradient(circle at 60% 60%, rgba(90, 130, 200, .18), transparent 60%);
  filter: blur(2px);
  pointer-events: none;
  animation: opus-glow 9s ease-in-out infinite alternate;
}
@keyframes opus-glow {
  from { transform: scale(1) translate(0, 0); opacity: .7; }
  to { transform: scale(1.08) translate(-3%, -2%); opacity: 1; }
}
.opus-home-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 36px) clamp(24px, 4vw, 40px);
  min-height: inherit;
  border: 1px solid rgba(196, 165, 116, .28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    0 28px 64px rgba(0, 0, 0, .35);
}
.opus-home-copy {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 36em;
}
.opus-brand {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e2d0b0;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(196, 165, 116, .25);
  animation: opus-rise .8s cubic-bezier(0.22, 1, 0.36, 1) .05s both;
}
.opus-home .opus-ribbon {
  margin-bottom: 14px;
  color: #e2d0b0;
  animation: opus-rise .8s cubic-bezier(0.22, 1, 0.36, 1) .1s both;
}
.opus-home #home-title,
#v-home .opus-home #home-title {
  margin: 0 0 10px !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(36px, 7vw, 64px) !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  line-height: 1.05 !important;
  background: linear-gradient(120deg, #f5f2eb 0%, #e2d0b0 50%, #c4a574 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: opus-rise .85s cubic-bezier(0.22, 1, 0.36, 1) .15s both;
}
.opus-home #home-lead,
#v-home .opus-home #home-lead {
  margin: 0 0 20px !important;
  max-width: 32em;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #c5cdd8 !important;
  animation: opus-rise .85s cubic-bezier(0.22, 1, 0.36, 1) .2s both;
}
.opus-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: opus-rise .9s cubic-bezier(0.22, 1, 0.36, 1) .28s both;
}
.opus-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1), filter .2s, background .2s, border-color .2s;
}
.opus-cta-primary {
  background: linear-gradient(180deg, #e2d0b0, #c4a574);
  color: #1a1520 !important;
  box-shadow: 0 8px 28px rgba(196, 165, 116, .3);
  border: 1px solid rgba(226, 208, 176, .5);
}
.opus-cta-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}
.opus-cta-ghost {
  background: rgba(255, 255, 255, .05);
  color: #e2d0b0 !important;
  border: 1px solid rgba(196, 165, 116, .35);
}
.opus-cta-ghost:hover {
  background: rgba(196, 165, 116, .12);
  border-color: rgba(226, 208, 176, .55);
  transform: translateY(-2px);
}
.opus-home .home-ambient {
  margin-top: 0;
  align-self: flex-start;
  animation: opus-rise .9s cubic-bezier(0.22, 1, 0.36, 1) .22s both;
}
.opus-home .home-clock,
.opus-home .home-weather {
  background: rgba(7, 9, 14, .45) !important;
  border-color: rgba(196, 165, 116, .28) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.opus-home .hc-time,
.opus-home .hw-temp { color: #e2d0b0 !important; }
.opus-home .hc-date,
.opus-home .hw-meta,
.opus-home .hc-sec { color: #9aafcc !important; }

/* простой режим: компактнее, но бренд остаётся */
body.ui-simple .opus-home { min-height: 0; margin-bottom: 14px; }
body.ui-simple .opus-home-inner { padding: 20px 16px 18px; }
body.ui-simple .opus-brand { font-size: 22px; letter-spacing: .1em; }
body.ui-simple .opus-home #home-title { font-size: clamp(28px, 8vw, 40px) !important; }
body.ui-simple .opus-cta a { min-height: 40px; padding: 0 14px; font-size: 13px; }

@media (max-width: 560px) {
  .opus-home-inner { align-items: stretch; }
  .opus-home .home-ambient { width: 100%; }
  .opus-cta { width: 100%; }
  .opus-cta a { flex: 1 1 calc(50% - 10px); }
}

@media (max-width: 760px) {
  body.login-page {
    background: linear-gradient(180deg, #0b1020, #1a2744) !important;
    padding: 16px;
  }
  body.login-page .login h1 { font-size: 30px; }
  body.login-page .login button.primary {
    background: linear-gradient(180deg, #e2d0b0, #c4a574) !important;
    color: #1a1520 !important;
  }
}
