/* Сотворение — design system */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --forest-950: #021410;
  --forest-900: #062822;
  --forest-800: #0c4038;
  --forest-700: #145a50;
  --emerald-600: #12856c;
  --emerald-500: #1aad8c;
  --emerald-400: #2fd4ad;
  --sage-200: #9fd4c8;
  --sage-100: #c8ebe3;
  --sage-50: #f2fbf8;
  --gold-500: #b8860b;
  --gold-400: #e0b830;
  --gold-glow: rgba(224, 184, 48, 0.42);
  --sky-mist: #dff5f0;
  --text: #041815;
  --text-secondary: #1a4540;
  --text-muted: #2f635c;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(18, 133, 108, 0.18);
  --shadow-lg: 0 24px 64px rgba(6, 40, 34, 0.18);
  --shadow-md: 0 12px 32px rgba(6, 40, 34, 0.12);
  --shadow-sm: 0 4px 16px rgba(6, 40, 34, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --layout-max: min(1480px, 94vw);
  --layout-gutter: clamp(1rem, 2.5vw, 2.5rem);
}

/* ── Reset & base ── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--sage-50);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--forest-600); }

/* ── Ambient background ── */
.ambient {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, var(--sky-mist), transparent),
              repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(31,138,117,0.02) 40px, rgba(31,138,117,0.02) 41px);
  pointer-events: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sage-200); border-radius: 3px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  max-width: var(--layout-max); margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 var(--layout-gutter); height: 56px;
}
.logo {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--forest-700); text-decoration: none;
  white-space: nowrap;
}
.logo-mark { font-size: 1.15rem; }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; color: var(--forest-700); cursor: pointer;
  margin-left: auto;
}
.main-nav { display: flex; gap: 0.25rem; }
.main-nav a {
  padding: 0.35rem 0.65rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: background 0.15s;
}
.main-nav a:hover { background: var(--sage-50); }
.header-cta { margin-left: auto; flex-shrink: 0; }
.btn-auth-cta { font-size: 0.875rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: var(--radius-md);
  font-size: 0.9375rem; font-weight: 500; font-family: inherit;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1.4; white-space: nowrap;
}
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-primary {
  background: var(--forest-700); color: #fff; border-color: var(--forest-700);
}
.btn-primary:hover { background: var(--forest-800); border-color: var(--forest-800); }
.btn-ghost {
  background: transparent; color: var(--forest-700); border-color: transparent;
}
.btn-ghost:hover { background: rgba(31,138,117,0.06); }
.btn-outline {
  background: transparent; color: var(--forest-700);
  border-color: rgba(31,138,117,0.25);
}
.btn-outline:hover { background: rgba(31,138,117,0.06); border-color: var(--forest-400); }

/* ── Hero ── */
.hero {
  text-align: center; padding: 2.5rem 1rem 2rem;
}
.hero--compact { padding: 2rem 1rem 1.5rem; }
.hero-inner { max-width: 42rem; margin: 0 auto; }
.page-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 0.5rem;
}
.hero h1 {
  font-family: "Cormorant Garamond", serif; font-size: 2.5rem; font-weight: 700;
  color: var(--forest-700); margin: 0; line-height: 1.15;
}
.hero-lead { font-size: 1rem; color: var(--text-muted); margin: 0.5rem 0 0; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 1.25rem; margin-top: 3rem;
  background: rgba(255,255,255,0.55);
}
.footer-inner {
  max-width: var(--layout-max); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 0 var(--layout-gutter);
}
.footer-brand { font-family: "Cormorant Garamond", serif; font-size: 1.125rem; font-weight: 700; color: var(--forest-700); }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); margin: 0.2rem 0 0; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: var(--forest-700); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); align-self: flex-end; }

/* ── Page ── */
.page {
  max-width: var(--layout-max); margin: 0 auto; padding: 0 var(--layout-gutter);
  width: 100%;
}

/* ── Form elements ── */
textarea, input[type="text"], input[type="tel"], input[type="date"], input[type="url"], input[type="email"], input[type="search"] {
  font-family: inherit; font-size: 0.9375rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7);
  color: var(--text);
  outline: none; width: 100%;
  transition: border-color 0.15s;
}
textarea:focus, input:focus { border-color: var(--forest-400); box-shadow: 0 0 0 2px rgba(31,138,117,0.1); }

/* ── Form hint ── */
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0; }
.form-hint a { color: var(--forest-600); }

/* ── Profile link ── */
.profile-link { color: inherit; text-decoration: none; font-weight: 600; }
.profile-link:hover { text-decoration: underline; }

/* ── Chat avatar (shared) ── */
.chat-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  font-weight: 600; color: var(--forest-700);
}
.chat-avatar--lg { width: 44px; height: 44px; font-size: 1.15rem; }
.chat-avatar--md { width: 40px; height: 40px; font-size: 1rem; }
.chat-avatar--sm { width: 32px; height: 32px; font-size: 0.85rem; }
.chat-avatar--placeholder { background: var(--sage-100); }
.chat-avatar--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Reveal animation ── */
.reveal { animation: reveal 0.4s ease-out both; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════

/* ════════════════════════════════════════════════════════════════
   HOME — главная sotvorenie.us
   ════════════════════════════════════════════════════════════════ */

:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --forest-600: var(--emerald-600);
  --forest-400: var(--emerald-400);
}

.page-home .hero {
  padding: 3rem 1rem 2.5rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.hero-auth-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.btn-secondary {
  background: rgba(255,255,255,0.85);
  color: var(--forest-700);
  border-color: var(--glass-border);
}
.btn-secondary:hover {
  background: #fff;
  border-color: var(--forest-400);
}
.btn-hero-auth { padding: 0.65rem 1.25rem; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  padding: 0;
}
.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-700);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.section-head {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 1.25rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--forest-700);
  margin: 0 0 0.35rem;
}
.section-head p { color: var(--text-muted); margin: 0; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  padding: 0;
}
.bento-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.125rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  min-height: 140px;
}
.bento-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(31,138,117,0.35);
  transform: translateY(-2px);
}
.bento-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(145deg, var(--forest-800), var(--emerald-600));
  color: #fff;
  border-color: transparent;
}
.bento-card--featured .bento-desc,
.bento-card--featured .bento-link { color: rgba(255,255,255,0.85); }
.bento-card--featured h3 { color: #fff; }
.bento-card--wide { grid-column: span 2; }
.bento-icon { font-size: 1.5rem; line-height: 1; }
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--forest-700);
}
.bento-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  line-height: 1.45;
}
.bento-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald-600);
  margin-top: auto;
}

.register-promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: none;
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--forest-700), var(--emerald-500));
  border-radius: var(--radius-xl);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.register-promo-icon { font-size: 2rem; flex-shrink: 0; }
.register-promo-text { flex: 1; min-width: 200px; }
.register-promo-text strong { display: block; font-size: 1.05rem; }
.register-promo-text span { font-size: 0.85rem; opacity: 0.9; }
.register-promo-cta { flex-shrink: 0; }

.site-online-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════
   AUTH — вход / регистрация
   ════════════════════════════════════════════════════════════════ */

.page-narrow { max-width: 32rem; margin: 0 auto; }
.page-auth .page { padding-top: 1rem; }

.auth-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--forest-700);
  margin: 0 0 0.5rem;
  text-align: center;
}
.auth-lead {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}
.auth-wizard-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.auth-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-200);
}
.auth-step-dot.is-active { background: var(--emerald-600); }
.auth-spam-warning {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--sage-50);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.auth-allowed-domains {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 1rem;
}
.auth-allowed-domains-title { margin: 0 0 0.5rem; font-weight: 600; color: var(--text-secondary); }
.auth-allowed-domains-group { margin-bottom: 0.35rem; }
.auth-allowed-domains-group-title { margin: 0; font-size: 0.75rem; }
.auth-allowed-domains-group-domains { margin: 0; font-size: 0.75rem; color: var(--text-muted); }
.auth-inline-error {
  font-size: 0.875rem;
  color: #b42318;
  background: rgba(180,35,24,0.06);
  border: 1px solid rgba(180,35,24,0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.auth-panel { margin-top: 0.5rem; }
.auth-panel-intro { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; }
.auth-password-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}
.auth-password-wrap input { flex: 1; }
.auth-password-toggle {
  flex-shrink: 0;
  padding: 0 0.65rem;
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  cursor: pointer;
}
.auth-resend-offer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-resend-offer-warn { color: #b42318; }
.auth-lockout-banner {
  background: rgba(180,35,24,0.08);
  border: 1px solid rgba(180,35,24,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #b42318;
}
.form-shell { margin-top: 0.25rem; }

/* ════════════════════════════════════════════════════════════════
   LISTINGS — карточки объявлений и анкет
   ════════════════════════════════════════════════════════════════ */

.listing-item {
  display: flex;
  gap: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.listing-item:hover { box-shadow: var(--shadow-sm); }
.listing-item-cover {
  width: 120px;
  min-height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  background: var(--sage-100);
  text-decoration: none;
}
.listing-item-cover--static { cursor: default; }
.listing-thumb {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.listing-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.listing-item-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}
.listing-item-headlink {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.listing-item-headlink--static { cursor: default; }
.listing-item-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.35;
}
.listing-item-side { flex-shrink: 0; text-align: right; }
.listing-price {
  font-weight: 700;
  color: var(--forest-700);
  font-size: 0.95rem;
  white-space: nowrap;
}
.listing-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  background: var(--sage-50);
  border-radius: 4px;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.listing-sub, .listing-meta, .listing-desc, .listing-foot-meta, .listing-location-line {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.listing-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-item-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.35rem;
}
.listing-moderator-note {
  font-size: 0.8rem;
  color: #b42318;
  margin: 0.25rem 0 0;
}
.btn-chat { white-space: nowrap; }

/* Board nav extended */
.board-nav-emoji { margin-right: 0.35rem; }
.board-nav-label { }
.board-nav-group { margin-bottom: 0.25rem; }
.board-nav-group-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.5rem 1rem 0.2rem;
  margin: 0;
}
.board-gallery-stage { position: relative; }
.board-gallery-hero {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: var(--sage-100);
  border-radius: var(--radius-sm);
  position: relative;
}
.board-gallery-hero-img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.board-gallery-zoom {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.board-gallery-count {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.board-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.board-gallery-prev { left: 0.5rem; }
.board-gallery-next { right: 0.5rem; }
.board-gallery-thumbs {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
  overflow-x: auto;
}
.board-gallery-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
}
.board-gallery-thumbs img.is-active { opacity: 1; outline: 2px solid var(--emerald-600); }
.board-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
}
.board-lightbox-close, .board-lightbox-nav {
  position: fixed;
  z-index: 301;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}
.board-lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.5rem; }
.board-lightbox-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.5rem; }
.board-lightbox-prev { left: 1rem; }
.board-lightbox-next { right: 1rem; }
.board-lightbox-stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  pointer-events: none;
}
.board-lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; pointer-events: auto; }
.board-photo-slot {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--sage-100);
}
.board-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #b42318;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.board-photo-pending { font-size: 0.75rem; color: var(--text-muted); }
.board-listing-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-100);
}
.board-listing-no-photo-emoji { font-size: 2.5rem; }

/* ════════════════════════════════════════════════════════════════
   LENTA — посты ленты
   ════════════════════════════════════════════════════════════════ */

.lenta-post {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  margin-bottom: 0.75rem;
}
.lenta-post__head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.lenta-post__author {
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0;
}
.lenta-post__time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.lenta-post__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 0.6rem;
  word-break: break-word;
}
.lenta-post__photos {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.lenta-post__photos img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}
.lenta-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}
.lenta-post__comments {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}
.lenta-comment {
  font-size: 0.875rem;
  padding: 0.35rem 0;
  line-height: 1.5;
}
.lenta-comment__time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.35rem;
}
.lenta-comment-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: flex-end;
}
.lenta-comment-form textarea {
  flex: 1;
  font-size: 0.8125rem;
  resize: vertical;
}

/* ════════════════════════════════════════════════════════════════
   CHAT — сообщения и layout
   ════════════════════════════════════════════════════════════════ */

.app-layout {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  min-height: 480px;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  padding: 0;
}
.chat-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
.chat-msg-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
  max-width: 85%;
}
.chat-msg-row--own {
  flex-direction: row-reverse;
  margin-left: auto;
}
.chat-msg-row--support .chat-msg__bubble {
  border-left: 3px solid var(--gold-400);
}
.chat-msg__bubble {
  background: var(--sage-50);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  max-width: 100%;
  position: relative;
}
.chat-msg-row--own .chat-msg__bubble {
  background: var(--forest-700);
  color: #fff;
}
.chat-msg-row--own .chat-msg__author,
.chat-msg-row--own .chat-msg__time { color: rgba(255,255,255,0.85); }
.chat-msg__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}
.chat-msg__author {
  font-weight: 600;
  color: var(--forest-700);
}
.chat-msg__author--support { color: var(--gold-500); }
.chat-msg__author-link { text-decoration: none; color: inherit; }
.chat-avatar-link { text-decoration: none; }
.chat-msg__body { display: block; word-break: break-word; line-height: 1.5; }
.chat-msg__time {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}
.chat-msg-row--own .chat-msg__time { text-align: right; }
.chat-msg__edited { font-style: italic; opacity: 0.8; }
.chat-msg__actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
  opacity: 0;
  transition: opacity 0.1s;
}
.chat-msg__bubble:hover .chat-msg__actions { opacity: 1; }
.chat-msg__action {
  font-size: 0.7rem;
  padding: 0.15rem 0.35rem;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
}
.chat-msg-row--own .chat-msg__action { background: rgba(255,255,255,0.15); }
.chat-msg__reply {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
  background: rgba(0,0,0,0.04);
  border: none;
  border-left: 3px solid var(--emerald-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: 0.8rem;
}
.chat-msg__reply-author { font-weight: 600; display: block; }
.chat-msg__reply-body {
  display: block;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-msg__listing {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.35rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  font-size: 0.8rem;
}
.chat-msg__listing-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}
.chat-msg__listing-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}
.chat-msg__listing-meta { color: var(--text-muted); font-size: 0.75rem; }
.chat-profile-fields-empty { font-size: 0.85rem; color: var(--text-muted); }
.chat-profile-listing-card {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.35rem;
}
.chat-profile-listing-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}
.chat-profile-listing-title { font-weight: 600; font-size: 0.85rem; margin: 0; }
.chat-profile-listing-meta { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

/* ════════════════════════════════════════════════════════════════
   LK — профиль и безопасность
   ════════════════════════════════════════════════════════════════ */

.lk-profile-form { max-width: min(56rem, 100%); }
.lk-profile-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.lk-profile-card--email { border-color: rgba(31,138,117,0.25); }
.lk-profile-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest-700);
  margin: 0 0 0.75rem;
}
.lk-profile-field {
  margin-bottom: 0.85rem;
}
.lk-profile-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.lk-profile-field-head label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.lk-profile-hide {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  cursor: pointer;
}
.lk-profile-field--about textarea { min-height: 100px; }
.lk-profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.lk-profile-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sage-100);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--forest-700);
}
.lk-profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.lk-security { max-width: min(56rem, 100%); }
.lk-security-subnav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.lk-security-subnav button,
.lk-security-subnav a {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-secondary);
}
.lk-security-subnav .is-active {
  background: var(--forest-700);
  color: #fff;
  border-color: var(--forest-700);
}
.lk-security-block {
  margin-bottom: 1.25rem;
}
.lk-security-block--card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.lk-security-block-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.lk-security-block-icon { font-size: 1.25rem; }
.lk-totp-panel { margin-top: 0.5rem; }
.lk-totp-qr {
  max-width: 200px;
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: #fff;
  border-radius: var(--radius-sm);
}
.lk-totp-qr img { width: 100%; height: auto; display: block; }
.lk-backup-reveal {
  font-family: monospace;
  font-size: 0.85rem;
  background: var(--sage-50);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  word-break: break-all;
}
.lk-email-change-form { margin-top: 0.5rem; }
.lk-change-password { margin-top: 0.5rem; }
.lk-totp-advanced { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════
   VECHE — заявки
   ════════════════════════════════════════════════════════════════ */

.veche-auth-gate {
  max-width: 28rem;
  margin: 1.5rem auto 2rem;
  text-align: center;
}
.veche-auth-gate__inner {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
}
.veche-auth-gate__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest-700);
  margin: 0 0 0.5rem;
}
.veche-auth-gate__text { color: var(--text-muted); margin: 0 0 1rem; }
.veche-form--locked { opacity: 0.55; pointer-events: none; }
.veche-hint { font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0; }
.veche-status-line { font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0; }
.veche-edition-card {
  display: block;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.15s;
}
.veche-edition-card:hover { box-shadow: var(--shadow-sm); }
.veche-edition-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--emerald-600);
}
.veche-edition-card__sub { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.form-step-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
  color: var(--forest-700);
}
.form-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest-700);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.req-mark { color: #b42318; }
.form-required-legend { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.35rem;
}
.veche-photo-grid, .veche-doc-list, .veche-video-list, .people-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.veche-materials { margin: 1rem 0; }
.slider-row { display: flex; align-items: center; gap: 0.75rem; }
.slider-value { font-weight: 600; min-width: 2rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.35rem 0; }
.veche-lang-picker-wrap { margin: 0.5rem 0; }
.veche-lang-picker { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════
   MISC — vip, eco, sections
   ════════════════════════════════════════════════════════════════ */

.section-block {
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  padding: 0;
}
.vip-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}
.vip-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  background: var(--sage-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.badge-demo {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  background: var(--gold-glow);
  color: var(--gold-500);
  border-radius: 4px;
  text-transform: uppercase;
}
.eco-node {
  padding: 0.75rem;
  border-left: 3px solid var(--emerald-500);
  margin: 0.5rem 0;
}
.cross-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.cross-link {
  font-size: 0.875rem;
  color: var(--forest-600);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.subnav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.soulmate-profile-item { font-size: 0.875rem; margin: 0.25rem 0; }
.soulmate-profile-item-label { color: var(--text-muted); font-size: 0.75rem; }
.soulmate-profile-from-lk {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}
.soulmate-profile-from-lk-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

/* Modal overlay visible state */
.modal-overlay.is-open { display: flex; }

/* Responsive extras */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--featured { grid-column: span 2; grid-row: span 1; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .listing-item { flex-direction: column; }
  .listing-item-cover { width: 100%; min-height: 160px; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--featured, .bento-card--wide { grid-column: span 1; }
  .register-promo { flex-direction: column; text-align: center; }
}

/* ════════════════════════════════════════════════════════════════
   BOARD — доска объявлений
   ════════════════════════════════════════════════════════════════ */

.board-layout {
  display: flex; gap: 1.5rem; align-items: flex-start;
  margin-top: 0;
}
.board-nav {
  width: 220px; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 0.75rem 0;
  position: sticky; top: 72px;
}
.board-nav-heading {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted);
  padding: 0 1rem; margin: 0 0 0.25rem;
}
.board-nav-menu {
  display: flex; flex-direction: column;
}
.board-nav-loading {
  padding: 0.5rem 1rem; margin: 0;
  font-size: 0.85rem; color: var(--text-muted);
}
.board-nav-menu a,
.board-nav-menu button {
  display: block; width: 100%;
  background: none; border: none;
  text-align: left; font: inherit; font-size: 0.875rem;
  padding: 0.45rem 1rem; cursor: pointer; color: var(--text-secondary);
  transition: background 0.1s;
}
.board-nav-menu a:hover,
.board-nav-menu button:hover {
  background: var(--sage-50);
}
.board-nav-menu .is-active {
  background: var(--sage-50); color: var(--forest-700); font-weight: 600;
}
.board-main {
  flex: 1; min-width: 0;
}
.board-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem; margin-bottom: 0.75rem;
}
.board-offer-filter {
  display: flex; gap: 0.25rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 0.2rem;
}
.board-offer-toggle.active {
  background: var(--forest-700); color: #fff;
  border-color: var(--forest-700);
}
.search-bar {
  display: flex; align-items: center; gap: 0.4rem;
  flex: 1; min-width: 140px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 0.15rem 0.65rem;
}
.search-bar input {
  border: none; background: transparent;
  padding: 0.4rem 0; font-size: 0.875rem; width: 100%; outline: none;
}
.board-toolbar-actions {
  display: flex; gap: 0.25rem; align-items: center;
  margin-left: auto; flex-wrap: wrap;
}
.board-view-toggle.active {
  background: var(--forest-700); color: #fff;
  border-color: var(--forest-700);
}
.board-view-toggle.active:hover {
  background: var(--forest-800);
}
.board-view-toggle:not(.active) {
  color: var(--text-muted);
}
.board-status-line {
  font-size: 0.85rem; color: var(--text-muted);
  padding: 0.25rem 0; margin: 0;
}
.listings {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.board-empty {
  text-align: center; padding: 2rem 0;
  color: var(--text-muted); font-size: 0.9rem;
}
.board-load-more-wrap {
  text-align: center; padding: 0.5rem 0 1rem;
}
.board-gate {
  max-width: 28rem; margin: 2rem auto; text-align: center;
}
.board-gate-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.board-gate-card h2 {
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem;
  color: var(--forest-700); margin: 0 0 0.5rem;
}
.board-gate-card p { color: var(--text-muted); margin: 0 0 1.25rem; }
.board-gate-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* Модальные окна доски */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.3);
  align-items: center; justify-content: center;
}
.modal-panel {
  background: var(--glass); backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  max-width: min(42rem, 90vw); max-height: 85vh; overflow-y: auto;
  width: 100%; padding: 0;
}
.modal-panel--board { max-width: min(36rem, 90vw); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--glass-border);
}
.modal-header h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.modal-close {
  background: none; border: none; font-size: 1.4rem; cursor: pointer;
  color: var(--text-muted); padding: 0.2rem; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1rem 1.25rem 1.25rem; }

/* Детали объявления */
.board-detail-body { font-size: 0.9375rem; line-height: 1.6; }
.board-detail-meta {
  font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.75rem;
}
.board-detail-price {
  font-size: 1.1rem; color: var(--forest-700); margin: 0.75rem 0;
}
.board-detail-phone {
  font-size: 0.875rem; color: var(--text-secondary); margin: 0.5rem 0;
}
.board-detail-owner { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); }
.board-detail-owner h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.25rem; }
.board-detail-expiry { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.5rem; }
.board-owner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.board-detail-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.board-detail-note {
  font-size: 0.85rem; padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm); margin: 0.5rem 0;
}
.board-detail-note--reject {
  background: rgba(180,35,24,0.06); border: 1px solid rgba(180,35,24,0.15); color: #b42318;
}
.board-detail-note--archive {
  background: rgba(31,138,117,0.06); border: 1px solid var(--glass-border); color: var(--text-muted);
}
.board-btn-danger { color: #b42318 !important; }
.board-btn-danger:hover { background: rgba(180,35,24,0.06) !important; }

/* Галерея объявления */
.board-gallery { margin-bottom: 0.75rem; }
.board-detail-gallery {
  display: grid; gap: 0.35rem; border-radius: var(--radius-sm); overflow: hidden;
}
.board-detail-gallery img {
  width: 100%; height: auto; display: block; cursor: pointer;
  border-radius: var(--radius-sm);
}

/* Форма размещения объявления */
.board-form--page {
  max-width: 36rem; margin: 1.5rem auto;
}
.board-form-page-shell {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: 1.5rem;
}
.board-form-page-head {
  margin-bottom: 1.25rem;
}
.board-form-page-head h1 {
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem;
  color: var(--forest-700); margin: 0 0 0.25rem;
}
.board-form-back {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem;
}
.board-form-loading {
  text-align: center; color: var(--text-muted); padding: 2rem 0;
}
.board-form-actions {
  display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.25rem;
}
.board-form-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0; }
.board-form-page {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: 1.5rem;
}
.page-board-form { background: transparent; }

/* Категории в форме */
.board-categories-picker {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.board-categories-row {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.board-categories-count {
  font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0;
}

/* Выбор типа "продаю/покупаю" */
.board-offer-choice {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.board-offer-choice-item {
  flex: 1; min-width: 120px;
  padding: 0.75rem; text-align: center; cursor: pointer;
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  transition: border-color 0.15s, background 0.15s;
}
.board-offer-choice-item:hover { border-color: var(--forest-400); }
.board-offer-choice-hint {
  font-size: 0.8rem; color: var(--text-muted); width: 100%; margin-top: 0.25rem;
}
.board-offer-type-row { display: flex; align-items: center; gap: 0.5rem; }

/* Фото в форме */
.board-photo-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.board-photo-grid img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--radius-sm); cursor: pointer;
}

/* Питание */
.board-food-notice {
  font-size: 0.85rem; color: var(--text-muted);
  background: var(--sage-50); border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem; margin: 0.5rem 0;
}
.board-desc-food-note {
  font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0;
}

/* Хлебные крошки (soulmate) */
.breadcrumb {
  display: flex; gap: 0.35rem; align-items: center;
  font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--forest-700); }
.breadcrumb-sep { color: var(--sage-200); }

/* Формы общие */
.form-row {
  margin-bottom: 0.75rem;
}
.form-row label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 0.3rem;
}
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.form-required { color: #b42318; margin-left: 0.15rem; }
.form-optional { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.form-error {
  font-size: 0.85rem; color: #b42318; margin: 0.25rem 0;
}
.form-actions {
  display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem;
}
.form-actions--stack {
  flex-direction: column; align-items: stretch;
}

/* Places autocomplete */
.places-autocomplete-wrap { position: relative; }
.places-autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  z-index: 50; max-height: 200px; overflow-y: auto;
}
.places-autocomplete-row {
  padding: 0.5rem 0.75rem; cursor: pointer; font-size: 0.85rem;
}
.places-autocomplete-row:hover,
.places-autocomplete-row.is-active { background: var(--sage-50); }
.lk-places-wrap { position: relative; }
.lk-places-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; }

/* Listing card */
.listings-toolbar { margin-bottom: 0.75rem; }
/* ════════════════════════════════════════════════════════════════
   LENTA — новостная лента
   ════════════════════════════════════════════════════════════════ */

.lenta-gate {
  max-width: 28rem; margin: 2rem auto; text-align: center;
}
.lenta-app { display: none; }
.lenta-loading { text-align: center; padding: 3rem 0; color: var(--text-muted); }
.lenta-feed { display: flex; flex-direction: column; gap: 0.75rem; }
.lenta-empty { text-align: center; padding: 2rem 0; color: var(--text-muted); }
.lenta-modal {
  border: none; border-radius: var(--radius-xl); padding: 0;
  box-shadow: var(--shadow-lg);
  max-width: min(28rem, 90vw);
  background: var(--glass); backdrop-filter: blur(20px);
}
.lenta-modal::backdrop { background: rgba(0,0,0,0.3); }
.lenta-modal__inner { padding: 1.25rem; }
.lenta-modal__actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

/* ════════════════════════════════════════════════════════════════
   SOCIAL — общение
   ════════════════════════════════════════════════════════════════ */

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; width: 100%; max-width: none; margin: 1.5rem 0;
}
.service-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  text-decoration: none; color: inherit; transition: box-shadow 0.15s;
}
.service-card:hover { box-shadow: var(--shadow-sm); }
.service-domain {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.service-card h3 {
  font-size: 1rem; font-weight: 600; margin: 0.25rem 0 0.35rem;
  color: var(--forest-700);
}
.service-card p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.about-block { width: 100%; max-width: none; margin: 0 0 1.5rem; }
.about-block__title {
  font-family: "Cormorant Garamond", serif; font-size: 1.15rem;
  color: var(--forest-700); margin: 0 0 0.35rem;
}
.about-block__lead { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.about-list {
  list-style: none; padding: 0; margin: 0.5rem 0;
}
.about-list li {
  padding: 0.25rem 0; font-size: 0.875rem; color: var(--text-secondary);
}
.about-list li::before { content: "— "; color: var(--sage-200); }

/* ════════════════════════════════════════════════════════════════
   SOULMATE — собеседники
   ════════════════════════════════════════════════════════════════ */

.soulmate-shell[hidden] { display: none !important; }
.soulmate-gate {
  max-width: 28rem; margin: 2rem auto; text-align: center;
}
.soulmate-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.soulmate-gender-filters {
  display: flex; gap: 0.25rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 0.2rem;
}
.soulmate-sort {
  margin-left: auto;
}
.soulmate-filter-label {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.3rem;
}
.soulmate-feed-extra {
  font-size: 0.85rem; color: var(--text-muted); text-align: center;
}
.soulmate-hint {
  font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0;
}
.soulmate-posts {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.filter-chips {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.6rem; font-size: 0.8rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; cursor: pointer; color: var(--text-secondary);
  transition: background 0.1s, border-color 0.1s;
}
.filter-chip:hover { border-color: var(--forest-400); }
.filter-chip.is-active {
  background: var(--forest-700); color: #fff; border-color: var(--forest-700);
}

/* Форма анкеты собеседников */
.soulmate-form {
  width: 100%;
  max-width: min(56rem, 100%);
  margin: 0;
}
.page-soulmate-form { background: transparent; }
.soulmate-category-choice {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.soulmate-gender-choice {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.soulmate-photo-dropzone {
  border: 2px dashed var(--sage-200); border-radius: var(--radius-md);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.soulmate-photo-dropzone:hover {
  border-color: var(--forest-400); background: var(--sage-50);
}
.soulmate-photo-dropzone-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.soulmate-photo-dropzone-title {
  font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
}
.soulmate-photo-dropzone-hint {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem;
}
.soulmate-photo-dropzone-preview {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.soulmate-photo-dropzone-preview img {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: var(--radius-sm);
}
.soulmate-photo-dropzone-empty { display: block; }
.soulmate-photo-row { margin-bottom: 0.75rem; }
.soulmate-photo-upload { margin-bottom: 0.75rem; }
.auth-inline-error {
  font-size: 0.85rem; color: #b42318; margin: 0.5rem 0;
  padding: 0.5rem 0.75rem; background: rgba(180,35,24,0.06);
  border-radius: var(--radius-sm); border: 1px solid rgba(180,35,24,0.15);
}
/* ════════════════════════════════════════════════════════════════
   CHAT — мессенджер (премиум)
   ════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.page-chat .site-header { border-bottom: 1px solid var(--glass-border); }
.page-chat .page { padding-top: 0; }
.page-chat main { flex: 1; display: flex; flex-direction: column; background: #f8fafb; }

/* ── Gate (not logged in) ── */
.chat-gate {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 130px); padding: 2rem;
  margin: 0;
}
.chat-gate[hidden] { display: none !important; }
.chat-gate-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 400px; width: 100%;
  text-align: center;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.chat-gate-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  border-radius: 18px;
  background: var(--sage-50);
  color: var(--emerald-500);
}
.chat-gate-card-title {
  font-size: 1.3rem; font-weight: 700; color: var(--forest-800);
  margin: 0 0 0.5rem;
}
.chat-gate-card-desc {
  font-size: 0.9rem; color: var(--text-muted);
  margin: 0 0 1.5rem; line-height: 1.5;
}
.chat-gate-card-actions {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
}

/* ── Shell ── */
.chat-shell {
  flex: 1; display: flex; align-items: stretch; justify-content: center;
  padding: 1rem;
}
.chat-shell[hidden] { display: none !important; }
.chat-shell-inner {
  display: flex; width: 100%; max-width: 1280px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border: 1px solid var(--glass-border);
}

/* ── Sidebar ── */
.chat-sb {
  width: 300px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--glass-border);
  background: #fafbfc;
}

/* Sidebar header */
.chat-sb-header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  background: #fff;
}
.chat-sb-header-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.chat-sb-title {
  font-size: 1.1rem; font-weight: 700; color: var(--forest-800);
  margin: 0;
}
.chat-sb-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--sage-50);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}
.chat-sb-search:focus-within {
  border-color: var(--sage-200);
  background: #fff;
}
.chat-sb-search-icon { flex-shrink: 0; color: var(--text-muted); }
.chat-sb-search-input {
  border: none; background: transparent; padding: 0.25rem 0;
  font-size: 0.85rem; width: 100%; outline: none;
}
.chat-sb-search-input::placeholder { color: var(--text-muted); }
.chat-sb-search-hint {
  font-size: 0.72rem; color: var(--text-muted); margin: 0.35rem 0 0;
}
.chat-sb-search-results {
  list-style: none; padding: 0; margin: 0.35rem 0 0;
}
.chat-sb-search-results li {
  padding: 0.4rem 0.5rem; font-size: 0.85rem;
  cursor: pointer; border-radius: 8px;
}
.chat-sb-search-results li:hover { background: var(--sage-50); }

/* Sidebar list */
.chat-sb-list {
  flex: 1; overflow-y: auto;
  padding: 0.35rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--sage-200) transparent;
}

/* Groups in sidebar */
.chat-sb-group { padding: 0.25rem 0; }
.chat-sb-group + .chat-sb-group { border-top: 1px solid var(--glass-border); }
.chat-sb-group-label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  padding: 0.5rem 1rem 0.25rem;
}
.chat-sb-group-label-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-right: 0.75rem;
}
.chat-sb-create-btn {
  width: 26px; height: 26px; border: none; background: none;
  cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.chat-sb-create-btn:hover { background: var(--sage-50); color: var(--forest-700); }

/* Sidebar item */
.chat-sb-item {
  display: flex; align-items: center; gap: 0.65rem;
  width: 100%; border: none; background: none;
  padding: 0.5rem 1rem; cursor: pointer; text-align: left;
  font: inherit; font-size: 0.875rem; color: var(--text-secondary);
  transition: background 0.1s;
}
.chat-sb-item:hover { background: var(--sage-50); }
.chat-sb-item.is-active {
  background: #fff; color: var(--forest-700); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--emerald-500);
}
.chat-sb-item-avatar {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-50); flex-shrink: 0;
  color: var(--forest-700); overflow: hidden;
}
.chat-sb-item-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.chat-sb-item-avatar--support { background: rgba(184,134,11,0.1); color: var(--gold-500); }
.chat-sb-item-body { min-width: 0; flex: 1; }
.chat-sb-item-name { display: block; }
.chat-sb-item-preview { display: block; font-size: 0.75rem; color: var(--text-muted); }
.chat-sb-item-name__link { text-decoration: none; color: inherit; }
.chat-sb-item-name__link:hover { text-decoration: underline; }

/* Invite cards */
.chat-invite-card {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; margin: 0 0.5rem 0.35rem;
  background: rgba(184,134,11,0.05);
  border: 1px solid rgba(184,134,11,0.12);
  border-radius: 10px;
  font-size: 0.85rem;
}
.chat-invite-card p { margin: 0; flex: 1; min-width: 0; }
.chat-invite-card p strong { display: block; color: var(--forest-700); font-size: 0.85rem; }
.chat-invite-card p span { font-size: 0.75rem; color: var(--text-muted); }
.chat-invite-card-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }

/* Group items container */
.chat-sb-group-items { max-height: 240px; overflow-y: auto; scrollbar-width: thin; }

/* Join form */
.chat-sb-join {
  display: flex; gap: 0.3rem; align-items: center;
  padding: 0.35rem 1rem;
}
.chat-sb-join-input {
  flex: 1; font-size: 0.8rem; padding: 0.3rem 0.5rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--sage-200); border-radius: 8px;
  background: #fff;
}
.chat-sb-join-input:focus { border-color: var(--emerald-400); outline: none; }
.chat-sb-join-btn {
  width: 28px; height: 28px; border: none; background: none;
  cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-500);
  transition: background 0.15s;
}
.chat-sb-join-btn:hover { background: var(--sage-50); }

/* Sidebar footer */
.chat-sb-footer {
  border-top: 1px solid var(--glass-border);
  padding: 0.65rem 1rem;
  background: #fff;
}
.chat-sb-user {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.85rem;
}
.chat-sb-user-avatar {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--sage-50); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600; color: var(--forest-700);
  overflow: hidden;
}
.chat-sb-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.chat-sb-user-name { font-weight: 500; }

/* ── Main area ── */
.chat-area {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: #fff;
}

/* Chat header */
.chat-area-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  background: #fff;
}
.chat-area-header-left {
  display: flex; align-items: center; gap: 0.75rem;
}
.chat-area-header-avatar {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--sage-50); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest-700);
}
.chat-area-header-body { min-width: 0; }
.chat-area-header-title {
  font-size: 0.95rem; font-weight: 600; color: var(--forest-800);
}
.chat-area-header-title a { color: inherit; text-decoration: none; }
.chat-area-header-title a:hover { text-decoration: underline; }
.chat-area-header-sub {
  font-size: 0.75rem; color: var(--text-muted);
}
.chat-area-header-right {
  display: flex; gap: 0.15rem;
}
.chat-area-header-btn {
  width: 32px; height: 32px; border: none; background: none;
  cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.chat-area-header-btn:hover { background: var(--sage-50); color: var(--forest-700); }

/* Messages area */
.chat-area-body {
  flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--sage-200) transparent;
  background: #fafbfb;
}
.chat-area-body > :first-child { margin-top: auto; }

/* Empty state */
.chat-area-empty {
  text-align: center; padding: 3rem 2rem; margin: auto;
}
.chat-area-empty-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 18px;
  background: var(--sage-50);
  color: var(--text-muted);
}
.chat-area-empty p {
  font-size: 0.95rem; font-weight: 600; color: var(--text-secondary);
  margin: 0 0 0.25rem;
}
.chat-area-empty span {
  font-size: 0.85rem; color: var(--text-muted);
}

/* ── Messages ── */
.chat-msg {
  display: flex; gap: 0.5rem;
  align-items: flex-end;
  max-width: 72%;
  animation: msgSlide 0.2s ease-out;
}
@keyframes msgSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg--self {
  flex-direction: row-reverse;
  margin-left: auto;
}
.chat-msg + .chat-msg { margin-top: 1px; }
.chat-msg--self + .chat-msg--other,
.chat-msg--other + .chat-msg--self { margin-top: 8px; }

/* Avatar */
.chat-msg-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--sage-50); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; color: var(--forest-700);
  visibility: hidden;
  align-self: flex-end;
  margin-bottom: 2px;
}
.chat-msg--self .chat-msg-avatar { display: none; }
.chat-msg:not(.chat-msg--self) + .chat-msg:not(.chat-msg--self) .chat-msg-avatar { visibility: hidden; }
.chat-msg--other:first-of-type .chat-msg-avatar { visibility: visible; }
.chat-msg--self + .chat-msg--other .chat-msg-avatar { visibility: visible; }

/* Bubble */
.chat-msg-bubble {
  background: #fff;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 0.5rem 0.85rem;
  max-width: 100%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.chat-msg--self .chat-msg-bubble {
  background: var(--emerald-500);
  color: #fff;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
}
.chat-msg--self .chat-msg-bubble--support {
  background: #c8960e;
}

/* Author */
.chat-msg-author {
  font-size: 0.72rem; font-weight: 600;
  color: var(--forest-700);
  margin-bottom: 0.1rem;
}
.chat-msg--self .chat-msg-author { display: none; }
.chat-msg-author-link { text-decoration: none; color: inherit; }

/* Body */
.chat-msg-body {
  display: block; word-break: break-word;
  line-height: 1.45; font-size: 0.9rem;
}

/* Meta (time, edited) */
.chat-msg-meta {
  display: flex; align-items: center; gap: 0.3rem;
  margin-top: 0.15rem; font-size: 0.65rem;
  color: var(--text-muted); line-height: 1;
}
.chat-msg--self .chat-msg-meta {
  color: rgba(255,255,255,0.7);
  justify-content: flex-end;
}
.chat-msg-edited { font-style: italic; opacity: 0.7; }

/* Actions (hover) */
.chat-msg-actions {
  display: flex; gap: 2px;
  position: absolute; top: -14px; right: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.12s;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2px;
}
.chat-msg--self .chat-msg-actions { right: auto; left: 4px; }
.chat-msg-bubble:hover .chat-msg-actions {
  opacity: 1; pointer-events: auto;
}
.chat-msg-action {
  font-size: 0.68rem; padding: 0.2rem 0.4rem;
  background: none; border: none; border-radius: 6px;
  cursor: pointer; color: var(--text-secondary);
  transition: background 0.1s;
}
.chat-msg-action:hover { background: var(--sage-50); color: var(--forest-700); }

/* Reply quote */
.chat-msg-reply {
  display: block; width: 100%; text-align: left;
  padding: 0.25rem 0.5rem; margin-bottom: 0.2rem;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  border-left: 3px solid var(--emerald-400);
  cursor: pointer; font-size: 0.78rem;
}
.chat-msg--self .chat-msg-reply { background: rgba(255,255,255,0.1); }
.chat-msg-reply-author { font-weight: 600; display: block; font-size: 0.72rem; }
.chat-msg-reply-body {
  display: block; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-msg--self .chat-msg-reply-body { color: rgba(255,255,255,0.65); }

/* Listing card in message */
.chat-msg-listing {
  display: flex; gap: 0.5rem; padding: 0.4rem;
  margin-bottom: 0.2rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  text-decoration: none; color: inherit; font-size: 0.8rem;
}
.chat-msg--self .chat-msg-listing { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.chat-msg-listing-thumb img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 8px;
}
.chat-msg-listing-label {
  font-size: 0.65rem; text-transform: uppercase;
  color: var(--text-muted); display: block;
}
.chat-msg-listing-title { font-weight: 600; font-size: 0.85rem; }
.chat-msg-listing-meta { color: var(--text-muted); font-size: 0.72rem; }

/* ── Date divider ── */
.chat-date-divider {
  text-align: center; margin: 0.75rem 0;
  position: relative;
}
.chat-date-divider::before {
  content: ''; position: absolute; top: 50%; left: 10%; right: 10%;
  height: 1px; background: var(--glass-border);
}
.chat-date-divider span {
  position: relative; z-index: 1;
  font-size: 0.7rem; font-weight: 500; color: var(--text-muted);
  background: #fafbfb; padding: 0 0.75rem;
}

/* System message */
.chat-sys-msg {
  text-align: center; margin: 0.5rem 0;
  font-size: 0.75rem; color: var(--text-muted);
  font-style: italic;
}

/* ── Composer ── */
.chat-area-composer {
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
  background: #fff;
}

/* Reply bar */
.chat-area-reply {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--sage-50);
  font-size: 0.8rem;
}
.chat-area-reply-body { flex: 1; min-width: 0; }
.chat-area-reply-label {
  font-size: 0.66rem; font-weight: 600; text-transform: uppercase;
  color: var(--emerald-500);
}
.chat-area-reply-text {
  display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--text-secondary);
}
.chat-area-reply-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 0.2rem; flex-shrink: 0;
  border-radius: 6px; display: flex;
  transition: background 0.1s;
}
.chat-area-reply-close:hover { background: var(--sage-100); }

/* Listing bar */
.chat-area-listing-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--sage-50);
  font-size: 0.8rem;
}
.chat-area-listing-body { flex: 1; min-width: 0; }
.chat-area-listing-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 0.2rem; flex-shrink: 0;
  border-radius: 6px; display: flex;
  transition: background 0.1s;
}
.chat-area-listing-close:hover { background: var(--sage-100); }

/* Input row */
.chat-area-form {
  display: flex; gap: 0.5rem; align-items: center;
  padding: 0.75rem 1rem;
}
.chat-area-input-wrap {
  flex: 1;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  transition: border-color 0.15s;
}
.chat-area-input-wrap:focus-within {
  border-color: var(--emerald-400);
}
.chat-area-input {
  border: none; background: transparent;
  font-size: 0.9rem; width: 100%; outline: none;
  padding: 0.1rem 0;
}
.chat-area-input::placeholder { color: var(--text-muted); }

.chat-area-send {
  width: 38px; height: 38px; flex-shrink: 0;
  border: none; border-radius: 12px;
  background: var(--emerald-500); color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.chat-area-send:hover { background: var(--emerald-600); }
.chat-area-send:active { transform: scale(0.92); }
.chat-area-send:disabled { opacity: 0.35; cursor: default; }

/* ── Dialogs ── */
.chat-dialog {
  border: none; border-radius: 16px; padding: 0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  max-width: min(28rem, 92vw);
  background: #fff;
  overflow: visible;
}
.chat-dialog::backdrop { background: rgba(0,0,0,0.25); backdrop-filter: blur(4px); }
.chat-dialog-inner { padding: 1.5rem; }
.chat-dialog-title {
  margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700;
  color: var(--forest-800);
}
.chat-dialog-field {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 0.75rem;
}
.chat-dialog-field span { display: block; margin-bottom: 0.25rem; }
.chat-dialog-field input,
.chat-dialog-field textarea { margin-top: 0; width: 100%; }
.chat-dialog-actions {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  margin-top: 1.25rem;
}
.chat-dialog-code {
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.25em;
  text-align: center; padding: 0.85rem;
  background: var(--sage-50); border-radius: 12px;
  color: var(--forest-800);
  font-family: 'SF Mono', 'Courier New', monospace;
  user-select: all;
}
.chat-dialog-hint {
  font-size: 0.78rem; color: var(--text-muted);
  margin: 0.75rem 0 0; line-height: 1.4;
}

/* ── Profile cards ── */
.chat-profile-fields-empty { font-size: 0.85rem; color: var(--text-muted); }
.chat-profile-listing-card {
  display: flex; gap: 0.5rem; padding: 0.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  text-decoration: none; color: inherit; margin-bottom: 0.35rem;
}
.chat-profile-listing-thumb {
  width: 40px; height: 40px; object-fit: cover; border-radius: 8px;
}
.chat-profile-listing-title { font-weight: 600; font-size: 0.85rem; margin: 0; }
.chat-profile-listing-meta { font-size: 0.72rem; color: var(--text-muted); margin: 0; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .chat-shell { padding: 0; border-radius: 0; }
  .chat-shell-inner { flex-direction: column; border-radius: 0; border: none; max-width: none; }
  .chat-sb { width: 100%; max-height: 38vh; border-right: none; border-bottom: 1px solid var(--glass-border); }
  .chat-sb-list { max-height: 28vh; }
  .chat-area { max-height: 58vh; min-height: 50vh; }
  .chat-gate { min-height: 70vh; padding: 1.5rem; }
  .chat-msg { max-width: 88%; }
}
@media (max-width: 480px) {
  .chat-area-header { padding: 0.5rem 0.75rem; }
  .chat-area-body { padding: 0.75rem; }
  .chat-area-form { padding: 0.5rem 0.75rem; }
  .chat-sb { max-height: 34vh; }
  .chat-area { max-height: 54vh; }
  .chat-msg { max-width: 92%; }
  .chat-sb-header { padding: 0.75rem; }
}

/* ════════════════════════════════════════════════════════════════
   LK — личный кабинет
   ════════════════════════════════════════════════════════════════ */

.lk-shell {
  display: flex; gap: 1.5rem; align-items: flex-start;
  margin: 1.5rem 0;
}
.lk-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.lk-sidebar-head {
  padding: 1rem; text-align: center;
  border-bottom: 1px solid var(--glass-border);
}
.lk-sidebar-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted);
}
.lk-sidebar-email {
  font-size: 0.8rem; color: var(--text-secondary); word-break: break-all;
}
.lk-nav {
  display: flex; flex-direction: column; padding: 0.35rem 0;
}
.lk-nav-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem; color: var(--text-secondary);
  text-decoration: none; transition: background 0.1s;
}
.lk-nav-item:hover { background: var(--sage-50); }
.lk-nav-item.is-active {
  background: var(--sage-50); color: var(--forest-700); font-weight: 600;
}
.lk-nav-icon { width: 1.2rem; text-align: center; flex-shrink: 0; }
.lk-nav-text { flex: 1; }
.lk-nav-badge {
  font-size: 0.7rem; background: var(--sage-100);
  padding: 0.1rem 0.4rem; border-radius: 999px;
  color: var(--text-muted);
}
.lk-sidebar-foot {
  padding: 0.75rem 1rem; border-top: 1px solid var(--glass-border);
}
.lk-sidebar-logout {
  font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none; display: block;
}
.lk-sidebar-logout:hover { color: #b42318; }
.lk-sidebar-site-link {
  display: block; margin-top: 0.35rem;
  font-size: 0.8rem; color: var(--forest-600);
}
.lk-main { flex: 1; min-width: 0; }
.lk-section {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  margin-bottom: 1rem;
}
.lk-section-title {
  font-size: 1rem; font-weight: 600; color: var(--forest-700);
  margin: 0 0 0.25rem;
}
.lk-page-head { margin-bottom: 1rem; }
.lk-page-lead { color: var(--text-muted); font-size: 0.9rem; }

/* Герой ЛК */
.lk-hero {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); margin-bottom: 1.5rem;
}
.lk-hero-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-100); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 600; color: var(--forest-700);
}
.lk-hero-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.lk-hero-body { flex: 1; }
.lk-hero-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted);
}
.lk-hero-nickname {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  margin: 0;
}
.lk-hero-email { font-size: 0.85rem; color: var(--text-secondary); }
.lk-hero-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Меню ЛК */
.lk-menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.lk-menu-card {
  display: block; padding: 1rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lk-menu-card:hover {
  border-color: var(--forest-400); box-shadow: var(--shadow-sm);
}
.lk-menu-card-icon { font-size: 1.5rem; margin-bottom: 0.35rem; display: block; }
.lk-menu-card-title {
  font-size: 0.9rem; font-weight: 600; color: var(--forest-700);
  margin: 0 0 0.2rem;
}
.lk-menu-card-desc { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.lk-menu-card-tags {
  display: flex; gap: 0.25rem; margin-top: 0.35rem; flex-wrap: wrap;
}

/* Теги */
.lk-tag {
  font-size: 0.7rem; padding: 0.15rem 0.4rem;
  background: var(--sage-50); border-radius: 4px;
  color: var(--text-muted);
}
.lk-tag--muted { background: transparent; color: var(--sage-200); }

/* Карточка */
.lk-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.lk-card--centered { text-align: center; }
.lk-card--guest { max-width: 28rem; margin: 2rem auto; }

/* Состояние */
.lk-state {
  text-align: center; color: var(--text-muted); padding: 2rem 0;
}
.lk-state--loading { font-size: 0.95rem; }
.lk-state--guest {
  padding: 2rem; max-width: 28rem; margin: 2rem auto;
}
.lk-loading-text { text-align: center; color: var(--text-muted); padding: 2rem 0; }

/* Список страницы */
.page-auth, .page-lk, .page-lk-main {
  max-width: var(--layout-max); margin: 0 auto; padding: 0 var(--layout-gutter);
  width: 100%;
}

/* ════════════════════════════════════════════════════════════════
   ADMIN — панель администратора
   ════════════════════════════════════════════════════════════════ */

.admin-body { font-family: "Outfit", sans-serif; }
.admin-gate { max-width: 28rem; margin: 4rem auto; text-align: center; }
.admin-gate-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: 2.5rem 2rem;
}
.admin-gate-actions { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.admin-mount { padding: 1rem 0; }
.admin-locked { text-align: center; padding: 2rem; color: var(--text-muted); }
.admin-header-meta { font-size: 0.85rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════════ */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.visible { visibility: visible; }

/* Адаптивность для всех модулей */
@media (max-width: 860px) {
  .board-layout { flex-direction: column; }
  .board-nav { width: 100%; position: static; }
  .board-toolbar { flex-direction: column; align-items: stretch; }
  .board-toolbar-actions { margin-left: 0; justify-content: center; }
  .app-layout { flex-direction: column; }
  .chat-sidebar {
    width: 100%; max-height: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .chat-main {
    max-height: calc(100vh - 300px);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .chat-message { max-width: 90%; }
  .lk-shell { flex-direction: column; }
  .lk-sidebar { width: 100%; }
  .soulmate-toolbar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .lk-menu-grid { grid-template-columns: 1fr; }
}
   PROFILE WALL — VK-стиль профиль соцсети
   ════════════════════════════════════════════════════════════════ */

/* Гейт */
.pv-gate {
  max-width: 28rem;
  margin: 4rem auto;
  text-align: center;
}
.pv-gate-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.pv-gate-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}
.pv-gate-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  color: var(--forest-700);
  margin: 0 0 0.5rem;
}
.pv-gate-card p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

/* Общий контейнер приложения */
.pv-app {
  display: none;
  animation: reveal 0.4s ease-out both;
}

/* Загрузка / ошибка */
.pv-loading {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}
.pv-error {
  max-width: 36rem;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  background: rgba(180,35,24,0.06);
  border: 1px solid rgba(180,35,24,0.15);
  border-radius: var(--radius-md);
  color: #b42318;
  text-align: center;
}

/* Шапка профиля */
.pv-header {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.pv-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--forest-700) 0%, var(--emerald-500) 50%, var(--sage-200) 100%);
  position: relative;
}
.pv-cover-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255,255,255,0.8) 100%);
}
.pv-header-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  padding: 0 1.5rem 1.25rem;
  margin-top: -48px;
  position: relative;
}
.pv-avatar-wrap {
  flex-shrink: 0;
}
.pv-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--sage-100);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--forest-700);
}
.pv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-head-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.15rem;
}
.pv-nick {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
}
.pv-head-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.15rem;
  font-size: 0.85rem;
}
.pv-online {
  color: var(--emerald-600);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.pv-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-600);
  display: inline-block;
}
.pv-verified {
  color: var(--text-muted);
}
.pv-head-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.15rem;
  flex-shrink: 0;
}
.pv-friend-status {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Статистика */
.pv-stats {
  display: flex;
  border-top: 1px solid var(--glass-border);
}
.pv-stat {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--glass-border);
}
.pv-stat:last-child { border-right: none; }
.pv-stat-num {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--forest-700);
}
.pv-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Двухколоночный макет */
.pv-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Левая колонка */
.pv-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 72px;
}

/* Карточки в сайдбаре */
.pv-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
}
.pv-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

/* Информация в сайдбаре */
.pv-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pv-info-item {
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.pv-info-item-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.pv-info-item-value {
  color: var(--text);
  word-break: break-word;
}

/* О себе */
.pv-about-text {
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text);
}

/* Дополнительные поля */
.pv-extra-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pv-extra-item {
  font-size: 0.875rem;
}
.pv-extra-item-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.pv-extra-item-value {
  white-space: pre-wrap;
}

/* Друзья */
.pv-friends-count {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.25rem;
}
.pv-friends-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pv-friend-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: background 0.1s;
}
.pv-friend-row:hover {
  background: rgba(31,138,117,0.04);
}
.pv-friend-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-100);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-700);
}
.pv-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-friend-name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Свои кнопки */
.pv-own-actions {
  margin-top: 0.25rem;
}

/* Правая колонка — стена */
.pv-wall {
  flex: 1;
  min-width: 0;
}

/* Композитор */
.pv-composer {
  display: flex;
  gap: 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}
.pv-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-100);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest-700);
}
.pv-composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-composer-body {
  flex: 1;
  min-width: 0;
}
.pv-composer-textarea {
  width: 100%;
  resize: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0;
  outline: none;
  color: var(--text);
}
.pv-composer-textarea::placeholder {
  color: var(--text-muted);
}
.pv-composer-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}
.pv-composer-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.1s;
}
.pv-composer-photo-btn:hover {
  background: var(--sage-50);
  color: var(--forest-700);
}
.pv-composer-2fa-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
}
.pv-composer-2fa-hint a {
  color: var(--forest-600);
}
.pv-composer-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Карточка поста на стене */
.pv-post {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  margin-bottom: 0.75rem;
}
.pv-post-head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.pv-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-100);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest-700);
}
.pv-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-post-author {
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0;
}
.pv-post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.pv-post-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 0.6rem;
  word-break: break-word;
}

/* Фото поста */
.pv-post-photos {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pv-post-photos img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* Кнопки действий поста */
.pv-post-actions {
  display: flex;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}
.pv-post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.1s, color 0.1s;
}
.pv-post-action-btn:hover {
  background: var(--sage-50);
  color: var(--forest-700);
}

/* Комментарии */
.pv-post-comments {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}
.pv-comment {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.875rem;
}
.pv-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage-100);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forest-700);
}
.pv-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-comment-body {
  flex: 1;
  min-width: 0;
}
.pv-comment-author {
  font-weight: 600;
  margin-right: 0.35rem;
}
.pv-comment-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.pv-comment-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.pv-comment-form textarea {
  flex: 1;
  font-size: 0.8125rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  resize: none;
}

/* Пустое состояние */
.pv-posts-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}
.pv-load-more {
  display: block;
  margin: 1rem auto 0;
}

/* Модалки */
.pv-modal {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: var(--shadow-lg);
  max-width: min(28rem, 90vw);
  background: var(--glass);
  backdrop-filter: blur(20px);
}
.pv-modal::backdrop {
  background: rgba(0,0,0,0.3);
}
.pv-modal__inner {
  padding: 1.25rem;
}
.pv-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.pv-modal__header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.pv-modal__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  line-height: 1;
}
.pv-modal__close:hover {
  color: var(--text);
}
.pv-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pv-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.pv-field-label textarea,
.pv-field-label input[type="text"] {
  margin-top: 0.3rem;
}

/* Адаптивность */
@media (max-width: 860px) {
  .pv-layout {
    flex-direction: column;
  }
  .pv-sidebar {
    width: 100%;
    position: static;
  }
  .pv-header-row {
    flex-wrap: wrap;
  }
  .pv-head-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .pv-cover {
    height: 120px;
  }
  .pv-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 0.6rem 0.75rem;
  }
  .pv-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -48px;
  }
  .pv-head-actions {
    justify-content: center;
  }
  .pv-composer {
    flex-direction: column;
  }
  .pv-composer-toolbar {
    flex-wrap: wrap;
  }
}

/* ══════════════════════════════════════════════════════════════
   Страница «О нас» — отдельная вёрстка (контраст и типографика)
   ══════════════════════════════════════════════════════════════ */
.page-about {
  --ab-text: #0c2824;
  --ab-text-body: #1a403a;
  --ab-text-soft: #3d6b63;
  --ab-white: #ffffff;
  --ab-cream: #fffdf7;
  --ab-mint: #e8f8f2;
  --ab-mint-deep: #0d9488;
  --ab-rose: #fff1f3;
  --ab-rose-accent: #e11d48;
  --ab-gold: #d4a012;
  --ab-shadow: 0 8px 32px rgba(6, 50, 42, 0.1);
}

.page-about .page {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

.page-about .breadcrumb {
  font-size: 0.9375rem;
  color: var(--ab-text-soft);
  margin-bottom: 1rem;
}

.page-about .breadcrumb a {
  color: var(--ab-mint-deep);
  font-weight: 600;
}

/* ── Hero ── */
.page-about .about-hero {
  position: relative;
  margin-bottom: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(125deg, #022c22 0%, #065f46 38%, #0d9488 72%, #34d399 100%);
  box-shadow: 0 20px 50px rgba(2, 44, 34, 0.35);
}

.page-about .about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(251, 191, 36, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(52, 211, 153, 0.25), transparent 50%);
  pointer-events: none;
}

.page-about .about-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.page-about .about-hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #022c22;
  background: #fde68a;
  border-radius: 999px;
}

.page-about .about-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.page-about .about-hero__lead {
  margin: 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 450;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ── Tabs ── */
.page-about .about-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.5rem;
  background: var(--ab-white);
  border-radius: 16px;
  box-shadow: var(--ab-shadow);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.page-about .about-tabs a {
  flex: 1;
  min-width: 140px;
  padding: 0.85rem 1.25rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ab-text-body);
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.page-about .about-tabs a:hover {
  background: var(--ab-mint);
  color: var(--ab-text);
}

.page-about .about-tabs a.is-active {
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

/* ── Blocks ── */
.page-about .about-block {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  margin-bottom: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--ab-white);
  border-radius: 20px;
  box-shadow: var(--ab-shadow);
  border: 1px solid rgba(13, 148, 136, 0.12);
}

.page-about .about-block__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: 700;
  color: var(--ab-text) !important;
  letter-spacing: -0.02em;
}

.page-about .about-block__lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ab-text-body);
  max-width: 50ch;
}

/* Values */
.page-about .about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-about .about-value {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--ab-mint) 0%, #f8fffc 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.page-about .about-value__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-about .about-value strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ab-text);
}

.page-about .about-value span {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ab-text-body);
}

/* Timeline */
.page-about .about-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-about .about-timeline li {
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: #f4faf8;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.page-about .about-timeline li strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ab-text);
}

.page-about .about-timeline li span {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ab-text-body);
}

.page-about .about-timeline li.is-highlight {
  background: linear-gradient(135deg, #065f46, #0d9488);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.page-about .about-timeline li.is-highlight strong,
.page-about .about-timeline li.is-highlight span {
  color: #fff !important;
}

/* Services */
.page-about .about-block--services {
  background: linear-gradient(180deg, #f0fdf9 0%, var(--ab-white) 100%);
}

.page-about .about-services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-about .about-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.page-about .about-service {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  background: var(--ab-white);
  border-radius: 16px;
  border: 2px solid rgba(13, 148, 136, 0.18);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.page-about .about-service:hover {
  transform: translateY(-3px);
  border-color: var(--ab-mint-deep);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.15);
  color: inherit;
}

.page-about .about-service__tag {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--ab-mint-deep);
}

.page-about .about-service h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ab-text) !important;
}

.page-about .about-service p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ab-text-body);
}

.page-about .about-service__go {
  margin-top: auto;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ab-mint-deep);
}

/* ── Rules block ── */
.page-about .about-block--rules {
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: var(--ab-shadow);
}

.page-about .about-rules-intro {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, #fffbeb 0%, var(--ab-white) 100%);
  border-bottom: 4px solid var(--ab-gold);
}

.page-about .about-rules-intro .about-block__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
}

.page-about .about-rules-intro .about-block__title {
  margin-bottom: 0.75rem;
  color: var(--ab-text) !important;
}

.page-about .about-rules-intro .about-block__lead {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  color: var(--ab-text-body);
  max-width: none;
}

.page-about .about-rules-intro .about-block__accent {
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ab-text);
  background: rgba(13, 148, 136, 0.08);
  border-radius: 12px;
  border-left: 4px solid var(--ab-mint-deep);
}

.page-about .about-scope {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-about .about-scope li {
  padding: 0.9rem 1rem;
  background: var(--ab-white);
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-about .about-scope strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
  color: var(--ab-text);
}

.page-about .about-scope span {
  font-size: 0.875rem;
  color: var(--ab-text-soft);
  line-height: 1.35;
}

/* Rules columns */
.page-about .about-rules-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.page-about .about-rules-col {
  padding: 1.35rem 1.4rem 1.5rem;
}

.page-about .about-rules-col--no {
  background: var(--ab-rose);
  border-right: 1px solid rgba(225, 29, 72, 0.12);
}

.page-about .about-rules-col--yes {
  background: var(--ab-mint);
}

.page-about .about-rules-col h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.page-about .about-rules-col--no h3 {
  color: #9f1239 !important;
}

.page-about .about-rules-col--yes h3 {
  color: #047857 !important;
}

.page-about .about-rules-col__intro {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ab-text-body);
}

.page-about .about-rule-group {
  margin-bottom: 0.5rem;
  border-radius: 12px;
  background: var(--ab-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.page-about .about-rules-col--no .about-rule-group {
  border-color: rgba(225, 29, 72, 0.15);
}

.page-about .about-rules-col--yes .about-rule-group {
  border-color: rgba(5, 150, 105, 0.2);
}

.page-about .about-rule-group summary {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ab-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-about .about-rule-group summary::-webkit-details-marker {
  display: none;
}

.page-about .about-rule-group summary::after {
  content: "+";
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ab-text-soft);
}

.page-about .about-rule-group[open] summary::after {
  content: "−";
}

.page-about .about-rule-list {
  margin: 0;
  padding: 0 1rem 0.85rem;
  list-style: none;
}

.page-about .about-rule-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  font-size: 0.9875rem;
  line-height: 1.55;
  color: var(--ab-text-body);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-about .about-rule-list li:last-child {
  border-bottom: none;
}

.page-about .about-rules-col--no .about-rule-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--ab-rose-accent);
}

.page-about .about-rules-col--yes .about-rule-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #059669;
}

.page-about .about-rule-list strong {
  color: var(--ab-text);
  font-weight: 700;
}

.page-about .about-rules-footer {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ab-text-body);
  background: var(--ab-cream);
  border-top: 1px solid rgba(13, 148, 136, 0.12);
}

.page-about .btn-about-map {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ab-mint-deep);
  background: var(--ab-white);
  border: 2px solid var(--ab-mint-deep);
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.page-about .btn-about-map:hover {
  background: var(--ab-mint-deep);
  color: #fff !important;
}

@media (max-width: 900px) {
  .page-about .about-values {
    grid-template-columns: 1fr;
  }

  .page-about .about-timeline,
  .page-about .about-services-grid,
  .page-about .about-scope {
    grid-template-columns: 1fr;
  }

  .page-about .about-rules-split {
    grid-template-columns: 1fr;
  }

  .page-about .about-rules-col--no {
    border-right: none;
    border-bottom: 1px solid rgba(225, 29, 72, 0.12);
  }
}

@media (max-width: 640px) {
  .page-about .about-tabs a {
    min-width: 100%;
  }
}

/* ── Remaining utilities & auth/lk extras ── */
.listing-body { flex: 1; min-width: 0; }
.hint { font-size: 0.8rem; color: var(--text-muted); }
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 0.35rem 0; font-size: 0.875rem; border-bottom: 1px solid var(--glass-border); }
.form-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); }
.eco-col { flex: 1; min-width: 0; }
.demo-banner {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; margin-bottom: 1rem;
  background: rgba(224,184,48,0.12); border: 1px solid rgba(184,134,11,0.25);
  border-radius: var(--radius-md); font-size: 0.875rem;
}
.demo-banner-icon { font-size: 1.25rem; }
.board-listing-panel { margin-top: 0.5rem; }
.places-autocomplete-kinds { font-size: 0.75rem; color: var(--text-muted); }
.admin-stat {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 1rem; text-align: center;
}
.admin-stat strong { display: block; font-size: 1.5rem; color: var(--forest-700); }

.auth-resend-offer-text { margin: 0 0 0.5rem; }
.auth-resend-offer-note { font-size: 0.8rem; margin: 0.25rem 0; }
.auth-resend-offer-btn { margin-top: 0.5rem; }
.auth-checklist { font-size: 0.85rem; margin: 0.5rem 0; padding-left: 1.25rem; }
.auth-lockout-stats { font-size: 0.85rem; color: var(--text-muted); }
.auth-lockout-timer { font-weight: 700; color: #b42318; }
.auth-sent-banner {
  background: var(--sage-50); border-radius: var(--radius-sm);
  padding: 0.75rem; margin-bottom: 1rem; font-size: 0.875rem;
}
.auth-storage-reminder { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

.lk-security-subnav-item {
  padding: 0.4rem 0.75rem; font-size: 0.8125rem;
  border-radius: var(--radius-sm); border: 1px solid var(--glass-border);
  background: transparent; cursor: pointer; color: var(--text-secondary);
}
.lk-security-subnav-item.is-active {
  background: var(--forest-700); color: #fff; border-color: var(--forest-700);
}
.lk-security-panel { display: none; }
.lk-security-panel.is-active { display: block; }
.lk-security-lead { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.lk-totp-state { font-size: 0.875rem; margin: 0.5rem 0; }
.lk-email-change-step { margin-bottom: 1.25rem; }
.lk-email-change-step-title { font-weight: 600; margin: 0 0 0.5rem; color: var(--forest-700); }

.veche-org-other-input { margin-top: 0.5rem; }
.veche-lang-input { width: 100%; }
.veche-lang-suggest {
  position: absolute; background: #fff; border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); z-index: 50;
  max-height: 160px; overflow-y: auto; width: 100%;
}
.veche-lang-selected { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0; }


/* ── Ширина основного контента ── */
.board-layout,
.board-main,
.listings,
.lenta-feed,
.pv-layout,
.lk-shell {
  width: 100%;
  max-width: 100%;
}
.board-main { flex: 1; min-width: 0; }
.pv-wall { flex: 1; min-width: 0; }

/* ════════════════════════════════════════════════════════════════
   VECHE — издания и хаб
   ════════════════════════════════════════════════════════════════ */

.page-veche .page { padding-top: 0.5rem; }
.page-veche .hero { padding-bottom: 1.5rem; }

.veche-editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
}
.veche-edition-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.veche-edition-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.veche-edition-card h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.veche-edition-card h2 a { color: var(--forest-700); text-decoration: none; }
.veche-edition-card h2 a:hover { text-decoration: underline; }
.veche-edition-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.veche-edition-card .btn { align-self: flex-start; margin-top: auto; }
.veche-edition-card--tba { opacity: 0.7; }
.veche-edition-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--text-muted);
}
.veche-edition-card__badge--active {
  background: var(--emerald-500);
  color: #fff;
}
.veche-edition-card__sub { font-size: 0.85rem; color: var(--text-muted); }
.veche-hub-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* Veche 2026 page */
.veche-edition-back { text-align: center; font-size: 0.9rem; color: var(--text-muted); padding: 1.5rem 0 2rem; }
.veche-edition-back a { color: var(--forest-600); }

.veche-tba-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.veche-tba-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest-700);
  margin: 0 0 0.75rem;
}
.veche-tba-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 0.75rem; }

/* Card grid (Veche 2026 and similar) */
.card-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
}
.card-grid--two { grid-template-columns: repeat(2, 1fr); }
.card-grid .card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card-grid .card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card-grid .card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest-700);
  margin: 0;
}
.card-grid .card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════
   VIP — карточки гостей
   ════════════════════════════════════════════════════════════════ */

.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem;
}
.vip-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.vip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vip-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(224, 184, 48, 0.25);
}
.vip-card h3 { font-size: 1rem; font-weight: 600; color: var(--forest-700); margin: 0; }
.vip-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ════════════════════════════════════════════════════════════════
   ECO MAP — сервисы
   ════════════════════════════════════════════════════════════════ */

.eco-map {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 1.5rem 0 1rem;
  padding: 2rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  position: relative;
}
.eco-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.eco-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--sage-50);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.eco-node:hover {
  background: var(--white);
  border-color: var(--forest-400);
  transform: translateY(-1px);
  color: var(--forest-700);
}
.eco-node span:first-child { font-size: 1.25rem; flex-shrink: 0; }
.eco-center { flex-shrink: 0; }
.eco-node--center {
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--forest-700), var(--emerald-600));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.eco-node--center:hover {
  background: linear-gradient(135deg, var(--forest-800), var(--emerald-500));
  transform: translateY(-2px);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════
   SPONSORS — страница спонсорам
   ════════════════════════════════════════════════════════════════ */

.page-sponsors { background: var(--sage-50); }
.page-sponsors .page { padding-top: 0.5rem; }

.sponsors-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.sponsors-hero__inner { max-width: 36rem; margin: 0 auto; }
.sponsors-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}
.sponsors-hero h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--forest-700);
  margin: 0;
  line-height: 1.15;
}
.sponsors-hero__lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

.sponsors-wip { text-align: center; max-width: 36rem; margin: 0 auto 2rem; }
.sponsors-wip-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sponsors-wip-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--gold-glow);
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.sponsors-wip-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest-700);
  margin: 0 0 0.75rem;
}
.sponsors-wip-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 1.25rem; }

.sponsors-donate-soon {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--sage-50);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  text-align: left;
}
.sponsors-donate-soon__qr {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sponsors-donate-soon__qr-icon { font-size: 1.5rem; color: var(--text-muted); }
.sponsors-donate-soon__body { flex: 1; }
.sponsors-donate-soon__heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest-700);
  margin: 0 0 0.25rem;
}
.sponsors-donate-soon__hint { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.sponsors-wip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
}
.sponsors-wip-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.sponsors-wip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-200);
}
.sponsors-wip-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════
   PANEL / ADMIN (main domain demo)
   ════════════════════════════════════════════════════════════════ */

.admin-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
}
.admin-nav {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  position: sticky;
  top: 72px;
}
.admin-nav button,
.admin-nav a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s;
}
.admin-nav button:hover,
.admin-nav a:hover { background: var(--sage-50); }
.admin-nav .active {
  background: var(--forest-700);
  color: #fff;
}
.admin-content { flex: 1; min-width: 0; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.admin-stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.admin-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest-700);
}
.admin-stat span { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 0.15rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.75rem 0;
}
.admin-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--glass-border);
}
.admin-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.admin-table tr:last-child td { border-bottom: none; }

/* ════════════════════════════════════════════════════════════════
   MISC — page-specific bodies
   ════════════════════════════════════════════════════════════════ */

.page-vhod .page { padding-top: 1rem; }
.page-veche .page { padding-top: 0.5rem; }

/* ════════════════════════════════════════════════════════════════
   MOBILE OVERRIDES for all new sections
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .card-grid--two { grid-template-columns: 1fr; }
  .eco-map { flex-direction: column; }
  .eco-col { width: 100%; }
  .admin-layout { flex-direction: column; }
  .admin-nav { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-nav button, .admin-nav a { width: auto; }
  .veche-editions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vip-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsors-donate-soon { flex-direction: column; text-align: center; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
