:root {
  --color-dark: #15101f;
  --color-bright: #f5f2fb;
  --color-accent: #8b3ffb;
  --color-bg: #1a1424;
  --color-text: #ece7f5;
  --color-muted: #a598bd;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius: 0.65rem;
  --glow-accent: 0 0 15px rgba(139, 63, 251, 0.35);
}

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

body.tn-body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tn-header {
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(139, 63, 251, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tn-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tn-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-bright);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.tn-logo:hover {
  opacity: 0.9;
}

.tn-logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.tn-header__center {
  display: flex;
  align-items: center;
}

.tn-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.tn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.tn-cta--primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
  box-shadow: var(--glow-accent);
}

.tn-cta--primary:hover {
  background-color: #9b54fb;
  box-shadow: 0 0 22px rgba(139, 63, 251, 0.6);
  transform: translateY(-1px);
}

.tn-cta--secondary {
  background-color: transparent;
  color: var(--color-bright);
  border: 1px solid rgba(139, 63, 251, 0.5);
}

.tn-cta--secondary:hover {
  border-color: var(--color-accent);
  background-color: rgba(139, 63, 251, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.tn-nav {
  position: relative;
}

.tn-nav__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tn-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 63, 251, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1001;
}

.tn-nav__toggle:hover {
  background: rgba(139, 63, 251, 0.15);
  border-color: var(--color-accent);
}

.tn-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-bright);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tn-nav__checkbox:checked ~ .tn-nav__toggle .tn-nav__toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.tn-nav__checkbox:checked ~ .tn-nav__toggle .tn-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.tn-nav__checkbox:checked ~ .tn-nav__toggle .tn-nav__toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.tn-nav__list {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--color-dark);
  border-left: 1px solid rgba(139, 63, 251, 0.3);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
  padding: 85px 1.5rem 2.5rem;
  margin: 0;
  list-style: none;
  overflow-y: auto;
  z-index: 1000;
  flex-direction: column;
  gap: 0.35rem;
}

.tn-nav__checkbox:checked ~ .tn-nav__list {
  display: flex;
}

.tn-nav__item {
  position: relative;
  list-style: none;
}

.tn-nav__link {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.tn-nav__link:hover {
  background-color: rgba(139, 63, 251, 0.12);
  color: var(--color-bright);
}

.tn-nav__link--active {
  background-color: rgba(139, 63, 251, 0.22);
  color: #ffffff;
  border-left: 3px solid var(--color-accent);
}

.tn-nav__submenu {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
  gap: 0.2rem;
}

.tn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tn-lang__item {
  list-style: none;
}

.tn-lang__link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: calc(var(--radius) - 0.2rem);
  transition: all 0.2s ease;
}

.tn-lang__link:hover {
  color: var(--color-bright);
}

.tn-lang__link--active {
  background-color: var(--color-accent);
  color: #ffffff;
}

.tn-breadcrumbs-wrapper {
  background-color: rgba(21, 16, 31, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tn-breadcrumbs {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
}

.tn-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.tn-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.tn-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(165, 152, 189, 0.4);
}

.tn-breadcrumbs__link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tn-breadcrumbs__link:hover {
  color: var(--color-accent);
}

.tn-main {
  flex: 1;
}

.tn-footer {
  background-color: var(--color-dark);
  border-top: 1px solid rgba(139, 63, 251, 0.2);
  margin-top: auto;
}

.tn-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tn-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tn-footer__ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tn-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
}

.tn-footer-nav__item {
  list-style: none;
}

.tn-footer-nav__link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.tn-footer-nav__link:hover {
  color: var(--color-accent);
}

.tn-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tn-footer__copy {
  color: var(--color-muted);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .tn-header__inner {
    padding: 0.75rem 1rem;
  }
  
  .tn-header__actions .tn-header__lang {
    display: none;
  }
  
  .tn-footer__brand,
  .tn-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}