/* Technobroker custom styles - complements Tailwind CDN */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/space-grotesk-300.ttf') format('truetype')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/space-grotesk-400.ttf') format('truetype')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/space-grotesk-500.ttf') format('truetype')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/space-grotesk-600.ttf') format('truetype')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/space-grotesk-700.ttf') format('truetype')}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/space-mono-400.ttf') format('truetype')}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/space-mono-700.ttf') format('truetype')}

:root {
  --color-cyber-black: #05070A;
  --color-dark-graphite: #0B1114;
  --color-darker-graphite: #10171B;
  --color-neon-green: #00FF66;
  --color-soft-green: #6CFFB2;
  --color-white: #FFFFFF;
  --color-gray: #AAB3BA;
  --color-border-glow: rgba(0, 255, 102, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: #1a2228;
}

header.sticky,
header {
  border-bottom: 1px solid #1a2228 !important;
}
footer {
  border-top: 1px solid #1a2228 !important;
}
section.border-b,
[class*="border-b"][class*="1a2228"] {
  border-bottom-color: #1a2228 !important;
}
[class*="border-t"][class*="1a2228"] {
  border-top-color: #1a2228 !important;
}
#mobile-menu {
  border-top-color: #1a2228 !important;
}
.tb-desktop-nav { display: none; }
.tb-menu-btn { display: inline-flex; }
@media (min-width: 1180px) {
  .tb-desktop-nav { display: flex; }
  .tb-menu-btn, .tb-mobile-menu { display: none !important; }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--color-cyber-black);
  color: var(--color-white);
  margin: 0;
  min-height: 100vh;
}

code, pre, .font-mono {
  font-family: 'Space Mono', monospace;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05070A; }
::-webkit-scrollbar-thumb {
  background: #10171B;
  border-radius: 5px;
  border: 2px solid #05070A;
}
::-webkit-scrollbar-thumb:hover { background: #00FF66; }

::selection {
  background: rgba(0, 255, 102, 0.3);
  color: #FFFFFF;
}

/* Animations */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes float-up-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-down-lg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes bar-fill {
  from { width: 0; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float-up { animation: float-up 4s ease-in-out infinite; }
.animate-float-down { animation: float-down 3.5s ease-in-out infinite; }
.animate-float-up-sm { animation: float-up-sm 4.5s ease-in-out infinite 1s; }
.animate-float-down-lg { animation: float-down-lg 3.8s ease-in-out infinite 1.5s; }

.diag-bar {
  animation: bar-fill 1.2s ease forwards;
}

.reveal {
  opacity: 1;
  transform: none;
}
.reveal.is-visible {
  animation: fade-up 0.55s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-visible {
    animation: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  height: auto;
  padding: 0.75rem 1.25rem;
}
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-lg {
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  white-space: normal;
  text-align: center;
}
.btn-sm {
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
}
@media (max-width: 640px) {
  .btn {
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
  }
  .btn-lg {
    width: 100%;
    max-width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
  .btn.px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.btn-icon {
  min-height: 2.5rem;
  height: 2.5rem;
  width: 2.5rem;
  padding: 0;
  background: transparent;
}
.btn-primary {
  background: #00FF66;
  color: #05070A;
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.35);
}
.btn-primary:hover {
  background: rgba(0, 255, 102, 0.9);
  box-shadow: 0 0 60px rgba(0, 255, 102, 0.55);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(0, 255, 102, 0.3);
  color: #00FF66;
}
.btn-outline:hover {
  background: rgba(0, 255, 102, 0.1);
  border-color: rgba(0, 255, 102, 0.6);
}
.btn-ghost {
  background: transparent;
  color: #AAB3BA;
}
.btn-ghost:hover {
  color: #00FF66;
  background: rgba(0, 255, 102, 0.08);
}

.accordion-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.accordion-item[data-open="true"] {
  border-color: rgba(0, 255, 102, 0.35) !important;
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.06);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.28s ease, padding 0.3s ease;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.accordion-item[data-open="true"] .accordion-content {
  max-height: 480px;
  opacity: 1;
  padding-bottom: 1.5rem !important;
}
.accordion-chevron {
  transition: transform 0.3s ease;
}
.accordion-item[data-open="true"] .accordion-chevron {
  transform: rotate(180deg);
}

[data-expand-body] {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
[data-expand-item][data-open="true"] [data-expand-body] {
  max-height: 1200px;
  opacity: 1;
}
.expand-chevron,
[data-expand-trigger] i[data-lucide],
[data-expand-trigger] svg {
  transition: transform 0.3s ease;
}
[data-expand-item][data-open="true"] .expand-chevron,
[data-expand-item][data-open="true"] [data-expand-trigger] > svg:last-child,
[data-expand-item][data-open="true"] [data-expand-trigger] > i:last-child {
  transform: rotate(90deg);
}
[data-expand-trigger] {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border-top: 1px solid #1a2228 !important;
}
[data-expand-group] [data-expand-item]:first-child > [data-expand-trigger] {
  border-top: none !important;
}

#mobile-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
#mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
#menu-icon-x { display: none; }
#menu-btn.is-open #menu-icon-menu { display: none; }
#menu-btn.is-open #menu-icon-x { display: block; }

html.mobile-menu-open,
body.mobile-menu-open {
  overflow: hidden;
}

.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
  animation: fade-up 0.35s ease both;
}
.tab-btn {
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.tab-btn.is-active {
  background: #00FF66 !important;
  color: #05070A !important;
  border-color: #00FF66 !important;
}

/* Filter chips */
.filter-chip {
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: #AAB3BA;
  background: transparent;
  cursor: pointer;
}
.filter-chip:hover {
  color: #fff;
  border-color: rgba(0, 255, 102, 0.4);
}
.filter-chip.is-active {
  background: #00FF66 !important;
  color: #05070A !important;
  border-color: #00FF66 !important;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

/* Tab buttons default */
.tab-btn {
  color: #AAB3BA;
  background: transparent;
  border: none;
  cursor: pointer;
}
.tab-btn:hover { color: #fff; }
.tab-btn.is-active {
  background: #00FF66 !important;
  color: #05070A !important;
  border-radius: 0.5rem;
}

.karta-filter {
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: #AAB3BA;
  background: transparent;
  cursor: pointer;
}
.karta-filter:hover {
  border-color: rgba(0, 255, 102, 0.4);
  color: #fff;
}
.karta-filter.is-active {
  background: #00FF66 !important;
  color: #05070A !important;
  border-color: #00FF66 !important;
}

.is-hidden {
  display: none !important;
}
[data-expand-body].is-hidden {
  display: block !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

a, button, .btn, .filter-chip, .karta-filter, .catalog-cat {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover, .btn-primary:hover {
  transform: translateY(-1px);
}
.btn:active, .btn-primary:active {
  transform: translateY(0);
}
.news-item, .article-item, .case-item, .review-item, .region-city, #product-grid > * {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-expand-body], .accordion-content {
    transition: none !important;
  }
}

/* Line clamp */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Nav active */
.nav-link.is-active {
  color: #00FF66 !important;
  background: rgba(0, 255, 102, 0.08) !important;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 360px) {
  header .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  header .tb-header-row {
    gap: 0.25rem;
  }
  header .tb-header-logo {
    gap: 0.5rem;
    min-width: 0;
  }
  header .tb-header-logo img {
    width: 2rem;
    height: 2rem;
  }
  header .tb-header-wordmark {
    font-size: 0.8rem;
    letter-spacing: -0.02em;
  }
  header .tb-header-actions {
    gap: 0;
  }
  header .tb-header-actions .btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
  }
}

section[id],
#buyback {
  scroll-margin-top: 5rem;
}

footer a {
  display: inline-block;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.filter-chip {
  flex-shrink: 0;
}

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

select, input, textarea {
  max-width: 100%;
}

/* Lucide icons sizing helpers */
.icon-3 { width: 0.75rem; height: 0.75rem; }
.icon-3\.5 { width: 0.875rem; height: 0.875rem; }
.icon-4 { width: 1rem; height: 1rem; }
.icon-5 { width: 1.25rem; height: 1.25rem; }
.icon-6 { width: 1.5rem; height: 1.5rem; }
.icon-7 { width: 1.75rem; height: 1.75rem; }
.icon-8 { width: 2rem; height: 2rem; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}
