/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@600;700&family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* === CSS Variables === */
:root {
  --primary: #f5b01a;
  --primary-dark: #d49a16;
  --secondary: #1a1a1a;
  --accent: #f5b01a;
  --bg: #ffffff;
  --bg-alt: #f9f8f6;
  --text: #222222;
  --text-light: #6b6863;
  --border: #e8e6e3;
  --shadow: 8px 12px 24px rgba(26, 26, 26, 0.09);
  --shadow-hover: 12px 16px 32px rgba(26, 26, 26, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-height: 0px;
  --sidebar-width: 25vw;
  --sidebar-bg: #0f1115;
  --sidebar-bg-top: #161820;
  --sidebar-bg-bottom: #0b0d12;
  --sidebar-glow-line: rgba(245, 176, 26, 0.55);
  --sidebar-glow-spot-top: rgba(245, 176, 26, 0.12);
  --sidebar-glow-spot-bottom: rgba(245, 176, 26, 0.06);
  --sidebar-shadow: 4px 0 50px rgba(0, 0, 0, 0.55);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-border-light: rgba(255, 255, 255, 0.14);
  --sidebar-text: rgba(255, 255, 255, 0.85);
  --sidebar-text-hover: #ffffff;
  --sidebar-item-bg: linear-gradient(145deg, #1e2129, #17191f);
  --sidebar-item-bg-active: linear-gradient(145deg, #2a2316, #1a160d);
  --sidebar-item-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  --sidebar-item-shadow-hover: var(--glow-primary), 0 10px 26px rgba(0, 0, 0, 0.45);
  --sidebar-item-gap: 14px;
  --sidebar-item-padding: 14px 16px;
  --sidebar-item-radius: 14px;
  --sidebar-item-translate: 6px;
  --sidebar-accent-line-width: 3px;
  --sidebar-accent-line-glow: 0 0 14px var(--primary);
  --sidebar-nav-padding: 22px;
  --sidebar-footer-padding: 20px 22px;
  --sidebar-header-padding: 26px 22px 22px;
  --sidebar-logo-height: 58px;
  --sidebar-phone-font: 1rem;
  --sidebar-btn-radius: 14px;
  --sidebar-btn-padding: 16px 18px;
  --sidebar-btn-bg: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --sidebar-btn-bg-hover: linear-gradient(135deg, #ffbf2e, #e6a518);
  --sidebar-btn-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --sidebar-btn-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.4);
  --sidebar-btn-glow-hover: 0 0 34px rgba(245, 176, 26, 0.65);
  --sidebar-btn-inset: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  --sidebar-item-font: 0.84rem;
  --sidebar-btn-font: 0.95rem;
  --sidebar-z-index: 1100;
  --sidebar-backdrop-z-index: 1050;
  --sidebar-cookie-offset: 90px;
  --mobile-topbar-bg: rgba(15, 17, 21, 0.98);
  --mobile-topbar-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  --mobile-topbar-padding: 0 16px;
  --mobile-btn-size: 42px;
  --mobile-btn-radius: 12px;
  --mobile-btn-font: 1.25rem;
  --mobile-logo-height: 40px;
  --mobile-phone-font: 0.9rem;
  --font-tech: 'Jura', 'Montserrat', 'Inter', sans-serif;
  --glow-primary: 0 0 18px rgba(245, 176, 26, 0.35);
  --glow-primary-strong: 0 0 28px rgba(245, 176, 26, 0.55);
  --transition: all 0.3s ease;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

a:hover {
  color: var(--primary-dark);
}

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* === Logo === */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  background: var(--bg-alt);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1a1a 100%);
  color: white;
  padding: 72px 0;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, rgba(245, 176, 26, 0.1) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
  max-width: 640px;
  line-height: 1.5;
}

.hero--compact {
  padding: 32px 0;
}

.hero--compact h1 {
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.hero--compact p {
  margin: 0;
}

.section-title-cta {
  display: flex;
  width: fit-content;
  margin: 0 auto 16px;
  font-size: 1.25rem;
}

.btn.section-title-cta {
  display: flex;
}

.hero-note {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 12px 0 0;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
}

/* === Hero dialog window === */
.hero-dialog {
  position: relative;
  overflow: visible;
  padding: calc(var(--header-height) + 2px) 0 24px;
}

#hero-chat-anchor {
  scroll-margin-top: calc(var(--header-height) + 8px);
}

/* === Quick links (for Yandex sitelinks) === */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.quick-links a:hover,
.quick-links a:focus {
  background: var(--primary);
  color: var(--secondary);
}

.hero-dialog-window {
  max-width: 760px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  margin: 0 0 14px;
}

.hero-dialog.fallback {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1a1a 100%);
}

/* === Hero 3D animation === */
.hero-animation-section {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1000px;
  height: 520px;
  margin: 24px auto;
  background: #1a1a1a;
  border-radius: 18px;
  overflow: hidden;
  scroll-margin-top: var(--header-height);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  touch-action: pan-y;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #1a1a1a;
  opacity: 0;
  transition: opacity 0.6s ease;
  touch-action: pan-y;
}

.hero-canvas.ready {
  opacity: 1;
}

.hero-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.hero-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  z-index: 1;
}

.hero-replay-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: var(--primary, #f5b50a);
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-replay-btn:hover {
  background: #ffca28;
  transform: translateY(-2px);
}

.hero-replay-btn.is-visible {
  display: inline-flex;
}

/* === 3D scene annotations === */
.hero-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-stage-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92%;
  padding: 14px 26px;
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-stage-label.is-visible {
  opacity: 1;
}

.hero-object-label {
  position: absolute;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero-object-label.is-visible {
  opacity: 1;
}

.hero-object-label--plugs {
  transform: translate(-40%, -120%);
}

.hero-object-label--ties {
  transform: translate(-90%, -120%);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.hero-logo {
  display: block;
  flex: 0 0 auto;
  width: 120px;
  height: auto;
  background: white;
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 6px 6px 0 rgba(26, 26, 26, 0.12);
}

.hero-title-main {
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex: 1 1 320px;
  max-width: 640px;
}

.hero h1.hero-title-main {
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 0;
}

/* === Hero chat === */
.hero-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 0 14px;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sound-toggle:hover {
  background: var(--primary);
  color: var(--secondary);
}

.sound-toggle[aria-pressed="true"] {
  background: var(--primary);
  color: var(--secondary);
}

.sound-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.chat-message {
  position: relative;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 88%;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--secondary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  animation: chat-pop 0.25s ease-out;
}

@keyframes chat-pop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-message p {
  margin: 0;
  max-width: none;
  opacity: 1;
  font-size: inherit;
  color: inherit;
}

.chat-author {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  opacity: 0.7;
}

.chat-message--left {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 4px;
}

.chat-message--right {
  align-self: flex-end;
  background: var(--primary);
  color: var(--secondary);
  border-bottom-right-radius: 4px;
}

.chat-cursor {
  display: inline-block;
  width: 2px;
  margin-left: 2px;
  animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === Hero CTA popup === */
.hero-cta-popup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 640px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(245, 176, 26, 0.35);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
}

.hero-cta-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-cta-popup:hover,
.hero-cta-popup:focus {
  background: var(--primary-dark);
  color: var(--secondary);
  opacity: 1;
}

.hero-cta-popup::after {
  content: " →";
}

.hero-cta-under-animation {
  text-align: center;
  margin: 8px auto 48px;
}

/* === Utility === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Article link cards === */
.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card:hover h3 {
  color: var(--primary-dark);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* === Sections === */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  color: var(--secondary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: justify;
  color: var(--text-light);
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.65;
  hyphens: auto;
}

/* === Cards === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--secondary);
}

.card p {
  margin: 0;
  color: var(--text-light);
}

/* === Comparison Table === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--secondary);
  color: white;
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--secondary);
}

.comparison-table .best {
  color: #2e7d32;
  font-weight: 600;
}

.comparison-table .worst {
  color: #c62828;
  font-weight: 600;
}

/* === FAQ === */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--secondary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  position: relative;
  padding-right: 44px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-answer p {
  margin: 0;
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--secondary);
}

.step p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
  word-break: break-word;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Homepage stats: keep value and label on a single line */
.section:has(.stats-home) .content-block {
  max-width: none;
  width: 100%;
}

.stats-home .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-home .stat-value {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  white-space: nowrap;
}

.stats-home .stat-label {
  font-size: clamp(0.8rem, 1.6vw, 0.85rem);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .stats-home .stats {
    grid-template-columns: 1fr;
  }

  .stats-home .stat-value,
  .stats-home .stat-label {
    white-space: normal;
  }
}

/* === Feature List === */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.feature-item .icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(245, 176, 26, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.feature-item p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* === Highlight Box === */
.highlight-box {
  background: rgba(245, 176, 26, 0.1);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text);
}

/* === Image Grid === */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.image-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.image-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.image-card figcaption {
  padding: 16px;
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
}

.content-block .image-card img {
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

/* === Two Columns === */
.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

.two-columns h3 {
  color: var(--secondary);
  margin-top: 0;
  margin-bottom: 16px;
}

.two-columns ul {
  padding-left: 20px;
  margin: 0;
}

.two-columns li {
  margin-bottom: 10px;
  color: var(--text);
}

/* === Content === */
.content-block {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
}

.content-block h2 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.content-block h3 {
  font-size: 1.15rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.content-block p {
  margin-bottom: 12px;
}

.content-block ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-block li {
  margin-bottom: 6px;
}

/* === Products === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.product-image {
  height: 220px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 4rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-brick {
  height: 140px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e5e5e5;
}

.product-brick img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-info {
  padding: 24px;
}

.product-info h3 {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 1.3rem;
}

.product-info p {
  margin: 0 0 10px;
  color: var(--text-light);
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card-link:hover .product-info h3 {
  color: var(--primary);
}

.catalog-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
}

.product-price {
  margin-top: 12px;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}

.catalog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.catalog-card:hover {
  color: inherit;
}

.catalog-card .btn-outline {
  width: 100%;
}

.catalog-image {
  height: 260px;
  background: #ffffff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-detail-images {
  display: grid;
  gap: 24px;
}

.product-detail-images .image-card img,
.product-detail-single img {
  height: auto;
  max-height: 520px;
  width: 100%;
  object-fit: contain;
}

.product-detail-single img {
  max-height: 420px;
}

.product-detail-images .image-card > a {
  display: block;
}

.product-detail-images .image-card > a img {
  cursor: zoom-in;
}

.product-detail-info {
  position: sticky;
  top: 100px;
}

.product-specs td:first-child {
  width: 55%;
  color: var(--text-light);
  font-weight: 500;
}

.product-specs td:last-child {
  font-weight: 700;
  color: var(--secondary);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 1rem;
  margin-bottom: 24px;
}

.price-table th,
.price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  background: var(--secondary);
  color: white;
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td:first-child {
  font-weight: 600;
  color: var(--secondary);
}

.price-table td:last-child {
  font-weight: 700;
  color: var(--primary);
}

#order-table th:nth-child(2),
#order-table td:nth-child(2),
#order-table th:nth-child(4),
#order-table td:nth-child(4),
#order-table th:nth-child(5),
#order-table td:nth-child(5),
#order-table th:nth-child(6),
#order-table td:nth-child(6),
#order-table th:nth-child(7),
#order-table td:nth-child(7) {
  white-space: nowrap;
}

/* === Brick alignment animation === */
.align-animation {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.align-animation canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.align-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.95rem;
  z-index: 1;
}

.align-animation.ready .align-loader {
  display: none;
}

/* === Image Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* === 3D Viewer === */
.viewer-3d {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 30px 0;
  box-shadow: var(--shadow);
  background: #f0f0f0;
}

.viewer-3d iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Video === */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Contacts === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  color: var(--secondary);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
  color: var(--text-light);
}

.contact-info strong {
  color: var(--text);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Forms === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 176, 26, 0.1);
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-group.checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-group.checkbox label {
  margin: 0;
  font-weight: 400;
  color: var(--text);
  font-size: 0.95rem;
  display: inline;
}

/* === Admin === */
.admin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1a1a 100%);
  padding: 20px;
}

.admin-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-hover);
}

.admin-card h1 {
  text-align: center;
  color: var(--secondary);
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.admin-card p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
}

.code-input-group {
  display: flex;
  gap: 12px;
}

.code-input-group input {
  flex: 1;
}

.status-message {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  display: none;
}

.status-message.visible {
  display: block;
  background: #eef2f7;
  color: #333;
  border: 1px solid #d6dee8;
}

.status-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* === Footer === */
.footer {
  background: var(--secondary);
  color: white;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer h4 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--primary);
}

.footer-profiles {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-profiles a {
  display: inline;
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1040;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-banner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 0;
    padding: 12px 16px;
  }

  .cookie-banner .container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-banner p {
    flex: none;
    text-align: center;
  }

  .cookie-banner .btn {
    width: 100%;
    text-align: center;
  }
}

/* === Breadcrumbs === */
.breadcrumbs {
  background: var(--bg-alt);
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--text-light);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

/* === Legal pages === */
.legal-page {
  padding: 60px 0;
}

.legal-page h1 {
  color: var(--secondary);
  margin-bottom: 30px;
}

.legal-page h2 {
  color: var(--secondary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.legal-page p,
.legal-page li {
  color: var(--text);
  line-height: 1.7;
}

/* === Responsive === */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.show {
    display: flex;
  }

  .hero {
    padding: 60px 0;
  }

  .hero--compact {
    padding: 30px 0;
  }

  .hero--compact h1 {
    font-size: 1.8rem;
  }

  .hero-dialog-window {
    padding: 14px;
    border-radius: 14px;
  }

  .hero-animation-section {
    height: 55vh;
    min-height: 380px;
  }

  .hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-logo {
    width: 90px;
    padding: 6px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero h1.hero-title-main {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.95rem;
    max-width: none;
  }

  .hero-badges {
    gap: 8px;
    margin-top: 20px;
  }

  .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .hero-chat {
    gap: 8px;
    margin-bottom: 12px;
  }

  .chat-message {
    max-width: 92%;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .hero-cta-popup {
    font-size: 0.85rem;
    padding: 11px 16px;
  }

  .hero-cta-under-animation {
    margin: 6px auto 36px;
  }

  .hero-stage-label {
    font-size: 1rem;
    padding: 10px 16px;
  }

  .hero-object-label {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-info {
    position: static;
  }

  .catalog-image {
    height: 220px;
  }
}

/* === Sticky CTA (sidebar) === */
@media (max-width: 768px) {
  .sound-toggle {
    padding: 6px 8px;
  }

  .sound-toggle-text {
    display: none;
  }
}

/* === Page navigation === */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 50px auto 0;
}

.page-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
}

.page-nav a:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.page-nav-prev {
  justify-content: flex-start;
  text-align: left;
}

.page-nav-next {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 768px) {
  .page-nav {
    grid-template-columns: 1fr;
  }

  .page-nav a {
    padding: 18px;
  }
}

/* === Bar chart === */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 800px;
  margin: 30px auto;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-chart-label {
  width: 180px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}

.bar-chart-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bar-chart-bar {
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  min-width: 4px;
  transition: width 0.6s ease;
}

.bar-chart-row.negative .bar-chart-bar {
  background: #e57373;
}

.bar-chart-row.express .bar-chart-bar {
  background: #2e7d32;
}

.bar-chart-value {
  font-weight: 700;
  color: var(--secondary);
  min-width: 44px;
}

@media (max-width: 768px) {
  .bar-chart-label {
    width: 120px;
    font-size: 0.85rem;
  }

  .bar-chart-bar {
    height: 22px;
  }
}

/* === Align animation height === */
.align-animation {
  height: 400px;
  aspect-ratio: auto;
  touch-action: pan-y;
}

/* === Fixed left sidebar (futuristic HUD) === */
.page-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  color: var(--sidebar-text-hover);
  display: flex;
  flex-direction: column;
  z-index: var(--sidebar-z-index);
  padding-bottom: var(--sidebar-cookie-offset);
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  background-color: var(--sidebar-bg-bottom);
  background:
    radial-gradient(ellipse 140% 70% at 0% 0%, var(--sidebar-glow-spot-top), transparent 55%),
    radial-gradient(ellipse 120% 60% at 100% 100%, var(--sidebar-glow-spot-bottom), transparent 45%),
    linear-gradient(180deg, var(--sidebar-bg-top) 0%, var(--sidebar-bg-bottom) 100%);
  box-shadow:
    var(--sidebar-shadow),
    inset -1px 0 0 var(--sidebar-border);
}

.sidebar::after {
  content: '';
  position: absolute;
  top: 8%;
  right: 0;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sidebar-glow-line), transparent);
  opacity: 0.8;
  filter: blur(0.5px);
}

.sidebar-header {
  position: relative;
  z-index: 2;
  padding: var(--sidebar-header-padding);
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-header .logo {
  display: block;
  margin-bottom: 16px;
}

.sidebar-header .logo img {
  height: var(--sidebar-logo-height);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(245, 176, 26, 0.25));
}

.sidebar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: var(--sidebar-phone-font);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(245, 176, 26, 0.25);
}

.sidebar .nav {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  padding: var(--sidebar-nav-padding) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-item-gap);
  align-items: center;
  width: 100%;
}

.sidebar .nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar .nav::-webkit-scrollbar-thumb {
  background: rgba(245, 176, 26, 0.25);
  border-radius: 3px;
}

.sidebar .nav a {
  position: relative;
  display: block;
  width: 95%;
  margin: 0 auto;
  padding: var(--sidebar-item-padding);
  border-radius: var(--sidebar-item-radius);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: var(--sidebar-item-font);
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--sidebar-text);
  background: var(--sidebar-item-bg);
  border: 1px solid var(--sidebar-border);
  border-top: 1px solid var(--sidebar-border-light);
  box-shadow:
    var(--sidebar-item-shadow),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  white-space: normal;
  transition: var(--transition);
}

.sidebar .nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-accent-line-width);
  background: var(--primary);
  box-shadow: var(--sidebar-accent-line-glow);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar .nav a:hover,
.sidebar .nav a.active {
  color: var(--sidebar-text-hover);
  background: var(--sidebar-item-bg-active);
  border-color: rgba(245, 176, 26, 0.5);
  box-shadow: var(--sidebar-item-shadow-hover);
  transform: translateX(var(--sidebar-item-translate));
}

.sidebar .nav a:hover::before,
.sidebar .nav a.active::before {
  opacity: 1;
}

/* === Sidebar submenu === */
.sidebar .nav a.has-submenu {
  padding-right: 34px;
}

.sidebar .nav a.has-submenu::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85em;
  opacity: 0.7;
}

.sidebar .nav a .menu-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
}

.sidebar .nav a .menu-label {
  vertical-align: middle;
}

/* Frontmatter-driven visibility */
@media (max-width: 768px) {
  .sidebar .nav a[data-desktop-only] {
    display: none;
  }
}

@media (min-width: 769px) {
  .sidebar .nav a[data-mobile-only] {
    display: none;
  }
}

.sidebar .nav .submenu {
  width: 95%;
  margin: 4px auto 0;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-item-gap);
  align-items: center;
}

.sidebar .nav .submenu a {
  width: 100%;
  font-size: calc(var(--sidebar-item-font) * 0.88);
  text-transform: none;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(245, 176, 26, 0.35);
  border-radius: 0 var(--sidebar-item-radius) var(--sidebar-item-radius) 0;
}

.sidebar .nav .submenu a:hover,
.sidebar .nav .submenu a.active {
  background: rgba(245, 176, 26, 0.08);
  border-left-color: var(--primary);
  transform: translateX(var(--sidebar-item-translate));
}

.sidebar-footer {
  position: relative;
  z-index: 2;
  padding: var(--sidebar-footer-padding);
  border-top: 1px solid var(--sidebar-border);
  margin-top: auto;
}

.sidebar .sticky-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--sidebar-btn-padding);
  margin: 0;
  border: none;
  border-radius: var(--sidebar-btn-radius);
  background: var(--sidebar-btn-bg);
  color: var(--sidebar-bg);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: var(--sidebar-btn-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--glow-primary-strong), var(--sidebar-btn-shadow);
  transform: none;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar .sticky-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--sidebar-btn-radius);
  box-shadow: var(--sidebar-btn-inset);
  pointer-events: none;
}

.sidebar .sticky-cta:hover {
  background: var(--sidebar-btn-bg-hover);
  box-shadow: var(--sidebar-btn-glow-hover), var(--sidebar-btn-shadow-hover);
  transform: translateY(-2px);
}

@keyframes order-bounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-10px); }
  40% { transform: translateY(0); }
  60% { transform: translateY(-7px); }
  80% { transform: translateY(0); }
}

.sticky-cta.bounce {
  animation: order-bounce 0.75s ease-in-out;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--glow-primary-strong), var(--sidebar-btn-shadow); }
  50% { box-shadow: var(--sidebar-btn-glow-hover), var(--sidebar-btn-shadow); }
}

.sidebar .sticky-cta.pulse {
  animation: cta-pulse 2s ease-in-out infinite;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: var(--sidebar-backdrop-z-index);
  backdrop-filter: blur(2px);
}

.mobile-top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--mobile-topbar-bg);
  align-items: center;
  justify-content: space-between;
  padding: var(--mobile-topbar-padding);
  z-index: 1000;
  box-shadow: var(--mobile-topbar-shadow);
}

.mobile-logo img {
  height: var(--mobile-logo-height);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(245, 176, 26, 0.25));
}

.mobile-phone {
  color: var(--primary);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: var(--mobile-phone-font);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

#mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--mobile-btn-size);
  height: var(--mobile-btn-size);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--mobile-btn-radius);
  color: var(--sidebar-text-hover);
  font-size: var(--mobile-btn-font);
  cursor: pointer;
  transition: var(--transition);
}

#mobile-menu-btn:hover {
  background: rgba(245, 176, 26, 0.12);
  border-color: rgba(245, 176, 26, 0.35);
  box-shadow: var(--glow-primary);
}

/* === Responsive sidebar === */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .page-wrapper {
    margin-left: 0;
    padding-top: var(--header-height);
  }

  .sidebar {
    width: min(320px, 85vw);
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar.open + .sidebar-backdrop,
  .sidebar-backdrop.active {
    display: block;
  }

  body:has(.sidebar.open) {
    overflow: hidden;
  }

  .mobile-top-bar {
    display: flex;
  }

  .sidebar .nav {
    background: transparent;
  }

  .hero-animation-section {
    height: 380px;
    margin: 16px;
    width: auto;
  }
}

/* === Falling brick on order button === */
.falling-brick {
  position: fixed;
  width: 90px;
  height: 38px;
  z-index: 9999;
  pointer-events: none;
  background: url('../images/bricks/brick-falling.png') no-repeat center / contain;
  filter: drop-shadow(3px 4px 6px rgba(0, 0, 0, 0.35));
  transform: translateX(-50%);
  opacity: 0;
}

@keyframes brick-fall {
  0% {
    top: -120px;
    opacity: 0;
    transform: translate(-50%, 0) rotate(-8deg) scale(0.8);
  }
  20% {
    opacity: 1;
  }
  55% {
    top: var(--brick-landing);
    transform: translate(-50%, 0) rotate(4deg) scale(1.08);
  }
  75% {
    top: var(--brick-landing);
    transform: translate(-50%, 0) rotate(0) scale(1);
  }
  92% {
    top: var(--brick-landing);
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    top: calc(var(--brick-landing) + 20px);
    opacity: 0;
    transform: translate(-50%, 0) scale(0.85);
  }
}

.falling-brick.falling {
  animation: brick-fall 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* === Table responsiveness === */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table-responsive table {
  min-width: 100%;
  margin-bottom: 0;
  box-shadow: none;
}

@media (max-width: 768px) {
  .table-responsive {
    border-radius: var(--radius-sm);
  }
}

/* === Long URLs and legal text wrapping === */
.legal-page p,
.legal-page li,
.section p,
.section li,
.legal-page a,
.section a {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/* === Cookie banner body padding === */
body.cookie-banner-open {
  padding-bottom: var(--cookie-banner-height, 80px);
}

/* === Image lightbox === */
.image-card {
  cursor: zoom-in;
}

.image-card-link {
  display: block;
  text-decoration: none;
}

.legomax-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.legomax-lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legomax-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.legomax-lightbox-img.legomax-lightbox-svg {
  width: min(90vw, 1600px);
  max-width: 90vw;
  max-height: 85vh;
}

.legomax-lightbox-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 90vw;
}

.legomax-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .legomax-lightbox-close {
    top: -40px;
    font-size: 32px;
  }
}
