html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)),
              url('../img/production-banner-03.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
}

/* ===== ШАПКА САЙТА ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: relative;
  width: 100%;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffffff;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 30px;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff5500;
}

/* ===== ПЕРЕМИКАЧ МОВ ===== */
.lang-switcher {
  margin-left: 25px;
  font-size: 15px;
  color: #666666;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher a {
  color: #aaaaaa;
  text-decoration: none;
  margin-left: 0;
  font-size: 15px;
  font-weight: normal;
  transition: color 0.3s;
}

.lang-switcher a:hover {
  color: #ff5500;
}

.lang-switcher span.active {
  color: #ff5500;
  font-weight: bold;
}

/* ===== ГЛАВНЫЙ ЭКРАН (HERO) ===== */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 30px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: #ff5500;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #e04b00;
}

/* ===== СЕКЦИЯ ПРОДУКЦИЯ ===== */
.products {
  padding: 80px 50px;
  background-color: #141414;
  text-align: center;
}

.products h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.products-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #1f1f1f;
  padding: 30px;
  border-radius: 8px;
  width: 300px;
  text-align: left;
  border: 1px solid #333;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #ff5500;
}

.card h3 {
  color: #ff5500;
  margin-bottom: 12px;
}

.card p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== СЕКЦИЯ КОНТАКТЫ ===== */
.contacts {
  padding: 80px 50px;
  background-color: #0d0d0d;
  text-align: center;
}

.contacts h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.contacts-container {
  display: flex;
  gap: 50px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  background: #1f1f1f;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 16px;
  color: #ccc;
}

/* ===== ПОДВАЛ (FOOTER) ===== */
.site-footer {
  background: #111111;
  color: #ffffff;
  padding: 40px 0 0;
  font-family: Arial, sans-serif;
  border-top: 1px solid #333333;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-info-block {
  flex: 1 1 480px;
  max-width: 550px;
}

.footer-header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.footer-text {
  color: #d1d1d1;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}

.footer-text strong {
  color: #ffffff;
  font-weight: bold;
}

.footer-divider {
  border: none;
  border-top: 1px solid #2e2e2e;
  margin: 0 0 16px 0;
  width: 100%;
}

.footer-contacts p {
  margin: 6px 0;
  font-size: 16px;
}

.contact-label {
  color: #4b8cb8;
  font-weight: bold;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-map-block {
  flex: 1 1 350px;
}

.footer-map-block h4 {
  color: #ff5500;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 16px;
}

.footer-map-block p {
  color: #cccccc;
  font-size: 14px;
  margin-bottom: 10px;
}

.map-wrapper {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #333333;
}

.map-wrapper iframe {
  width: 100%;
  height: 130px;
  border: 0;
  display: block;
}

.footer-bottom-bar {
  border-top: 1px solid #222222;
  background: #0a0a0a;
  padding: 15px 0;
}

.footer-bottom-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright {
  color: #666666;
  font-size: 13px;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #1f1f1f;
  border: 1px solid #ff5500;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  position: relative;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaaaaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* ===== СЕТКА И КАРТОЧКИ КАТАЛОГА ===== */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  margin-top: 30px !important;
  align-items: stretch !important;
}

.product-card {
  width: 100% !important;
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain !important;
  background-color: #ffffff !important;
  padding: 8px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.product-card > div {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.product-card a {
  margin-top: auto !important;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ДОСТАВКА И ОПЛАТА ===== */
.delivery {
  padding: 60px 20px 80px;
  min-height: 80vh;
}

.delivery-container {
  max-width: 1140px;
  margin: 0 auto;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
              url('../img/deliverz.jpg') no-repeat center center;
  background-size: cover;
  border: 1px solid #ff5500;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.delivery h2 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.delivery-intro {
  color: #b0b0b0;
  font-size: 16px;
  margin-bottom: 35px;
  line-height: 1.5;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.delivery-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 22px 18px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.delivery-card:hover {
  transform: translateY(-4px);
  border-color: #ff5500;
}

.delivery-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.delivery-card h3 {
  color: #ff5500;
  font-size: 18px;
  margin-bottom: 10px;
}

.delivery-card p {
  color: #cccccc;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.delivery-card p:last-child {
  margin-bottom: 0;
}

body.delivery-page {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
              url('../img/deliverz.jpg') no-repeat center center fixed !important;
  background-size: cover !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
  .product-grid,
  .delivery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a {
    margin-left: 0;
    font-size: 14px;
  }

  .lang-switcher {
    margin-left: 10px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .card {
    width: 100%;
  }

  .footer-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .product-grid,
  .delivery-grid {
    grid-template-columns: 1fr !important;
  }

  .delivery-container {
    padding: 20px;
  }

  .lang-switcher {
    margin-left: 5px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
}