:root {
  --ts-bg: #182126;
  --ts-navy: #182126;
  --ts-card: #222c31;
  --ts-card-strong: #2b363b;
  --ts-text: #f3eee5;
  --ts-muted: rgba(243, 238, 229, 0.72);
  --ts-accent: #4e8287;
  --ts-accent-dark: #35686d;
  --ts-indigo: #4951b8;
  --ts-radius: 16px;
  --ts-shadow: 0 14px 30px rgba(24, 33, 38, 0.38);
}

html, body {
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, .ts-title-font {
  font-family: 'Oswald', 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
}

.site-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
}

#ts-menu-fab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9996;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(78, 130, 135, 0.28);
  background: rgba(34, 44, 49, 0.92);
  color: var(--ts-accent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

#ts-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

#ts-menu-sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9998;
  width: min(420px, 92vw);
  height: 100vh;
  background: linear-gradient(180deg, rgba(34, 44, 49, 0.98), rgba(24, 33, 38, 0.98));
  border-left: 1px solid rgba(78, 130, 135, 0.22);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow-y: auto;
}

body.ts-menu-open #ts-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.ts-menu-open #ts-menu-sheet {
  transform: translateX(0);
}

.ts-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ts-menu-title {
  color: var(--ts-accent);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.ts-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(78, 130, 135, 0.22);
  background: rgba(24, 33, 38, 0.9);
  color: var(--ts-accent);
  font-size: 1.2rem;
}

.ts-menu-lang {
  background: rgba(34, 44, 49, 0.9);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(78, 130, 135, 0.15);
}

.ts-menu-lang-label {
  color: var(--ts-text);
  margin: 0 0 8px;
  font-weight: 700;
}

.ts-lang-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ts-lang-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .85rem;
}

.ts-lang-chip.active {
  border-color: rgba(78, 130, 135, 0.8);
  background: rgba(78, 130, 135, 0.18);
  color: var(--ts-accent);
}

.ts-menu-list {
  display: grid;
  gap: 9px;
}

.ts-menu-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(34, 44, 49, 0.92);
  border: 1px solid rgba(78, 130, 135, 0.15);
  border-radius: 18px;
  padding: 12px;
}

.ts-menu-link-title {
  margin: 0;
  color: var(--ts-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.ts-menu-link-sub {
  margin: 4px 0 0;
  color: var(--ts-muted);
  font-size: .88rem;
}

.btn-primary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ts-accent), var(--ts-accent-dark));
  color: var(--ts-text);
  font-weight: 900;
  border-radius: 15px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 22px rgba(78, 130, 135, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-soft {
  background: rgba(34, 44, 49, 0.92);
  border: 1px solid rgba(78, 130, 135, 0.2);
  color: var(--ts-accent);
  font-weight: 800;
  border-radius: 15px;
  padding: 0.75rem 0.9rem;
}

.btn-soft:hover {
  transform: translateY(-1px);
  background: rgba(43, 54, 59, 0.98);
  border-color: rgba(78, 130, 135, 0.36);
}
