* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s;
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  transition: color 0.3s;
}

.header.scrolled .logo { color: #1a1a2e; }

.logo-img { height: 50px; width: auto; }
.logo-accent { color: #f6b83d; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-list a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f6b83d;
  transition: width 0.3s;
}

.nav-list a:hover::after { width: 100%; }
.header.scrolled .nav-list a { color: #333; }
.nav-list a:hover { color: #f6b83d; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s;
}

.cart-btn:hover { transform: scale(1.1); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.header.scrolled .burger span { background: #1a1a2e; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../img/hero.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,20,40,0.85), rgba(0,40,20,0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 0 80px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: #f6b83d;
  color: #1a1a2e;
  border-color: #f6b83d;
}

.btn-primary:hover {
  background: #e5a62e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246,184,61,0.35);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 520px;
  margin: 0 auto;
}

.partners {
  padding: 40px 0;
  background: #fff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partner-img {
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}

.partner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.partner-img:hover img { transform: scale(1.05); }

.catalog { background: #f8f9fa; }

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.filter-btn:hover { border-color: #f6b83d; color: #f6b83d; }
.filter-btn.active {
  background: #f6b83d;
  border-color: #f6b83d;
  color: #1a1a2e;
}

.sort-control select {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #e74c3c;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.product-body { padding: 20px; }

.product-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-specs {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #27ae60;
}

.about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-content p { color: #555; margin-bottom: 16px; font-size: 1.05rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin-top: 36px;
}

.about-stats li {
  text-align: center;
  padding: 20px;
  background: #f0faf0;
  border-radius: 12px;
}

.about-stats strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #27ae60;
}

.about-stats span { font-size: 0.85rem; color: #666; }

.contact {
  background: linear-gradient(135deg, rgba(0,20,40,0.9), rgba(0,40,20,0.85)), url('../img/contact-bg.jpg') center/cover no-repeat fixed;
  color: #fff;
}

.contact .section-header h2 { color: #fff; }
.contact .section-header p { color: rgba(255,255,255,0.7); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.contact-form input::placeholder,
.contact-form select,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.6); }

.contact-form select option { color: #1a1a2e; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f6b83d;
  background: rgba(255,255,255,0.15);
}

.contact-form button { align-self: flex-start; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.contact-item .contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover { color: #f6b83d; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.show { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.cart-header h2 { font-size: 1.3rem; }

.cart-close, .modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.cart-close:hover, .modal-close:hover { color: #1a1a2e; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  color: #999;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.9rem;
  color: #27ae60;
  font-weight: 700;
  margin-top: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover { border-color: #f6b83d; color: #f6b83d; }

.cart-item-del {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #ccc;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.cart-item-del:hover { color: #e74c3c; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  border-radius: 16px;
  width: 520px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 3001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.open { opacity: 1; pointer-events: auto; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 { font-size: 1.3rem; }

.modal-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: #f6b83d;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a2e;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer .logo { margin-bottom: 16px; }
.footer .logo-text { color: #fff; }
.footer-brand p { color: #999; font-size: 0.95rem; max-width: 300px; }

.footer-links h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: #f6b83d; }

.footer-bottom {
  border-top: 1px solid #2a2a3e;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.8rem; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 80px 32px 32px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s;
  }

  .nav.open { right: 0; }

  .nav-list { flex-direction: column; gap: 20px; }
  .nav-list a { color: #1a1a2e !important; font-size: 1.1rem; }
  .burger { display: flex; }

  .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }

  .products-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .catalog-controls { flex-direction: column; align-items: stretch; }

  section { padding: 60px 0; }
  .section-header h2 { font-size: 2rem; }
  .cart-sidebar { width: 100%; }
}
