/* Bitrix24 Expert Template - Dark Theme to Match React */

/* ===== CSS Variables (Light Theme Default) ===== */
:root {
  /* Light theme colors */
  --background: 0 0% 100%; /* Light background */
  --foreground: 0 0% 15%; /* Dark text */

  --primary: 205 96% 59%; /* Bitrix blue */
  --primary-foreground: 0 0% 100%; /* Light text on primary */

  --secondary: 208 100% 97%; /* Light secondary */
  --secondary-foreground: 0 0% 15%; /* Dark text on secondary */

  --muted: 208 100% 97%; /* Light muted */
  --muted-foreground: 0 0% 40%; /* Muted text */

  --border: 0 0% 91%; /* Light borders */
  --input: 0 0% 91%; /* Light inputs */
  --ring: 205 96% 59%; /* Focus ring */

  --card: 0 0% 100%; /* Light cards */
  --card-foreground: 0 0% 15%; /* Dark text on cards */

  /* Bitrix brand colors */
  --tech: 191 96% 61%; /* Tech blue */
  --tech-foreground: 0 0% 100%;

  --success: 73 100% 47%; /* Success green */
  --success-foreground: 0 0% 15%;

  /* Light theme shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== Dark Theme Variables ===== */
[data-theme="dark"] {
  /* Dark theme colors */
  --background: 0 0% 9%; /* Dark background */
  --foreground: 0 0% 95%; /* Light text */

  --primary: 205 96% 59%; /* Bitrix blue */
  --primary-foreground: 0 0% 9%; /* Dark text on primary */

  --secondary: 0 0% 14%; /* Dark secondary */
  --secondary-foreground: 0 0% 95%; /* Light text on secondary */

  --muted: 0 0% 14%; /* Dark muted */
  --muted-foreground: 0 0% 65%; /* Muted text */

  --border: 0 0% 14%; /* Dark borders */
  --input: 0 0% 14%; /* Dark inputs */
  --ring: 205 96% 59%; /* Focus ring */

  --card: 0 0% 9%; /* Dark cards */
  --card-foreground: 0 0% 95%; /* Light text on cards */

  /* Bitrix brand colors for dark theme */
  --tech: 191 96% 61%; /* Tech blue */
  --tech-foreground: 0 0% 9%;

  --success: 73 100% 47%; /* Success green */
  --success-foreground: 0 0% 9%;

  /* Dark theme shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ===== Shared Variables ===== */
:root {
  /* Typography */
  --font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --container-padding: 1rem;
  --section-padding: 5rem 0;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;

  /* Border Radius */
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  h3 {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 4.5rem;
  }
  h2 {
    font-size: 3rem;
  }
  h3 {
    font-size: 2.25rem;
  }
}

p {
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

.text-large {
  font-size: 1.125rem;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: hsl(var(--primary));
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

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

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

.btn-gradient {
  background: linear-gradient(
    135deg,
    hsl(var(--primary)) 0%,
    hsl(var(--tech)) 100%
  );
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-gradient:hover {
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.9) 0%,
    hsl(var(--tech) / 0.9) 100%
  );
  box-shadow: var(--shadow-xl);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  height: 3.5rem;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: hsl(var(--primary));
}

.breadcrumb-separator {
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
}

.breadcrumb-current {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* ===== Detail Pages Common Styles ===== */
.portfolio-detail-page,
.service-detail-page {
  padding-top: 4rem;
}

.detail-page-header {
  padding: 4rem 0;
}

.detail-info {
  align-items: flex-start;
  gap: 4rem;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: hsl(var(--foreground));
}

.detail-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.detail-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Status badges */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

.status-completed {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

/* Category badges */
.category-badge {
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Project details */
.project-details {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-label {
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  min-width: 100px;
}

.detail-value {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.project-image .card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Service specific styles */
.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.1) 0%,
    hsl(var(--tech) / 0.1) 100%
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.service-badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.complexity-basic {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

.complexity-intermediate {
  background: hsl(var(--tech) / 0.1);
  color: hsl(var(--tech));
}

.complexity-advanced {
  background: hsl(255 165 0 / 0.1);
  color: hsl(255 165 0);
}

.complexity-expert {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

/* Service preview card */
.service-preview {
  position: sticky;
  top: 6rem;
}

.preview-card {
  background: hsl(var(--background));
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid hsl(var(--primary) / 0.1);
}

.preview-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.preview-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.preview-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  position: relative;
  padding-left: 1.5rem;
}

.preview-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: hsl(var(--success));
  font-weight: 700;
}

.preview-list li:last-child {
  border-bottom: none;
}

.preview-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.preview-note {
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.875rem;
}

/* Service actions */
.service-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* FAQ styles */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: hsl(var(--background));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.faq-question:hover {
  background: hsl(var(--muted));
}

.faq-icon {
  transition: var(--transition);
  color: hsl(var(--primary));
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* Responsive styles for detail pages */
@media (max-width: 1023px) {
  .detail-info {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-preview {
    position: relative;
    top: auto;
  }
}

@media (max-width: 767px) {
  .detail-title {
    font-size: 2rem;
  }

  .service-actions {
    flex-direction: column;
  }

  .detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.header-scrolled {
  background-color: hsl(var(--background) / 0.98);
  backdrop-filter: blur(15px);
}

/* Тёмная тема: шапка в тон основному фону */
[data-theme="dark"] .site-header {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(10px) saturate(180%);
  border-bottom-color: hsl(var(--border));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .site-header.header-scrolled {
  background-color: hsl(var(--background) / 0.98);
  backdrop-filter: blur(15px) saturate(180%);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

a.logo {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

a.logo:hover {
  opacity: 0.8;
}

.logo-image {
  height: 4.5rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(
    135deg,
    hsl(var(--primary)) 0%,
    hsl(var(--tech)) 100%
  );
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.logo-icon span {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  color: hsl(var(--foreground) / 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--primary));
}

.nav-underline {
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: var(--transition-fast);
}

.nav-link:hover .nav-underline,
.nav-link.active .nav-underline {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

/* Theme Switcher */
.theme-switcher {
  position: relative;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: var(--transition);
}

.theme-btn:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--muted));
}

.theme-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: var(--transition);
}

.theme-icon.hidden {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block !important;
}

/* В тёмной теме кнопки в шапке — светлая обводка и иконки */
[data-theme="dark"] .site-header .theme-btn,
[data-theme="dark"] .site-header .language-btn {
  border-color: hsl(var(--muted-foreground) / 0.6);
  color: hsl(var(--foreground));
}

[data-theme="dark"] .site-header .theme-btn:hover,
[data-theme="dark"] .site-header .language-btn:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--muted));
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: transparent;
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.language-btn:hover {
  border-color: hsl(var(--primary));
}

.globe-icon {
  width: 1rem;
  height: 1rem;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 8rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.language-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  padding: 0.5rem 0.75rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: var(--transition);
}

.language-option:hover {
  background-color: hsl(var(--muted));
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0.25rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: hsl(var(--foreground));
  transition: var(--transition);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-nav.show {
  max-height: 500px;
}

.mobile-nav-content {
  padding: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: hsl(var(--foreground) / 0.7);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid hsl(var(--border));
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: hsl(var(--primary));
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.mobile-theme-switcher .mobile-theme-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-theme-btn:hover {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
}

.mobile-language-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-language-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-language-option {
  display: block;
  padding: 0.75rem 1rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-language-option:hover {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.mobile-cta-btn {
  width: 100%;
}

/* ===== Main Content ===== */
.main-content {
  padding-top: 4rem;
}

/* ===== Hero Section (Dark Theme) ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: hsl(var(--background));
  padding-top: 4rem;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.certification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    hsl(var(--primary)) 0%,
    hsl(var(--tech)) 100%
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.status-indicator {
  width: 0.5rem;
  height: 0.5rem;
  background-color: hsl(var(--success));
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
}

/* Technology Icons Grid */
.tech-icons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-icon:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.tech-icon-bg {
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.tech-icon-bg-primary {
  background-color: hsl(var(--primary) / 0.1);
}

.tech-icon-bg-tech {
  background-color: hsl(var(--tech) / 0.1);
}

.tech-icon-bg-success {
  background-color: hsl(var(--success) / 0.1);
}

.tech-icon:hover .tech-icon-bg {
  transform: scale(1.1);
}

.tech-icon-bg img {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) saturate(100%) invert(64%) sepia(73%) saturate(4220%)
    hue-rotate(180deg) brightness(97%) contrast(91%);
}

.tech-icon span {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ===== Sections ===== */
.section {
  padding: var(--section-padding);
}

.section-large {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--primary));
  font-weight: 600;
}

@media (min-width: 640px) {
  .section-heading {
    font-size: 3rem;
  }
  .section-subtitle {
    font-size: 1.5rem;
  }
}

/* ===== Grid System ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Cards ===== */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.card-content {
  padding: 1.5rem;
}

/* Stats Cards */
.stats-card {
  text-align: center;
  padding: 2rem;
  border: none;
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.1) 0%,
    hsl(var(--tech) / 0.05) 100%
  );
  border-radius: var(--radius-lg);
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.stats-label {
  color: hsl(var(--foreground) / 0.8);
  font-weight: 600;
}

/* ===== Background Classes ===== */
.bg-muted {
  background-color: hsl(var(--muted));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

/* ===== Service Cards ===== */
.service-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) saturate(100%) invert(64%) sepia(73%) saturate(4220%)
    hue-rotate(180deg) brightness(97%) contrast(91%);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.service-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.service-features li::before {
  content: "✓";
  color: hsl(var(--success));
  font-weight: 600;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: hsl(var(--input));
  color: hsl(var(--foreground));
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

/* ===== Footer ===== */
.site-footer {
  background: hsl(var(--secondary));
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.footer-brand {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-logo {
    justify-content: flex-start;
  }
}

.footer-logo-image {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.footer-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  max-width: 20rem;
  margin: 0;
}

@media (min-width: 768px) {
  .footer-description {
    margin: 0;
  }
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-links .footer-title {
    text-align: center;
  }

  .footer-contact .footer-title {
    text-align: right;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-nav {
    align-items: center;
  }
}

.footer-nav a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.875rem;
}

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

.footer-contact {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-contact {
    text-align: right;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .social-links {
    justify-content: flex-end;
  }
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: hsl(var(--primary));
  color: white;
  transform: translateY(-2px);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-info {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.contact-email {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.contact-availability {
  color: hsl(var(--muted-foreground));
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .tech-icons-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-content {
    padding: 0 2rem;
  }
}

/* ===== Animations ===== */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

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

.fade-in-delay-1 {
  animation-delay: 0.1s;
}
.fade-in-delay-2 {
  animation-delay: 0.2s;
}
.fade-in-delay-3 {
  animation-delay: 0.3s;
}
.fade-in-delay-4 {
  animation-delay: 0.4s;
}

/* ===== Utility Classes ===== */
.text-gradient {
  background: linear-gradient(
    135deg,
    hsl(var(--primary)) 0%,
    hsl(var(--tech)) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(
    135deg,
    hsl(var(--primary)) 0%,
    hsl(var(--tech)) 100%
  );
}

/* Skills Grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.badge-outline:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--primary));
}

/* Partner Badge */
.partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.partner-badge-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.partner-title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.partner-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===== Floating Contact Button ===== */
.floating-contact-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--tech)) 100%);
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 997;
}

/* Bitrix24 widget button positioning - lower z-index to not overlap with scroll button */
.b24-widget-button-wrapper {
  z-index: 995 !important;
}

.b24-widget-button-position-bottom-right {
  bottom: 2rem !important;
  right: 2rem !important;
}

.floating-contact-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: hsl(var(--primary-foreground));
}

.floating-contact-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.floating-contact-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

.floating-contact-btn-text {
  display: inline-block;
}

@media (max-width: 768px) {
  .floating-contact-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .floating-contact-btn-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .floating-contact-btn {
    bottom: 6rem;
    left: 1rem;
    padding: 0.75rem;
    border-radius: 50%;
  }
  
  .floating-contact-btn svg {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--tech)) 100%);
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.9) 0%, hsl(var(--tech) / 0.9) 100%);
}

.scroll-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

.scroll-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
}

.scroll-to-top:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* Dark theme adjustments */
[data-theme="dark"] .scroll-to-top {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .scroll-to-top:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 6.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
  }

  .scroll-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 6rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .scroll-to-top svg {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* ===== Telegram Channel Banner ===== */
.telegram-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.telegram-banner.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.telegram-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.telegram-banner-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.telegram-banner-icon svg {
  width: 100%;
  height: 100%;
}

.telegram-banner-text {
  flex: 1;
  min-width: 0;
}

.telegram-banner-title {
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.telegram-banner-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

.telegram-banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, hsl(var(--success)) 0%, hsl(45, 100%, 50%) 100%);
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.telegram-banner-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.telegram-banner-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  padding: 0;
}

.telegram-banner-close:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.telegram-banner-close svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 768px) {
  .telegram-banner {
    padding: 0.75rem;
  }
  
  .telegram-banner-content {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .telegram-banner-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .telegram-banner-title {
    font-size: 0.875rem;
  }
  
  .telegram-banner-subtitle {
    font-size: 0.75rem;
  }
  
  .telegram-banner-button {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ===== Bookmark Reminder Popup ===== */
.bookmark-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.bookmark-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.bookmark-popup-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  min-width: 280px;
  max-width: 320px;
  position: relative;
}

.bookmark-popup-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--success));
  flex-shrink: 0;
}

.bookmark-popup-icon svg {
  width: 100%;
  height: 100%;
}

.bookmark-popup-text {
  flex: 1;
  min-width: 0;
}

.bookmark-popup-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.bookmark-popup-subtitle {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.bookmark-popup-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  font-family: 'Courier New', monospace;
}

.bookmark-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  padding: 0;
}

.bookmark-popup-close:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.bookmark-popup-close svg {
  width: 0.875rem;
  height: 0.875rem;
}

@media (max-width: 768px) {
  .bookmark-popup {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
  
  .bookmark-popup-content {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/* ===== Market Hero Section ===== */
.market-hero {
  position: relative;
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.05) 0%,
    hsl(var(--tech) / 0.03) 50%,
    hsl(var(--primary) / 0.05) 100%
  );
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.market-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 50%,
    hsl(var(--primary) / 0.08) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 80%,
    hsl(var(--tech) / 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.market-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.market-hero-badge {
  margin-bottom: 1.5rem;
}

.market-hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  background: linear-gradient(
    135deg,
    hsl(var(--foreground)) 0%,
    hsl(var(--primary)) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.market-hero-subtitle {
  font-size: 1.5rem;
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 1rem;
}

.market-hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.market-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .market-hero-actions {
    flex-direction: row;
  }
}

.market-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Product Types Grid */
.market-product-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .market-product-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .market-product-types {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}

.product-type-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  background: linear-gradient(
    135deg,
    hsl(var(--card)) 0%,
    hsl(var(--primary) / 0.03) 100%
  );
}

.product-type-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.1) 0%,
    hsl(var(--tech) / 0.1) 100%
  );
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  color: hsl(var(--primary));
  transition: var(--transition);
}

.product-type-card:hover .product-type-icon {
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.2) 0%,
    hsl(var(--tech) / 0.2) 100%
  );
  transform: scale(1.1);
}

.product-type-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.product-type-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

/* Market Stats */
.market-hero-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .market-hero-stats {
    flex-direction: row;
    gap: 2rem;
  }
}

.market-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.market-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
  line-height: 1;
}

.market-stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.market-stat-divider {
  width: 1px;
  height: 3rem;
  background: hsl(var(--border));
  display: none;
}

@media (min-width: 640px) {
  .market-stat-divider {
    display: block;
  }
}

/* ===== Cookie Consent Popup ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.cookie-consent[hidden] {
  display: block !important;
}

.cookie-consent.cookie-consent--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-consent-inner {
  max-width: 64rem;
  margin: 0 auto;
}

.cookie-consent-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-consent-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
  flex: 1 1 100%;
}

.cookie-consent-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin: 0;
  flex: 1 1 100%;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 100%;
}

.cookie-consent-link {
  color: hsl(var(--primary));
  text-decoration: underline;
  font-size: 0.875rem;
}

.cookie-consent-link:hover {
  text-decoration: none;
}

.cookie-consent-accept {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .cookie-consent-content {
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
  }

  .cookie-consent-title {
    flex: 0 0 auto;
    margin: 0;
  }

  .cookie-consent-text {
    flex: 1 1 auto;
    margin: 0;
  }

  .cookie-consent-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
}
