/* Base styles */
:root {
  --bg-primary: #18181b; /* zinc-900 */
  --bg-secondary: #27272a; /* zinc-800 */
  --text-primary: #f4f4f5; /* zinc-100 */
  --text-secondary: #a1a1aa; /* zinc-400 */
  --accent-primary: #10b981; /* emerald-500 */
  --accent-secondary: #047857; /* emerald-600 */
  /* Стиль для иконки валюты */
img[alt="патроны"] {
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5)); /* Зеленоватое свечение */
    transition: transform 0.2s;
    vertical-align: middle;
}

/* Эффект при наведении на карточку */
.product-container:hover img[alt="патроны"] {
    transform: scale(1.2) rotate(-10deg); /* Патрон чуть увеличится и наклонится */
}
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Background styles */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.background-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
  z-index: 1;
  pointer-events: none;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.4);
}

/* Remove old body::before gradient */
body::before {
  display: none;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.p-4 {
  padding: 1rem;
}

.p-8 {
  padding: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Table styles */
.min-w-full {
  min-width: 100%;
}

.overflow-x-auto {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-zinc-800\/80 {
  background-color: rgba(39, 39, 42, 0.8);
}

.bg-zinc-800\/40 {
  background-color: rgba(39, 39, 42, 0.4);
}

.bg-zinc-800\/20 {
  background-color: rgba(39, 39, 42, 0.2);
}

.text-left {
  text-align: left;
}

/* Additional utility classes */
.max-w-md {
  max-width: 28rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.col-span-full {
  grid-column: 1 / -1;
}

.opacity-75 {
  opacity: 0.75;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

/* Error and success messages */
.bg-red-500\/20 {
  background-color: rgba(239, 68, 68, 0.2);
}

.text-red-400 {
  color: #f87171;
}

.bg-green-500\/20 {
  background-color: rgba(34, 197, 94, 0.2);
}

.text-green-400 {
  color: #4ade80;
}

/* Checkbox styles */
input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: var(--accent-primary);
}

.ml-2 {
  margin-left: 0.5rem;
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-items {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-items.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-link {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .navbar-link:last-child {
    border-bottom: none;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero .flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero .flex a {
    width: 100%;
    text-align: center;
  }
  
  .card {
    padding: 1.5rem;
  }
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Text styles */
.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 2.5rem;
}

.text-6xl {
  font-size: 4rem;
}

@media (min-width: 768px) {
  .text-8xl {
    font-size: 6rem;
  }
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

/* Background and colors */
.bg-zinc-800 {
  background-color: var(--bg-secondary);
}

.bg-zinc-900 {
  background-color: var(--bg-primary);
}

.bg-emerald-500 {
  background-color: var(--accent-primary);
}

.text-zinc-100 {
  color: var(--text-primary);
}

.text-zinc-300 {
  color: #d4d4d8;
}

.text-zinc-400 {
  color: var(--text-secondary);
}

.text-emerald-500 {
  color: var(--accent-primary);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 0.625rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  transform: scale(1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
}

.btn-secondary {
  background-color: rgba(39, 39, 42, 0.8);
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(63, 63, 70, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
  background-color: rgba(39, 39, 42, 0.65);
  padding: 2.5rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes fadeIn {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}

/* Background effects */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.navbar-items {
  display: flex;
  gap: 1.5rem;
}

.navbar-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-link:hover {
  color: var(--accent-primary);
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
  padding: 0 1rem;
  margin-top: 60px;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 64rem;
}

.hero-logo {
  width: 12rem;
  height: 12rem;
  margin: 0 auto 2rem;
  animation: float 3s ease-in-out infinite;
}

/* Features section */
.features {
  position: relative;
  z-index: 5;
  padding: 5rem 1rem;
}

/* Main content padding for pages */
.relative.z-10.py-12.px-4 {
  padding-top: calc(3rem + 60px);
}

/* Steps section */
.step {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateX(5px);
}

.step:last-child {
  margin-bottom: 0;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3.5rem;
  bottom: -2.2rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  z-index: 1;
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  background-color: rgba(16, 185, 129, 0.25);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.step-number span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
}

/* Footer */
.footer {
  background-color: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(8px);
  padding: 3rem 0 1rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(161, 161, 170, 0.2); /* zinc-400 with 20% opacity */
  margin-top: 2rem;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #3f3f46; /* zinc-700 */
  background-color: rgba(24, 24, 27, 0.8); /* zinc-900 with transparency */
  color: var(--text-primary);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-submit {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  background-color: var(--accent-primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.form-submit:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-1px);
}

/* TailwindCSS-подобные классы для карточек в Features секции */
.bg-zinc-800\/50 {
  background-color: rgba(39, 39, 42, 0.5);
}

.rounded-xl {
  border-radius: 0.75rem;
}

.transform {
  transform-origin: center;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-500 {
  transition-duration: 500ms;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-emerald-500\/20:hover {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Дополнительные TailwindCSS-подобные классы для секции "Как подключиться" */
.flex {
  display: flex;
}

.items-start {
  align-items: flex-start;
}

.gap-6 {
  gap: 1.5rem;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.bg-emerald-500\/20 {
  background-color: rgba(16, 185, 129, 0.2);
}

.text-2xl {
  font-size: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
} 