@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 158, 11, 0.4);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.2);
  --steel-blue: #3b82f6;
  --steel-blue-glow: rgba(59, 130, 246, 0.15);
  --accent-subtle: rgba(245, 158, 11, 0.08);

  --success: #10b981;
  --danger: #ef4444;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-xs: 6px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== LIGHT THEME ==================== */
[data-theme="light"] {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-active: rgba(217, 119, 6, 0.4);

  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.15);
  --steel-blue: #2563eb;
  --steel-blue-glow: rgba(37, 99, 235, 0.12);
  --accent-subtle: rgba(217, 119, 6, 0.06);
}

[data-theme="light"] .header {
  background: rgba(245, 247, 250, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .header.scrolled {
  background: rgba(245, 247, 250, 0.97);
}

[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(217, 119, 6, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .hero-image-overlay {
  background: linear-gradient(135deg, rgba(245, 247, 250, 0.2), transparent);
}

[data-theme="light"] .hero h1 .gradient-text {
  background: linear-gradient(135deg, #b45309, #d97706, #92400e);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .quiz-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quiz-card.selected {
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quiz-sliders,
[data-theme="light"] .quiz-submenu {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .quiz-section::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(217, 119, 6, 0.03) 0%, transparent 50%);
}

[data-theme="light"] .footer {
  background: #1a202c;
}

[data-theme="light"] .mobile-nav-overlay {
  background: rgba(245, 247, 250, 0.97);
}

[data-theme="light"] .mobile-nav-overlay a {
  color: #1a202c;
}

/* Theme Toggle Switch */
.theme-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 2px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle-knob {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .theme-toggle-knob {
  transform: translateX(22px);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 14, 23, 0.95);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  border-radius: var(--border-radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a:hover {
  color: var(--text-primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item .stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  animation: fadeIn 1s ease 0.5s both;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.hero-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 23, 0.3), transparent);
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  bottom: -20px;
  left: -20px;
}

.floating-card.card-2 {
  top: -16px;
  right: -16px;
  animation-delay: 2s;
}

.floating-card .card-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.floating-card .card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #000;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background: var(--accent-subtle);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-size: 0.82rem;
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--text-secondary);
  border-color: var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
}

/* ==================== SECTION TITLES ==================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== QUIZ CALCULATOR ==================== */
.quiz-section {
  padding: var(--section-padding);
  position: relative;
}

.quiz-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.quiz-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  overflow: visible;
  backdrop-filter: blur(20px);
}

/* Progress Bar */
.quiz-progress {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz-progress-track {
  flex: 1;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 100px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 14%;
}

.quiz-progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Quiz Step */
.quiz-step {
  padding: 40px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step.active {
  opacity: 1;
  transform: translateX(0);
}

.quiz-step-header {
  margin-bottom: 32px;
}

.quiz-step-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.quiz-step-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Quiz Cards Grid */
.quiz-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quiz-cards-grid.size-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Quiz Card */
.quiz-card {
  position: relative;
  padding: 24px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  min-height: 140px;
}

.quiz-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.quiz-card.selected {
  background: var(--accent-subtle);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.quiz-card.recommended {
  border-color: rgba(59, 130, 246, 0.4);
}

.quiz-card.recommended:not(.selected) {
  box-shadow: 0 0 0 2px var(--steel-blue-glow);
}

.quiz-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  background: var(--steel-blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.quiz-card-icon {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
}

.quiz-card-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.quiz-card-body {
  flex: 1;
}

.quiz-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.quiz-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.quiz-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.quiz-card.selected .quiz-card-check {
  opacity: 1;
  transform: scale(1);
}

/* Custom Input */
.quiz-custom-input {
  margin-top: 16px;
}

.quiz-custom-field {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-xs);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}

.quiz-custom-field::placeholder {
  color: var(--text-muted);
}

.quiz-custom-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Gate Counter */
.quiz-counter {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.quiz-counter-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.quiz-counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-counter-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-counter-btn:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.quiz-counter-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

/* Sliders */
.quiz-sliders {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
}

.quiz-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-slider-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.quiz-slider-group label strong {
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
}

.quiz-slider-group input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-secondary);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
}

.quiz-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.quiz-slider-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px var(--accent-glow);
}

.quiz-dims-summary {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  padding-top: 8px;
  border-top: 1px solid var(--border-glass);
}

.quiz-dims-summary strong {
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
}

/* Submenus */
.quiz-submenu {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
}

.quiz-submenu-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.quiz-submenu-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quiz-submenu-option {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.quiz-submenu-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-submenu-option.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

/* Navigation */
.quiz-nav {
  padding: 20px 40px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz-nav-spacer {
  flex: 1;
}

/* ==================== ESTIMATE ==================== */
.estimate-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.estimate-params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
}

.estimate-param-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
}

.estimate-param-row span {
  color: var(--text-muted);
}

.estimate-param-row strong {
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.estimate-price-input {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.estimate-price-input input {
  width: 130px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-xs);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  transition: var(--transition);
}

.estimate-price-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Estimate Lines */
.estimate-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.estimate-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-xs);
  transition: var(--transition);
}

.estimate-line:hover {
  background: rgba(255, 255, 255, 0.02);
}

.estimate-line.disabled {
  opacity: 0.4;
}

.estimate-line.disabled .estimate-line-amount {
  text-decoration: line-through;
}

/* Custom Checkbox */
.estimate-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.estimate-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.estimate-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-glass);
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.estimate-checkbox .checkmark::after {
  content: '✓';
  font-size: 0.7rem;
  color: #000;
  font-weight: 800;
  opacity: 0;
  transition: var(--transition);
}

.estimate-checkbox input:checked+.checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.estimate-checkbox input:checked+.checkmark::after {
  opacity: 1;
}

.estimate-checkbox input:disabled+.checkmark {
  opacity: 0.5;
  cursor: not-allowed;
}

.estimate-line-label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.estimate-line-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Totals */
.estimate-totals {
  padding: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
}

.estimate-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.estimate-total-row.muted {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.estimate-total-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.estimate-total-row.grand {
  padding-top: 12px;
  border-top: 2px solid var(--accent);
  margin-top: 8px;
}

.estimate-grand-total {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.estimate-per-sqm {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* AI Visualization Section */
.ai-viz-section {
  margin: 24px 0 16px;
  padding: 20px;
  background: linear-gradient(135deg, #0d1b2a, #1a3050);
  border-radius: 12px;
  text-align: center;
}

.ai-viz-header h3 {
  color: #e0eaf4;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.ai-viz-desc {
  color: #6a9abf;
  font-size: .82rem;
  margin-bottom: 16px;
}

.ai-viz-result {
  min-height: 0;
  transition: min-height .3s;
}

.ai-viz-result:not(:empty) {
  min-height: 200px;
  margin-bottom: 14px;
}

.ai-viz-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
  animation: fadeInAI .5s ease;
}

@keyframes fadeInAI {
  from {
    opacity: 0;
    transform: scale(.97)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.btn-ai {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, .5);
}

.btn-ai:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}

/* ── RAL Color Palette ── */
.ral-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 16px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.ral-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  border-radius: 6px;
  border: 2px solid transparent;
  min-height: 70px;
  gap: 3px;
}

.ral-tile:hover {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ral-tile.ral-selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--accent), 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
  z-index: 3;
}

.ral-code {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ral-name {
  font-size: 0.58rem;
  font-weight: 500;
  opacity: 0.85;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ral-light {
  color: #fff;
}

.ral-dark {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.spinner-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.ai-loading-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a1628, #162a44);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.ai-loading-inline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%
  }

  100% {
    left: 100%
  }
}

.ai-loading-text {
  color: #5a8ab0;
  font-size: .88rem;
  z-index: 1;
  text-align: center;
  padding: 20px;
}

.ai-loading-text .spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #2a5a7a;
  border-top-color: #4a9ac0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.ai-viz-error {
  color: #f87171;
  font-size: .88rem;
  padding: 16px;
}

.ai-viz-credit {
  color: #4a7a9a;
  font-size: .72rem;
  margin-top: 8px;
  font-style: italic;
}

.estimate-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.estimate-cta-primary {
  display: flex;
  gap: 12px;
}

.estimate-cta-secondary {
  display: flex;
  gap: 12px;
}

.estimate-cta .btn {
  flex: 1;
}

.btn-accent {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  border: none;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #34d399, #10b981) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* Payment Modal */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.25s ease;
}

.payment-modal {
  background: linear-gradient(145deg, #0f1d2e, #152a42);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.payment-modal h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: #e8f0ff;
}

.payment-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #6a8aa8;
  font-size: 1.2rem;
  cursor: pointer;
}

.payment-modal-close:hover {
  color: #fff;
}

.payment-details {
  margin-bottom: 20px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(100, 150, 200, 0.15);
  font-size: 0.9rem;
  color: #a0b8d0;
}

.payment-row strong {
  color: #e0eeff;
}

.payment-amount {
  font-size: 1.15rem;
  color: #4ade80 !important;
}

.payment-methods {
  margin-bottom: 20px;
}

.payment-methods p {
  font-size: 0.8rem;
  color: #6a8aa8;
  margin-bottom: 8px;
}

.payment-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-icons span {
  background: rgba(100, 150, 200, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #a0c0e0;
}

.payment-proceed {
  width: 100%;
  margin-bottom: 12px;
}

.payment-secure {
  text-align: center;
  font-size: 0.75rem;
  color: #5a8080;
  margin: 0;
}

/* ==================== BOM SPECIFICATION TABLE ==================== */
.bom-section {
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.bom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.bom-header:hover {
  background: rgba(0, 0, 0, 0.3);
}

.bom-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.bom-total-badge {
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.bom-toggle {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.bom-section.collapsed .bom-toggle {
  transform: rotate(-90deg);
}

.bom-body {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
  transition: max-height 0.4s ease;
  background: rgba(0, 0, 0, 0.1);
}

.bom-section.collapsed .bom-body {
  max-height: 0;
  overflow: hidden;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 640px;
}

.bom-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(8px);
}

.bom-table tbody td {
  padding: 8px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.bom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.bom-idx {
  color: var(--text-muted);
  font-size: 0.75rem;
  width: 30px;
  text-align: center;
}

.bom-profile {
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

.bom-gost {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.bom-num {
  text-align: right;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

.bom-mass {
  color: var(--accent);
  font-weight: 700;
}

/* BOM Group header rows */
.bom-group-row {
  background: rgba(59, 130, 246, 0.12);
}

.bom-group-row td {
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
  border-top: 1px solid rgba(59, 130, 246, 0.25);
}

.bom-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.bom-group-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.bom-total-row {
  background: rgba(0, 0, 0, 0.2);
}

.bom-total-row td {
  padding: 12px 12px;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 2px solid var(--accent);
  font-size: 0.9rem;
}

.bom-note {
  padding: 10px 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border-glass);
  margin: 0;
}

/* ==================== ESTIMATE MODE SWITCHER ==================== */
.estimate-mode-switcher {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border-glass);
}

.estimate-mode-switcher .mode-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.estimate-mode-switcher .mode-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.estimate-mode-switcher .mode-btn.active {
  background: linear-gradient(135deg, #1e3a5f, #1a2d4a);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.estimate-mode-switcher .mode-btn.active[onclick*="supereco"] {
  background: linear-gradient(135deg, #065f46, #064e3b);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
}

/* SuperEco restriction warnings */
.supereco-warnings {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.supereco-warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #fbbf24;
}

/* ==================== 3D VIEWER CONTROLS ==================== */
.viewer3d-section {
  margin-bottom: 24px;
}

.viewer3d-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 179, 237, 0.12);
  border-radius: 12px 12px 0 0;
  gap: 16px;
}

.viewer3d-header h3 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.viewer3d-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(99, 179, 237, 0.1);
  border-radius: 8px;
  padding: 3px;
}

.viewer3d-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(203, 213, 225, 0.8);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.viewer3d-btn:hover {
  background: rgba(99, 179, 237, 0.12);
  color: #e2e8f0;
}

.viewer3d-btn:active {
  background: rgba(99, 179, 237, 0.2);
  transform: scale(0.96);
}

.viewer3d-btn .v3d-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.viewer3d-btn .v3d-label {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.viewer3d-btn-toggle {
  background: rgba(99, 179, 237, 0.08);
  color: #93c5fd;
  border: 1px solid rgba(99, 179, 237, 0.15);
}

.viewer3d-btn-toggle:hover {
  background: rgba(99, 179, 237, 0.18);
  color: #bfdbfe;
}

.viewer3d-btn-reset {
  padding: 6px 8px;
  font-size: 1rem;
}

.viewer3d-btn-reset:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.viewer3d-divider {
  width: 1px;
  height: 20px;
  background: rgba(99, 179, 237, 0.15);
  margin: 0 2px;
}

.viewer3d-hint {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.5);
  padding: 6px 0 2px;
  margin: 0;
}

/* ==================== ADVANTAGES ==================== */
.advantages {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.advantages::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.advantage-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.advantage-card:hover::before {
  opacity: 1;
}

.advantage-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: var(--border-radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.advantage-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== HANGAR TYPES ==================== */
.types {
  padding: var(--section-padding);
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.type-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  transition: var(--transition);
  cursor: pointer;

}

.type-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.type-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

.type-card:hover .type-card-image {
  transform: scale(1.05);
}

.type-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.3) 50%, transparent 100%);
}

.type-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.type-card-content h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.type-card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.type-card-specs {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.type-card-specs span {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  padding: 4px 10px;
  background: var(--accent-subtle);
  border-radius: 100px;
}

/* ==================== CATALOG ==================== */
.catalog {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.catalog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
}

.catalog-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.catalog-card-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.catalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.catalog-card:hover .catalog-card-img {
  transform: scale(1.08);
}

.catalog-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 14, 23, 0.7) 0%, transparent 60%);
  transition: var(--transition);
}

.catalog-card:hover .catalog-card-overlay {
  background: linear-gradient(0deg, rgba(10, 14, 23, 0.5) 0%, transparent 60%);
}

.catalog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-card-icon {
  font-size: 4rem;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.catalog-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.catalog-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.catalog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.catalog-card-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.catalog-card-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
}

.catalog-card:hover .catalog-card-arrow {
  background: var(--accent);
  color: #000;
  transform: translateX(4px);
}

/* ==================== CATALOG PAGE ==================== */
.catalog-page {
  padding-top: 100px;
  min-height: 100vh;
}

.catalog-page-header {
  text-align: center;
  margin-bottom: 48px;
}

.catalog-page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.catalog-page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--accent);
  font-weight: 600;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.product-card-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-card-visual img {
  transform: scale(1.05);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.product-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.product-card-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  flex: 1;
}

.product-card-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
}

.product-card-spec .spec-label {
  color: var(--text-muted);
}

.product-card-spec .spec-value {
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
  gap: 12px;
}

.product-card-price {
  display: flex;
  flex-direction: column;
}

.product-card-price .price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.product-card-price .price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-card-footer .btn {
  font-size: 0.82rem;
  padding: 10px 20px;
  white-space: nowrap;
}

/* Catalog CTA bottom */
.catalog-cta {
  text-align: center;
  padding: 48px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  margin-bottom: 48px;
}

.catalog-cta h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.catalog-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== CONTACT FORM ==================== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: var(--border-radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.contact-form-card h4 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-xs);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  margin-top: 24px;
}

.form-submit .btn {
  width: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 15, 28, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.6);
  margin: 0 0 14px;
  font-weight: 600;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-contact:hover {
  color: var(--accent);
}

.footer-icon {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
}

.footer-requisites {
  margin-bottom: 8px;
}

.footer-requisites p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bank-details {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.5);
}

.footer-bank-details summary {
  cursor: pointer;
  color: rgba(99, 179, 237, 0.6);
  font-size: 0.78rem;
  padding: 4px 0;
  transition: var(--transition);
  list-style: none;
}

.footer-bank-details summary::before {
  content: '▸ ';
}

.footer-bank-details[open] summary::before {
  content: '▾ ';
}

.footer-bank-details summary:hover {
  color: var(--accent);
}

.footer-bank-body {
  padding: 8px 0 0 4px;
  border-left: 2px solid rgba(99, 179, 237, 0.1);
  padding-left: 12px;
  margin-top: 4px;
}

.footer-bank-body p {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.5);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(99, 179, 237, 0.06);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.4);
  text-align: center;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== MOBILE NAV OVERLAY ==================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 14, 23, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s;
}

.mobile-nav-close:hover {
  color: var(--text-primary);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  text-align: center;
  min-width: 220px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.mobile-nav-phone {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  padding: 14px 32px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 100px;
  transition: var(--transition);
}

.mobile-nav-phone:hover {
  background: var(--accent-subtle);
}

/* ==================== RESPONSIVE ==================== */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .quiz-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .estimate-cta {
    flex-direction: column;
  }

  .estimate-mode-switcher .mode-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Header compact */
  .header {
    padding: 10px 0;
  }

  .header.scrolled {
    padding: 8px 0;
  }

  .logo {
    font-size: 1.2rem;
    gap: 8px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .header-phone {
    display: none;
  }

  /* Hero section */
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 1.7rem;
    margin-bottom: 16px;
    line-height: 1.25;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 5px 12px;
    margin-bottom: 16px;
    gap: 6px;
  }

  .hero-badge .dot {
    width: 5px;
    height: 5px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: none;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cta .btn-large {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .stat-item {
    text-align: center;
  }

  .stat-item .stat-number {
    font-size: 1.35rem;
  }

  .stat-item .stat-label {
    font-size: 0.7rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .quiz-step {
    padding: 20px;
  }

  .quiz-progress {
    padding: 14px 20px;
  }

  .quiz-nav {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .quiz-nav .btn {
    padding: 12px 20px;
    font-size: 0.88rem;
  }

  .quiz-cards-grid,
  .quiz-cards-grid.size-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .quiz-card {
    padding: 14px 12px;
    min-height: 110px;
  }

  .quiz-card-icon {
    font-size: 1.6rem;
  }

  .quiz-card-title {
    font-size: 0.88rem;
  }

  .quiz-card-desc {
    font-size: 0.72rem;
  }

  .quiz-step-title {
    font-size: 1.3rem;
  }

  .quiz-step-subtitle {
    font-size: 0.85rem;
  }

  .quiz-sliders {
    padding: 16px;
  }

  .quiz-slider-group label {
    font-size: 0.8rem;
  }

  .estimate-params {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .estimate-mode-switcher {
    flex-wrap: wrap;
  }

  .estimate-mode-switcher .mode-btn {
    padding: 10px 12px;
    font-size: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .estimate-cta-primary,
  .estimate-cta-secondary {
    flex-direction: column;
  }

  .estimate-totals {
    padding: 16px;
  }

  .estimate-grand-total {
    font-size: 1.6rem;
  }

  .estimate-total-value {
    font-size: 1.1rem;
  }

  /* BOM mobile */
  .bom-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .bom-header h3 {
    font-size: 0.88rem;
  }

  .bom-total-badge {
    font-size: 0.72rem;
  }

  /* AI Viz mobile */
  .ai-viz-section {
    padding: 16px;
    margin: 16px 0 12px;
  }

  .btn-ai {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .ral-palette {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .ral-tile {
    min-height: 60px;
    padding: 10px 4px;
  }

  .ral-code {
    font-size: 0.6rem;
  }

  .ral-name {
    font-size: 0.5rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card {
    padding: 24px;
  }

  .types-grid {
    grid-template-columns: 1fr;
  }

  .type-card-image {
    height: 200px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card-visual {
    height: 160px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card-visual {
    height: 180px;
  }

  .catalog-page-header h1 {
    font-size: 1.8rem;
  }

  .catalog-cta {
    padding: 32px 20px;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  .contact-form-card {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
  }

  /* 3D Viewer mobile */
  #hangar-3d-viewer {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }

  .viewer3d-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .viewer3d-controls {
    width: 100%;
  }

  .viewer3d-btn {
    flex: 1;
    text-align: center;
    padding: 8px 8px;
    font-size: 0.72rem;
  }

  /* Payment modal mobile */
  .payment-modal {
    padding: 24px;
    margin: 16px;
  }
}

/* --- Small phones (≤480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .logo {
    font-size: 1.1rem;
    gap: 6px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }

  .hero-badge {
    font-size: 0.62rem;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.82rem;
    margin-bottom: 20px;
  }

  .hero-cta .btn-large {
    padding: 13px 20px;
    font-size: 0.88rem;
  }

  .hero-stats {
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .stat-item .stat-number {
    font-size: 1.15rem;
  }

  .stat-item .stat-label {
    font-size: 0.65rem;
  }

  .quiz-cards-grid,
  .quiz-cards-grid.size-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quiz-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    min-height: auto;
    padding: 14px 16px;
  }

  .quiz-card-icon {
    font-size: 1.4rem;
    min-width: 36px;
  }

  .quiz-card-check {
    position: static;
    flex-shrink: 0;
  }

  .quiz-card-badge {
    top: -8px;
    font-size: 0.6rem;
    padding: 2px 8px;
  }

  .quiz-step-title {
    font-size: 1.15rem;
  }

  .quiz-step {
    padding: 16px;
  }

  .quiz-progress {
    padding: 12px 16px;
  }

  .quiz-nav {
    padding: 12px 16px;
  }

  .quiz-counter {
    flex-wrap: wrap;
    justify-content: center;
  }

  .estimate-grand-total {
    font-size: 1.4rem;
  }

  .estimate-line {
    padding: 8px;
    gap: 8px;
  }

  .estimate-line-label {
    font-size: 0.78rem;
  }

  .estimate-line-amount {
    font-size: 0.85rem;
  }

  .estimate-total-row {
    font-size: 0.85rem;
  }

  .estimate-per-sqm {
    font-size: 0.72rem;
  }

  .ral-palette {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .ral-tile {
    min-height: 54px;
    padding: 8px 3px;
  }

  .ral-code {
    font-size: 0.55rem;
  }

  .ral-name {
    display: none;
  }

  /* 3D Viewer compact */
  #hangar-3d-viewer {
    min-height: 220px;
    aspect-ratio: 3 / 2;
  }

  .viewer3d-btn {
    font-size: 0.68rem;
    padding: 6px 6px;
  }

  .type-card-image {
    height: 160px;
  }

  .type-card-content {
    padding: 16px;
  }

  .type-card-content h4 {
    font-size: 1rem;
  }

  .type-card-content p {
    font-size: 0.78rem;
  }

  .type-card-specs {
    gap: 8px;
  }

  .type-card-specs span {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .advantage-card {
    padding: 20px;
  }

  .advantage-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  .advantage-card h4 {
    font-size: 0.95rem;
  }

  .advantage-card p {
    font-size: 0.82rem;
  }

  .contact-info h3 {
    font-size: 1.3rem;
  }

  .contact-info p {
    font-size: 0.88rem;
  }

  .contact-form-card {
    padding: 20px;
  }

  .contact-form-card h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 11px 14px;
    font-size: 0.85rem;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }

  .footer-links a {
    font-size: 0.78rem;
  }

  /* Payment modal compact */
  .payment-modal {
    padding: 20px;
  }

  .payment-modal h3 {
    font-size: 1.1rem;
  }
}

/* --- Touch-friendly: disable hover transforms on touch devices --- */
@media (hover: none) {
  .quiz-card:hover {
    transform: none;
    box-shadow: none;
  }

  .advantage-card:hover {
    transform: none;
  }

  .type-card:hover {
    transform: none;
  }

  .type-card:hover .type-card-image {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .btn-ai:hover {
    transform: none;
  }
}

/* ==================== LOADS SUMMARY PANEL ==================== */
.loads-section {
  margin-bottom: 20px;
}

.loads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  padding: 16px 0;
}

.loads-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-xs);
  font-size: 0.82rem;
}

.loads-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.loads-value {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .loads-grid {
    grid-template-columns: 1fr;
  }
}