/*!****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/app/(frontend)/globals.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   factory.galson.pro — Global Styles
   Бренд-система Max Galson v1.0
   ~/galson-drive/max/brand-pack/00-brand-system.md
   Две темы — два регистра:
   :root = Light Warm (дефолт) · [data-theme='dark'] = Dark Warm (product mode)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- Design Tokens — :root = Light Warm (тема по умолчанию) --- */
:root {
  /* Surfaces — тёплая бумага */
  --bg:           #f1e1c3;   /* paper — фон страницы */
  --bg-card:      #fff2d7;   /* soft — карточки, модалки */
  --bg-elevated:  #fff8ec;   /* поднятое — дропдауны (тёплый, не чисто белый) */
  --bg-hover:     rgba(192, 86, 31, 0.07);
  --bg-input:     rgba(27, 23, 13, 0.05);
  --bg-subtle:    rgba(27, 23, 13, 0.05);
  --bg-image:     rgba(192, 86, 31, 0.06);

  /* Borders — тёплый ink на низкой альфе */
  --border:        rgba(27, 23, 13, 0.12);
  --border-soft:   rgba(27, 23, 13, 0.08);
  --border-subtle: rgba(27, 23, 13, 0.06);
  --border-strong: rgba(27, 23, 13, 0.20);

  /* Text — тёплый ink */
  --text:        #1b170d;
  --text-2:      #3d3528;
  --text-muted:  #6d5b4a;
  --text-dim:    #8a7a64;
  --text-faint:  #ab9c86;
  --text-heading:#1b170d;

  /* Accent — Light Warm: единственный акцент terracotta */
  --accent:       #c0561f;
  --accent-hover: #99441a;
  --accent-soft:  rgba(192, 86, 31, 0.10);
  --accent-glow:  rgba(192, 86, 31, 0.16);
  --on-accent:    #fff8ec;

  /* Бренд-цвета прямого назначения */
  --terracotta:   #c0561f;
  --gold:         #f5c518;   /* служебный мост, НЕ акцент в light */

  /* Status */
  --success:      #2f8f4e;
  --success-bg:   rgba(47, 143, 78, 0.12);
  --danger:       #c0392b;
  --danger-bg:    rgba(192, 57, 43, 0.10);

  /* Layout */
  --sidebar-width: 260px;
  --header-h:      56px;
  --content-max:   780px;

  /* Radii */
  --r-xs:   4px;
  --r-sm:   6px;
  --r:      8px;
  --r-md:   10px;
  --r-lg:   12px;
  --r-xl:   20px;
  --r-pill: 999px;

  /* Shadows — тёплые */
  --shadow-sm:  0 2px 6px rgba(27, 23, 13, 0.07);
  --shadow:     0 6px 20px rgba(27, 23, 13, 0.10);
  --shadow-lg:  0 16px 48px rgba(27, 23, 13, 0.14);
  --shadow-xl:  0 24px 64px rgba(27, 23, 13, 0.18);

  /* Typography — Inter + JetBrains Mono (Cloud Design KB plan) */
  --font-sans: 'Inter', system-ui, sans-serif; /* заголовки, текст, UI */
  --font-mono: 'JetBrains Mono', ui-monospace, monospace; /* eyebrow, code, console */

  /* Motion */
  --ease: 0.15s ease;
  --ease-slow: 0.25s ease;
}

/* --- Dark — galson.pro premium tech (мастер-тема) --- */
[data-theme='dark'] {
  /* Surfaces — нейтральная тёмная сцена (galson.pro main) */
  --bg:           #0f0f0f;   /* page background */
  --bg-card:      #1a1a1a;   /* карточки */
  --bg-elevated:  #1f1f1f;   /* поднятое — дропдауны */
  --bg-hover:     rgba(236, 176, 10, 0.08);
  --bg-input:     rgba(255, 255, 255, 0.04);
  --bg-subtle:    rgba(255, 255, 255, 0.06);
  --bg-image:     rgba(236, 176, 10, 0.06);

  --border:        rgba(255, 255, 255, 0.12);
  --border-soft:   rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:        #ffffff;
  --text-2:      #e5e5e5;
  --text-muted:  #9ca3af;
  --text-dim:    #6b7280;
  --text-faint:  #4b5563;
  --text-heading:#ffffff;

  /* Accent — gold #ecb00a (galson.pro) */
  --accent:       #ecb00a;
  --accent-hover: #f5c518;
  --accent-soft:  rgba(236, 176, 10, 0.12);
  --accent-glow:  rgba(236, 176, 10, 0.20);
  --on-accent:    #0f0f0f;

  --terracotta:   #c76830;
  --gold:         #ecb00a;

  --success:      #4ade80;
  --success-bg:   rgba(74, 222, 128, 0.12);
  --danger:       #f87171;
  --danger-bg:    rgba(248, 113, 113, 0.12);

  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow:     0 8px 24px rgba(0, 0, 0, 0.50);
  --shadow-lg:  0 16px 48px rgba(0, 0, 0, 0.58);
  --shadow-xl:  0 24px 64px rgba(0, 0, 0, 0.62);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* overflow-x:hidden here breaks position:sticky for TOC.
     Root fix is done via min-width:0 on block wrappers instead. */
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(236, 176, 10, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 176, 10, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
}

/* Safety: long unbreakable strings (URLs, file paths) won't burst the layout */
img, video, iframe, pre, table {
  max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* --- Smooth theme transitions ---
   Applied broadly so swap dark↔light flows instead of flashing.
   Excludes transform/opacity to keep micro-animations snappy. */
*,
*::before,
*::after {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.2s ease,
    fill 0.2s ease,
    stroke 0.2s ease,
    box-shadow 0.2s ease;
}

/* Disable transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Focus rings — accent, accessible --- */
*:focus { outline: none; }
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-glow);
  border-radius: var(--r-sm);
}

/* --- Button press feedback (tactile) --- */
button:active:not(:disabled),
a.primaryButton:active,
a.secondaryButton:active,
.iconButton:active {
  transform: scale(0.97);
}

/* All interactive elements get the press feedback transition */
button,
a.primaryButton,
a.secondaryButton,
.iconButton {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-sans);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem;  margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1rem;    margin: 1.25rem 0 0.5rem; }

p { margin-bottom: 1rem; }

strong { font-weight: 600; color: var(--text-heading); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--accent-hover); }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

img { max-width: 100%; height: auto; border-radius: var(--r); }

/* --- Forms (default styling for unclassed inputs/buttons) --- */
input[type='text'],
input[type='email'],
input[type='password'],
input[type='url'],
input[type='number'],
input[type='search'],
textarea,
select {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  padding: 0.65rem 0.85rem;
  transition: border-color var(--ease);
  width: 100%;
}
input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='url']:focus,
input[type='number']:focus,
input[type='search']:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

/* Primary + Secondary buttons share the same geometry so they line up
   when used side-by-side. Only background, border, and text color differ. */
button[type='submit'],
button.primaryButton,
a.primaryButton,
a.secondaryButton,
button.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  white-space: nowrap;
}

button[type='submit'],
button.primaryButton,
a.primaryButton {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
button[type='submit']:hover:not(:disabled),
button.primaryButton:hover:not(:disabled),
a.primaryButton:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
button[type='submit']:disabled,
button.primaryButton:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a.secondaryButton,
button.secondaryButton {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
a.secondaryButton:hover,
button.secondaryButton:hover {
  border-color: var(--accent);
  color: var(--accent);
}

label {
  color: var(--text-2);
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* --- Icon buttons (32x32 square, transparent, hover bg) --- */
.iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.iconButton:hover {
  background: var(--bg-hover);
  color: var(--accent);
}
.iconButton svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* --- Auth Form --- */
.authForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.authForm .field span {
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
}

.authForm .field input {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  padding: 0.7rem 0.85rem;
  transition: border-color var(--ease);
  width: 100%;
}

.authForm .field input:focus {
  border-color: var(--accent);
}

.authForm button[type='submit'] {
  width: 100%;
  height: 44px;
  margin-top: 0.25rem;
  border-radius: var(--r);
  font-size: 0.95rem;
}

.formError {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: var(--danger-bg);
  border-radius: var(--r-sm);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.socialButtons {
  display: flex;
  gap: 0.5rem;
}

.socialButtons a,
.socialButtons button {
  flex: 1;
}

.socialButtons .telegramLoginButton {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  color: #141413;
  display: inline-flex;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.socialButtons .telegramLoginButton:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #141413;
  transform: translateY(-1px);
}

.socialButtons .telegramLoginButton:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.telegramLoginAvatar {
  border-radius: var(--r-pill);
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.telegramLoginSpinner {
  animation: telegramLoginSpin 0.8s linear infinite;
  border: 2px solid rgba(20, 20, 19, 0.22);
  border-top-color: #141413;
  border-radius: var(--r-pill);
  height: 16px;
  width: 16px;
}

@keyframes telegramLoginSpin {
  to { transform: rotate(360deg); }
}

.mutedCopy {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.mutedCopy a {
  color: var(--accent);
  text-decoration: none;
}

.mutedCopy a:hover {
  text-decoration: underline;
}

/* --- Code --- */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  padding: 0.15em 0.4em;
  border-radius: var(--r-xs);
  color: var(--accent);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 1.25rem 0;
  position: relative;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}
th, td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
th {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tr:hover td { background: var(--bg-hover); }

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: var(--accent-soft);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text);
}
blockquote p:last-child { margin-bottom: 0; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(27, 23, 13, 0.18);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(27, 23, 13, 0.30); }
[data-theme='dark'] ::-webkit-scrollbar-thumb { background: rgba(243, 232, 210, 0.14); }
[data-theme='dark'] ::-webkit-scrollbar-thumb:hover { background: rgba(243, 232, 210, 0.24); }

/* --- Selection --- */
::selection {
  background: var(--accent-glow);
  color: var(--text-heading);
}

/* ============================================
   Component Classes
   ============================================ */

/* --- Card --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.card-header h2 {
  font-size: 1.1rem;
  margin: 0;
}
.card-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-xs);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.badge-accent  { background: var(--accent); color: var(--on-accent); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-muted   {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-outline {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--bg-hover);
}

.btn-danger {
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
}
.btn-lg {
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
}
.btn-full { width: 100%; }

/* --- Input --- */
.input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--ease);
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-dim); }

/* --- Status --- */
.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-xs);
  letter-spacing: 0.01em;
}
.status-active   { background: var(--success-bg); color: var(--success); }
.status-inactive { background: var(--bg-subtle); color: var(--text-muted); }

/* --- Kbd --- */
kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  background: var(--bg-subtle);
  border-radius: var(--r-xs);
  color: var(--text-dim);
}

/* --- Utility --- */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-mono { font-family: var(--font-mono); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 0.75rem; }
.gap-3 { gap: 1rem; }

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

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  body { font-size: 14px; }
}

/* Fix iOS Safari horizontal scroll caused by off-screen fixed sidebar */
@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }
}

/*!*************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/frontend/Footer.module.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************/
.Footer_footer__z8DDV {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.Footer_grid__7t_Lh {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.Footer_brandCol__e0UHc {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.Footer_logo__S1hHa {
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.Footer_logo__S1hHa:hover {
  color: var(--accent);
  text-decoration: none;
}

.Footer_tagline__ar_po {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.5;
  font-size: 0.85rem;
}

.Footer_col__ZcS7i {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.Footer_col__ZcS7i h4 {
  color: var(--text-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.Footer_col__ZcS7i a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.2rem 0;
  font-size: 0.85rem;
  transition: color 0.18s ease;
}

.Footer_col__ZcS7i a:hover {
  color: var(--accent);
  text-decoration: none;
}

.Footer_socialIcons___PqTO {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.1rem;
}

.Footer_socialIcons___PqTO a {
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--r-sm);
  transition: color 0.18s ease, background 0.18s ease;
}

.Footer_socialIcons___PqTO a:hover {
  color: var(--accent);
  background: var(--bg-hover);
  text-decoration: none;
}

.Footer_bottom__cXhco {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-faint);
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .Footer_grid__7t_Lh {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .Footer_brandCol__e0UHc {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .Footer_grid__7t_Lh {
    grid-template-columns: 1fr;
  }
  .Footer_brandCol__e0UHc {
    grid-column: auto;
  }
}

/*!******************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/frontend/SearchModal.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************/
.SearchModal_overlay__vBuob {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding-top: 15vh;
  position: fixed;
  z-index: 200;
}

[data-theme='light'] .SearchModal_overlay__vBuob {
  background: rgba(31, 30, 29, 0.3);
}

.SearchModal_modal__IfniQ {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  max-width: 520px;
  overflow: hidden;
  width: 90vw;
}

.SearchModal_inputWrap__XPJpj {
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  padding: 14px 16px;
}

.SearchModal_searchIcon__NQNAj {
  color: var(--text-dim);
  flex-shrink: 0;
}

.SearchModal_input__UUBLC {
  background: transparent;
  border: none;
  color: var(--text-heading);
  flex: 1;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
}

.SearchModal_input__UUBLC::placeholder {
  color: var(--text-faint);
}

.SearchModal_kbd__tm6Ja {
  background: var(--bg-subtle);
  border-radius: var(--r-xs);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.7rem;
  padding: 2px 6px;
}

.SearchModal_results__4IEka {
  max-height: calc(60vh - 60px);
  overflow-y: auto;
  padding: 8px;
}

.SearchModal_empty__ksSaN {
  color: var(--text-faint);
  font-size: 0.9rem;
  padding: 24px 16px;
  text-align: center;
}

.SearchModal_result__NMW_7 {
  align-items: center;
  border-radius: var(--r);
  color: var(--text-2);
  display: flex;
  font-size: 0.9rem;
  gap: 0.75rem;
  padding: 10px 12px;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.SearchModal_result__NMW_7:hover,
.SearchModal_resultActive__TUc_s {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.SearchModal_resultType__NH9KQ {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.SearchModal_resultText__FGYQk {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.SearchModal_resultTitle__ZkrnV {
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.SearchModal_resultSubtitle__rHg2_ {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/app/(frontend)/layout.module.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   App shell — header + sidebar + content
   Pattern: fabrika.galson.pro
   ============================================ */

.layout_appFrame__6ddRa {
  min-height: 100vh;
}

/* --- Header (full-width, fixed top) --- */
.layout_header__q1YCl {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 100;
}

.layout_logo__XGa3O {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none !important;
  letter-spacing: 0;
}
.layout_logo__XGa3O:hover {
  color: var(--accent);
  text-decoration: none !important;
}

.layout_headerActions__uz0nk {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

/* --- Sidebar (fixed left, below header) --- */
.layout_sidebar__ta7qU {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 30;
  overflow-y: auto;
}

.layout_sidebarInner__yVxTq {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 0;
}

.layout_searchBox___Wiqp {
  padding: 0 0.75rem 1rem;
}

.layout_searchButton__kI2Ud {
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 12px;
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color var(--ease);
}
.layout_searchButton__kI2Ud:hover {
  border-color: var(--border-strong);
}
.layout_searchButton__kI2Ud span {
  flex: 1;
  text-align: left;
}
.layout_searchButton__kI2Ud kbd {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: var(--bg-subtle);
  border-radius: var(--r-xs);
  color: var(--text-dim);
  font-family: inherit;
}

.layout_nav__PyA4W {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.5rem;
  flex: 1;
}

.layout_permanentLinks__z6cgy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.layout_permanentLink__zOzUW {
  align-items: center;
  border-radius: var(--r-sm);
  color: var(--text-heading);
  display: flex;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.layout_permanentLink__zOzUW:hover {
  background: var(--bg-hover);
  color: var(--accent);
  text-decoration: none;
}
.layout_permanentLinkActive__ss1Fq {
  background: var(--accent-soft);
  color: var(--accent);
}
.layout_permanentLinkActive__ss1Fq:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.layout_permanentIcon__NGi1y {
  color: var(--accent);
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}

.layout_navSectionHeader__7z8Zf {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 12px 8px;
  user-select: none;
}

.layout_navGroup__ZJXos {
  display: flex;
  flex-direction: column;
}

.layout_navLink__vsORh {
  align-items: center;
  border-radius: var(--r-sm);
  color: var(--text-2);
  display: flex;
  gap: 4px;
  padding-right: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
  position: relative;
}
.layout_navLink__vsORh:hover {
  background: var(--bg-hover);
  color: var(--text-heading);
  text-decoration: none;
}
.layout_navLink__vsORh:hover .layout_navIcon__Bwy_v {
  transform: translateX(2px);
}
.layout_navLinkText__RQxCW {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.layout_navLinkText__RQxCW:hover {
  text-decoration: none;
}
.layout_navLinkText__RQxCW span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layout_navIcon__Bwy_v {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}

.layout_navToggle__E6W1w {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  border-radius: var(--r-xs);
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.layout_navToggle__E6W1w:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.layout_navChevron__xnsjE {
  width: 12px;
  height: 12px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.layout_navChevronOpen__BrlMM {
  transform: rotate(90deg);
}

.layout_navChildren____qaP {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 6px 14px;
  padding-left: 12px;
  border-left: 1px solid var(--border-soft);
  animation: layout_navChildrenEnter__HEQAk 0.2s ease;
}

@keyframes layout_navChildrenEnter__HEQAk {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.layout_navChildLink__IMniP {
  display: block;
  padding: 6px 10px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  border-radius: var(--r-xs);
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
  white-space: normal;
  word-break: break-word;
}
.layout_navChildLink__IMniP:hover {
  background: var(--bg-hover);
  color: var(--text-2);
  text-decoration: none;
}
.layout_navChildLinkActive__Q_GRc {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}
.layout_navChildLinkActive__Q_GRc:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.layout_navLinkActive__5B_Go {
  background: var(--accent-soft);
  color: var(--accent);
}
.layout_navLinkActive__5B_Go:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.layout_navIcon__Bwy_v {
  color: var(--accent);
  flex-shrink: 0;
  height: 16px;
  width: 16px;
}

.layout_navEmpty__kgru5 {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Three skeleton placeholders with shimmer — feels alive even when empty */
.layout_navEmpty__kgru5::before,
.layout_navEmpty__kgru5::after,
.layout_navEmpty__kgru5 > .layout_navEmptyTitle__Xx8dA::before {
  content: '';
  display: block;
  height: 32px;
  border-radius: var(--r-sm);
  background: linear-gradient(
    90deg,
    var(--bg-input) 0%,
    var(--bg-hover) 50%,
    var(--bg-input) 100%
  );
  background-size: 200% 100%;
  animation: layout_shimmer__76D8P 1.8s ease-in-out infinite;
  opacity: 0.6;
}

.layout_navEmpty__kgru5::before { animation-delay: 0s; }
.layout_navEmpty__kgru5 > .layout_navEmptyTitle__Xx8dA::before { animation-delay: 0.2s; }
.layout_navEmpty__kgru5::after { animation-delay: 0.4s; }

@keyframes layout_shimmer__76D8P {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

/* Hide the icon and text labels — replaced by shimmer skeletons */
.layout_navEmptyIcon__XGHEH {
  display: none;
}

.layout_navEmptyTitle__Xx8dA {
  margin: 0;
  font-size: 0;
}

.layout_navEmptyText___5zp9 {
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 0 4px;
  text-align: center;
  font-style: italic;
}

.layout_sidebarFooter__NIIv6 {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.layout_sidebarFooter__NIIv6 a {
  color: var(--text-dim);
  font-size: 0.78rem;
  padding: 6px 0;
  text-decoration: none;
  transition: color var(--ease);
}

.layout_sidebarFooter__NIIv6 a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* --- Main column --- */
.layout_mainColumn__PWJVT {
  margin-left: var(--sidebar-width);
  padding-top: var(--header-h);
  min-height: 100vh;
  min-width: 0;
  /* No overflow-x:hidden here — it would break position:sticky on the TOC.
     Min-width:0 + per-block max-width:100% prevent children from overflowing. */
}

.layout_content__MuTts {
  margin: 0 auto;
  max-width: 1120px;
  padding: 2.5rem 2rem 4rem;
  min-width: 0;
}

/* --- User menu --- */
.layout_userMenu__TS4Oy {
  position: relative;
}

.layout_userTrigger__Rp4sM {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
}

.layout_userTrigger__Rp4sM::-webkit-details-marker {
  display: none;
}

.layout_userAvatar__RWsES {
  align-items: center;
  background: var(--accent);
  border-radius: var(--r-pill);
  color: var(--on-accent);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  overflow: hidden;
  width: 32px;
  transition: opacity var(--ease);
}
.layout_userAvatar__RWsES:hover {
  opacity: 0.9;
}

.layout_userAvatarImage__kFFJl {
  border-radius: var(--r-pill);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.layout_userDropdown__x_jpk {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
}

.layout_userDropdownMeta__erPdT {
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
  padding: 10px 12px 8px;
}

.layout_userDropdownMeta__erPdT strong {
  color: var(--text-heading);
  font-size: 0.88rem;
  font-weight: 600;
}

.layout_userDropdownMeta__erPdT span {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.layout_userDropdown__x_jpk a,
.layout_userDropdown__x_jpk button {
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 8px 12px;
  text-align: left;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
  width: 100%;
}

.layout_userDropdown__x_jpk a:hover,
.layout_userDropdown__x_jpk button:hover {
  background: var(--bg-hover);
  color: var(--text-heading);
  text-decoration: none;
}

.layout_userDropdown__x_jpk form {
  margin: 0;
}

/* --- Mobile burger --- */
.layout_mobileBurger__aQEzS,
.layout_overlay__rsPgn {
  display: none;
}

@media (max-width: 768px) {
  .layout_mobileBurger__aQEzS {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 8px;
    position: fixed;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 110;
  }

  .layout_mobileBurger__aQEzS span {
    background: var(--text);
    display: block;
    height: 2px;
    width: 20px;
  }

  .layout_sidebar__ta7qU {
    transform: translateX(-100%);
    transition: transform 180ms ease;
    max-width: 280px;
  }

  .layout_sidebarOpen__yS9Wo {
    transform: translateX(0);
  }

  .layout_overlay__rsPgn {
    background: rgba(0, 0, 0, 0.5);
    border: 0;
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 25;
  }

  .layout_mainColumn__PWJVT {
    margin-left: 0;
  }

  .layout_header__q1YCl {
    padding-left: 3rem;
  }

  .layout_content__MuTts {
    padding: 1.5rem 1rem 2.5rem;
  }
}

