/* ========================================
   ЗМК Ангарск - Main Stylesheet
   ======================================== */

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

:root {
  --color-bg: #262626;
  --color-bg-light: #2e2e2e;
  --color-text: #fafafa;
  --color-text-muted: #a3a3a3;
  --color-accent: #ea580c;
  --color-accent-hover: #dc2626;
  --color-border: #404040;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* ========================================
   Header
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(38, 38, 38, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-text);
}

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
}

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

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a {
  display: block;
  color: var(--color-text-muted);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('/images/hero-pattern.svg') no-repeat center;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-light);
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

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

.hero-highlight {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-light);
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   Cards & Grid
   ======================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-accent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
}

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

/* Product Cards */
.product-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #404040 0%, #2e2e2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-accent);
}

.product-content {
  padding: 1.5rem;
}

.product-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-accent);
  color: var(--color-text);
  border-radius: 1rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

/* ========================================
   Stats
   ======================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.stat-item {
  padding: 2rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-text-muted);
}

/* ========================================
   Form
   ======================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  color: var(--color-text);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-muted);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
  padding: 8rem 0 4rem;
  margin-top: 70px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1.25rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  color: var(--color-text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .grid {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
}
