:root {
  --app-bg: #f6f8f5;
  --app-bg-soft: #f8faf7;
  --app-surface: #fffdf8;
  --app-surface-soft: #f7f0e5;
  --app-text: #2b2a26;
  --app-muted: #6f665c;
  --app-border: #e6dccb;
  --app-primary: #4f6b5a;
  --app-primary-hover: #3f5949;
  --app-primary-active: #32483b;
  --app-primary-soft: #eef3ee;
  --app-primary-contrast: #ffffff;
  --app-accent: #b89b5e;
  --app-accent-soft: #f5ecda;
  --app-shadow-soft: 0 18px 40px rgba(75, 57, 35, 0.08);
  --app-shadow-card: 0 14px 34px rgba(75, 57, 35, 0.1);
  --app-radius-sm: 12px;
  --app-radius-md: 16px;
  --app-radius-lg: 20px;
  --app-radius-pill: 999px;
  --app-focus-ring: 0 0 0 3px rgba(79, 107, 90, 0.14);
  --app-max-width: 1200px;
  --bs-primary: var(--app-primary);
  --bs-primary-rgb: 79, 107, 90;
  --bs-secondary: var(--app-muted);
  --bs-secondary-rgb: 111, 102, 92;
  --bs-body-color: var(--app-text);
  --bs-body-bg: var(--app-bg);
  --bs-border-color: var(--app-border);
  --bs-link-color: var(--app-primary);
  --bs-link-hover-color: var(--app-primary-hover);
  --memory-bg: #f6f8f5;
  --memory-surface: #fffdf8;
  --memory-surface-soft: #f6efe3;
  --memory-text: #252525;
  --memory-muted: #6f665c;
  --memory-border: #e6dccb;
  --memory-accent: #4f6b5a;
  --memory-accent-soft: #eef3ee;
  --memory-accent-deep: #3f5949;
  --memory-brass: #b89b5e;
  --memory-brass-soft: #f5ecda;
  --memory-shadow-soft: 0 18px 40px rgba(75, 57, 35, 0.08);
  --memory-shadow-card: 0 14px 34px rgba(75, 57, 35, 0.1);
  --memory-radius-lg: 20px;
  --memory-radius-sm: 12px;
}

.app-root {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(184, 155, 94, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(79, 107, 90, 0.12), transparent 28%),
    linear-gradient(180deg, #f8faf7 0%, var(--app-bg) 220px, #eef3ed 100%);
  color: var(--app-text);
}

.site-container {
  width: min(var(--app-max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 247, 0.9);
  border-bottom: 1px solid var(--app-border);
}

.site-main {
  padding-top: 1rem;
  padding-bottom: 2rem;
  flex: 1;
}

.site-footer__inner {
  background: linear-gradient(180deg, rgba(248, 250, 247, 0.98) 0%, #eef3ed 100%);
  border-top: 1px solid var(--app-border);
}

.site-footer__inner .site-container {
  padding-top: 2rem;
  padding-bottom: 0.35rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 1.5rem 1.25rem;
  align-items: start;
}

.site-footer-section {
  min-width: 0;
}

.site-footer-section--brand {
  max-width: 420px;
}

.site-footer-title {
  margin: 0 0 0.85rem;
  color: var(--app-text);
  font-size: 0.98rem;
  font-weight: 700;
}

.site-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links li + li {
  margin-top: 0.58rem;
}

.site-footer-links a {
  line-height: 1.35;
}

.site-footer-caption {
  color: var(--app-text);
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer-social a:hover {
  border-color: var(--app-accent);
  background: var(--app-surface-soft);
}

.site-footer-telegram {
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  padding: 0.25rem 0 !important;
  font-size: 0.9rem;
  color: var(--app-muted);
  background: transparent !important;
  border: none !important;
  transition: color 0.2s ease;
}

.site-footer-telegram:hover {
  color: #0088cc;
}

.site-footer-telegram i {
  font-size: 1.15rem;
}

.site-footer-cta {
  margin-top: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
}

.site-footer-cta-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  border-radius: var(--app-radius-pill);
  background: var(--app-primary);
  color: #fff;
  border: 0;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer-cta-btn:hover {
  background: var(--app-primary-hover);
  color: #fff;
}

.site-footer-divider {
  margin: 1.35rem 0 0.85rem;
}

.site-footer-bottom {
  color: var(--app-muted);
  line-height: 1.4;
}

.site-brand {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--app-text);
  letter-spacing: 0.01em;
}

.site-header-nav {
  border-bottom: 1px solid var(--app-border);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.site-header-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  color: var(--app-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-header-brand:hover {
  color: var(--app-primary);
}

.site-header-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0;
  object-fit: contain;
}

.site-header-brand__text {
  color: var(--app-text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.site-header-desktop {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface);
  color: var(--app-text);
  font-size: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.site-header-toggle:hover {
  border-color: var(--app-accent);
  color: var(--app-primary);
}

.site-header-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header-primary {
  flex: 1;
  justify-content: center;
}

.site-header-actions {
  flex-shrink: 0;
  justify-content: flex-end;
}

.site-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.48rem 0.78rem;
  border-radius: var(--app-radius-pill);
  color: var(--app-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header-link:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.site-header-link.active {
  background: var(--app-primary);
  color: var(--app-primary-contrast);
}

.site-header-link--accent {
  border: 1px solid rgba(184, 155, 94, 0.38);
  background: rgba(255, 251, 244, 0.78);
  color: var(--app-primary);
}

.site-header-link--accent:hover,
.site-header-link--accent.active {
  border-color: var(--app-primary);
  background: var(--app-primary);
  color: var(--app-primary-contrast);
}

.site-header-user {
  position: relative;
}

.site-header-summary {
  display: flex;
  min-height: 2.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-pill);
  background: rgba(255, 253, 248, 0.94);
  color: var(--app-text);
  list-style: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header-summary::-webkit-details-marker {
  display: none;
}

.site-header-summary:hover {
  border-color: var(--app-accent);
  background: var(--app-surface);
}

.site-header-summary__text {
  display: block;
  min-width: 0;
  max-width: 16rem;
  overflow: hidden;
  color: var(--app-text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header-dropdown {
  display: grid;
  gap: 0.2rem;
  margin: 0.35rem 0 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-soft);
}

.site-header-dropdown__link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--app-radius-sm);
  color: var(--app-text);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header-dropdown__link:hover,
.site-header-dropdown__link.active {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.site-header-dropdown__link--danger {
  color: #9f2f23;
}

.site-header-dropdown__link--danger:hover {
  background: rgba(159, 47, 35, 0.08);
  color: #7f241b;
}

.site-header-mobile {
  display: none;
}

.site-header-mobile__list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.75rem 0 1rem;
  list-style: none;
  border-top: 1px solid var(--app-border);
}

.site-header-mobile__link {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--app-radius-sm);
  color: var(--app-text);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.site-header-mobile__link:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.site-header-mobile__link.active {
  background: var(--app-primary);
  color: var(--app-primary-contrast);
}

.site-header-mobile__link--accent {
  border: 1px solid rgba(184, 155, 94, 0.34);
  background: rgba(255, 251, 244, 0.82);
  color: var(--app-primary);
}

.site-header-mobile__link--danger {
  color: #9f2f23;
}

.site-logo {
  width: 42px;
  height: auto;
}

.site-logo--header {
  width: auto;
  max-width: 200px;
  max-height: 42px;
  object-fit: contain;
}

.app-top-nav .navbar-nav .nav-link {
  font-weight: 500;
}

.app-nav-link {
  color: var(--app-text) !important;
  border-radius: var(--app-radius-pill);
  padding: 0.5rem 0.95rem !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-nav-link:hover {
  background-color: var(--app-primary-soft);
  color: var(--app-primary) !important;
}

.app-nav-link.active {
  background-color: var(--app-primary);
  color: var(--app-primary-contrast) !important;
}

.app-cta,
.btn.app-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--app-primary);
  background-color: var(--app-primary);
  color: var(--app-primary-contrast);
  border-radius: var(--app-radius-pill);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(79, 107, 90, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--app-primary);
  border-radius: var(--app-radius-pill);
  background-color: var(--app-primary);
  color: var(--app-primary-contrast);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(79, 107, 90, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:focus {
  border-color: var(--app-primary-hover);
  background-color: var(--app-primary-hover);
  color: var(--app-primary-contrast);
  box-shadow: 0 14px 28px rgba(79, 107, 90, 0.18);
}

.btn-primary:active,
.btn.btn-primary:active {
  border-color: var(--app-primary-active);
  background-color: var(--app-primary-active);
  color: var(--app-primary-contrast);
}

.btn-primary:focus-visible,
.btn.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.app-cta:hover,
.btn.app-cta:hover {
  background-color: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
  color: var(--app-primary-contrast);
  box-shadow: 0 14px 28px rgba(79, 107, 90, 0.18);
}

.app-cta:active,
.btn.app-cta:active {
  background-color: var(--app-primary-active);
  border-color: var(--app-primary-active);
  color: var(--app-primary-contrast);
}

.app-cta:focus-visible,
.btn.app-cta:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.app-btn-secondary,
.btn.btn-secondary,
.btn.btn-outline-primary,
.btn.btn-outline-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: var(--app-radius-pill);
  background: rgba(255, 251, 244, 0.92);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-btn-secondary,
.btn.btn-secondary,
.btn.btn-outline-primary {
  border: 1px solid rgba(184, 155, 94, 0.38);
  color: var(--app-primary);
}

.btn.btn-outline-secondary {
  border: 1px solid var(--app-border);
  color: var(--app-muted);
}

.app-btn-secondary:hover,
.btn.btn-secondary:hover,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
  background: var(--app-surface);
  box-shadow: 0 10px 24px rgba(75, 57, 35, 0.08);
}

.app-btn-secondary:hover,
.btn.btn-secondary:hover,
.btn.btn-outline-primary:hover {
  border-color: var(--app-accent);
  color: var(--app-primary);
}

.btn.btn-outline-secondary:hover {
  border-color: rgba(184, 155, 94, 0.32);
  color: var(--app-text);
}

.app-btn-secondary:focus-visible,
.btn.btn-secondary:focus-visible,
.btn.btn-outline-primary:focus-visible,
.btn.btn-outline-secondary:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.app-link {
  color: var(--app-muted);
}

.app-link:hover {
  color: var(--app-text);
}

.app-muted {
  color: var(--app-muted);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.app-sidebar,
.app-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow-soft);
}

.app-sidebar {
  padding: 0.75rem;
}

.app-content .app-card {
  padding: 1rem;
}

.app-sidebar-title {
  padding: 0.25rem 0.6rem 0.8rem;
  color: var(--app-text);
  font-weight: 700;
}

.app-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-menu-title {
  margin: 0.5rem 0 0.25rem;
  color: var(--app-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.app-menu-link {
  display: block;
  text-decoration: none;
  color: var(--app-text);
  padding: 0.55rem 0.75rem;
  border-radius: var(--app-radius-sm);
  line-height: 1.25;
}

.app-menu-link:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.app-menu-link.active {
  background: var(--app-primary);
  color: var(--app-primary-contrast);
}

.app-sidebar-profile .app-menu-link {
  display: block;
  width: 100%;
  color: var(--app-text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  border-radius: var(--app-radius-sm);
  text-decoration: none;
  background: transparent;
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-sidebar-profile .app-menu-link:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.app-sidebar-profile .app-menu-link.active {
  background: var(--app-primary);
  color: var(--app-primary-contrast);
  border-left-color: var(--app-primary);
}

.app-sidebar-profile .app-sidebar-title {
  padding: 0.25rem 0.75rem 0.35rem;
  color: var(--app-text);
  font-size: 1rem;
  font-weight: 700;
}

.app-sidebar-profile .app-sidebar-subtitle {
  margin: 0 0.75rem 0.75rem;
  color: var(--app-muted);
  font-size: 0.75rem;
}

.app-sidebar-profile .app-menu-section + .app-menu-section {
  margin-top: 0.6rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--app-border);
}

.app-sidebar-profile .app-menu-title {
  margin: 0 0 0.25rem;
  padding: 0 0.75rem;
  color: var(--app-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.app-sidebar-profile .app-menu-link:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}

.app-title {
  margin-bottom: 0.25rem;
  font-size: 1.8rem;
}

.app-page-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--app-border);
}

.app-page-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--app-text);
}

.app-page-subtitle {
  margin: 0.35rem 0 0;
  color: var(--app-muted);
  font-size: 0.95rem;
}

.public-page {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.public-shell {
  width: min(var(--app-max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.public-stack {
  display: grid;
  gap: 1.5rem;
}

.public-hero,
.public-section-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 155, 94, 0.22);
  border-radius: var(--app-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(184, 155, 94, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 239, 227, 0.92));
  box-shadow: var(--app-shadow-soft);
}

.public-hero {
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
}

.public-section-card {
  padding: clamp(1.25rem, 2.8vw, 2rem);
}

.public-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--app-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(184, 155, 94, 0.28);
  border-radius: var(--app-radius-pill);
  background: rgba(255, 251, 244, 0.92);
  color: var(--app-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-title,
.public-section-title,
.public-card-title {
  margin: 0;
  color: var(--app-text);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.public-title {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.98;
}

.public-section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.public-card-title {
  font-size: 1.35rem;
  line-height: 1.1;
}

.public-lead,
.public-text,
.public-muted {
  color: var(--app-muted);
  line-height: 1.75;
}

.public-lead {
  max-width: 760px;
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.public-section-heading {
  margin-bottom: 1rem;
}

.public-grid {
  display: grid;
  gap: 1rem;
}

.public-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-feature-card {
  height: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(184, 155, 94, 0.18);
  border-radius: var(--app-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(246, 239, 227, 0.72) 100%);
}

.public-feature-card .public-card-title {
  margin-bottom: 0.55rem;
}

.public-feature-card .public-text {
  margin: 0;
}

.public-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--app-accent-soft);
  color: var(--app-primary);
  font-size: 1.05rem;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-info-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-info-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--app-text);
  line-height: 1.65;
}

.public-info-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--app-accent);
}

.public-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.public-data-table tr + tr td {
  border-top: 1px solid rgba(184, 155, 94, 0.14);
}

.public-data-table td {
  padding: 0.9rem 0;
  vertical-align: top;
}

.public-data-table__label {
  width: 42%;
  color: var(--app-text);
  font-weight: 700;
}

.public-link-list {
  display: grid;
  gap: 0.75rem;
}

.public-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(184, 155, 94, 0.18);
  border-radius: var(--app-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(246, 239, 227, 0.72) 100%);
  color: var(--app-text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.public-link-card:hover {
  border-color: var(--app-accent);
  color: var(--app-text);
  box-shadow: var(--app-shadow-soft);
  transform: translateY(-1px);
}

.public-link-card:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
}

.public-link-card__meta {
  color: var(--app-muted);
}

.public-inline-link {
  color: var(--app-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.public-inline-link:hover {
  color: var(--app-primary-hover);
}

.public-inline-link:focus-visible {
  outline: none;
  box-shadow: var(--app-focus-ring);
  border-radius: 4px;
}

.app-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-form-grid {
  display: grid;
  gap: 0.9rem;
}

.app-form-field .form-control,
.app-form-field .form-select {
  border-color: var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface);
  color: var(--app-text);
  min-height: 44px;
}

.app-form-field .form-control:focus,
.app-form-field .form-select:focus {
  border-color: var(--app-primary);
  box-shadow: var(--app-focus-ring);
}

.app-form-label {
  margin-bottom: 0.35rem;
  color: var(--app-text);
  font-weight: 600;
}

.app-form-required {
  color: #b42318;
}

.app-form-help {
  color: var(--app-muted);
}

.app-form-errors {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  color: #b42318;
}

.app-form-field.has-error .form-control,
.app-form-field.has-error .form-select {
  border-color: #b42318;
}

/* --- Поле пароля с кнопкой показать/скрыть --- */
.app-password-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.app-password-wrap .form-control {
  padding-right: 2.75rem;
  border-radius: var(--app-radius-sm);
}

.app-password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--app-muted);
  cursor: pointer;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.app-password-toggle:hover {
  color: var(--app-primary);
  background: var(--app-primary-soft);
}

.app-password-toggle:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}

.app-password-toggle i {
  font-size: 1rem;
}

.app-form-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.app-checkbox-list {
  display: grid;
  gap: 0.75rem;
}

.app-checkbox-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: rgba(255, 253, 248, 0.92);
}

.app-checkbox-item input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--app-primary);
}

.app-checkbox-item label {
  margin: 0;
  color: var(--app-text);
  font-weight: 500;
  line-height: 1.5;
}

.form-control,
.form-select {
  border-color: var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface);
  color: var(--app-text);
  min-height: 44px;
}

.form-control::placeholder,
.form-select::placeholder {
  color: var(--app-muted);
}

.form-control:hover,
.form-select:hover {
  border-color: rgba(184, 155, 94, 0.4);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--app-primary);
  box-shadow: var(--app-focus-ring);
}

.accordion-item {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  overflow: hidden;
  background: rgba(255, 253, 248, 0.92);
}

.accordion-button {
  color: var(--app-text);
  background: rgba(255, 253, 248, 0.92);
  font-weight: 600;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--app-primary);
  background: var(--app-accent-soft);
}

.accordion-button:focus {
  border-color: var(--app-primary);
  box-shadow: var(--app-focus-ring);
}

.accordion-body {
  color: var(--app-muted);
  line-height: 1.7;
  background: rgba(255, 253, 248, 0.82);
}

/* --- Профиль: блок «Мои страницы памяти» --- */
.profile-memory-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--app-border);
}

.profile-biography-promo {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 239, 227, 0.82));
}

.profile-biography-promo__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.profile-biography-promo__text {
  margin: 0 0 0.75rem;
  color: var(--app-muted);
}

.profile-memory-header__top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .profile-memory-header__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.profile-memory-header__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.3;
}

.profile-memory-header__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--app-muted);
  line-height: 1.45;
  max-width: 520px;
}

.profile-memory-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--app-primary);
  border: 1px solid var(--app-primary);
  border-radius: var(--app-radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.profile-memory-header__cta:hover {
  background-color: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
  color: #fff;
}

.profile-memory-header__cta--large {
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
}

.profile-memory-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem;
}

.profile-memory-empty__icon {
  font-size: 3rem;
  color: var(--app-primary);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.profile-memory-empty__text {
  margin: 0 0 1.25rem;
  color: var(--app-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 400px;
}

.profile-memory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.profile-memory-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--app-border);
}

.profile-memory-section__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--app-text);
}

/* Карточка страницы памяти в профиле */
.profile-memory-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  box-shadow: var(--app-shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: stretch;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-memory-card:hover {
  border-color: rgba(184, 155, 94, 0.42);
  box-shadow: var(--app-shadow-card);
}

.profile-memory-card__media {
  position: relative;
  width: 100%;
  min-height: 150px;
  height: 100%;
  background: linear-gradient(180deg, rgba(238, 243, 238, 0.9), rgba(245, 236, 218, 0.55));
  border-right: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-memory-card__media img,
.profile-memory-card__media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-memory-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.profile-memory-card__media--with-photo .profile-memory-card__media-link {
  flex: 1;
  min-height: 0;
}

.profile-memory-card__delete-photo {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-memory-card__delete-photo:hover {
  background: rgba(185, 28, 28, 0.9);
  color: #fff;
}

.profile-memory-card__media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.profile-memory-card__media-placeholder a,
.profile-memory-card__media-placeholder button.profile-memory-card__add-photo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--app-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  height: 100%;
}

.profile-memory-card__media-placeholder a:hover,
.profile-memory-card__media-placeholder button.profile-memory-card__add-photo-btn:hover {
  color: var(--app-primary);
}

.profile-memory-card__media-placeholder i {
  font-size: 2rem;
  opacity: 0.5;
}

.profile-memory-card__body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-memory-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.25;
}

.profile-memory-card__name a {
  color: inherit;
  text-decoration: none;
}

.profile-memory-card__name a:hover {
  color: var(--app-primary);
}

.profile-memory-card__full-name {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--app-text);
  line-height: 1.35;
}

.profile-memory-card__dates {
  margin: 0;
  font-size: 0.9rem;
  color: var(--app-muted);
}

.profile-memory-card__qr-status {
  display: inline-flex;
  align-self: flex-start;
  margin: 0.6rem 0 0;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-pill);
  background: var(--app-primary-soft);
  color: var(--app-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-memory-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 0;
}

.profile-memory-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--app-primary);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-pill);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.profile-memory-card__actions a:hover {
  color: var(--app-primary-hover);
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
  text-decoration: none;
}

.profile-memory-card__actions .btn {
  margin-top: 0.5rem;
  width: 100%;
}

.app-memory-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-memory-hero {
  padding: 1.1rem;
}

.app-card .btn-sm.active,
.app-card .btn-sm.active:hover {
  background: var(--app-primary);
  color: #fff;
}

.app-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: rgba(255, 253, 248, 0.92);
}

.app-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.app-table th,
.app-table td {
  padding: 0.95rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--app-border);
}

.app-table thead th {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(246, 239, 227, 0.72);
}

.app-table tbody tr:last-child td {
  border-bottom: none;
}

.app-table tbody tr:hover td {
  background: rgba(246, 239, 227, 0.35);
}

.app-table__title {
  margin: 0;
  color: var(--app-text);
  font-weight: 600;
}

.app-table__meta {
  margin: 0.2rem 0 0;
  color: var(--app-muted);
  font-size: 0.9rem;
}

.app-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(184, 155, 94, 0.24);
  border-radius: var(--app-radius-pill);
  background: var(--app-accent-soft);
  color: var(--app-text);
  font-size: 0.86rem;
  font-weight: 600;
}

/* --- QR-табличка: landing в кабинете --- */
.qr-plate-landing {
  display: grid;
  gap: 1.25rem;
}

.qr-plate-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(232, 241, 251, 0.85), rgba(255, 255, 255, 0.96) 42%),
    var(--app-surface);
}

.qr-plate-hero-section__content {
  display: grid;
  gap: 1rem;
}

.qr-plate-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(31, 91, 149, 0.18);
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.qr-plate-hero-section__title {
  max-width: 12em;
  margin: 0;
  color: var(--app-text);
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.02;
}

.qr-plate-hero-section__lead {
  max-width: 620px;
  margin: 0;
  color: var(--app-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.qr-plate-actions,
.qr-plate-order-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.qr-plate-spec-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.qr-plate-spec-strip div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.qr-plate-spec-strip dt {
  margin-bottom: 0.25rem;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.qr-plate-spec-strip dd {
  margin: 0;
  color: var(--app-text);
  font-weight: 700;
}

.qr-plate-gallery {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-height: 420px;
}

.qr-plate-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(15, 32, 58, 0.14);
}

.qr-plate-gallery__main {
  grid-row: 1 / -1;
}

.qr-plate-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.qr-plate-info-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-surface);
}

.qr-plate-info-card__icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: #f3efe7;
  color: #6e5130;
  font-size: 0.85rem;
  font-weight: 800;
}

.qr-plate-info-card h2,
.qr-plate-info-card h3,
.qr-plate-order-panel h2,
.qr-plate-order-panel h3 {
  margin: 0 0 0.5rem;
  color: var(--app-text);
  font-size: 1.12rem;
  line-height: 1.25;
}

.qr-plate-info-card p,
.qr-plate-order-panel p {
  margin: 0;
  color: var(--app-muted);
  line-height: 1.6;
}

.qr-plate-order-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #f8faf4;
}

.qr-plate-order-panel__actions {
  justify-content: flex-end;
}

@media (max-width: 1099.98px) {
  .qr-plate-hero-section,
  .qr-plate-order-panel {
    grid-template-columns: 1fr;
  }

  .qr-plate-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-plate-order-panel__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .qr-plate-hero-section {
    padding: 1rem;
    border-radius: 14px;
  }

  .qr-plate-hero-section__title {
    max-width: none;
  }

  .qr-plate-spec-strip,
  .qr-plate-info-grid {
    grid-template-columns: 1fr;
  }

  .qr-plate-gallery {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .qr-plate-gallery img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .qr-plate-gallery__main {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3 !important;
  }
}

.app-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) 1rem;
  border: 1px dashed rgba(184, 155, 94, 0.4);
  border-radius: var(--app-radius-lg);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 239, 227, 0.82));
}

.app-empty-state__icon {
  margin-bottom: 1rem;
  color: var(--app-primary);
  font-size: 2.4rem;
  opacity: 0.72;
}

.app-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  font-size: 1.6rem;
}

.app-state-icon--muted {
  background: rgba(111, 102, 92, 0.12);
  color: var(--app-muted);
}

.app-empty-state__title {
  margin: 0 0 0.5rem;
  color: var(--app-text);
  font-size: 1.25rem;
  font-weight: 700;
}

.app-empty-state__text {
  max-width: 520px;
  margin: 0 0 1.25rem;
  color: var(--app-muted);
  line-height: 1.65;
}

.app-summary-grid {
  display: grid;
  gap: 1rem;
}

.app-summary-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-summary-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: rgba(255, 253, 248, 0.92);
}

.app-summary-card__label {
  margin: 0 0 0.3rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-summary-card__value {
  margin: 0;
  color: var(--app-text);
  font-weight: 600;
  line-height: 1.5;
}

.app-list-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: rgba(255, 253, 248, 0.92);
}

.app-list-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.app-list-card li + li {
  margin-top: 0.45rem;
}

.profile-photo-upload-zone {
  display: block;
  padding: 1rem;
  border: 2px dashed var(--app-border);
  border-radius: var(--app-radius-sm);
  color: var(--app-muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.profile-photo-upload-zone:hover {
  border-color: var(--app-primary);
  color: var(--app-primary);
  background: var(--app-primary-soft);
}

.profile-photo-upload-progress .progress {
  overflow: hidden;
  border-radius: var(--app-radius-pill);
  background: rgba(246, 239, 227, 0.9);
}

.subscription-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.subscription-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  overflow: hidden;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 24px rgba(75, 57, 35, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.subscription-card:hover {
  border-color: rgba(184, 155, 94, 0.42);
  transform: translateY(-2px);
  box-shadow: var(--app-shadow-card);
}

.subscription-card__media {
  height: 186px;
  background: linear-gradient(180deg, rgba(238, 243, 238, 0.9), rgba(245, 236, 218, 0.55));
}

.subscription-card__image-wrap {
  display: block;
  width: 100%;
  height: 186px;
  overflow: hidden;
}

.subscription-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subscription-card__empty {
  width: 100%;
  height: 100%;
  min-height: 186px;
}

.subscription-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  flex: 1;
}

.subscription-card__name-link {
  color: inherit;
  text-decoration: none;
}

.subscription-card__name {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.3;
  color: var(--app-text);
}

.subscription-card__name-main {
  display: block;
  font-weight: 700;
}

.subscription-card__name-secondary {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.92rem;
  color: var(--app-muted);
  font-weight: 500;
}

.subscription-card__meta {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: rgba(246, 239, 227, 0.55);
  color: var(--app-muted);
  font-size: 0.875rem;
}

.subscription-card__meta-label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--app-muted);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subscription-card__meta-value {
  font-weight: 600;
  color: var(--app-text);
}

.subscription-card__actions {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

.subscription-card__status {
  margin: 0;
  color: var(--app-primary);
  font-size: 0.83rem;
  line-height: 1.2;
  font-weight: 600;
}

.subscription-card__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #b6e4c0;
  border-radius: var(--app-radius-pill);
  background: #f1f9f2;
  color: #1b8c3f;
  text-decoration: none;
  overflow: visible;
  transition: all 0.18s ease;
}

.subscription-card__toggle i {
  font-size: 0.95rem;
  pointer-events: none;
}

.subscription-card__toggle .subscription-card__toggle-icon-subscribe {
  display: none;
}

.subscription-card__toggle:hover {
  background: #ffe7e7;
  border-color: #f7b4b4;
  color: #a91e2d;
}

.subscription-card__toggle:hover .subscription-card__toggle-icon-subscribed {
  display: none;
}

.subscription-card__toggle:hover .subscription-card__toggle-icon-subscribe {
  display: inline;
}

.subscription-card__toggle::after {
  content: attr(data-hover-label);
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 0.28rem 0.5rem;
  border-radius: 10px;
  background: #2a2f36;
  color: #fff;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.subscription-card__toggle:hover::after {
  opacity: 1;
}

/* --- Настройки профиля --- */
.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--app-border);
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-section__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--app-text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--app-border);
}

.settings-section__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-field__label {
  font-size: 0.8125rem;
  color: var(--app-muted);
  font-weight: 500;
}

.settings-field__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--app-text);
}

.settings-field__action {
  margin-top: 0.25rem;
  align-self: flex-start;
}

.settings-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
}

/* --- Форма смены пароля --- */
.password-change-form {
  max-width: 400px;
}

.settings-password-fields {
  max-width: 400px;
}

.settings-section__hint {
  color: var(--app-muted);
  font-size: 0.875rem;
}

.app-card > .container,
.app-card > .row,
.app-card > form,
.app-card > .app-memory-hero {
  width: 100%;
}

@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1rem;
  }

  .site-footer-section--brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .app-top-nav .app-cta {
    width: 100%;
    text-align: left;
  }

  .site-container {
    width: calc(100% - 1rem);
  }
}

@media (max-width: 1199.98px) and (min-width: 1100px) {
  .site-header-inner {
    gap: 0.75rem;
  }

  .site-header-desktop {
    gap: 0.6rem;
  }

  .site-header-link {
    padding-left: 0.58rem;
    padding-right: 0.58rem;
    font-size: 0.9rem;
  }

  .site-header-brand__text {
    font-size: 1.08rem;
  }
}

@media (min-width: 1100px) {
  .site-header-dropdown {
    position: absolute;
    right: 0;
    min-width: 16.5rem;
    margin-top: 0.45rem;
    z-index: 30;
  }
}

@media (max-width: 1099.98px) {
  .site-header-inner {
    min-height: 4rem;
  }

  .site-header-desktop {
    display: none;
  }

  .site-header-toggle {
    display: inline-flex;
  }

  .site-header-mobile.is-open {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .site-header-inner {
    min-height: 3.75rem;
  }

  .site-header-brand {
    gap: 0.55rem;
  }

  .site-header-brand__logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .site-header-brand__text {
    font-size: 1.05rem;
  }

  .site-header-toggle {
    width: 2.45rem;
    height: 2.45rem;
  }
}

@media (max-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer-cta {
    width: 100%;
  }

  .app-sidebar {
    padding: 0.5rem;
  }

  .app-sidebar-profile .app-menu-link {
    padding: 0.5rem 0.65rem 0.5rem 0.9rem;
  }

  .app-sidebar-profile .app-sidebar-title {
    font-size: 0.95rem;
    padding: 0 0.6rem 0.25rem;
  }

  .app-sidebar-profile .app-sidebar-subtitle {
    margin: 0 0.6rem 0.6rem;
    font-size: 0.72rem;
  }

  .app-sidebar-profile .app-menu-title {
    padding: 0 0.6rem;
  }

  .app-content .app-card {
    padding: 0.75rem;
  }

  .app-form-actions .btn {
    width: 100%;
  }

  .app-summary-grid--2 {
    grid-template-columns: 1fr;
  }

  .profile-memory-header__cta {
    width: 100%;
    justify-content: center;
  }

  .profile-memory-header__cta--large {
    width: 100%;
  }

  .profile-memory-grid {
    gap: 1rem;
  }

  .subscription-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .profile-memory-card {
    grid-template-columns: 1fr;
  }

  .profile-memory-card__media {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .profile-memory-card__actions a,
  .profile-memory-card__actions .btn {
    width: 100%;
  }

  .subscription-page__grid {
    grid-template-columns: 1fr;
  }

  .subscription-card__body {
    padding: 0.9rem;
  }

  .app-table th,
  .app-table td {
    padding: 0.8rem;
  }
}
