/* public/assets/css/style.css — минимальный дизайн для теста публичного сайта */
:root {
  color-scheme: light;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --site-max-width: 68rem;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #fafafa;
  color: #18181b;
}

/* Ссылки по умолчанию — оранжевые (и посещённые тоже). */
a { color: var(--accent, #ea580c); }
a:visited { color: var(--accent, #ea580c); }
a:hover { color: var(--accent-hover, #c2410c); }

/* Шапка и подвал */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(250,250,250,.95);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  transform: translateY(4px);
}
.site-logo-img {
  display: block;
  max-height: 3rem;
  height: 3rem;
  width: auto;
  min-height: 2rem;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}
.site-logo:hover .site-logo-img { opacity: 0.9; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  position: relative;
}
.site-nav a {
  color: #52525b;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }
.site-nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  text-decoration: none;
  border: none;
}
.site-nav .btn:hover { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.site-nav__current {
  font-weight: 600;
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.header-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.header-logout:hover {
  color: var(--accent-hover, #c2410c);
  background: rgba(234, 88, 12, 0.1);
}
.header-logout__icon {
  flex-shrink: 0;
}

/* Шапка ЛК — компактно и понятно */
.site-header--cabinet .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.25rem;
}
.site-header--cabinet .site-nav {
  flex: 1;
  justify-content: flex-end;
  gap: 1.2rem;
}
.site-header--cabinet .site-nav a {
  font-size: 0.875rem;
  color: #52525b;
}
.site-header--cabinet .site-nav a:hover { color: var(--accent); }
.site-header--cabinet .header-actions { margin-left: 0; }

.site-nav__auth {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.site-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #475569;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.site-nav-toggle:hover { border-color: #fdba74; color: #9a3412; }
.site-nav-toggle .bi { font-size: 1.35rem; }

.site-nav__menu {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Динамические пункты меню (из "Страницы сайта") должны вести себя как обычные пункты.
   Обёртку делаем "прозрачной" для flex/gap, чтобы отступы были как у Главная/Каталог/События. */
.site-nav__menu-dynamic {
  display: contents;
}

@media (max-width: 860px) {
  .site-nav {
    gap: 0.75rem;
  }
  .site-nav-toggle { display: inline-flex; }
  .site-nav__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    padding: 0.85rem 0.9rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    z-index: 60;
  }
  .site-nav.is-open .site-nav__menu { display: flex; }
  .site-nav__menu a,
  .site-nav__menu .site-nav__link {
    font-size: 0.95rem;
  }
  .site-nav__auth { gap: 0.85rem; }
}
.site-nav__link-cabinet {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  text-decoration: none;
  font-size: 0.875rem;
  color: #52525b;
}
.site-nav__link-cabinet:hover { color: var(--accent); }
.site-nav__link-cabinet-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.125rem;
  border-radius: 0.375rem;
  background: transparent;
  transition: background 0.15s;
}
.site-nav__link-cabinet:hover .site-nav__link-cabinet-icon-wrap {
  background: rgba(234, 88, 12, 0.1);
}
.site-nav__link-cabinet-icon {
  font-size: 1.125rem;
  color: var(--accent);
  flex-shrink: 0;
}
.site-nav__link-cabinet:hover .site-nav__link-cabinet-icon {
  color: var(--accent-hover, #c2410c);
}

@media (max-width: 860px) {
  .site-nav__link-cabinet-text { display: none; }
}

/* Кнопки в навбаре, выглядят как ссылки (Правила, Тарифы) */
.site-nav__link,
.site-nav .site-nav__link {
  font-size: 0.875rem;
  color: #52525b;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.site-nav__link:hover { color: var(--accent); }

/* Кнопка «Вход» и выпадающая шторка (гость) — в стиле пунктов меню */
.header-login-dropdown {
  position: relative;
  display: inline-block;
}
.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  font-size: 0.875rem;
  font-weight: inherit;
  color: #52525b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}
.header-login-btn:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.header-login-btn:focus {
  outline: none;
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.header-login-btn__icon {
  font-size: 1rem;
  color: var(--accent);
}
.header-login-btn:hover .header-login-btn__icon,
.header-login-btn:focus .header-login-btn__icon {
  color: var(--accent);
}
.header-login-panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 11rem;
  padding: 0.5rem 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 50;
}
.header-login-dropdown:hover .header-login-panel,
.header-login-dropdown:focus-within .header-login-panel,
.header-login-dropdown.is-open .header-login-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-login-panel__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.header-login-panel__item:hover {
  background: #f1f5f9;
  color: var(--accent);
}
.header-login-panel__item .bi {
  font-size: 1rem;
  color: #64748b;
}
.header-login-panel__item:hover .bi {
  color: var(--accent);
}
.header-login-panel__icon-img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}
.header-login-panel__item:hover .header-login-panel__icon-img {
  opacity: 1;
}

.site-main {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 1.25rem 0 0;
  min-height: 50vh;
}
.site-main > .wrap { padding: 0; }

/* Мобилка: компактнее и без «врезаний» по краям */
@media (max-width: 560px) {
  .site-header .wrap { padding: 0.75rem 0.9rem; }
  .site-main { padding-left: 0.75rem; padding-right: 0.75rem; }
  .site-main > .wrap { padding: 0; }
  .breadcrumb { margin-bottom: 0.75rem; }
}

@media (max-width: 420px) {
  .site-header .wrap { padding: 0.7rem 0.75rem; }
  .site-main { padding-left: 0.75rem; padding-right: 0.75rem; }
  .site-main > .wrap { padding: 0; }
}

/* Главная: баннер */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 42vh;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 1rem;
}
.hero-banner__bg {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
}
.hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.hero-banner__gradients {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-banner__gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.hero-banner__gradient--1 {
  width: 40%;
  height: 40%;
  top: 5%;
  right: 10%;
  background: radial-gradient(circle, rgba(234,88,12,0.5) 0%, transparent 70%);
}
.hero-banner__gradient--2 {
  width: 35%;
  height: 35%;
  bottom: 15%;
  left: 5%;
  background: radial-gradient(circle, rgba(245,158,11,0.35) 0%, transparent 70%);
}
.hero-banner__gradient--3 {
  width: 30%;
  height: 30%;
  top: 30%;
  left: 25%;
  background: radial-gradient(circle, rgba(236,72,153,0.25) 0%, transparent 70%);
}
.hero-banner__gradient--4 {
  width: 25%;
  height: 25%;
  bottom: 25%;
  right: 20%;
  background: radial-gradient(circle, rgba(34,211,238,0.2) 0%, transparent 70%);
}
.hero-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.25rem;
}
.hero-banner__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-banner__tagline {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.hero-banner__tagline-accent {
  color: var(--accent, #ea580c);
}
.hero-banner__subtitle {
  margin: 0.75rem 0 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.hero-banner__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.home-intro {
  padding: 2rem 1.25rem 1.5rem;
}
.home-intro__text {
  margin: 0;
  font-size: 1rem;
  color: #52525b;
  line-height: 1.6;
  text-align: center;
}

.site-footer {
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: 2rem;
}
.site-footer .wrap {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-size: 0.8125rem;
  color: #52525b;
}
.site-footer__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}
.site-footer__copy { color: #52525b; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}
.site-footer__link {
  color: #52525b;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.site-footer__link:hover { color: var(--accent); }
.site-footer__arrow {
  color: var(--accent);
  font-size: 1.15em;
  line-height: 1;
  margin-top: 0.05em;
}

@media (max-width: 560px) {
  .site-footer__links {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Модалка юридических документов (политика, оферта, согласие) */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}
.legal-modal-overlay[hidden] {
  display: none !important;
}
.legal-modal {
  background: #fff;
  border-radius: 1rem;
  max-width: 48rem;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.legal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.legal-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
.legal-modal__close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.legal-modal__close:hover { background: #e5e7eb; }
.legal-modal__body {
  padding: 1.25rem;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
}
.legal-modal__body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--accent, #ea580c);
}
.legal-modal__body h5:first-child { margin-top: 0; }
.legal-modal__body p { margin: 0 0 0.5rem; }
.legal-modal__body ul { list-style: none; padding: 0; margin: 0.5rem 0; }
.legal-modal__body li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}
.legal-modal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  background: var(--accent, #ea580c);
  border-radius: 50%;
}

/* Хлебные крошки (и в <p>, и в <nav> — одинаковый вид) */
.breadcrumb {
  margin: 0.75rem 0 1rem;
  font-size: 0.8125rem;
  color: #71717a;
}
.breadcrumb a { color: var(--accent, #ea580c); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--accent-hover, #c2410c); }
.breadcrumb span { color: #fb923c; margin: 0 0.25rem; } /* разделитель / */
.breadcrumb .breadcrumb__current { color: var(--accent, #ea580c); font-weight: 600; }

/* CMS-страницы (контентная часть): ссылки — оранжевые (accent), как на сайте */
.cms-page .site-main a {
  color: var(--accent, #ea580c);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cms-page .site-main a:hover {
  color: var(--accent-hover, #c2410c);
}
.cms-page .site-main a:visited {
  color: var(--accent, #ea580c);
}

@media (max-width: 560px) {
  .breadcrumb { text-align: center; }
}

/* Каталог */
.artists-catalog-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.catalog-title-divider {
  width: 4rem;
  height: 3px;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(234,88,12,0.3) 100%);
  border-radius: 2px;
}
.catalog-stats {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #71717a;
  line-height: 1.4;
}
.catalog-intro {
  margin-bottom: 1.5rem;
}
.catalog-intro p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.55;
}
.artists-catalog-toolbar { margin-bottom: 1.25rem; }
.artists-catalog-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 12rem;
}
.catalog-search-wrap .artists-catalog-search {
  flex: 1;
  min-width: 0;
}
.catalog-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0;
  line-height: 1;
  font-weight: 400;
  text-decoration: none;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}
.catalog-search-clear::before {
  content: "×";
  display: block;
  font-size: 1.125rem;
  transform: translateY(-0.08em);
}
.catalog-search-clear:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
  color: #0f172a;
}
.artists-catalog-search {
  flex: 1;
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.375rem;
  background: #fff;
}
.artists-catalog-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(234,88,12,0.2);
}
.artists-catalog-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #52525b;
}
.artists-catalog-sort-label span { white-space: nowrap; }
.artists-catalog-sort {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.375rem;
  background: #fff;
}
.artists-catalog-submit .artists-catalog-submit-icon {
  display: none;
}
.artists-catalog-submit {
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, filter 0.15s;
}
.artists-catalog-submit:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

@media (max-width: 560px) {
  .artists-catalog-title { font-size: 1.25rem; }
  .artists-catalog-form { gap: 0.6rem; }
  .catalog-search-wrap { min-width: 0; width: 100%; }
  .artists-catalog-search { min-width: 0; width: 100%; }
  .artists-catalog-sort-label { width: 100%; justify-content: space-between; }
  .artists-catalog-sort { width: 100%; }
  .artists-catalog-submit { width: 100%; }
  .catalog-works-section .artists-catalog-form,
  .catalog-artists-section .artists-catalog-form {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
  }
  .catalog-works-section .catalog-search-wrap,
  .catalog-artists-section .catalog-search-wrap {
    width: 100%;
    min-width: 0;
  }
  .catalog-works-section .artists-catalog-search,
  .catalog-artists-section .artists-catalog-search {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .catalog-works-section .artists-catalog-sort,
  .catalog-artists-section .artists-catalog-sort {
    min-width: 0;
    max-width: 7.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .catalog-works-section .artists-catalog-submit,
  .catalog-artists-section .artists-catalog-submit {
    width: auto;
    min-width: 2.25rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .catalog-works-section .artists-catalog-submit .artists-catalog-submit-icon,
  .catalog-artists-section .artists-catalog-submit .artists-catalog-submit-icon {
    display: inline-block;
  }
  .catalog-works-section .artists-catalog-submit .artists-catalog-submit-text,
  .catalog-artists-section .artists-catalog-submit .artists-catalog-submit-text {
    display: none;
  }
}

/* Секции каталога: Работы и Художники */
.catalog-section-divider {
  width: 100%;
  height: 1px;
  margin: 0 0 1rem;
  background: linear-gradient(90deg, transparent 0%, #e4e4e7 15%, #c4b5fd 50%, #e4e4e7 85%, transparent 100%);
  border: 0;
  opacity: 0.9;
}
.catalog-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #18181b;
  margin: 0 0 1rem;
}
.catalog-works-section .artists-catalog-toolbar,
.catalog-artists-section .artists-catalog-toolbar {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}
.catalog-works-section {
  margin-bottom: 2.5rem;
}

/* ===== Шоу‑рум (каталог /artists) ===== */
.showroom-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin: 0.75rem 0 1rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background:
    radial-gradient(900px 240px at 0% 0%, rgba(99,102,241,0.16), transparent 55%),
    radial-gradient(900px 240px at 100% 0%, rgba(234,88,12,0.14), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75));
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}
.showroom-invite__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin-bottom: 0.2rem;
}
.showroom-invite__text {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.35;
  max-width: 46rem;
}
.showroom-invite__btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  user-select: none;
  padding: 0.55rem 0.95rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #ea580c 92%);
  box-shadow: none;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.showroom-invite__btn:hover {
  filter: brightness(1.03) saturate(1.05);
  transform: translateY(-1px);
  box-shadow: none;
}
.showroom-invite__btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.showroom-invite__btn:focus {
  outline: none;
}
.showroom-invite__btn:focus-visible {
  outline: 3px solid rgba(99,102,241,0.35);
  outline-offset: 3px;
}

.showroom-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.showroom-overlay.hidden { display: none; }
.showroom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(10px);
}
.showroom-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 2.25rem 1.25rem 1.25rem 1.25rem;
}
@media (max-width: 640px) {
  .showroom-panel { padding: 1.25rem 0.85rem 0.85rem 0.85rem; }
}
.showroom-stage {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.35);
  box-shadow: 0 30px 80px rgba(0,0,0,0.32);
}
.showroom-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.42;
}
.showroom-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 30% 20%, rgba(99,102,241,0.22), transparent 60%),
    radial-gradient(900px 520px at 70% 70%, rgba(234,88,12,0.18), transparent 55%),
    linear-gradient(180deg, rgba(2,6,23,0.35), rgba(2,6,23,0.65));
}
.showroom-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1);
  transition: opacity 650ms ease;
  will-change: transform, opacity;
}
.showroom-img.is-active { opacity: 1; }

@keyframes showroomKenBurns {
  0% { transform: scale(1.02) translate3d(0,0,0); }
  100% { transform: scale(1.10) translate3d(1.2%, -0.8%, 0); }
}
.showroom-img.is-kenburns { animation: showroomKenBurns 9.5s ease-in-out forwards; }

.showroom-ui {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}
.showroom-caption {
  pointer-events: auto;
  max-width: 48rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.52);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  color: #e2e8f0;
}
.showroom-caption__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  color: #fff;
}
.showroom-caption__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: rgba(226,232,240,0.92);
}
.showroom-caption__meta i { opacity: 0.9; }
.showroom-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.showroom-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(15,23,42,0.55);
  color: rgba(226,232,240,0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.showroom-btn:hover { background: rgba(30,41,59,0.7); border-color: rgba(148,163,184,0.35); transform: translateY(-1px); }
.showroom-btn:active { transform: translateY(0); }
.showroom-topbar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}
.showroom-topbar__pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.55);
  color: rgba(226,232,240,0.92);
  font-size: 0.8rem;
}
.showroom-topbar__kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  opacity: 0.9;
}
.showroom-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(226,232,240,0.65);
}
.showroom-link:hover { border-bottom-color: rgba(255,255,255,0.95); }

@media (max-width: 640px) {
  /* Мобилки: кнопки не должны вылезать за край */
  .showroom-topbar__pill + .showroom-topbar__pill { display: none; } /* подсказки для клавиатуры */
  .showroom-ui {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.6rem;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
  .showroom-caption {
    max-width: none;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
  }
  .showroom-caption__title { font-size: 0.95rem; }
  .showroom-caption__meta { font-size: 0.78rem; gap: 0.4rem 0.6rem; }
  .showroom-controls {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .showroom-btn {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showroom-img { transition: none; }
  .showroom-img.is-kenburns { animation: none; }
  .showroom-btn { transition: none; }
}
.catalog-artists-section {
  margin-top: 0.5rem;
}

/* Облако хэштегов над работами — «разбросано» с анимацией */
.catalog-hashtag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.catalog-hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  min-height: 1.75rem;
}
.catalog-hashtag-actions {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.catalog-hashtag-clear-btn {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #64748b;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.catalog-hashtag-more-btn {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.catalog-hashtag-clear-btn:hover {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}
.catalog-hashtag-more-btn:hover {
  color: var(--accent, #ea580c);
  background: #fff7ed;
  border-color: #fed7aa;
}
.catalog-hashtag-chip {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #52525b;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.catalog-hashtag-chip:hover {
  color: var(--accent);
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
  transform: scale(1.05);
}
.catalog-hashtag-chip--active {
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border-color: transparent;
}
.catalog-hashtag-chip--active:visited {
  color: #fff;
}
.catalog-hashtag-chip--active:hover {
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-color: transparent;
}
.catalog-hashtag-cloud .catalog-hashtag-chip:hover { transform: scale(1.05); }

/* Палитра цветов каталога (фильтр по цветовой гамме) — ряд кружков в стиле типографики */
.catalog-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1rem;
  gap: 0.5rem 0.75rem;
}
.catalog-color-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-right: 0.25rem;
}
.catalog-color-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.25rem;
}
.catalog-color-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: help;
  position: relative;
  line-height: 1;
}
.catalog-color-hint:hover,
.catalog-color-hint:focus {
  color: #64748b;
  outline: none;
}
.catalog-color-hint .bi {
  font-size: 1rem;
}
.catalog-color-hint__tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: max-content;
  max-width: 260px;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10;
}
.catalog-color-hint:hover .catalog-color-hint__tooltip,
.catalog-color-hint:focus .catalog-color-hint__tooltip {
  opacity: 1;
  visibility: visible;
}
.catalog-color-palette {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}
.catalog-color-chip {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-indent: -9999px;
  overflow: hidden;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.catalog-color-chip:hover {
  transform: scale(1.12);
}
.catalog-color-chip--red { background-color: #e04040; }
.catalog-color-chip--orange { background-color: #f08830; }
.catalog-color-chip--yellow { background-color: #e8c020; }
.catalog-color-chip--green { background-color: #22b352; }
.catalog-color-chip--cyan { background-color: #18b8d0; }
.catalog-color-chip--blue { background-color: #3d6ee8; }
.catalog-color-chip--violet { background-color: #7c50e8; }
.catalog-color-chip--white {
  background-color: #fff;
  border: 1px solid #e2e8f0;
}
.catalog-color-chip--black { background-color: #374151; }
/* Кружок «без определённого цвета» — пустой, перечёркнутый */
.catalog-color-chip--none {
  background-color: #f8fafc;
  border: 1.5px solid #94a3b8;
  box-shadow: none;
  background-image: linear-gradient(135deg, transparent 44%, #94a3b8 44%, #94a3b8 56%, transparent 56%),
    linear-gradient(45deg, transparent 44%, #94a3b8 44%, #94a3b8 56%, transparent 56%);
}
/* Выбранный цвет — толстый полупрозрачный бордюр */
.catalog-color-chip--active {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.25);
}
.catalog-color-chip--active:hover {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35);
}

/* Сетка работ в каталоге */
.catalog-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.catalog-work-card {
  position: relative;
  display: flex;
  min-height: 0;
}
.catalog-work-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.catalog-work-card a:hover {
  border-color: #fdba74; /* нежно-оранжевый */
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.18);
}
.catalog-work-card__image-wrap {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4f4f5;
}
.catalog-work-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catalog-work-card__placeholder {
  width: 100%;
  height: 100%;
  background: #e4e4e7;
}
.catalog-work-card__body {
  flex: 1;
  padding: 0.75rem 1rem 1rem;
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.catalog-work-card__title {
  font-size: 0.875rem; /* чуть меньше */
  font-weight: 600;
  color: #18181b;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* до 2 строк, затем троеточие */
  word-break: break-word;
  min-height: calc(2 * 1.35em); /* фиксируем высоту, чтобы автор не "прыгал" */
}
.catalog-work-card__price {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ea580c; /* нежно-оранжевый акцент */
  line-height: 1.2;
}
.catalog-work-card__artist {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .catalog-section-title { font-size: 1rem; margin-bottom: 0.75rem; }
  .catalog-section-divider { margin-bottom: 0.75rem; }
  .catalog-works-section { margin-bottom: 2rem; }
  .catalog-hashtag-row { gap: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
  .catalog-hashtag-clear-btn { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
  .catalog-color-row { margin-bottom: 0.75rem; }
  .catalog-color-palette { gap: 0.4rem 0.5rem; }
  .catalog-color-chip { width: 22px; height: 22px; }
  .catalog-works-grid { gap: 0.85rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-work-card__body { padding: 0.55rem 0.6rem 0.65rem; min-height: 0; }
  .catalog-work-card__title { font-size: 0.75rem; min-height: 0; -webkit-line-clamp: 2; }
  .catalog-work-card__price { font-size: 0.75rem; margin-top: 0.25rem; }
  .catalog-work-card__artist { display: none; }
}

@media (max-width: 380px) {
  .catalog-works-grid { gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-work-card__title { font-size: 0.78rem; }
}
.catalog-works-empty {
  color: #71717a;
  font-size: 0.9375rem;
  grid-column: 1 / -1;
  padding: 1rem 0;
}

/* ——— События (афиша) — минимальный стиль */
.events-page { margin-top: 1.5rem; }
.events-page__title {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: #18181b;
}
.events-page__desc {
  margin: 0.25rem 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
}
@media (max-width: 560px) {
  .events-page__title,
  .events-page__desc {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .cms-page .site-main h1 {
    text-align: center;
  }
}

/* Split view: лента + детали (десктоп) */
.events-split {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.events-split.is-open { gap: 1.25rem; }
.events-feed {
  flex: 1 1 auto;
  min-width: 0;
}
.events-detail {
  flex: 0 0 0;
  max-width: 0;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  transition: max-width 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}
.events-split.is-open .events-feed {
  flex: 0 0 35%;
  max-width: 35%;
}
.events-split.is-open .events-detail {
  flex: 1 1 65%;
  max-width: 65%;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.events-split.is-open .events-item__cols { grid-template-columns: 1fr; }
.events-split.is-open .events-item__preview { display: none; }
.events-feed__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.events-feed__past { margin-top: 1.25rem; }
.events-feed__past-title {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 0.65rem;
}
.events-feed__sentinel { height: 1px; }
.events-feed__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.events-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.9rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.events-item:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.14);
  transform: translateY(-1px);
}
.events-item.is-active {
  border-color: #fb923c;
  box-shadow: 0 6px 16px rgba(251, 146, 60, 0.18);
}
.events-item--today { border-color: #fb923c; }
.events-item__cover {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
}
.events-item__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.events-item__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 2rem;
}
.events-item__body { flex: 1; min-width: 0; }

.events-item__cols {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 0.95rem;
  align-items: start;
}
.events-item__left { min-width: 0; }
.events-item__preview {
  min-width: 0;
  border-left: 4px solid rgba(251, 146, 60, 0.55);
  padding-left: 0.95rem;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.45;
}
.events-item__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.events-item__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.events-item__badges { display: inline-flex; gap: 0.35rem; flex-shrink: 0; }
.events-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}
.events-item__badge--today { background: rgba(251, 146, 60, 0.16); color: #9a3412; border: 1px solid rgba(251, 146, 60, 0.4); }
.events-item__badge--past { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.events-item__badge--paid {
  gap: 0.3rem;
  background: rgba(234, 88, 12, 0.12);
  color: #9a3412;
  border: 1px solid rgba(234, 88, 12, 0.35);
}
.events-item__badge--paid { padding: 0.14rem 0.4rem; font-size: 0.625rem; font-weight: 700; }
.events-item__badge--paid .bi { font-size: 0.9em; transform: translateY(0.35px); }
.events-item__meta {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}
.events-item__meta-row { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; }
.events-item__meta-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events-item__meta-row--when span { font-weight: 600; color: #334155; }
.events-item__meta-row--deadline strong { font-weight: 700; }
.events-item__meta-row--fee-with-more {
  width: 100%;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: nowrap;
}
.events-item__more {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
}
.events-item__meta-row--fee-with-more .events-item__more {
  margin-top: 0;
  flex-shrink: 0;
}
.events-item__more i { font-size: 0.9em; transform: translateY(0.5px); }

@media (max-width: 820px) {
  .events-item__cols { grid-template-columns: 1fr; }
  .events-item__preview { display: none; }
}

.events-detail__toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0.75rem 0;
}

/* CTA оплаты на странице события (split-view и обычная страница) */
.event-pay-box {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(234, 88, 12, 0.25);
  background: rgba(251, 146, 60, 0.08);
  border-radius: 0.9rem;
  min-width: 0;
}
.event-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #9a3412;
  font-size: 0.8125rem;
  font-weight: 700;
  min-width: 0;
}
.event-pay-badge .bi { font-size: 1.05em; }
.event-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.65rem;
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
  flex-shrink: 0;
}
.event-pay-btn:visited {
  color: #fff;
}
.event-pay-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
}

@media (max-width: 560px) {
  .event-pay-box { flex-direction: column; align-items: stretch; overflow: hidden; }
  .event-pay-btn { width: 100%; max-width: 100%; min-width: 0; }
}
.events-detail__close {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.events-detail__close:hover { border-color: #fdba74; color: #9a3412; }
.events-detail__content { padding: 0 2.5rem 1.25rem; }
.events-detail__empty { padding: 2rem 0; color: #64748b; }
.events-detail__empty-title { font-size: 1.125rem; font-weight: 700; color: #18181b; margin: 0 0 0.35rem; }
.events-detail__empty-text { margin: 0; font-size: 0.9375rem; }
.events-detail__loading-title,
.events-detail__loading-line {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: events-skel 1.2s ease-in-out infinite;
  border-radius: 0.5rem;
}
.events-detail__loading-title { height: 22px; width: 70%; margin: 0.5rem 0 1rem; }
.events-detail__loading-line { height: 14px; width: 100%; margin: 0.5rem 0; }
.events-detail__loading-line--short { width: 55%; }
@keyframes events-skel { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.event-hero--split { margin-top: 0.25rem; }
.event-hero__title--split { font-size: 1.75rem; }
.event-hero__cover--split {
  width: 50%;
  margin: 0.85rem auto 0.75rem;
}
.event-meta--split { margin-top: 0.25rem; }
.event-content--split { margin-top: 0.85rem; }

@media (max-width: 1100px) {
  .event-hero__cover--split { width: 100%; }
}

@media (max-width: 900px) {
  .events-split { display: block; }
  .events-detail { display: none; max-width: none; opacity: 1; transform: none; pointer-events: auto; margin-top: 1rem; }
  .events-split.is-open .events-feed { display: none; }
  .events-split.is-open .events-detail { display: block; }
  .events-detail__content { padding: 0 1.25rem 1.25rem; }
}
.events-tabs {
  display: inline-flex;
  gap: 0.25rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin: 0 0 1rem;
}
.events-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.8125rem;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}
.events-tab:hover { color: #18181b; background: #f8fafc; }
.events-tab.active { color: #fff; background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.events-empty { color: #71717a; font-size: 0.9375rem; grid-column: 1 / -1; padding: 1rem 0; }

/* ——— Выставки ——— */
.exhibitions-page { margin-top: 1.5rem; }
.exhibitions-page__title { font-size: 1.5rem; font-weight: 700; color: #18181b; margin: 0 0 0.25rem; }
.exhibitions-page__desc { font-size: 0.9375rem; color: #64748b; margin: 0 0 1.25rem; }
.exhibitions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.exhibitions-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.exhibitions-item:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.exhibitions-item__cover {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f1f5f9;
}
.exhibitions-item__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exhibitions-item__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 2rem;
}
.exhibitions-item__body { min-width: 0; }
.exhibitions-item__title { font-weight: 600; color: #334155; margin-bottom: 0.35rem; }
.exhibitions-item__meta { font-size: 0.8125rem; color: #64748b; margin-top: 0.25rem; }
.exhibitions-item__meta .bi { margin-right: 0.25rem; }
.exhibitions-empty { color: #64748b; font-size: 0.9375rem; padding: 1rem 0; }
.exhibitions-empty-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 1rem;
}
.exhibitions-empty-lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.6rem;
}
.exhibitions-empty-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}
.exhibitions-empty-card__text {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}
.exhibitions-empty-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.exhibitions-empty-link {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.exhibitions-empty-link:hover {
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.exhibitions-empty-link__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent, #ea580c);
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
}
.exhibitions-empty-link__body { min-width: 0; display: grid; gap: 0.12rem; }
.exhibitions-empty-link__title {
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 700;
  color: #334155;
}
.exhibitions-empty-link__text {
  font-size: 0.79rem;
  line-height: 1.35;
  color: #64748b;
}
.exhibitions-empty-card__text a {
  color: var(--accent, #ea580c);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.exhibitions-empty-cabinet {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.875rem 2rem;
  color: #475569;
  line-height: 1.5;
  font-size: 0.875rem;
  box-sizing: border-box;
  display: block;
  min-height: auto;
}
.exhibitions-empty-cabinet__title,
.exhibitions-empty-cabinet__text {
  font-size: inherit;
  font-weight: 400;
  color: inherit;
  margin: 0;
}
.exhibitions-empty-cabinet__title {
  margin-bottom: 0.5em;
}
.exhibitions-empty-cabinet__text a {
  color: var(--accent, #ea580c);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.works-list-wrap .tab-placeholder.exhibitions-empty-cabinet {
  display: block;
  align-items: initial;
  min-height: auto;
  margin: 0;
  padding: 10px 15px;
}
/* Карточка детали выставки в сплите: акцент и тень */
#exhibitions-detail {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(251, 146, 60, 0.12);
  border-left: 4px solid rgba(251, 146, 60, 0.6);
}
#exhibitions-detail .event-hero__title--split { font-size: 1.35rem; }
#exhibitions-detail .event-meta--split,
#exhibitions-detail .event-meta--exhibition { font-size: 0.8125rem; }
#exhibitions-detail .event-meta__row--deadline strong { font-weight: 700; }
#exhibitions-detail .exhibition-announce { font-size: 0.8125rem; color: #475569; margin: 0.75rem 0; line-height: 1.5; }
.exhibition-announce { font-size: 0.9375rem; color: #475569; margin: 0.75rem 0; line-height: 1.5; }
.exhibition-apply-wrap { margin: 1rem 0; }
.exhibition-apply-wrap .exhibition-apply-btn,
.exhibition-apply-wrap .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.exhibition-apply-wrap .exhibition-apply-btn:hover,
.exhibition-apply-wrap .btn-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.exhibition-hero-sep {
  margin: 1.25rem 0 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}
.exhibition-works-requirements { margin-top: 1.5rem; }
.exhibition-works-requirements__title { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.75rem; color: #18181b; }
.exhibition-works-requirements__body { font-size: 0.9375rem; color: #475569; line-height: 1.55; }
.exhibition-works-requirements__body p { margin: 0 0 0.5rem; }
.exhibition-works-requirements__body p:last-child { margin-bottom: 0; }

/* Блок «Требования к работам» перед анонсом в шапке выставки */
.exhibition-works-requirements--hero {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid rgba(251, 146, 60, 0.6);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.exhibition-works-requirements--hero .exhibition-works-requirements__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #334155;
  letter-spacing: 0.01em;
}
.exhibition-works-requirements--hero .exhibition-works-requirements__body {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Компактный текст выставки: страница и сплит */
.exhibition-page .event-hero__title { font-size: 1.5rem; line-height: 1.25; margin-bottom: 0.35rem; }
.exhibition-page .event-hero__cover { margin: 0.85rem 0 0.6rem; }
.exhibition-page .event-meta { margin-top: 0.5rem; gap: 0.3rem; font-size: 0.8125rem; }
.exhibition-page .exhibition-announce { font-size: 0.875rem; margin: 0.6rem 0; line-height: 1.5; }
.exhibition-page .exhibition-works-requirements--hero { margin: 0.85rem 0; padding: 0.85rem 1.15rem; }
.exhibition-page .exhibition-works-requirements--hero .exhibition-works-requirements__title { font-size: 0.8125rem; margin-bottom: 0.45rem; }
.exhibition-page .exhibition-works-requirements--hero .exhibition-works-requirements__body { font-size: 0.8125rem; line-height: 1.5; }
.exhibition-page .exhibition-apply-wrap { margin: 0.85rem 0; }
.exhibition-page .exhibition-hero-sep { margin: 1.1rem 0 0; }
.exhibition-page .event-content {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #334155;
}
.exhibition-page .event-content p { margin: 0 0 0.6rem; }
.exhibition-page .event-content p:last-child { margin-bottom: 0; }
.exhibition-page .event-content ul,
.exhibition-page .event-content ol { margin: 0.45rem 0 0.6rem; padding-left: 1.25rem; }
.exhibition-page .event-content li + li { margin-top: 0.28rem; }

#exhibitions-detail .event-content--split {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.52;
  color: #334155;
}
#exhibitions-detail .event-content--split p { margin: 0 0 0.5rem; }
#exhibitions-detail .event-content--split p:last-child { margin-bottom: 0; }
#exhibitions-detail .event-content--split ul,
#exhibitions-detail .event-content--split ol { margin: 0.35rem 0 0.5rem; padding-left: 1.1rem; }
#exhibitions-detail .exhibition-announce { margin: 0.6rem 0; line-height: 1.5; }
#exhibitions-detail .exhibition-works-requirements--hero { margin: 0.75rem 0; padding: 0.75rem 1rem; }
#exhibitions-detail .exhibition-works-requirements--hero .exhibition-works-requirements__body { font-size: 0.8125rem; line-height: 1.5; }

.exhibition-works__title { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 1rem; }
.exhibition-works-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.exhibition-work {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.exhibition-work__photo {
  width: 100%;
  aspect-ratio: 1;
  background: #f8fafc;
  overflow: hidden;
}
.exhibition-work__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.exhibition-work__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 2.5rem;
}
.exhibition-work__info { padding: 0.75rem; }
.exhibition-work__title { font-weight: 600; color: #334155; margin-bottom: 0.25rem; }
.exhibition-work__author { font-size: 0.8125rem; color: #64748b; margin-bottom: 0.2rem; }
.exhibition-work__meta { font-size: 0.75rem; color: #64748b; margin-top: 0.15rem; }

.event-card a {
  display: block;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.event-card a:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.18);
}
.event-card__cover {
  width: 100%;
  aspect-ratio: 1;
  background: #f4f4f5;
  overflow: hidden;
}
.event-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 3rem;
}
.event-card__body { padding: 0.85rem 1rem 1rem; }
.event-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #64748b;
}
.event-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.event-card__source { color: #475569; }

.event-page {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  padding: 1rem 2.5rem;
  margin-top: 1.5rem;
}
.event-hero__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 650;
  color: #18181b;
  line-height: 1.15;
}
.event-hero__cover {
  margin: 1rem 0 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
}
.event-hero__cover img { width: 100%; height: auto; display: block; }
.event-meta {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #475569;
}
.event-meta__row { display: inline-flex; align-items: center; gap: 0.5rem; }
.event-meta__row a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.event-meta__row--source { margin-top: 0.15rem; color: #64748b; font-size: 0.8125rem; }
.event-meta--exhibition .event-meta__row { font-weight: 600; color: #334155; }
.event-meta__row--deadline { margin-top: 0.25rem; }
.event-meta__row--deadline strong { font-weight: 700; }
.event-meta__row--fee { margin-top: 0.2rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.event-fee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.event-fee-badge .bi { font-size: 0.85rem; }
.event-fee-badge--paid {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.35);
}
.event-fee-badge--free {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.event-fee-amount { font-size: 0.8125rem; color: #475569; font-weight: 600; }
.event-fee-amount strong { color: #0f172a; font-weight: 700; }
.events-item .event-fee-badge {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
}
.events-item .event-fee-badge .bi { font-size: 0.7rem; }
.event-content {
  margin-top: 1rem;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.65;
}
.event-content a {
  color: var(--accent, #ea580c);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.event-content a:hover {
  color: var(--accent-hover, #c2410c);
}
.event-content a:visited {
  color: var(--accent, #ea580c);
}
.event-content img { max-width: 100%; height: auto; border-radius: 0.5rem; }

@media (max-width: 820px) {
  .event-page { padding: 1rem 1.25rem; }
}

.artists-grid-empty { color: #71717a; font-size: 0.9375rem; }

.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.artist-card {
  position: relative;
  display: flex;
  min-height: 0;
}
.artist-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.artist-card a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(234,88,12,.15);
}
.artist-card__image-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  margin: 1rem auto 0.5rem;
  overflow: hidden;
  border-radius: 9999px;
  border: none;
  background: #f4f4f5;
  box-shadow: none;
}
.artist-card__image-wrap img,
.artist-card__image-wrap .avatar-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artist-card__image-wrap .avatar-placeholder {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 3rem;
  line-height: 1;
}
.artist-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 5.25rem;
  padding: 0.25rem 1rem 1rem;
}
.artist-card__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #18181b;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* до 2 строк */
  word-break: break-word;
  min-height: calc(2 * 1.35em); /* фиксируем высоту имени */
}
.artist-card__alias {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* одна строка */
}
.artist-card__city {
  margin: 0;
  font-size: 0.8125rem;
  color: #71717a;
  line-height: 1.35;
  /* город сразу под именем (без "прыжков") */
}
.artist-card__works {
  margin: 0;
  font-size: 0.6875rem;
  color: #94a3b8;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .artists-grid { gap: 0.85rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artist-card__image-wrap { width: 76px; height: 76px; margin: 0.75rem auto 0.4rem; }
  .artist-card__body { padding: 0.2rem 0.75rem 0.85rem; min-height: 0; }
  .artist-card__name { font-size: 0.875rem; min-height: 0; }
  .artist-card__alias { font-size: 0.75rem; }
  .artist-card__city { font-size: 0.75rem; }
  .artist-card__works { font-size: 0.65rem; }
}

@media (max-width: 380px) {
  .artists-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artist-card__image-wrap { width: 84px; height: 84px; }
}

/* Страница художника */
.artist-page {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  padding: 1rem 2.5rem;
  margin-top: 1.5rem; /* больше воздуха под хлебными крошками */
}
.artist-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.artist-hero__avatar {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 9999px;
  background: #f1f5f9;
}
.artist-hero__avatar img,
.artist-hero__avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist-hero__avatar .avatar-placeholder {
  color: #e2e8f0;
  font-size: 2.75rem;
  line-height: 1;
}
.artist-hero__meta {
  min-width: 0;
  height: 104px; /* как у аватара — слот одной высоты, выравнивание по центру */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}
.artist-hero__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
  color: #18181b;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.artist-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.artist-hero__sub {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #71717a;
  font-size: 0.8125rem;
}
.artist-hero__city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.artist-links {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
}
/* На странице художника: контакты под городом в одну строку */
.artist-links--hero {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
  margin-bottom: 0;
}
.artist-links__label {
  color: #64748b;
  font-weight: 500;
  margin-right: 0.25rem;
  white-space: nowrap;
}
.artist-links__empty {
  color: #94a3b8;
  font-size: 0.8125rem;
}
.artist-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.artist-link:hover {
  color: #111827;
}
.artist-link i {
  color: #94a3b8;
  font-size: 0.95em;
}

.artist-about {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e4e7;
}
.artist-about__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #18181b;
}

.artist-page .bio { margin-top: 0; line-height: 1.6; color: #3f3f46; }
.artist-page .tags .tag {
  display: inline-block;
  background: #e4e4e7;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: #52525b;
}
.artist-page .links a:hover { text-decoration: underline; }
.artist-page .bio strong { font-weight: 600; }
.artist-page .bio em { font-style: italic; }
.artist-page .bio .bio-heading { font-size: 1rem; font-weight: 600; margin: 0.75rem 0 0.25rem; color: #18181b; }
.artist-page .bio .bio-heading:first-child { margin-top: 0; }
.artist-page-works { margin-top: 1.5rem; }
/* Блок поиска и сортировки — в карточке */
.artist-page-works .artists-catalog-toolbar {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}
.artist-page-works .catalog-works-grid {
  gap: 1.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .artist-page-works .catalog-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .artist-page-works {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .artist-page-works .catalog-section-title {
    text-align: center;
  }
  .artist-page-works .catalog-works-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
  }
  /* Две карточки в ряд, побольше; при 2 работах — по центру */
  .artist-page-works .catalog-work-card {
    width: calc((100% - 1.75rem) / 2);
    min-width: 140px;
    max-width: 220px;
  }
  /* Блок поиска и сортировки — в карточке, не выходить за экран */
  .artist-page-works .artists-catalog-toolbar {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }
  .artist-page-works .artists-catalog-form {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
  }
  .artist-page-works .catalog-search-wrap {
    width: 100%;
    min-width: 0;
  }
  .artist-page-works .artists-catalog-sort-label {
    flex-shrink: 0;
  }
  .artist-page-works .artists-catalog-search {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    min-width: 0;
  }
  .artist-page-works .artists-catalog-sort-label {
    font-size: 0.6875rem;
  }
  .artist-page-works .artists-catalog-sort-label span {
    font-size: 0.6875rem;
  }
  .artist-page-works .artists-catalog-sort {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .artist-page-works .artists-catalog-submit .artists-catalog-submit-icon {
    display: inline-block;
  }
  .artist-page-works .artists-catalog-submit .artists-catalog-submit-text {
    display: none;
  }
  .artist-page-works .artists-catalog-submit {
    flex-shrink: 0;
    width: auto;
    min-width: 2.25rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .artist-page-works .artists-catalog-sort-label {
    min-width: 0;
  }
  .artist-page-works .artists-catalog-sort {
    min-width: 0;
    max-width: 7.5rem;
  }
  .artist-page-works .catalog-search-clear {
    width: 1.25rem;
    height: 1.25rem;
  }
  .artist-page-works .catalog-search-clear::before {
    font-size: 0.9375rem;
  }
}

/* Страница работы */
.work-page {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  padding: 1rem 2.5rem;
  margin-top: 1.5rem; /* больше воздуха под хлебными крошками */
}
.work-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "nav nav"
    "title title"
    "tech tech"
    "tags tags"
    "meta price"
    "contacts contacts";
  column-gap: 1.25rem;
  row-gap: 0.65rem;
  align-items: start;
}

/* Избранное: кнопка-сердечко (публичный сайт) */
.favorite-btn {
  display: none; /* показываем только если есть token (через body.favorites-enabled) */
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
body.favorites-enabled .favorite-btn { display: inline-flex; }
.favorite-btn:hover {
  color: var(--accent);
  border-color: rgba(251, 146, 60, 0.55);
  background: #fff;
  transform: translateY(-1px);
}
.favorite-btn.is-favorited {
  color: var(--accent);
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.12);
}

/* На странице автора — фон активного сердечка оставляем белым */
.artist-page .favorite-btn {
  background: #fff; /* на фото полупрозрачность выглядит как "мерцание" */
}
.artist-page .favorite-btn.is-favorited {
  background: #fff;
  border-color: var(--accent);
}

/* На странице автора блок «Работы» находится вне .artist-page */
.artist-page-works .favorite-btn {
  background: #fff;
}
.artist-page-works .favorite-btn.is-favorited {
  background: #fff;
  border-color: var(--accent);
}
.favorite-btn--corner {
  top: 0.45rem;
  right: 0.3rem;
  z-index: 5;
}
.work-page .favorite-btn {
  border-color: var(--accent);
  color: var(--accent);
}
.work-page .favorite-btn:hover,
.work-page .favorite-btn.is-favorited {
  border-color: var(--accent);
  color: var(--accent);
}
.work-page .favorite-btn i {
  display: block;
  transform: translateY(0.22em);
}
.favorite-btn i { font-size: 0.74rem; line-height: 1; }

/* На карточках работ иконка Bootstrap визуально чуть "уезжает" — компенсируем */
.catalog-work-card .favorite-btn i {
  display: block;
  transform: translateY(0.5px);
}

/* На карточках авторов оставляем центрирование стабильным */
.artist-card .favorite-btn i {
  display: block;
  transform: translateY(0.5px);
}

/* Лёгкий тост на публичном сайте (без alert) */
.site-toast-wrap {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.site-toast {
  pointer-events: none;
  max-width: min(92vw, 520px);
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  color: #18181b;
  font-size: 0.875rem;
  line-height: 1.25;
}
.site-toast--error {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(254, 242, 242, 0.92);
}
.site-toast--success {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(240, 253, 244, 0.92);
}

/* Cookies consent */
.cookie-consent[hidden] {
  display: none !important;
}
.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.12);
  color: #334155;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.cookie-consent__text {
  font-size: 0.8125rem;
  line-height: 1.4;
}
.cookie-consent__link {
  color: var(--accent, #ea580c);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent__link:hover {
  color: var(--accent-hover, #c2410c);
}
.cookie-consent__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cookie-consent__btn {
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
}
.cookie-consent__btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.cookie-consent__close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.6rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.cookie-consent__close:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

@media (max-width: 560px) {
  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}
.work-hero__title {
  grid-area: title;
  margin: 0.45rem 0 0;
  font-size: 1.625rem;
  font-weight: 600;
  color: #18181b;
  line-height: 1.2;
  text-align: center;
}
.work-hero__sub {
  grid-area: meta;
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #64748b;
  font-size: 0.8125rem;
}
.work-hero__contacts {
  grid-area: contacts;
  justify-self: end;
  align-self: center;
}
.work-hero__nav {
  grid-area: nav;
  margin-top: 0;
  margin-bottom: 0.2rem;
  text-align: center;
}
.work-hero__nav .work-back-link {
  display: inline-flex;
}
.work-hero__price-wrap {
  grid-area: price;
  justify-self: end;
}
.work-hero__tech {
  grid-area: tech;
  justify-self: center;
  margin-top: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.35;
  text-align: center;
}

.work-tech-line {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.25;
  color: #64748b;
}

.work-image-modal__tech {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.25;
  color: #64748b;
}
.work-hero__author,
.work-hero__city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.work-hero__author a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.work-hero__author a:hover {
  text-decoration: underline;
}
.work-hero__price {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
}
.work-hero__price--empty {
  border-color: #e4e4e7;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.875rem;
}
.work-hero__contacts .artist-links {
  margin: 0;
  justify-content: flex-end;
}
.work-back-link {
  font-weight: 400;
  font-size: 0.8125rem;
}
.work-hero .work-tags {
  grid-area: tags;
  margin-top: 0;
  justify-content: center;
}
.work-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.work-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.2;
}
.work-images-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.work-images-grid--single {
  max-width: 50%;
}
.work-image {
  display: block;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f8fafc;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}
.work-image:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.12);
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  aspect-ratio: 1;
}

/* Модалка просмотра изображения работы */
#work-image-modal.modal-overlay {
  /* темнее в ~3 раза по ощущению */
  background: rgba(0, 0, 0, 0.88);
}
.modal-panel--work-image {
  max-width: 62rem;
  background: rgba(12, 12, 12, 0.82); /* темнее */
  border: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.modal-panel--work-image .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.75rem 1rem;
}
.modal-panel--work-image .modal-title {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}
.modal-panel--work-image .modal-close {
  color: #fff;
}
.modal-panel--work-image .modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.modal-panel--work-image .modal-body {
  padding: 0.75rem 1rem 1rem;
  overflow: visible;
}
.work-image-modal__figure {
  margin: 0;
}
.work-image-modal__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent; /* без подложки за картинкой */
  border-radius: 0.6rem; /* чуть скруглить уголки */
  overflow: hidden;
}

.work-image-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.work-image-modal__nav:hover { background: rgba(15, 23, 42, 0.55); }
.work-image-modal__nav--prev { left: 0.65rem; }
.work-image-modal__nav--next { right: 0.65rem; }

.work-image-modal__counter {
  position: absolute;
  left: 50%;
  top: 0.65rem;
  transform: translateX(-50%);
  font-size: 0.75rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  user-select: none;
}
.work-image-modal__img {
  border-radius: 0.6rem; /* на всякий случай, если где-то без wrap */
}
.work-image-modal__img {
  max-width: 70vw; /* больше ширина, меньше пустых полей */
  max-height: calc(100vh - 320px); /* учитываем подпись + ссылки */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: #111;
}

@media (max-width: 640px) {
  .work-image-modal__img {
    max-width: 96vw;
  }
}
.work-image-modal__caption {
  margin-top: 0.75rem;
  padding: 0.25rem 0;
  border-radius: 0;
  border: none;
  background: transparent; /* без "карточки" */
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}
.work-image-modal__caption-title {
  font-weight: 700;
  color: #fff;
  font-size: 1.125rem;
}
.work-image-modal__caption-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
}
.work-image-modal__caption-line--author {
  flex-wrap: nowrap; /* автор + город в одну строку */
}
.work-image-modal__caption-city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.6rem; /* отступ от имени автора */
  color: rgba(255, 255, 255, 0.82);
}
.work-image-modal__caption-label {
  color: rgba(255, 255, 255, 0.6);
}
.work-image-modal__caption-line a {
  color: #ea580c;
  font-weight: 600;
  text-decoration: none;
}
.work-image-modal__caption-line i {
  margin-right: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95em;
}
.work-image-modal__price {
  color: #ea580c; /* как ссылка автора */
}
.work-image-modal__caption-line a:hover {
  text-decoration: underline;
}
.work-image-modal__caption-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}
.work-image-modal__caption-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  line-height: 1.2;
}

.work-image-modal__links {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.work-image-modal__link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.work-image-modal__link:hover {
  color: #fff;
}

/* В модалке просмотра работы на мобильных: название, автор (только имя), параметры (теги) */
@media (max-width: 767px) {
  #work-image-modal .work-image-modal__tech,
  #work-image-modal .work-image-modal__links,
  #work-image-modal .work-image-modal__caption-line:not(.work-image-modal__caption-line--author) {
    display: none !important;
  }
  #work-image-modal .work-image-modal__caption-line--author {
    justify-content: center;
    gap: 0;
  }
  #work-image-modal .work-image-modal__caption-line--author .work-image-modal__caption-label,
  #work-image-modal .work-image-modal__caption-line--author i,
  #work-image-modal .work-image-modal__caption-line--author .work-image-modal__caption-city {
    display: none !important;
  }
}

.work-images-empty {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px dashed #e4e4e7;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.work-desc {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e4e7;
}
.work-desc__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #18181b;
}
.work-desc .bio {
  font-size: 0.875rem;
  line-height: 1.65;
  columns: 2;
  column-gap: 2rem;
  column-fill: balance;
  column-rule: 4px solid rgba(251, 146, 60, 0.18); /* толстый, но мягкий оранжевый разделитель */
}
.work-desc .bio > * {
  break-inside: avoid;
}

@media (max-width: 820px) {
  .work-desc .bio {
    columns: 1;
    column-gap: 0;
  }
}

@media (max-width: 640px) {
  .work-hero__price {
    width: 100%;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.3rem 0.6rem;
  }
  .work-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "title"
      "tech"
      "meta"
      "contacts"
      "price"
      "tags";
  }
  .work-hero__sub {
    justify-self: center;
    justify-content: center;
    text-align: center;
  }
  .work-hero__contacts {
    justify-self: start;
  }
  .work-hero__contacts .artist-links {
    justify-content: flex-start;
  }
  .work-hero__price-wrap {
    justify-self: center;
  }
  .work-images-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100%;
    justify-items: center;
  }
  .work-images-grid .work-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .artist-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .artist-hero__meta {
    height: auto;
    align-items: center;
  }
  .artist-hero__title {
    justify-content: center;
  }
  .artist-hero__sub {
    justify-content: center;
  }
  .artist-links--hero {
    justify-content: center;
    align-items: center;
  }
}

/* «О себе»: газетная верстка */
.artist-about .bio {
  font-size: 0.875rem;
  line-height: 1.6;
  columns: 2;
  column-gap: 2rem;
  column-fill: balance;
  column-rule: 4px solid rgba(251, 146, 60, 0.18); /* толстый, но мягкий оранжевый разделитель */
}
.artist-about .bio > * {
  break-inside: avoid;
}
.artist-about .bio p {
  margin: 0 0 0.75rem;
}
.artist-about .bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .artist-about .bio {
    columns: 1;
    column-gap: 0;
  }
}

.pagination {
  margin: 1rem 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  background: #e2e8f0;
  border-radius: 0.375rem;
}

.pagination-nav {
  margin: 1rem 0;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0.75rem;
}
.pagination-nav__meta {
  font-size: 0.8125rem;
  color: #475569;
}
.pagination-nav__actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.pagination-nav__btn {
  font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.pagination-nav a.pagination-nav__btn,
.pagination-nav a.pagination-nav__btn:visited {
  color: var(--accent, #ea580c);
  border: 1px solid #fed7aa;
  background: #fff7ed;
}
.pagination-nav a.pagination-nav__btn:hover {
  color: var(--accent-hover, #c2410c);
  border-color: #fdba74;
  background: #ffedd5;
}
.pagination-nav__btn--disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  cursor: default;
  user-select: none;
}
@media (max-width: 560px) {
  .pagination-nav { flex-direction: column; align-items: stretch; }
  .pagination-nav__actions { justify-content: space-between; }
  .pagination-nav__btn { width: 100%; text-align: center; }
}

/* ——— Личный кабинет (профиль, работы) — в стиле системы. Отступы как в Каталоге. */
.cabinet-page .site-main { padding-top: 1.25rem; }
.cabinet-page .cabinet-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: #71717a;
}
.cabinet-page .cabinet-breadcrumb a {
  color: #52525b;
  text-decoration: none;
}
.cabinet-page .cabinet-breadcrumb a:hover { color: var(--accent); }
.cabinet-page .cabinet-breadcrumb span { margin: 0 0.25rem; color: #a1a1aa; }
.cabinet-page .cabinet-breadcrumb span.breadcrumb__current { margin: 0 0 0 0.25rem; color: var(--accent, #ea580c); font-weight: 600; }

.cabinet-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e4e4e7;
  position: relative;
}
.cabinet-tabs-bar { display: flex; gap: 0; }
.cabinet-tabs-toggle,
.cabinet-tabs-menu { display: none; }

.cabinet-tabs-toggle {
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 0.9375rem;
  cursor: pointer;
  justify-content: flex-start;
  box-sizing: border-box;
}
.cabinet-tabs-toggle .bi { font-size: 1.25rem; color: var(--accent); }
.cabinet-tabs-toggle__label { font-weight: 600; }

.cabinet-tabs-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  z-index: 40;
  flex-direction: column;
  gap: 0.25rem;
}
.cabinet-tabs.is-open .cabinet-tabs-menu { display: flex; }
.cabinet-tab-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 0.75rem;
  background: #fff;
  color: #475569;
  font-size: 0.9375rem;
  cursor: pointer;
  text-align: left;
}
.cabinet-tab-menu-item.active { color: var(--accent); background: rgba(234, 88, 12, 0.08); }
.cabinet-tab-menu-item:hover { background: #f8fafc; color: #0f172a; }
.cabinet-tabs button {
  padding: 0.5rem 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #71717a;
}
.cabinet-tabs button:hover { color: #18181b; }
.cabinet-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}
.cabinet-tab { display: none; }
.cabinet-tab.active { display: block; }

@media (max-width: 560px) {
  .cabinet-tabs { border-bottom: none; margin-bottom: 1rem; }
  .cabinet-tabs-bar { display: none; }
  .cabinet-tabs-toggle { display: inline-flex; }
  .cabinet-tabs-toggle__label {
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
  }
  .cabinet-page-title,
  .cabinet-page-desc,
  .cabinet-page-my-page {
    text-align: center;
  }
  .cabinet-page-my-page .cabinet-my-page-link {
    justify-content: center;
  }
  .cabinet-tabs {
    justify-content: center;
  }
  .cabinet-tabs-toggle {
    justify-content: center;
  }
}

.cabinet-page-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #18181b;
}
.cabinet-page-desc {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: #71717a;
}
.cabinet-page-my-page {
  margin: 0 0 1.25rem;
}
.cabinet-panel {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  padding: 1.5rem 1.5rem;
}
.cabinet-panel-title {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #18181b;
}
.cabinet-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}
.cabinet-panel-head-row--profile { justify-content: flex-start; }
.cabinet-panel-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.cabinet-panel-head-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.cabinet-panel-head-row .cabinet-panel-title {
  margin: 0;
}
.cabinet-profile-public-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.875rem;
  font-weight: 500;
}
.cabinet-profile-public-link:hover {
  color: var(--accent-hover, #c2410c);
}
.cabinet-panel .cabinet-alert,
.cabinet-panel .cabinet-msg {
  margin-bottom: 1rem;
}
.cabinet-panel .cabinet-msg:last-of-type { margin-bottom: 1rem; }
.cabinet-alert {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 0.375rem;
  color: #92400e;
}
.cabinet-msg.msg-success { color: #16a34a; font-size: 0.875rem; }
.cabinet-msg.msg-error { color: #dc2626; font-size: 0.875rem; }
.cabinet-tab .tab-placeholder {
  color: #71717a;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

/* ЛК: вкладка «Избранные» */
.cabinet-fav-note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}
.cabinet-fav-note strong { color: #475569; font-weight: 600; }
.cabinet-fav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cabinet-fav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cabinet-fav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  background: #fff;
}
.cabinet-fav-item--disabled {
  opacity: 0.55;
}
.cabinet-fav-thumb {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f4f4f5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e4e7;
}
.cabinet-fav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cabinet-fav-thumb--avatar { border-radius: 9999px; }
.cabinet-fav-meta {
  flex: 1;
  min-width: 0;
}
.cabinet-fav-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #18181b;
  margin: 0;
  line-height: 1.25;
}
.cabinet-fav-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.25;
}
.cabinet-fav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}
.cabinet-fav-badge--deleted {
  color: #94a3b8;
}
.cabinet-fav-icon-btn--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.cabinet-fav-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cabinet-fav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cabinet-fav-icon-btn:hover {
  background: #f8fafc;
  color: #18181b;
}
.cabinet-fav-icon-btn--open {
  color: var(--accent);
}
.cabinet-fav-icon-btn--open:hover {
  color: var(--accent-hover, #c2410c);
  border-color: rgba(251, 146, 60, 0.45);
}
.cabinet-fav-icon-btn--remove:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

/* Пустое состояние в ЛК (например, Архив работ) */
.cabinet-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0.75rem;
  color: #334155; /* чуть темнее, чем placeholder */
}
.cabinet-empty-state__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}
.cabinet-empty-state__text {
  font-size: 0.8125rem; /* меньше */
  line-height: 1.45;
}

.cabinet-works-tariff-current {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
}
.cabinet-works-limit,
.cabinet-works-period {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #334155;
  padding: 0.45rem 0.7rem;
  background: #fef7ed;
  border-left: 3px solid var(--accent, #ea580c);
  border-radius: 0 0.375rem 0.375rem 0;
}
.cabinet-works-period { margin-bottom: 1rem; }
.cabinet-works-limit strong { font-weight: 600; }
.cabinet-works-limit-num { color: var(--accent, #ea580c); font-weight: 600; }
.cabinet-works-period-label {
  font-weight: 600;
  color: #334155;
}
.cabinet-works-period-days {
  color: var(--accent, #ea580c);
  font-weight: 600;
}
.cabinet-works-confirm-row {
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}
.cabinet-works-link-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--accent, #ea580c);
  text-decoration: none;
}
.cabinet-works-link-paid:hover { text-decoration: underline; }
.cabinet-works-link-paid .bi { font-size: 0.9375rem; }
.cabinet-works-promo-activate-block {
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.cabinet-works-promo-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.5rem 0 0;
  line-height: 1.4;
  max-width: 32rem;
}
.cabinet-works-promo-hint a { color: var(--accent, #ea580c); text-decoration: none; }
.cabinet-works-promo-hint a:hover { text-decoration: underline; }
.cabinet-works-tariff-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}
.cabinet-works-tariff-info .bi { font-size: 0.8125rem; color: #16a34a; }
.cabinet-works-extend-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent, #ea580c);
  text-decoration: none;
}
.cabinet-works-extend-link:hover { text-decoration: underline; }
.cabinet-payment-tariff-extend-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent, #ea580c);
  text-decoration: none;
}
.cabinet-payment-tariff-extend-link:hover { text-decoration: underline; }
.cabinet-works-confirm-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
}
.cabinet-works-confirm-warning .bi { font-size: 0.875rem; }
.cabinet-works-confirm-warning.hidden { display: none !important; }

/* Блоки «На сайте» и «Архив» во вкладке Работы */
.cabinet-panel--works {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cabinet-works-on-site,
.cabinet-works-library {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.cabinet-works-library {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.cabinet-works-block-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}
.cabinet-works-block-desc {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

/* Вкладка «Оплата» в ЛК */
.cabinet-panel--payment {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.cabinet-payment-tariffs {
  margin: 0;
}
.cabinet-payment-tariffs__current {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.8125rem;
  color: #475569;
}
.cabinet-payment-tariffs__empty {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}
.cabinet-payment-tariffs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.cabinet-payment-tariff-card {
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.cabinet-payment-tariff-card__label {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.cabinet-payment-tariff-card__price {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.cabinet-payment-tariff-card__works {
  font-size: 0.875rem;
  color: #64748b;
}
.cabinet-payment-tariff-card--inactive {
  opacity: 0.55;
  pointer-events: none;
}
.cabinet-payment-tariff-card--current .cabinet-payment-tariff-card__action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cabinet-payment-tariff-card__current-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent, #ea580c);
}
.cabinet-payment-tariff-card__action .btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.cabinet-payment-tariffs__note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #b45309;
  line-height: 1.4;
  background: #fef7ed;
  border: 1px solid #fdba74;
  border-radius: 0.5rem;
}
.cabinet-payment-tariffs__note .bi {
  flex-shrink: 0;
  font-size: 1rem;
  color: #ea580c;
}
.cabinet-payment-tariff-card__action {
  margin-top: 1rem;
}
.cabinet-payment-tariff-card__action .btn { font-size: 0.875rem; }

/* Модалка: выбор работ при переходе на платный тариф */
.subscribe-works-card {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  overflow: hidden;
}
.subscribe-works-card__counter {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.subscribe-works-card__count {
  color: var(--accent, #ea580c);
  font-weight: 700;
}
.subscribe-works-limit-warning {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #b45309;
  line-height: 1.4;
}
.subscribe-works-limit-warning.hidden { display: none !important; }
.subscribe-step2-desc,
.subscribe-step2-order {
  font-size: 0.8125rem;
  color: #64748b;
}
.subscribe-step2-limit { color: var(--accent, #ea580c); font-weight: 600; }
.subscribe-works-list {
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #e2e8f0;
}
.subscribe-works-list::-webkit-scrollbar {
  width: 8px;
}
.subscribe-works-list::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}
.subscribe-works-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.subscribe-works-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.subscribe-work-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  cursor: pointer;
}
.subscribe-work-row input[type="checkbox"] { flex-shrink: 0; }
.works-status-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  margin-left: 0.25rem;
}
.works-status-published { background: #e0e7ff; color: #3730a3; }
.works-status-draft { background: #f1f5f9; color: #64748b; }
.subscribe-step3-summary {
  padding: 1rem 1rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 0;
}
.subscribe-step3-line {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.5;
}
.subscribe-step3-line:last-child { margin-bottom: 0; }
.subscribe-step3-num { color: var(--accent, #ea580c); font-weight: 600; }
.subscribe-step3-period { font-size: 0.875rem; color: #64748b; }
.subscribe-step3-period strong { color: #334155; }
.subscribe-step3-tariff { font-weight: 600; color: #0f172a; }
.subscribe-step3-emu-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  background: #fef7ed;
  border: 1px solid #fdba74;
  border-radius: 0.25rem;
  padding: 0.2rem 0.5rem;
  margin-right: 0.35rem;
}

.cabinet-payment-rules {
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.cabinet-payment-rules__title {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #18181b;
}
.cabinet-payment-rules__content {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #334155;
}
.cabinet-payment-rules__content p {
  margin: 0 0 0.75rem;
}
.cabinet-payment-rules__content p:last-child {
  margin-bottom: 0;
}

/* Вкладка «Информация» в кабинете: слева — таймлайн, справа — текст; не выходить за границы области вкладок */
.cabinet-panel--info {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}
.cabinet-info-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}
@media (max-width: 768px) {
  .cabinet-info-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cabinet-info-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
  }
  .cabinet-info-timeline__connector { display: none; }
  .cabinet-info-timeline__item { flex-direction: column; }
}

/* Таймлайн слева — расширенный блок */
.cabinet-info-timeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  width: 100%;
  min-width: 13rem;
  padding: 0.5rem 0;
  padding-left: 0.25rem;
}
.cabinet-info-timeline__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.35rem 0.25rem 0.35rem 0;
  transition: background-color 0.15s;
}
.cabinet-info-timeline__item:hover {
  background-color: #f1f5f9;
}
.cabinet-info-timeline__item:hover .cabinet-info-timeline__label {
  color: #0f172a;
}
.cabinet-info-timeline__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.125rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.cabinet-info-timeline__item--steps .cabinet-info-timeline__icon,
.cabinet-info-timeline__item--works .cabinet-info-timeline__icon,
.cabinet-info-timeline__item--profile .cabinet-info-timeline__icon,
.cabinet-info-timeline__item--payment .cabinet-info-timeline__icon {
  background: #f97316;
}
.cabinet-info-timeline__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.cabinet-info-timeline__connector {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.25rem 0;
  padding-left: 1.25rem;
}
.cabinet-info-timeline__connector::before {
  content: "";
  width: 2px;
  height: 1.25rem;
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 100%);
  border-radius: 1px;
  margin-right: 0.5rem;
}
.cabinet-info-timeline__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: #f97316;
}

/* Контент справа — занимает оставшееся место в рамках общей ширины панели */
.cabinet-info-content {
  min-width: 0;
}
.cabinet-info-intro {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}
.cabinet-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cabinet-info-block {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cabinet-info-block__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}
.cabinet-info-block__body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334155;
}
.cabinet-info-block__body p {
  margin: 0 0 0.75rem;
}
.cabinet-info-block__body p:last-child {
  margin-bottom: 0;
}

/* Форма профиля в кабинете */
.cabinet-form .cabinet-form-cards { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
.cabinet-form .cabinet-card.form-block { margin-bottom: 0; }
.cabinet-form .cabinet-card--muted { background: #fafafa; border-color: #e4e4e7; }
.cabinet-form .cabinet-card-placeholder { margin: 0; font-size: 0.8125rem; color: #71717a; line-height: 1.5; }
.cabinet-form .form-block {
  background: #f8fafc;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.cabinet-form .form-block-title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3f3f46;
}
.cabinet-form .bio-editor { margin-bottom: 0; }
.cabinet-form .bio-toolbar {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.cabinet-form .bio-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 0.375rem;
  background: #fff;
  color: #52525b;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cabinet-form .bio-toolbar-btn:hover { background: #f1f5f9; color: #18181b; }
.cabinet-form .bio-toolbar-btn.bio-preview-toggle {
  width: auto;
  min-width: auto;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.cabinet-form .bio-toolbar-format { display: inline-flex; gap: 0.25rem; }
.cabinet-form .bio-toolbar-format.hidden { display: none !important; }
.cabinet-form .bio-editor textarea { display: block; width: 100%; }
.cabinet-form .bio-editor textarea.hidden { display: none !important; }
.cabinet-form .bio-preview-wrap { margin-top: 0.5rem; padding: 1rem; border: 1px solid #e4e4e7; border-radius: 0.5rem; background: #f8fafc; min-height: 6rem; }
.cabinet-form .bio-preview-wrap.hidden { display: none !important; }
.cabinet-form .bio-preview-label { font-size: 0.75rem; color: #71717a; margin-bottom: 0.5rem; }
.cabinet-form .bio-preview-content { line-height: 1.6; color: #3f3f46; font-size: 0.9375rem; }
.cabinet-form .bio-preview-content strong { font-weight: 600; }
.cabinet-form .bio-preview-content em { font-style: italic; }
.cabinet-form .bio-preview-content .bio-heading { font-size: 1rem; font-weight: 600; margin: 0.75rem 0 0.25rem; color: #18181b; }
.cabinet-form .bio-preview-content .bio-heading:first-child { margin-top: 0; }
.cabinet-form .form-group {
  margin-bottom: 1rem;
}
.cabinet-form .form-group:last-child { margin-bottom: 0; }
.cabinet-form .form-group--name-display label { font-size: 0.75rem; color: #64748b; }
.cabinet-form .form-group--name-display select { font-size: 0.8125rem; }
.cabinet-form .form-hint-accent { font-size: 0.6875rem; color: #64748b; font-weight: 500; }

/* ЛК: сетка полей (3 в ряд) */
.cabinet-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cabinet-form-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cabinet-form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cabinet-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Убираем лишние отступы у form-group внутри сетки */
.cabinet-form-grid .form-group { margin-bottom: 0; }
@media (max-width: 980px) {
  .cabinet-form-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cabinet-form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cabinet-form-grid--4 { grid-template-columns: 1fr; }
  .cabinet-form-grid--3 { grid-template-columns: 1fr; }
  .cabinet-form-grid--2 { grid-template-columns: 1fr; }
}
.cabinet-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #52525b;
  margin-bottom: 0.25rem;
}
.cabinet-form input[type="text"],
.cabinet-form input[type="url"],
.cabinet-form select,
.cabinet-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #18181b;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.375rem;
  box-sizing: border-box;
}
.cabinet-form input:focus,
.cabinet-form select:focus,
.cabinet-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}
.cabinet-form textarea { min-height: 10rem; resize: vertical; }
.cabinet-form small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #71717a;
}
.cabinet-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.cabinet-profile-delete-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e4e7;
}
.cabinet-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.cabinet-form .btn-primary {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  border-color: transparent;
}
.cabinet-form .btn-primary:hover { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.cabinet-form .btn-secondary {
  background: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
}
.cabinet-form .btn-secondary:hover { background: #e4e4e7; }
.cabinet-form .btn-danger {
  background: #dc2626;
  color: #fff;
}
.cabinet-form .btn-danger:hover { background: #b91c1c; }
.cabinet-form .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }

/* Аватар в форме профиля ЛК */
.cabinet-form .avatar-form-group .avatar-edit-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.cabinet-form .avatar-preview-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e4e4e7;
  background: #f4f4f5;
}
.cabinet-form .avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cabinet-form .avatar-preview-img.empty {
  display: none;
}
.cabinet-form .avatar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.cabinet-form .avatar-actions .hidden { display: none !important; }
.cabinet-form .avatar-actions .avatar-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; border: 1px solid var(--border, #e4e4e7); background: #fff; color: #475569; font-size: 1.1rem; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cabinet-form .avatar-actions .avatar-btn-icon:hover { background: #f1f5f9; color: #334155; }
.cabinet-form .avatar-actions .avatar-btn-icon--remove:hover { background: #fef2f2; color: #dc2626; }
/* Оверлей обрезки аватара — одна картинка, один контейнер под Cropper */
.avatar-crop-panel .modal-body { padding: 1rem 1.5rem; }
.avatar-crop-wrap {
  width: 100%;
  max-width: 400px;
  height: 400px;
  margin: 0 auto;
  background: #f4f4f5;
  overflow: visible;
}
/* Cropper создаёт .cropper-container внутри .avatar-crop-wrap — не обрезать ручки */
.avatar-crop-wrap .cropper-container { width: 100% !important; height: 100% !important; }
.avatar-crop-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.avatar-crop-container { max-width: 100%; min-height: 200px; }
.avatar-crop-container img { display: block; max-width: 100%; }

.login-prompt {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
}
.login-prompt p { margin: 0 0 1rem; color: #52525b; font-size: 0.9375rem; }
.login-prompt .btn {
  display: inline-flex;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 0.375rem;
  border: none;
}
.login-prompt .btn:hover { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }

.cabinet-loading { color: #71717a; font-size: 0.875rem; }

/* Кнопки в кабинете и в модалке — как в системе (btn-primary / btn-secondary) */
.cabinet-page .cabinet-panel .btn,
.modal-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.cabinet-page .cabinet-panel .btn-primary,
.modal-panel .btn-primary {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}
.cabinet-page .cabinet-panel .btn-primary:hover,
.modal-panel .btn-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.cabinet-page .cabinet-panel .btn-secondary,
.modal-panel .btn-secondary {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.cabinet-page .cabinet-panel .btn-secondary:hover,
.modal-panel .btn-secondary:hover {
  background-color: #f1f5f9;
  color: #334155;
}
.cabinet-page .cabinet-panel .btn-danger,
.modal-panel .btn-danger {
  background-color: #dc2626;
  color: #fff;
  border: 1px solid #b91c1c;
}
.cabinet-page .cabinet-panel .btn-danger:hover,
.modal-panel .btn-danger:hover {
  background-color: #b91c1c;
}
.cabinet-page .cabinet-panel .btn[disabled],
.modal-panel .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Модалка и тост (ЛК) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  transition: opacity 0.15s;
}
.modal-overlay--waves {
  overflow: hidden;
}
.modal-waves__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.modal-overlay--waves .modal-panel {
  position: relative;
  z-index: 1;
}
.modal-overlay.hidden { display: none; opacity: 0; }
.modal-panel {
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  max-width: 44rem;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Модалка просмотра работы: тёмно‑серый фон панели (перебивает базовый .modal-panel) */
.modal-panel.modal-panel--work-image {
  background: rgba(12, 12, 12, 0.82);
  border: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.modal-panel.modal-panel--work-image .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.modal-panel.modal-panel--work-image .modal-title {
  color: #fff;
}
.modal-panel.modal-panel--work-image .modal-close {
  color: #fff;
}
.modal-panel.modal-panel--work-image .modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e4e4e7;
  flex-shrink: 0;
}
.modal-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: #18181b; }
.modal-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #71717a;
  cursor: pointer;
  border-radius: 0.25rem;
}
.modal-close:hover { color: #18181b; background: #f4f4f5; }
.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Модалка сайта: правила и тарифы */
.site-modal-panel {
  max-width: 36rem;
}
.site-modal-panel:has(.placement-rules) {
  max-width: 48rem;
}
.placement-rules {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #334155;
}

/* Правила — карточки с оранжевыми акцентами */
.placement-rules__intro-card {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-left: 4px solid var(--accent);
}
.placement-rules__intro-card .placement-rules__intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #475569;
}

.placement-rules__cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.placement-rules__card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.placement-rules__card:hover {
  border-color: #fed7aa;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}
.placement-rules__card-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}
.placement-rules__card-body {
  flex: 1;
  min-width: 0;
}
.placement-rules__card-title {
  display: block;
  color: #0f172a;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}
.placement-rules__card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}
.placement-rules__card-text + .placement-rules__card-text {
  margin-top: 0.5rem;
}
.placement-rules__list {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}
.placement-rules__list li {
  margin-bottom: 0.25rem;
}
.placement-rules__list li:last-child {
  margin-bottom: 0;
}

.placement-rules__outro-card {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-left: 4px solid #c4b5fd;
}
.placement-rules__outro {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}
.placement-rules__outro-card .placement-rules__outro {
  color: #64748b;
}

/* Artsroom — CTA блок на странице "Зрителям" */
.placement-rules__cta {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.placement-rules__cta-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.78);
}

.site-modal-tariffs {
  display: grid;
  gap: 1rem;
}
.site-modal-tariffs__intro {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.45;
}
.site-modal-tariffs__intro-mark {
  color: var(--accent);
  font-size: 1.35em;
}
.site-modal-tariffs__empty {
  margin: 0;
  color: #64748b;
  font-size: 0.9375rem;
}
.site-modal-tariffs__note {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  color: #64748b;
}
.site-modal-tariff-card {
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.site-modal-tariff-card__label {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.site-modal-tariff-card__price {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.site-modal-tariff-card__works {
  font-size: 0.875rem;
  color: #64748b;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
}
.toast.success { background: #16a34a; color: #fff; }
.toast.error { background: #dc2626; color: #fff; }

/* Вкладка «Работы» в ЛК */
.works-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; flex-wrap: wrap; gap: 0.75rem; }
.works-toolbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.works-toolbar-right {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.cabinet-my-page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.cabinet-my-page-link:hover { color: var(--accent-hover, #c2410c); }
.cabinet-my-page-link i { font-size: 0.95em; }
.cabinet-my-page-link span { line-height: 1; }

/* ЛК: переключение режима (artist -> viewer) */
.cabinet-role-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.cabinet-role-switch-link:hover { color: #0f172a; }
.cabinet-role-switch-link i { font-size: 0.95em; }
.cabinet-role-switch-link span { line-height: 1; }

/* В режиме зрителя ссылка на переключение — акцентная */
.cabinet-role-switch-link--accent {
  color: var(--accent);
}
.cabinet-role-switch-link--accent:hover {
  color: var(--accent-hover, #c2410c);
}

/* ЛК: бейдж для запуска AI-помощника */
.cabinet-page-ai-help {
  margin: 0.35rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.cabinet-ai-help-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.32);
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.14) 0%, rgba(234, 88, 12, 0.2) 100%);
  color: var(--accent, #ea580c);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.18);
}
.cabinet-ai-help-badge:hover {
  color: var(--accent-hover, #c2410c);
  border-color: rgba(194, 65, 12, 0.36);
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.24);
}
.cabinet-ai-help-badge i {
  font-size: 0.9rem;
}
.cabinet-page-ai-help__note {
  font-size: 0.75rem;
  color: #64748b;
}

/* Публичная страница "О проекте" */
.about-page {
  margin: 0 0 3rem;
}
.about-page__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: #475569;
  margin: 0 0 1rem;
}
.about-page__kicker .bi {
  color: rgba(99, 102, 241, 0.9);
  transform: translateY(0.5px);
}
.about-page__title {
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}
.about-page__lead {
  max-width: 50rem;
  font-size: 1rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.about-page__lead p {
  margin: 0 0 0.75rem;
}
.about-page__lead-note {
  padding-left: 0.85rem;
  border-left: 2px solid rgba(99, 102, 241, 0.35);
  color: #334155;
}
.about-muted {
  color: #64748b;
}
.about-audience {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.9rem;
  align-items: start;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
}
.about-audience__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.18);
  color: #334155;
}
.about-audience__icon .bi {
  font-size: 1.15rem;
}
.about-audience__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
}
.about-audience__text,
.about-audience__note {
  margin: 0.35rem 0 0;
  color: #334155;
  line-height: 1.55;
}
.about-audience__note {
  color: #475569;
  font-size: 0.95rem;
}
.about-page__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.about-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  color: #334155;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.55), rgba(2, 132, 199, 0.35), rgba(16, 185, 129, 0.28));
  opacity: 0.75;
}
.about-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: #0f172a;
}
.about-card p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}
.about-card__note {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(148, 163, 184, 0.65);
}
.about-list {
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.about-list li {
  line-height: 1.45;
  display: grid;
  grid-template-columns: 0.85rem 1fr;
  gap: 0.55rem;
  align-items: start;
}
.about-list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.35);
  margin-top: 0.45rem;
}
.about-li-content {
  grid-column: 2;
  min-width: 0;
}

/* ЛК: инфокарточка режима */
.cabinet-mode-card {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  margin: 0 0 1rem;
}
.cabinet-mode-card i {
  color: #64748b;
  font-size: 1rem;
  margin-top: 0.1rem;
}
.cabinet-mode-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.15rem;
}
.cabinet-mode-card__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
}

/* ЛК: аккуратный текст в confirm-модалке */
.cabinet-modal-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.45;
}
.works-list-wrap { min-height: 0; }
/* Чтобы в состояниях "Загрузка/Нет данных" блок не схлопывался,
   но при наличии таблицы не оставался "пустой хвост" до бордюра. */
.works-list-wrap .tab-placeholder { min-height: 4rem; margin: 0; display: flex; align-items: center; }
.works-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.25; }
.works-table th { text-align: center; padding: 0.375rem 0.5rem; font-weight: 600; color: #475569; background: #f8fafc; }
.works-table th:nth-child(3) { text-align: left; }
.works-table td { padding: 0.25rem 0.5rem; border-top: 1px solid #e2e8f0; vertical-align: middle; text-align: center; }
.works-table td:nth-child(3) { text-align: left; }
.works-table .works-grip-cell { width: 2rem; padding: 0.25rem; vertical-align: middle; }
.works-table .works-status-cell { font-size: 0.8125rem; color: #64748b; }
.works-table .works-date-cell { font-size: 0.8125rem; color: #64748b; }
.works-table .works-price-cell { font-size: 0.8125rem; color: #c2410c; font-weight: 600; }
.works-table tr:hover { background: #fafafa; }
.works-drag-handle { cursor: grab; color: #94a3b8; display: inline-flex; align-items: center; padding: 0.25rem; }
.works-drag-handle:hover { color: #475569; }
.works-table tr.works-dragging { color: var(--accent-hover); }
.works-table tr.works-drop-before { border-top: 2px solid var(--accent); }
.works-table tr.works-drop-after { border-bottom: 2px solid var(--accent); }
.works-drop-badge { margin-left: 0.5rem; display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; font-size: 10px; font-weight: 500; color: var(--accent-hover); background: #e2e8f0; border-radius: 9999px; }
.works-preview {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid #e4e4e7;
  display: block; /* убираем "baseline gap" у img в таблице */
  margin: 0 auto;
  vertical-align: middle;
}
.works-preview-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  display: flex; /* блочный контейнер, чтобы ровно центрировать в ячейке */
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  font-size: 0.75rem;
  margin: 0 auto;
  vertical-align: middle;
}
.works-actions { display: flex; flex-wrap: nowrap; gap: 0.25rem; align-items: center; justify-content: center; }
.works-actions .works-btn { flex-shrink: 0; }
/* Кнопки действий в таблице работ — как в админке (иконки bi-pencil, bi-trash, bi-eye) */
.works-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
}
.works-btn:hover { background: #f1f5f9; color: #0f172a; }
.works-btn.works-btn-edit:hover { background: #f1f5f9; color: #475569; }
.works-btn.works-btn-publish:hover { background: #f1f5f9; color: #ef4444; }
.works-btn.works-btn-unpublish:hover { background: #f1f5f9; color: #16a34a; }
.works-btn.works-btn-delete:hover { background: #fef2f2; color: #dc2626; }
.works-btn.works-btn--disabled,
.works-btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ЛК: мобильная таблица «Работы» — только Фото + Название */
@media (max-width: 560px) {
  .works-table { font-size: 0.875rem; }
  .works-table th, .works-table td { padding: 0.25rem 0.4rem; }
  .works-table .works-grip-cell,
  .works-table .works-price-cell,
  .works-table .works-date-cell,
  .works-table .works-status-cell { display: none; }
  .works-preview, .works-preview-placeholder { width: 3rem; height: 3rem; }
  .works-title-cell { line-height: 1.25; font-size: 0.75rem; }

  .works-table .works-actions { justify-content: flex-end; flex-wrap: nowrap; }
  .works-table .works-actions .works-btn { flex-shrink: 0; }
  .works-table .works-actions-cell { width: auto; min-width: 4.25rem; }
  .works-table th.works-actions-cell { color: transparent; } /* заголовок «Действия» не нужен */
  /* Таблица событий: на мобиле скрываем «Текст», статус оставляем */
  .events-list-wrap .works-table .works-status-cell { display: table-cell; }
  .events-list-wrap .events-text-cell { display: none; }
}

/* ЛК на мобиле: скрываем вкладку «Информация» */
@media (max-width: 560px) {
  .cabinet-tab-btn[data-tab="info"],
  .cabinet-tab-menu-item[data-tab="info"] { display: none !important; }
}

/* ЛК на мобиле: скрываем длинное описание в блоке «На сайте» */
@media (max-width: 560px) {
  .cabinet-works-on-site .cabinet-works-block-desc { display: none; }
}
.works-modal-form .form-group { margin-bottom: 1rem; }
.works-modal-form .form-group:last-child { margin-bottom: 0; }
.works-modal-form label { display: block; font-size: 0.8125rem; font-weight: 500; color: #52525b; margin-bottom: 0.25rem; }
.works-modal-form input[type="text"], .works-modal-form input[type="number"], .works-modal-form input[type="url"], .works-modal-form input[type="datetime-local"], .works-modal-form textarea, .works-modal-form select {
  width: 100%; padding: 0.5rem 0.75rem; font-size: 0.875rem; border: 1px solid #e4e4e7; border-radius: 0.375rem; box-sizing: border-box;
  background: #fff; color: #18181b;
}
.works-modal-form input:focus, .works-modal-form textarea:focus, .works-modal-form select:focus {
  outline: none; border-color: #fb923c; box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.2);
}
.works-modal-form textarea { min-height: 4rem; resize: vertical; }
.works-modal-form input[type="file"] {
  max-width: 100%;
  font-size: 0.8125rem;
  color: #334155;
}
/* Стилизуем кнопку выбора файла (современные браузеры) */
.works-modal-form input[type="file"]::file-selector-button {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-right: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1;
}
.works-modal-form input[type="file"]::file-selector-button:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
/* Safari/старые Chromium */
.works-modal-form input[type="file"]::-webkit-file-upload-button {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-right: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1;
}
.works-modal-form input[type="file"]::-webkit-file-upload-button:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.works-hashtags-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.75rem; }
.works-hashtag-source { display: flex; flex-wrap: wrap; gap: 0.35rem; max-height: 6rem; overflow-y: auto; padding: 0.5rem; border: 1px solid #e4e4e7; border-radius: 0.375rem; background: #fafafa; }
.works-hashtag-source button { font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 999px; border: 1px solid #e4e4e7; background: #fff; color: #52525b; cursor: pointer; }
.works-hashtag-source button:hover { border-color: var(--accent); color: var(--accent); }
.works-hashtag-source button.hidden { display: none; }
.works-selected-hashtags { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 1.5rem; padding: 0.5rem; border: 1px solid #e4e4e7; border-radius: 0.375rem; background: #f4f4f5; }
.works-selected-chip { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; padding: 0.2rem 0.4rem; border-radius: 999px; background: rgba(234, 88, 12, 0.15); border: 1px solid rgba(234, 88, 12, 0.3); color: var(--accent-hover); }
.works-selected-chip .remove { cursor: pointer; padding: 0 0.1rem; font-size: 0.9em; line-height: 1; }
.works-images-row { margin-top: 0.75rem; }
.works-edit-images { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.works-edit-images .img-wrap { position: relative; }
.works-edit-images .img-wrap img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 0.25rem; border: 1px solid #e4e4e7; }
.works-edit-images .img-wrap .img-del { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #dc2626; color: #fff; border: none; cursor: pointer; font-size: 0.7rem; line-height: 1; padding: 0; display: flex; align-items: center; justify-content: center; }
.works-modal-form .form-actions { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e4e4e7; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: btn-spin 0.7s linear infinite; vertical-align: middle; margin-right: 0.5rem; }
/* Модалка «Предложить событие» в ЛК */
.event-modal-form .form-label-req { color: #dc2626; font-weight: 600; }
.event-modal-form .form-label-optional { font-weight: 400; color: #94a3b8; font-size: 0.75rem; }
.event-modal-intro {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
  background: #f8fafc;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
}
.event-form-cover-group .event-form-cover-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.event-form-datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.event-form-datetime-cell label { display: block; }
.event-form-datetime-cell input { margin-top: 0.25rem; }
@media (max-width: 480px) {
  .event-form-datetime-row { grid-template-columns: 1fr; }
}
.event-form-cover-group input[type="file"] { display: none; }
.event-form-cover-name { font-size: 0.75rem; color: #64748b; }
.event-form-cover-preview { min-height: 0; margin-top: 0.5rem; }
.event-form-cover-preview:not(:empty) { margin-top: 0.5rem; }
.event-form-cover-preview .event-form-cover-img {
  max-width: 120px; max-height: 120px; object-fit: cover; border-radius: 0.5rem;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.modal-panel:has(.event-modal-form) { max-width: 40rem; }
.modal-panel:has(.event-modal-form) .modal-body { padding: 1.25rem 1.5rem; }

/* Таблица заявок на события в ЛК — как «Работы» */
.events-list-wrap .works-table th:nth-child(4),
.events-list-wrap .works-table td:nth-child(4) { text-align: left; }
.cabinet-panel--events .events-list-wrap { margin-top: 0.75rem; }

.cabinet-panel--exhibitions .works-list-wrap { margin-top: 0.5rem; }

/* ЛК: форма заявки на выставку */
.exhibition-info-panel .exhibition-info-meta li { margin-bottom: 0.25rem; }
.exhibition-info-panel .exhibition-info-meta li:last-child { margin-bottom: 0; }
.exhibition-info-panel .exhibition-info-meta .bi { color: #71717a; }
#exhibitions-me-root > .exhibition-info-panel { margin-top: 1rem; }
.cabinet-panel--exhibition-form .cabinet-form input[type="email"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #18181b;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.375rem;
  box-sizing: border-box;
}
.cabinet-panel--exhibition-form .cabinet-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}
.exhibition-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #52525b;
  line-height: 1.4;
  cursor: pointer;
}
.exhibition-consent-label:last-of-type { margin-bottom: 0; }
.exhibition-consent-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Таблица работ в заявке на выставку (ЛК) */
.exhibition-works-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}
.exhibition-works-table thead {
  background: #f1f5f9;
}
.exhibition-works-table th {
  text-align: left;
  font-weight: 500;
  color: #334155;
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.exhibition-works-table td {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.exhibition-works-table tbody tr:last-child td { border-bottom: none; }
.exhibition-works-table tbody tr:hover { background: #f8fafc; }

.exhibition-works-table__photo-cell { width: 4rem; }
.exhibition-works-table__photo {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e4e4e7;
}
.exhibition-works-table__no-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: #f4f4f5;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
}
.exhibition-works-table__title-cell { font-weight: 500; color: #334155; min-width: 8rem; }
.exhibition-works-table__dims-cell { color: #64748b; white-space: nowrap; }
.exhibition-works-table__desc-cell { color: #64748b; max-width: 14rem; line-height: 1.35; }
.exhibition-works-table__actions-cell { white-space: nowrap; }
.exhibition-works-table__decision-cell { text-align: center; white-space: nowrap; }
.exhibition-work-decision { font-size: 0.75rem; font-weight: 500; }
.exhibition-work-decision--accepted { color: #16a34a; }
.exhibition-work-decision--rejected { color: #dc2626; }

.exhibition-submission-view { font-size: 0.875rem; }
.exhibition-submission-view__section { margin-bottom: 1.25rem; }
.exhibition-submission-view__section:last-child { margin-bottom: 0; }
.exhibition-submission-view__section strong { display: block; font-size: 0.8125rem; color: #475569; margin-bottom: 0.25rem; }

/* Таблица заявок на выставки (ЛК — список моих заявок) */
.exhibitions-me-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  margin-top: 1rem;
}
.exhibitions-me-table thead { background: #f1f5f9; }
.exhibitions-me-table th {
  text-align: left;
  font-weight: 500;
  color: #334155;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.exhibitions-me-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.exhibitions-me-table tbody tr:last-child td { border-bottom: none; }
.exhibitions-me-table tbody tr:hover { background: #f8fafc; }
.exhibitions-me-table__title { font-weight: 500; color: #334155; }
.exhibitions-me-table__date,
.exhibitions-me-table__when,
.exhibitions-me-table__deadline,
.exhibitions-me-table__status { color: #64748b; white-space: nowrap; text-align: center; }
.exhibitions-me-table th.exhibitions-me-table__date,
.exhibitions-me-table th.exhibitions-me-table__when,
.exhibitions-me-table th.exhibitions-me-table__deadline,
.exhibitions-me-table th.exhibitions-me-table__status,
.exhibitions-me-table th.exhibitions-me-table__link,
.exhibitions-me-table th.exhibitions-me-table__add,
.exhibitions-me-table th.exhibitions-me-table__actions,
.exhibitions-me-table th.exhibitions-me-table__payment { text-align: center; }
.exhibitions-me-table__link,
.exhibitions-me-table__add,
.exhibitions-me-table__actions,
.exhibitions-me-table__payment { text-align: center; white-space: nowrap; }
.exhibitions-me-table__my-link { color: var(--accent, #ea580c); text-decoration: none; font-size: 0.8125rem; }
.exhibitions-me-table__my-link:hover { text-decoration: underline; }
button.exhibitions-me-table__my-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
a.exhibitions-me-table__my-link {
  display: inline-block;
}
.exhibitions-me-table__add-work,
.exhibitions-me-add-work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none !important;
}
.exhibitions-me-table__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  margin: 0 0.1rem;
}
.exhibitions-me-table__action-btn:hover { background: #f1f5f9; color: #334155; }
.exhibitions-me-table__action-delete:hover { background: #fef2f2; color: #dc2626; }
.exhibitions-me-table__status { font-weight: 500; }
.exhibitions-me-payment {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #166534;
  font-weight: 600;
}

/* Бейдж «Оплатить» в стиле сайта (оранжевый pill, как «Участие платное») */
.exhibitions-me-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #9a3412;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.35);
  cursor: pointer;
  font-family: inherit;
  box-shadow: none;
}
.exhibitions-me-pay-badge:hover {
  background: rgba(251, 146, 60, 0.25);
  border-color: rgba(251, 146, 60, 0.5);
  color: #9a3412;
}
.exhibitions-me-pay-badge .bi { font-size: 0.8rem; }
.exhibitions-me-pay-badge[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Цвета и иконки статусов заявки на выставку */
.exhibitions-me-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
}
.exhibitions-me-status .bi { font-size: 1rem; flex-shrink: 0; }
.exhibitions-me-status--draft { color: #64748b; }
.exhibitions-me-status--submitted { color: var(--accent, #ea580c); }
.exhibitions-me-status--accepted { color: #16a34a; }
.exhibitions-me-status--rejected { color: #dc2626; }

.exhibitions-me-status__rejected {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}

/* Кнопка «Добавить работу» в форме заявки на выставку — белая с оранжевой обводкой, компактная */
#ex-sub-btn-add-work {
  background: #fff;
  border: 2px solid var(--accent, #ea580c);
  color: var(--accent, #ea580c);
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  gap: 0.3rem;
}
#ex-sub-btn-add-work:hover {
  background: rgba(234, 88, 12, 0.08);
  border-color: var(--accent-hover, #c2410c);
  color: var(--accent-hover, #c2410c);
}
#ex-sub-btn-add-work .bi { font-size: 0.875rem; }

/* Кнопки редактировать/удалить в списке работ выставки */
.exhibition-work-edit,
.exhibition-work-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.exhibition-work-edit:hover,
.exhibition-work-edit:focus {
  background: #f1f5f9;
  color: #475569;
  outline: none;
}
.exhibition-work-delete:hover,
.exhibition-work-delete:focus {
  background: #fef2f2;
  color: #dc2626;
  outline: none;
}
.exhibition-work-edit .bi,
.exhibition-work-delete .bi {
  font-size: 0.9375rem;
}

.events-list-wrap .works-table .works-photo-cell { width: 3.75rem; }
.events-list-wrap .works-table .works-status-cell { min-width: 6rem; }
.events-list-wrap .works-table { font-size: 0.8125rem; }
.events-list-wrap .works-title-cell { line-height: 1.25; }
.events-list-wrap .events-date-cell {
  width: 10.5rem; /* чтобы влезало "26.02.2026 10:00" */
  font-size: 0.75rem;
  color: #64748b;
  vertical-align: middle;
  text-align: center;
}
.events-list-wrap .events-date-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem; /* под высоту превью */
}
.events-list-wrap .events-date-main { white-space: nowrap; }
.events-list-wrap .events-date-sub {
  margin-top: 0.15rem;
  white-space: nowrap;
  font-size: 0.6875rem;
  color: #94a3b8;
}
.events-list-wrap .events-title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #0f172a;
  line-height: 1.25;
}
.events-list-wrap .events-text {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #475569;
}
.events-list-wrap .events-text--empty { color: #94a3b8; }
.event-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
@media (max-width: 520px) {
  .event-preview-grid { grid-template-columns: 1fr; }
}
.event-preview-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}
.event-preview-value {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #334155;
}
.event-preview-desc {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}
.event-status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
}
.event-status-draft { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.event-status-published { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.event-status-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.event-status-archived { background: #f4f4f5; color: #71717a; border: 1px solid #e4e4e7; }

.btn-secondary .btn-spinner { border-color: rgba(71,85,105,0.3); border-top-color: #475569; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; }

/* Модалка «Работа: что сделать?» — компактная ширина, карточки на всю ширину */
.modal-panel--work-action { max-width: 30rem; }
.modal-panel--work-action .modal-body { padding: 1rem 1.25rem; }
.work-action-modal { width: 100%; box-sizing: border-box; }
.work-action-modal .work-action-intro {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}
.work-action-choices {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.work-action-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  text-align: left;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  font-family: inherit;
}
.work-action-choice:hover:not(:disabled) {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.work-action-choice:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f8fafc;
}
.work-action-choice__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #64748b;
}
.work-action-choice--archive .work-action-choice__icon {
  background: #f1f5f9;
  color: #475569;
}
.work-action-choice--archive:hover:not(:disabled) .work-action-choice__icon {
  background: #e2e8f0;
  color: #334155;
}
.work-action-choice--delete .work-action-choice__icon {
  background: #fef2f2;
  color: #dc2626;
}
.work-action-choice--delete:hover:not(:disabled) {
  border-color: #fecaca;
  background: #fff5f5;
}
.work-action-choice--delete:hover:not(:disabled) .work-action-choice__icon {
  background: #fecaca;
  color: #b91c1c;
}
.work-action-choice__content { flex: 1; min-width: 0; }
.work-action-choice__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.15rem;
}
.work-action-choice__desc {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #64748b;
}
.work-action-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 0.25rem;
  vertical-align: middle;
}
.work-action-footer {
  padding-top: 0.25rem;
  border-top: 1px solid #f1f5f9;
}
.work-action-footer .btn { font-size: 0.8125rem; }

/* =========================================================
   Видео: публичная лента + модалка
   ========================================================= */

.videos-page__head {
  margin: 0 0 1rem;
}
.videos-page__title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}
.videos-page__desc {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

.videos-controls {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.875rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin: 0 0 1rem;
}
.videos-controls__label {
  display: block;
  font-size: 0.75rem;
  color: #475569;
  margin: 0 0 0.35rem;
}
.videos-controls__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.videos-controls__select {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.875rem;
  background: #fff;
}
.videos-controls__select:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251,146,60,0.18);
}
.videos-controls__btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.videos-controls__btn:hover {
  background: #f1f5f9;
}
.videos-controls__hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.videos-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 980px) {
  .videos-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .videos-feed { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

.video-card {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.video-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.video-card:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251,146,60,0.18);
}
.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.video-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.video-card__poster-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.video-card__play {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
}
.video-card__body {
  padding: 0.75rem 0.85rem 0.85rem;
}
.video-card__album {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}
.video-card__title {
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 650;
  color: #0f172a;
}

.videos-feed__status {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
  min-height: 1.25rem;
}
.videos-feed__status--error { color: #b91c1c; }
.videos-feed__sentinel { height: 1px; }

.videos-albums {
  margin-top: 1.25rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem 0.9rem;
}
.videos-albums__summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: #0f172a;
  padding: 0.35rem 0.25rem;
}
.videos-albums__summary::-webkit-details-marker { display: none; }
.videos-albums__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding-top: 0.75rem;
}
@media (max-width: 980px) {
  .videos-albums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .videos-albums__grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

.video-album-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.video-album-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.video-album-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.video-album-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.video-album-card__icon {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  pointer-events: none;
}
.video-album-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.video-album-card__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
.video-album-card__cover--empty .video-album-card__icon {
  left: 50%;
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.45);
}
.video-album-card__count {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
.video-album-card__body {
  padding: 0.75rem 0.85rem 0.85rem;
}
.video-album-card__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 650;
  color: #0f172a;
}
.video-album-card__description {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.video-modal-overlay[hidden] { display: none; }
.video-modal {
  width: min(980px, 96vw);
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.video-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
}
.video-modal__close:hover { background: rgba(0,0,0,0.5); }
.video-modal__body {
  padding: 0.9rem;
}
.video-modal__video {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 68vh;
  border-radius: 0.75rem;
  background: #000;
}
.video-modal__meta {
  padding: 0.75rem 0.1rem 0.1rem;
}
.video-modal__title {
  color: #fff;
  font-weight: 650;
  margin-bottom: 0.25rem;
}
.video-modal__desc {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.875rem;
  line-height: 1.4;
}

html.is-modal-open { overflow: hidden; }

/* =========================================================
   CMS: встраивание видео в текст (шорткод [video file="..."])
   ========================================================= */

.cms-video-embed {
  margin: 1rem 0;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  max-width: 56rem;
}
.cms-video-embed__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.cms-video-embed__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.cms-video-embed__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.cms-video-embed__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.cms-video-embed__caption {
  padding: 0.75rem 0.85rem 0.85rem;
}
.cms-video-embed__title {
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 650;
  color: #0f172a;
}
.cms-video-embed__desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #64748b;
}
.cms-video-embed--missing {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* =========================================================
   Видео (страница /video/): используем стиль каталога
   ========================================================= */

.videos-feed-grid {
  margin-top: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .videos-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .videos-feed-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

.video-work-card .catalog-work-card__image-wrap,
.video-work-card__image-wrap {
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.video-work-card .catalog-work-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.video-work-card__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Альбомы как "авторы" (кружки) */
.videos-albums-section .artist-card__works { margin-top: 0.15rem; }

/* =========================================================
   Плейсхолдеры в полях ввода — светлее по всему сайту
   ========================================================= */

input::placeholder,
textarea::placeholder {
  color: #cbd5e1;
  opacity: 1; /* не полагаемся на браузерные opacity */
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #cbd5e1;
  opacity: 1;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #cbd5e1;
}
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: #cbd5e1;
}
