/* =========================================================
   Trusty chrome for /forseller/ — static replica of the SPA
   header + footer. Lives in its own .tr-* namespace so the
   existing forseller styles.css (with .site-header*) is left
   untouched. Depends on /styles/tokens.css being loaded first.
   ========================================================= */

/* ─────────────── HEADER ─────────────── */
.tr-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.tr-header__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex; align-items: center; gap: 20px;
}
.tr-header__logo {
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--fg-1);
}
.tr-header__logo img { display: block; height: 26px; width: auto; }

.tr-header__nav {
  display: flex; gap: 2px; align-items: center;
  flex: 1 1 auto; min-width: 0;
}
.tr-header__nav a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 11px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.tr-header__nav a:hover { background: var(--surface-1); color: var(--blue-500); }

.tr-header__nav a.tr-header__nav-accent {
  background: linear-gradient(135deg, var(--magenta-500), #C12DB0);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(193,45,176,.25);
}
.tr-header__nav a.tr-header__nav-accent:hover {
  background: linear-gradient(135deg, #C12DB0, var(--magenta-700));
  color: #fff;
}

.tr-header__right {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
}

.tr-header__lang {
  display: inline-flex;
  background: var(--surface-1);
  border-radius: 999px;
  padding: 2px;
}
.tr-header__lang a {
  border: 0;
  background: transparent;
  color: var(--fg-3);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.tr-header__lang a.is-active {
  background: var(--surface-0);
  color: var(--blue-500);
  box-shadow: var(--shadow-xs);
}

.tr-header__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(41,98,255,.30);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
  white-space: nowrap;
}
.tr-header__cta:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(41,98,255,.40);
}

.tr-header__burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 10px;
}
.tr-header__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--fg-1);
  border-radius: 2px;
  margin: 4px 0;
}

/* Mobile nav (off-canvas drawer) */
.tr-mobile-nav {
  position: fixed; inset: 0;
  background: rgba(11, 16, 48, 0.55);
  z-index: 70;
  display: none;
}
.tr-mobile-nav.is-open { display: block; }
.tr-mobile-nav__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--surface-0);
  padding: 24px 22px 32px;
  display: flex; flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  box-shadow: -16px 0 40px rgba(11,16,48,.18);
}
.tr-mobile-nav__close {
  align-self: flex-end;
  background: var(--surface-1);
  border: 0;
  border-radius: 10px;
  width: 36px; height: 36px;
  font-size: 22px; line-height: 1;
  color: var(--fg-1);
  cursor: pointer;
}
.tr-mobile-nav__group-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--magenta-500);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}
.tr-mobile-nav a {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  padding: 10px 0;
}
.tr-mobile-nav a.tr-mobile-nav__cta {
  margin-top: 14px;
  background: var(--blue-500);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  padding: 14px 18px;
}

@media (max-width: 1080px) {
  .tr-header__nav,
  .tr-header__lang { display: none; }
  .tr-header__burger { display: inline-flex; }
}
@media (max-width: 720px) {
  .tr-header__inner { padding: 0 18px; height: 64px; }
  .tr-header__cta { display: none; }
}

/* ─────────────── FOOTER ─────────────── */
.tr-footer {
  background: var(--ink-900);
  color: #fff;
  margin-top: 80px;
}
.tr-footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 40px 32px;
}
.tr-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(5, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.tr-footer__brand img { display: block; height: 26px; width: auto; }
.tr-footer__brand-tag {
  margin-top: 20px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  line-height: 1.55;
  max-width: 300px;
}
.tr-footer__brand-contacts {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}
.tr-footer__brand-contacts a {
  color: inherit;
  text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center;
}
.tr-footer__brand-contacts a:hover { color: #fff; }

.tr-footer__col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.55);
  margin: 0 0 16px;
}
.tr-footer__col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.tr-footer__col a {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  text-decoration: none;
}
.tr-footer__col a:hover { color: #fff; }

.tr-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.tr-footer__bottom a {
  color: inherit;
  text-decoration: none;
}
.tr-footer__bottom a:hover { color: #fff; }

@media (max-width: 1080px) {
  .tr-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .tr-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tr-footer__inner { padding: 56px 22px 28px; }
  .tr-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 36px; }
  .tr-footer__brand { grid-column: 1 / -1; }
}

/* ─────────── PRINT MODE — chrome must vanish ─────────── */
body.forseller-print-mode .tr-header,
body.forseller-print-mode .tr-mobile-nav,
body.forseller-print-mode .tr-footer { display: none !important; }
@media print {
  .tr-header, .tr-mobile-nav, .tr-footer { display: none !important; }
}
